Apply local updates and test/build fixes

This commit is contained in:
Ryan Ward
2026-05-13 15:56:40 -05:00
parent cee61e2af0
commit b61d6bcbce
36 changed files with 567 additions and 327 deletions
+2 -3
View File
@@ -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";
+11 -8
View File
@@ -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),
]