Apply local updates and test/build fixes
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
use super::{
|
||||
SettingsSection,
|
||||
settings_page::{
|
||||
MatchData, PageType, SettingsPageEvent, SettingsPageMeta, SettingsPageViewHandle,
|
||||
SettingsWidget,
|
||||
},
|
||||
SettingsSection,
|
||||
};
|
||||
use crate::{appearance::Appearance, channel::ChannelState, workspace::WorkspaceAction};
|
||||
use galaxyui::{
|
||||
AppContext, Entity, View, ViewContext, ViewHandle,
|
||||
assets::asset_cache::AssetSource,
|
||||
elements::{
|
||||
Align, CacheOption, ConstrainedBox, Container, CrossAxisAlignment, Element, Flex, Image,
|
||||
MainAxisAlignment, MouseStateHandle, ParentElement, Wrap,
|
||||
},
|
||||
ui_components::components::UiComponent,
|
||||
AppContext, Entity, View, ViewContext, ViewHandle,
|
||||
};
|
||||
|
||||
pub struct AboutPageView {
|
||||
@@ -60,7 +60,6 @@ impl SettingsWidget for AboutPageWidget {
|
||||
appearance: &Appearance,
|
||||
_app: &AppContext,
|
||||
) -> Box<dyn Element> {
|
||||
let theme = appearance.theme();
|
||||
let ui_builder = appearance.ui_builder();
|
||||
|
||||
let image_path = "bundled/svg/galaxy-logo.svg";
|
||||
|
||||
@@ -26,12 +26,12 @@ fn code_subpages_are_identified() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cloud_platform_subpages_are_identified() {
|
||||
assert!(SettingsSection::CloudEnvironments.is_cloud_platform_subpage());
|
||||
assert!(SettingsSection::OzCloudAPIKeys.is_cloud_platform_subpage());
|
||||
fn legacy_cloud_platform_sections_are_not_subpages() {
|
||||
assert!(!SettingsSection::CloudEnvironments.is_subpage());
|
||||
assert!(!SettingsSection::OzCloudAPIKeys.is_subpage());
|
||||
|
||||
assert!(!SettingsSection::Account.is_cloud_platform_subpage());
|
||||
assert!(!SettingsSection::WarpAgent.is_cloud_platform_subpage());
|
||||
assert!(!SettingsSection::Account.is_subpage());
|
||||
assert!(!SettingsSection::WarpAgent.is_subpage());
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -42,8 +42,8 @@ fn is_subpage_covers_all_umbrella_types() {
|
||||
}
|
||||
assert!(SettingsSection::CodeIndexing.is_subpage());
|
||||
assert!(SettingsSection::EditorAndCodeReview.is_subpage());
|
||||
assert!(SettingsSection::CloudEnvironments.is_subpage());
|
||||
assert!(SettingsSection::OzCloudAPIKeys.is_subpage());
|
||||
assert!(!SettingsSection::CloudEnvironments.is_subpage());
|
||||
assert!(!SettingsSection::OzCloudAPIKeys.is_subpage());
|
||||
|
||||
// Top-level pages should not be subpages.
|
||||
assert!(!SettingsSection::Account.is_subpage());
|
||||
@@ -647,7 +647,10 @@ fn realistic_nav_items() -> Vec<SettingsNavItem> {
|
||||
)),
|
||||
SettingsNavItem::Umbrella(SettingsUmbrella::new(
|
||||
"Cloud platform",
|
||||
SettingsSection::cloud_platform_subpages().to_vec(),
|
||||
vec![
|
||||
SettingsSection::CloudEnvironments,
|
||||
SettingsSection::OzCloudAPIKeys,
|
||||
],
|
||||
)),
|
||||
SettingsNavItem::Page(SettingsSection::Teams),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user