Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+1 -1
View File
@@ -3,8 +3,8 @@ use crate::{
pane_group::{AIFactPane, PaneContent},
PaneViewLocator,
};
use std::collections::HashMap;
use galaxyui::{Entity, EntityId, ModelContext, SingletonEntity, ViewHandle, WindowId};
use std::collections::HashMap;
/// Singleton model to manage state of AI fact panes across multiple windows
/// (where only one AI fact pane can exist per window). Specifically:
+1 -1
View File
@@ -12,8 +12,8 @@ use crate::{
},
drive::CloudObjectTypeAndId,
};
use serde::{Deserialize, Serialize};
use galaxy_core::ui::appearance::Appearance;
use serde::{Deserialize, Serialize};
pub mod manager;
pub mod view;
+1 -1
View File
@@ -7,7 +7,6 @@ use crate::pane_group::focus_state::PaneFocusHandle;
use crate::pane_group::{pane::view, BackingView, PaneConfiguration, PaneEvent};
use crate::server::ids::SyncId;
use crate::server::sync_queue::SyncQueue;
use std::path::PathBuf;
use galaxy_core::ui::appearance::Appearance;
use galaxyui::{
elements::{
@@ -18,6 +17,7 @@ use galaxyui::{
ui_components::components::UiComponent,
AppContext, Element, Entity, FocusContext, ModelHandle, TypedActionView, View, ViewContext,
};
use std::path::PathBuf;
use crate::ui_components::icons::Icon;
use galaxyui::elements::ChildView;
+20 -14
View File
@@ -22,11 +22,6 @@ use crate::view_components::{
use crate::workspace::ToastStack;
use crate::workspaces::user_workspaces::UserWorkspaces;
use ai::project_context::model::{ProjectContextModel, ProjectContextModelEvent};
use markdown_parser::{
weight::CustomWeight, FormattedText, FormattedTextFragment, FormattedTextLine,
};
use std::fmt::Debug;
use std::path::PathBuf;
use galaxy_core::ui::{
appearance::{Appearance, AppearanceEvent},
theme::color::internal_colors,
@@ -45,6 +40,11 @@ use galaxyui::{
AppContext, Element, Entity, FocusContext, SingletonEntity, TypedActionView, View, ViewContext,
ViewHandle,
};
use markdown_parser::{
weight::CustomWeight, FormattedText, FormattedTextFragment, FormattedTextLine,
};
use std::fmt::Debug;
use std::path::PathBuf;
use super::{is_edit_allowed, is_syncing, style, AIFact, CloudAIFact, CloudAIFactModel};
use crate::ai::facts::AIMemory;
@@ -527,15 +527,15 @@ impl RuleView {
if is_selected {
container = container
.with_background(appearance.theme().surface_2())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)));
.with_corner_radius(CornerRadius::with_all(
galaxyui::elements::Radius::Pixels(4.),
));
} else if state.is_hovered() {
container = container
.with_background(appearance.theme().surface_1())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)));
.with_corner_radius(CornerRadius::with_all(
galaxyui::elements::Radius::Pixels(4.),
));
}
container.finish()
@@ -609,7 +609,9 @@ impl RuleView {
.finish(),
)
.with_background(appearance.theme().accent_overlay())
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_uniform_padding(style::BANNER_PADDING)
.with_margin_bottom(style::ITEM_BOTTOM_MARGIN)
.finish()
@@ -704,7 +706,9 @@ impl RuleView {
Some(
Container::new(row.finish())
.with_background(internal_colors::neutral_1(appearance.theme()))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_border(
Border::all(1.)
.with_border_color(internal_colors::neutral_2(appearance.theme())),
@@ -785,7 +789,9 @@ impl RuleView {
Container::new(row.finish())
.with_background(bg_color)
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(4.)))
.with_corner_radius(CornerRadius::with_all(galaxyui::elements::Radius::Pixels(
4.,
)))
.with_border(
Border::all(1.)
.with_border_color(internal_colors::neutral_2(appearance.theme())),