first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+10 -14
View File
@@ -1,19 +1,15 @@
use galaxyui::{
elements::{Container, Flex, MouseStateHandle, ParentElement},
fonts::Weight,
ui_components::components::{UiComponent, UiComponentStyles},
AppContext, Element,
};
use crate::{
ai::facts::{AIFact, AIMemory, CloudAIFact},
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
themes::theme::Fill,
};
use galaxyui::elements::{Container, Flex, MouseStateHandle, ParentElement};
use galaxyui::fonts::Weight;
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
use galaxyui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::ai::facts::{AIFact, AIMemory, CloudAIFact};
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveAIFact {
+8 -9
View File
@@ -1,14 +1,13 @@
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
use crate::{
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{index::DriveIndexAction, DriveObjectType},
server::ids::ClientId,
themes::theme::Fill,
};
use galaxyui::elements::MouseStateHandle;
use galaxyui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::DriveObjectType;
use crate::server::ids::ClientId;
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveAIFactCollection {
+12 -18
View File
@@ -1,24 +1,18 @@
use galaxy_core::context_flag::ContextFlag;
use galaxyui::{
elements::{Clipped, Container, Flex, MouseStateHandle, ParentElement},
fonts::Weight,
ui_components::components::{UiComponent, UiComponentStyles},
AppContext, Element, SingletonEntity,
};
use itertools::Itertools;
use crate::{
appearance::Appearance,
cloud_object::{
model::actions::{ObjectActionType, ObjectActions},
CloudObjectMetadata,
},
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
env_vars::{CloudEnvVarCollection, EnvVarValue},
themes::theme::Fill,
};
use galaxy_core::context_flag::ContextFlag;
use galaxyui::elements::{Clipped, Container, Flex, MouseStateHandle, ParentElement};
use galaxyui::fonts::Weight;
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
use galaxyui::{AppContext, Element, SingletonEntity};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::model::actions::{ObjectActionType, ObjectActions};
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::env_vars::{CloudEnvVarCollection, EnvVarValue};
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveEnvVarCollection {
+10 -12
View File
@@ -1,18 +1,16 @@
use galaxy_core::features::FeatureFlag;
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
use crate::{
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{
cloud_object_styling::warp_drive_icon_color, folders::CloudFolder, index::DriveIndexAction,
CloudObjectTypeAndId, DriveObjectType,
},
themes::theme::Fill,
ui_components::icons::Icon,
};
use galaxyui::elements::MouseStateHandle;
use galaxyui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::cloud_object_styling::warp_drive_icon_color;
use crate::drive::folders::CloudFolder;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::themes::theme::Fill;
use crate::ui_components::icons::Icon;
#[derive(Clone)]
pub struct WarpDriveFolder {
+39 -53
View File
@@ -1,57 +1,43 @@
use galaxyui::{
elements::{
AcceptedByDropTarget, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius,
CrossAxisAlignment, Draggable, DraggableState, DropShadow, Empty, Flex, Hoverable,
MainAxisSize, MouseStateHandle, OffsetPositioning, ParentAnchor, ParentElement,
ParentOffsetBounds, Radius, SavePosition, Shrinkable, SizeConstraintCondition,
SizeConstraintSwitch, Stack,
},
fonts::Weight,
platform::Cursor,
presenter::PositionCache,
ui_components::{
components::{UiComponent, UiComponentStyles},
text::Span,
},
AppContext, Element, SingletonEntity, ViewHandle,
use pathfinder_geometry::rect::RectF;
use pathfinder_geometry::vector::Vector2F;
use galaxyui::elements::{
AcceptedByDropTarget, Border, ChildAnchor, ConstrainedBox, Container, CornerRadius,
CrossAxisAlignment, Draggable, DraggableState, DropShadow, Empty, Flex, Hoverable,
MainAxisSize, MouseStateHandle, OffsetPositioning, ParentAnchor, ParentElement,
ParentOffsetBounds, Radius, SavePosition, Shrinkable, SizeConstraintCondition,
SizeConstraintSwitch, Stack,
};
use pathfinder_geometry::{rect::RectF, vector::Vector2F};
use crate::{
cloud_object::{
model::{persistence::CloudModel, view::CloudViewModel},
CloudObject, CloudObjectMetadataExt, Owner,
},
drive::CloudObjectTypeAndId,
workspaces::{user_profiles::UserProfiles, user_workspaces::UserWorkspaces},
};
use crate::workspace::header_toolbar_item::HeaderToolbarItemKind;
use crate::workspace::tab_settings::TabSettings;
use crate::{
appearance::Appearance,
cloud_object::Space,
drive::{
index::{
DriveIndexAction, AUTOSCROLL_DETECTION_DISTANCE, AUTOSCROLL_SPEED_MULTIPLIER,
DRIVE_INDEX_VIEW_POSITION_ID, FOLDER_DEPTH_INDENT, INDEX_CONTENT_MARGIN_LEFT,
ITEM_FONT_SIZE, ITEM_MARGIN_BOTTOM, ITEM_PADDING_HORIZONTAL, ITEM_PADDING_VERTICAL,
},
panel::WARP_DRIVE_POSITION_ID,
},
menu::Menu,
ui_components::{
blended_colors,
icons::{Icon, ICON_DIMENSIONS},
menu_button::{
highlight_icon_button_with_context_menu_drive, icon_button_with_context_menu_drive,
MenuDirection,
},
},
};
use crate::{cloud_object::CloudObjectLocation, drive::items::WarpDriveItem};
use galaxyui::fonts::Weight;
use galaxyui::platform::Cursor;
use galaxyui::presenter::PositionCache;
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
use galaxyui::ui_components::text::Span;
use galaxyui::{AppContext, Element, SingletonEntity, ViewHandle};
use super::WarpDriveItemId;
use crate::appearance::Appearance;
use crate::cloud_object::model::persistence::CloudModel;
use crate::cloud_object::model::view::CloudViewModel;
use crate::cloud_object::{CloudObject, CloudObjectLocation, CloudObjectMetadataExt, Owner, Space};
use crate::drive::index::{
DriveIndexAction, AUTOSCROLL_DETECTION_DISTANCE, AUTOSCROLL_SPEED_MULTIPLIER,
DRIVE_INDEX_VIEW_POSITION_ID, FOLDER_DEPTH_INDENT, INDEX_CONTENT_MARGIN_LEFT, ITEM_FONT_SIZE,
ITEM_MARGIN_BOTTOM, ITEM_PADDING_HORIZONTAL, ITEM_PADDING_VERTICAL,
};
use crate::drive::items::WarpDriveItem;
use crate::drive::panel::WARP_DRIVE_POSITION_ID;
use crate::drive::CloudObjectTypeAndId;
use crate::menu::Menu;
use crate::ui_components::blended_colors;
use crate::ui_components::icons::{Icon, ICON_DIMENSIONS};
use crate::ui_components::menu_button::{
highlight_icon_button_with_context_menu_drive, icon_button_with_context_menu_drive,
MenuDirection,
};
use crate::workspace::header_toolbar_item::HeaderToolbarItemKind;
use crate::workspace::tab_settings::TabSettings;
use crate::workspaces::user_profiles::UserProfiles;
use crate::workspaces::user_workspaces::UserWorkspaces;
pub(crate) fn tools_panel_menu_direction(app: &AppContext) -> MenuDirection {
let config = TabSettings::as_ref(app)
@@ -134,7 +120,7 @@ pub struct WarpDriveRow<'a> {
space: Space,
item_states: ItemStates,
overflow_button: Box<dyn Element>,
/// how many levels into a folder hierachy the row is.
/// how many levels into a folder hierarchy the row is.
/// 0 means the object is in the root directory.
folder_depth: usize,
sync_icon: Option<Box<dyn Element>>,
@@ -898,7 +884,7 @@ impl UiComponent for WarpDriveRow<'_> {
return;
}
// Otherwize, check to see if we should scroll downwards (revealing more content at the
// Otherwise, check to see if we should scroll downwards (revealing more content at the
// bottom).
// This computes the distance between the bottom of the *currently-dragging* item
// and the bottom of the drive index view. If distance < 10, emit a scroll event.
+9 -8
View File
@@ -1,12 +1,13 @@
use warpui::elements::MouseStateHandle;
use warpui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::{
ai::mcp::CloudMCPServer,
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
themes::theme::Fill,
};
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
use crate::ai::mcp::CloudMCPServer;
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveMCPServer {
+8 -9
View File
@@ -1,14 +1,13 @@
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
use crate::{
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{index::DriveIndexAction, DriveObjectType},
server::ids::ClientId,
themes::theme::Fill,
};
use galaxyui::elements::MouseStateHandle;
use galaxyui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::DriveObjectType;
use crate::server::ids::ClientId;
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveMCPServerCollection {
+9 -13
View File
@@ -1,17 +1,13 @@
use galaxyui::{elements::MouseStateHandle, AppContext, Element};
use galaxyui::elements::MouseStateHandle;
use galaxyui::{AppContext, Element};
use crate::{
appearance::Appearance,
cloud_object::{CloudObjectMetadata, Space},
themes::theme::Fill,
ui_components::icons::Icon,
};
use super::{
cloud_object_styling::warp_drive_icon_color,
index::{warp_drive_section_header_position_id, DriveIndexAction, DriveIndexSection},
CloudObjectTypeAndId, DriveObjectType,
};
use super::cloud_object_styling::warp_drive_icon_color;
use super::index::{warp_drive_section_header_position_id, DriveIndexAction, DriveIndexSection};
use super::{CloudObjectTypeAndId, DriveObjectType};
use crate::appearance::Appearance;
use crate::cloud_object::{CloudObjectMetadata, Space};
use crate::themes::theme::Fill;
use crate::ui_components::icons::Icon;
pub mod ai_fact;
pub mod ai_fact_collection;
+10 -14
View File
@@ -1,19 +1,15 @@
use galaxyui::{
elements::{Flex, MouseStateHandle, ParentElement},
fonts::Weight,
ui_components::components::{UiComponent, UiComponentStyles},
AppContext, Element,
};
use crate::{
appearance::Appearance,
cloud_object::CloudObjectMetadata,
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
notebooks::CloudNotebook,
themes::theme::Fill,
};
use galaxyui::elements::{Flex, MouseStateHandle, ParentElement};
use galaxyui::fonts::Weight;
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
use galaxyui::{AppContext, Element};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::notebooks::CloudNotebook;
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveNotebook {
+7 -8
View File
@@ -1,13 +1,12 @@
use galaxyui::{elements::MouseStateHandle, Element};
use crate::{
appearance::Appearance,
cloud_object::{CloudObjectMetadata, Space},
drive::{index::DriveIndexAction, DriveObjectType},
themes::theme::Fill,
};
use galaxyui::elements::MouseStateHandle;
use galaxyui::Element;
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::{CloudObjectMetadata, Space};
use crate::drive::index::DriveIndexAction;
use crate::drive::DriveObjectType;
use crate::themes::theme::Fill;
#[derive(Clone)]
pub struct WarpDriveSpace {
+11 -17
View File
@@ -1,23 +1,17 @@
use galaxy_core::context_flag::ContextFlag;
use galaxyui::{
elements::{Container, Flex, MouseStateHandle, ParentElement},
fonts::Weight,
ui_components::components::{UiComponent, UiComponentStyles},
AppContext, Element, SingletonEntity,
};
use crate::{
appearance::Appearance,
cloud_object::{
model::actions::{ObjectActionType, ObjectActions},
CloudObjectMetadata,
},
drive::{index::DriveIndexAction, CloudObjectTypeAndId, DriveObjectType},
themes::theme::Fill,
workflows::{CloudWorkflow, WorkflowViewMode},
};
use galaxyui::elements::{Container, Flex, MouseStateHandle, ParentElement};
use galaxyui::fonts::Weight;
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
use galaxyui::{AppContext, Element, SingletonEntity};
use super::{WarpDriveItem, WarpDriveItemId};
use crate::appearance::Appearance;
use crate::cloud_object::model::actions::{ObjectActionType, ObjectActions};
use crate::cloud_object::CloudObjectMetadata;
use crate::drive::index::DriveIndexAction;
use crate::drive::{CloudObjectTypeAndId, DriveObjectType};
use crate::themes::theme::Fill;
use crate::workflows::{CloudWorkflow, WorkflowViewMode};
#[derive(Clone)]
pub struct WarpDriveWorkflow {