Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -14,7 +14,7 @@ use crate::search::SyncDataSource;
|
||||
use crate::workspace::Workspace;
|
||||
use itertools::Itertools;
|
||||
use std::collections::HashMap;
|
||||
use warpui::{AppContext, Entity};
|
||||
use galaxyui::{AppContext, Entity};
|
||||
|
||||
/// Sections for grouping conversations in the command palette.
|
||||
#[derive(Debug, PartialEq, Eq, Hash)]
|
||||
|
||||
@@ -5,7 +5,7 @@ use crate::search::command_palette::conversations::DataSource;
|
||||
use crate::search::data_source::QueryResult;
|
||||
use crate::search::SyncDataSource;
|
||||
use fuzzy_match::match_indices_case_insensitive;
|
||||
use warpui::AppContext;
|
||||
use galaxyui::AppContext;
|
||||
|
||||
/// A conversation that was fuzzy matched against a search term.
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -13,18 +13,18 @@ use crate::util::time_format::format_approx_duration_from_now;
|
||||
use ordered_float::OrderedFloat;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use warp_core::ui::color::{blend::Blend, coloru_with_opacity};
|
||||
use warp_core::ui::icons::Icon;
|
||||
use warp_core::ui::theme::color::internal_colors;
|
||||
use warpui::elements::{
|
||||
use galaxy_core::ui::color::{blend::Blend, coloru_with_opacity};
|
||||
use galaxy_core::ui::icons::Icon;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxyui::elements::{
|
||||
AnchorPair, Container, CrossAxisAlignment, Expanded, Fill, Flex, Highlight, MainAxisSize,
|
||||
MouseStateHandle, OffsetPositioning, OffsetType, ParentElement, ParentOffsetBounds,
|
||||
PositioningAxis, Stack, Text, XAxisAnchor, YAxisAnchor,
|
||||
};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::ui_components::button::ButtonTooltipPosition;
|
||||
use warpui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use warpui::{AppContext, Element, Gradient, SingletonEntity};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::ui_components::button::ButtonTooltipPosition;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, Gradient, SingletonEntity};
|
||||
|
||||
/// Information about which action to take once the conversation item is accepted.
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::ai::{
|
||||
agent::conversation::AIConversationId, conversation_navigation::ConversationNavigationData,
|
||||
};
|
||||
use warpui::{EntityId, WindowId};
|
||||
use galaxyui::{EntityId, WindowId};
|
||||
|
||||
#[test]
|
||||
fn test_conversation_navigation_data_ordering() {
|
||||
|
||||
@@ -16,10 +16,10 @@ use crate::search::mixer::AddAsyncSourceOptions;
|
||||
use crate::search::QueryFilter;
|
||||
use crate::session_management::SessionSource;
|
||||
use crate::settings::AISettings;
|
||||
use warp_core::context_flag::ContextFlag;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warpui::keymap::BindingId;
|
||||
use warpui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui::keymap::BindingId;
|
||||
use galaxyui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
|
||||
use super::conversations;
|
||||
use super::warp_drive;
|
||||
|
||||
@@ -2,7 +2,7 @@ use std::sync::Arc;
|
||||
|
||||
use chrono::Utc;
|
||||
use settings::manager::SettingsManager;
|
||||
use warpui::{App, SingletonEntity};
|
||||
use galaxyui::{App, SingletonEntity};
|
||||
|
||||
use super::*;
|
||||
use crate::auth::AuthStateProvider;
|
||||
|
||||
@@ -15,8 +15,8 @@ use std::collections::HashSet;
|
||||
use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use warp_util::path::CleanPathResult;
|
||||
use warpui::{AppContext, Entity, SingletonEntity};
|
||||
use galaxy_util::path::CleanPathResult;
|
||||
use galaxyui::{AppContext, Entity, SingletonEntity};
|
||||
|
||||
const MAX_RESULTS: usize = 100;
|
||||
|
||||
|
||||
@@ -2,16 +2,16 @@ use fuzzy_match::FuzzyMatchResult;
|
||||
use ordered_float::OrderedFloat;
|
||||
use std::fmt::Debug;
|
||||
use std::path::PathBuf;
|
||||
use warp_util::path::LineAndColumnArg;
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::search::command_palette::mixer::CommandPaletteItemAction;
|
||||
use crate::search::command_palette::styles;
|
||||
use crate::search::item::{IconLocation, SearchItem};
|
||||
use crate::search::result_renderer::ItemHighlightState;
|
||||
use warpui::elements::{Align, ConstrainedBox, Container, Flex, Icon, ParentElement, Text};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::elements::{Align, ConstrainedBox, Container, Flex, Icon, ParentElement, Text};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
use crate::search::files::icon::icon_from_file_path;
|
||||
use crate::ui_components::render_file_search_row::{render_file_search_row, FileSearchRowOptions};
|
||||
|
||||
@@ -5,12 +5,12 @@ use crate::search::FilterChipRenderer as CommonFilterChipRenderer;
|
||||
use crate::search::QueryFilter;
|
||||
use crate::util::color::{ContrastingColor, MinimumAllowedContrast};
|
||||
use pathfinder_color::ColorU;
|
||||
use warpui::elements::{
|
||||
use galaxyui::elements::{
|
||||
ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Flex, Hoverable, Icon,
|
||||
MouseStateHandle, ParentElement, Radius, Text,
|
||||
};
|
||||
use warpui::platform::Cursor;
|
||||
use warpui::{Element, EventContext};
|
||||
use galaxyui::platform::Cursor;
|
||||
use galaxyui::{Element, EventContext};
|
||||
|
||||
/// Trait to render filter chips for the command palette.
|
||||
pub trait FilterChipRenderer: crate::search::FilterChipRenderer {
|
||||
@@ -147,7 +147,7 @@ impl FilterChipRenderer for QueryFilter {
|
||||
|
||||
mod styles {
|
||||
use crate::themes::theme::{Blend, Fill, WarpTheme};
|
||||
use warpui::elements::{Border, MouseState};
|
||||
use galaxyui::elements::{Border, MouseState};
|
||||
|
||||
/// Size of the border when the query filter is hovered.
|
||||
const HOVERED_BORDER_SIZE: f32 = 2.;
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::user_config::{WarpConfig, WarpConfigUpdateEvent};
|
||||
use fuzzy_match::match_indices_case_insensitive;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use warpui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
|
||||
/// Datasource that searches against `LaunchConfig`s.
|
||||
pub struct DataSource {
|
||||
@@ -17,7 +17,7 @@ pub struct DataSource {
|
||||
impl DataSource {
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
pub fn new(ctx: &mut ModelContext<Self>) -> Self {
|
||||
if warp_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
if galaxy_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
Self::new_full_text(ctx)
|
||||
} else {
|
||||
Self::new_fuzzy(ctx)
|
||||
@@ -126,8 +126,8 @@ mod full_text_searcher {
|
||||
use fuzzy_match::FuzzyMatchResult;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use warpui::r#async::executor::Background;
|
||||
use warpui::{AppContext, SingletonEntity};
|
||||
use galaxyui::r#async::executor::Background;
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
|
||||
// The name of the launch configs are duplicated to ensure that the searcher
|
||||
// hashes the name to uniquely identify the launch config.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{
|
||||
Align, Border, ConstrainedBox, Container, CornerRadius, Flex, Highlight, ParentElement,
|
||||
Radius, Shrinkable, Text,
|
||||
|
||||
@@ -8,7 +8,7 @@ use crate::search::result_renderer::ItemHighlightState;
|
||||
|
||||
use ordered_float::OrderedFloat;
|
||||
use std::sync::Arc;
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
/// SearchItem for a matching [`LaunchConfig`].
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -8,9 +8,9 @@ use crate::util::bindings::CommandBinding;
|
||||
use crate::workspace::PaneViewLocator;
|
||||
use std::sync::Arc;
|
||||
use strum_macros::IntoStaticStr;
|
||||
use warp_util::path::LineAndColumnArg;
|
||||
use warpui::keymap::BindingId;
|
||||
use warpui::{EntityId, WindowId};
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
use galaxyui::keymap::BindingId;
|
||||
use galaxyui::{EntityId, WindowId};
|
||||
|
||||
pub type CommandPaletteMixer = SearchMixer<CommandPaletteItemAction>;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ use crate::search::mixer::DataSourceRunErrorWrapper;
|
||||
use crate::search::SyncDataSource;
|
||||
use crate::session_management::{SessionNavigationData, SessionSource};
|
||||
use crate::workspace::PaneViewLocator;
|
||||
use warpui::{AppContext, Entity, ModelHandle};
|
||||
use galaxyui::{AppContext, Entity, ModelHandle};
|
||||
|
||||
/// Data source that produces possible running sessions a user could navigate to.
|
||||
pub struct DataSource {
|
||||
@@ -18,7 +18,7 @@ pub struct DataSource {
|
||||
impl DataSource {
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
pub fn new(active_session_handle: ModelHandle<SessionSource>) -> Self {
|
||||
if warp_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
if galaxy_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
Self::new_full_text(active_session_handle)
|
||||
} else {
|
||||
Self::new_fuzzy(active_session_handle)
|
||||
|
||||
@@ -17,14 +17,14 @@ use crate::terminal::model::grid::Dimensions;
|
||||
use crate::terminal::safe_mode_settings::get_secret_obfuscation_mode;
|
||||
use crate::terminal::SizeInfo;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use warpui::elements::{
|
||||
use galaxyui::elements::{
|
||||
Align, Border, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment, Flex, Highlight,
|
||||
ParentElement, Radius, Shrinkable, Wrap,
|
||||
};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use warpui::units::IntoPixels;
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::units::IntoPixels;
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
/// Renders a navigation session.
|
||||
pub fn render_navigation_session(
|
||||
|
||||
@@ -8,7 +8,7 @@ use crate::session_management::{CommandContext, SessionNavigationData, SessionSo
|
||||
use fuzzy_match::match_indices_case_insensitive;
|
||||
use itertools::Itertools;
|
||||
use std::ops::Range;
|
||||
use warpui::{AppContext, ModelHandle};
|
||||
use galaxyui::{AppContext, ModelHandle};
|
||||
|
||||
/// A session that was fuzzy matched against a search term.
|
||||
pub struct MatchedSession {
|
||||
@@ -254,7 +254,7 @@ mod full_text_searcher {
|
||||
use crate::session_management::{SessionNavigationData, SessionSource};
|
||||
use itertools::Itertools;
|
||||
use std::collections::HashMap;
|
||||
use warpui::{AppContext, ModelHandle};
|
||||
use galaxyui::{AppContext, ModelHandle};
|
||||
|
||||
define_search_schema!(
|
||||
schema_name: SESSION_SEARCH_SCHEMA,
|
||||
|
||||
@@ -9,8 +9,8 @@ use crate::search::result_renderer::ItemHighlightState;
|
||||
use crate::session_management::SessionNavigationData;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use ordered_float::OrderedFloat;
|
||||
use warpui::elements::Container;
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::elements::Container;
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
/// Search item to render a session within the command palette.
|
||||
pub struct SearchItem {
|
||||
|
||||
@@ -12,8 +12,8 @@ use crate::terminal::available_shells::AvailableShells;
|
||||
use fuzzy_match::{match_indices_case_insensitive, FuzzyMatchResult};
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warpui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
|
||||
/// Controls which kinds of new sessions the data source should surface.
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
@@ -314,7 +314,7 @@ mod full_text_searcher {
|
||||
use fuzzy_match::FuzzyMatchResult;
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use warpui::r#async::executor::Background;
|
||||
use galaxyui::r#async::executor::Background;
|
||||
|
||||
define_search_schema!(
|
||||
schema_name: NEW_SESSION_SEARCH_SCHEMA,
|
||||
|
||||
@@ -4,7 +4,7 @@ use crate::terminal::view::TerminalAction;
|
||||
use crate::WorkspaceAction;
|
||||
use std::borrow::Cow;
|
||||
use std::fmt;
|
||||
use warpui::Action;
|
||||
use galaxyui::Action;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct NewSessionOptionId(pub(crate) String);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use super::new_session_option::NewSessionOption;
|
||||
|
||||
use crate::search::command_palette::styles::SEARCH_ITEM_TEXT_PADDING;
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{Container, Flex, Highlight, ParentElement, Text},
|
||||
fonts::{Properties, Weight},
|
||||
Element,
|
||||
|
||||
@@ -10,7 +10,7 @@ use crate::search::result_renderer::ItemHighlightState;
|
||||
|
||||
use ordered_float::OrderedFloat;
|
||||
use std::sync::Arc;
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct SearchItem {
|
||||
|
||||
@@ -4,9 +4,9 @@ use crate::themes::theme::Blend;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use crate::util::color::{ContrastingColor, MinimumAllowedContrast};
|
||||
use pathfinder_color::ColorU;
|
||||
use warp_core::ui::theme::Fill;
|
||||
use warpui::elements::{Align, ConstrainedBox, Container, Empty};
|
||||
use warpui::Element;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{Align, ConstrainedBox, Container, Empty};
|
||||
use galaxyui::Element;
|
||||
|
||||
/// Helper function to render an icon for any search item within the command palette with consistent
|
||||
/// styling.
|
||||
@@ -25,7 +25,7 @@ pub fn render_search_item_icon(
|
||||
background_color.into_solid(),
|
||||
MinimumAllowedContrast::NonText,
|
||||
);
|
||||
let icon_element = icon.to_warpui_icon(Fill::Solid(icon_color)).finish();
|
||||
let icon_element = icon.to_galaxyui_icon(Fill::Solid(icon_color)).finish();
|
||||
render_search_item_icon_inner(appearance, icon_element)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use ai::workspace::WorkspaceMetadata;
|
||||
use fuzzy_match::{match_indices_case_insensitive, FuzzyMatchResult};
|
||||
use itertools::Itertools;
|
||||
use warpui::{AppContext, Entity, SingletonEntity};
|
||||
use galaxyui::{AppContext, Entity, SingletonEntity};
|
||||
|
||||
use super::RepoSearchItem;
|
||||
use crate::ai::persisted_workspace::PersistedWorkspace;
|
||||
|
||||
@@ -2,8 +2,8 @@ use ai::workspace::WorkspaceMetadata;
|
||||
use fuzzy_match::FuzzyMatchResult;
|
||||
use ordered_float::OrderedFloat;
|
||||
use std::path::Path;
|
||||
use warp_core::ui::theme::Fill;
|
||||
use warpui::{
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::{
|
||||
elements::{Align, ConstrainedBox, Flex, Highlight, ParentElement, Shrinkable, Text},
|
||||
fonts::{Properties, Weight},
|
||||
AppContext, Element, SingletonEntity,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::search::command_palette::mixer::ItemSummary;
|
||||
use bounded_vec_deque::BoundedVecDeque;
|
||||
use warpui::{Entity, SingletonEntity};
|
||||
use galaxyui::{Entity, SingletonEntity};
|
||||
|
||||
/// Maximum number of elements to store. Per the [`BoundedVecDeque`] docs, it is recommended that
|
||||
/// this is one less than the power of two to avoid unnecessary allocations.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use super::*;
|
||||
use itertools::Itertools;
|
||||
use warpui::keymap::BindingId;
|
||||
use galaxyui::keymap::BindingId;
|
||||
|
||||
#[test]
|
||||
fn test_enqueue_new_item() {
|
||||
|
||||
@@ -2,7 +2,7 @@ use crate::search::item::SearchItem;
|
||||
use crate::search::result_renderer::ItemHighlightState;
|
||||
use crate::{appearance::Appearance, search::command_palette::mixer::CommandPaletteItemAction};
|
||||
use ordered_float::OrderedFloat;
|
||||
use warpui::{
|
||||
use galaxyui::{
|
||||
elements::{Empty, Text},
|
||||
AppContext, Element, SingletonEntity,
|
||||
};
|
||||
|
||||
@@ -16,16 +16,16 @@ use crate::themes::theme::WarpTheme;
|
||||
use crate::view_components::DismissibleToast;
|
||||
use crate::ToastStack;
|
||||
use lazy_static::lazy_static;
|
||||
use warp_core::send_telemetry_from_app_ctx;
|
||||
use warp_util::path::LineAndColumnArg;
|
||||
use galaxy_core::send_telemetry_from_app_ctx;
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
|
||||
use crate::search::action::search_item::MatchedBinding;
|
||||
use itertools::Itertools;
|
||||
use warpui::elements::DispatchEventResult;
|
||||
use warpui::elements::EventHandler;
|
||||
use warpui::event::KeyState;
|
||||
use warpui::platform::keyboard::KeyCode;
|
||||
use warpui::FocusContext;
|
||||
use galaxyui::elements::DispatchEventResult;
|
||||
use galaxyui::elements::EventHandler;
|
||||
use galaxyui::event::KeyState;
|
||||
use galaxyui::platform::keyboard::KeyCode;
|
||||
use galaxyui::FocusContext;
|
||||
|
||||
use crate::search::command_palette::zero_state::{self, Event as ZeroStateEvent, ZeroState};
|
||||
use crate::search::data_source::QueryResult;
|
||||
@@ -41,14 +41,14 @@ use crate::search::command_palette::data_sources::DataSourceStore;
|
||||
use crate::server::ids::SyncId;
|
||||
use crate::session_management::SessionSource;
|
||||
use crate::workspace::{active_terminal_in_window, ForkedConversationDestination, WorkspaceAction};
|
||||
use warpui::elements::{
|
||||
use galaxyui::elements::{
|
||||
Align, Border, ChildView, Clipped, ClippedScrollStateHandle, ClippedScrollable, ConstrainedBox,
|
||||
Container, CornerRadius, Dismiss, Empty, Fill, Flex, ParentElement, Radius, SavePosition,
|
||||
Shrinkable,
|
||||
};
|
||||
use warpui::keymap::BindingId;
|
||||
use warpui::units::{IntoPixels, Pixels};
|
||||
use warpui::{
|
||||
use galaxyui::keymap::BindingId;
|
||||
use galaxyui::units::{IntoPixels, Pixels};
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, EntityId, ModelHandle, SingletonEntity, TypedActionView,
|
||||
ViewContext, ViewHandle, WindowId,
|
||||
};
|
||||
@@ -170,7 +170,7 @@ impl TypedActionView for View {
|
||||
}
|
||||
}
|
||||
|
||||
impl warpui::View for View {
|
||||
impl galaxyui::View for View {
|
||||
fn ui_name() -> &'static str {
|
||||
"CommandPaletteView"
|
||||
}
|
||||
@@ -1000,11 +1000,11 @@ impl View {
|
||||
self.close(ctx, Some(result_action.result_type()));
|
||||
}
|
||||
|
||||
/// Dispatches `action` to the correct window and [`warpui::View`] by using the current state of
|
||||
/// Dispatches `action` to the correct window and [`galaxyui::View`] by using the current state of
|
||||
/// the [`BindingSource`] model.
|
||||
fn dispatch_typed_action_on_view(
|
||||
&self,
|
||||
action: &dyn warpui::Action,
|
||||
action: &dyn galaxyui::Action,
|
||||
ctx: &mut ViewContext<Self>,
|
||||
) {
|
||||
send_telemetry_from_ctx!(
|
||||
|
||||
@@ -19,7 +19,7 @@ use crate::server::ids::{ObjectUid, SyncId};
|
||||
use crate::settings::AISettings;
|
||||
use crate::workflows::CloudWorkflow;
|
||||
use std::collections::HashMap;
|
||||
use warpui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
|
||||
/// Datasource that searches against all Warp Drive objects
|
||||
pub struct DataSource {
|
||||
@@ -29,7 +29,7 @@ pub struct DataSource {
|
||||
impl DataSource {
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
pub fn new(ctx: &mut ModelContext<Self>) -> Self {
|
||||
if warp_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
if galaxy_core::features::FeatureFlag::UseTantivySearch.is_enabled() {
|
||||
Self::new_full_text(ctx)
|
||||
} else {
|
||||
Self::new_fuzzy(ctx)
|
||||
@@ -564,8 +564,8 @@ mod full_text_searcher {
|
||||
use crate::workflows::CloudWorkflow;
|
||||
use fuzzy_match::FuzzyMatchResult;
|
||||
use itertools::Itertools;
|
||||
use warpui::r#async::executor::Background;
|
||||
use warpui::{AppContext, SingletonEntity};
|
||||
use galaxyui::r#async::executor::Background;
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
|
||||
/// Memory budget for the search index of warp drive.
|
||||
/// Warp could potentially have a lot of objects, so we increase it from the default of 50MB to 100MB
|
||||
|
||||
@@ -12,9 +12,9 @@ use crate::search::result_renderer::ItemHighlightState;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use itertools::Itertools;
|
||||
use ordered_float::OrderedFloat;
|
||||
use warpui::elements::{Container, Flex, Highlight, ParentElement, Text};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::elements::{Container, Flex, Highlight, ParentElement, Text};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
pub const ENV_VAR_NAME_SEPARATOR: &str = ", ";
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ use crate::search::notebooks::fuzzy_match::{
|
||||
use crate::search::result_renderer::ItemHighlightState;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use ordered_float::OrderedFloat;
|
||||
use warpui::elements::{Container, Flex, Highlight, ParentElement, Text};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::elements::{Container, Flex, Highlight, ParentElement, Text};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
/// Search item result for a cloud notebook.
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -11,9 +11,9 @@ use crate::search::workflows::fuzzy_match::FuzzyMatchWorkflowResult;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use crate::workflows::CloudWorkflow;
|
||||
use ordered_float::OrderedFloat;
|
||||
use warpui::elements::{Clipped, Container, Flex, Highlight, ParentElement, Shrinkable, Text};
|
||||
use warpui::fonts::{Properties, Weight};
|
||||
use warpui::{AppContext, Element, SingletonEntity};
|
||||
use galaxyui::elements::{Clipped, Container, Flex, Highlight, ParentElement, Shrinkable, Text};
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::{AppContext, Element, SingletonEntity};
|
||||
|
||||
/// Search item result for a cloud workflow.
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
mod items;
|
||||
pub use items::Items;
|
||||
use warp_core::context_flag::ContextFlag;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::search::command_palette::FilterChipRenderer;
|
||||
@@ -11,8 +11,8 @@ use crate::search::QueryFilter;
|
||||
use crate::settings::AISettings;
|
||||
use crate::workspace::Workspace;
|
||||
use std::collections::HashMap;
|
||||
use warpui::elements::{Container, Flex, MouseStateHandle, ParentElement, Shrinkable, Wrap};
|
||||
use warpui::{
|
||||
use galaxyui::elements::{Container, Flex, MouseStateHandle, ParentElement, Shrinkable, Wrap};
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, ModelHandle, SingletonEntity, TypedActionView, View, ViewContext,
|
||||
WindowId,
|
||||
};
|
||||
|
||||
@@ -3,10 +3,10 @@ use crate::search::command_palette::mixer::CommandPaletteItemAction;
|
||||
use crate::search::result_renderer::QueryResultRenderer;
|
||||
use crate::search::search_bar::SelectionUpdate;
|
||||
|
||||
use warpui::elements::{Container, Flex, ParentElement};
|
||||
use warpui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use warpui::ui_components::text::WrappableText;
|
||||
use warpui::{AppContext, Element, Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::elements::{Container, Flex, ParentElement};
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::ui_components::text::WrappableText;
|
||||
use galaxyui::{AppContext, Element, Entity, ModelContext, SingletonEntity};
|
||||
|
||||
/// List of items shown within the zero state. "Recent" items are shown first followed by
|
||||
/// "Suggested" items.
|
||||
|
||||
Reference in New Issue
Block a user