Wrapping up bedrock implementation
This commit is contained in:
@@ -5,12 +5,6 @@ use crate::view_components::{Dropdown, DropdownEvent, DropdownItem, ToastFlavor}
|
||||
use crate::workspaces::user_workspaces::{UserWorkspaces, UserWorkspacesEvent};
|
||||
use crate::workspaces::workspace::CustomerType;
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use itertools::Itertools;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use settings::Setting as _;
|
||||
use thousands::Separable;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxy_graphql::billing::{AddonCreditsOption, StripeSubscriptionPlan};
|
||||
@@ -27,6 +21,12 @@ use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use settings::Setting as _;
|
||||
use thousands::Separable;
|
||||
|
||||
const BUTTON_DIAMETER: f32 = 20.;
|
||||
const DROPDOWN_WIDTH: f32 = 160.;
|
||||
|
||||
@@ -5,10 +5,6 @@ use crate::ui_components::icons::Icon;
|
||||
use crate::workspaces::user_workspaces::UserWorkspaces;
|
||||
use crate::workspaces::workspace::CustomerType;
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use thousands::Separable;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxy_graphql::billing::StripeSubscriptionPlan;
|
||||
@@ -24,6 +20,10 @@ use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext};
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use thousands::Separable;
|
||||
|
||||
use crate::send_telemetry_from_ctx;
|
||||
use crate::TelemetryEvent;
|
||||
|
||||
@@ -2,8 +2,6 @@ use crate::ui_components::blended_colors;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use crate::view_components::action_button::{ActionButton, ActionButtonTheme};
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{
|
||||
@@ -19,6 +17,8 @@ use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
/// White button theme for the Codex modal CTA.
|
||||
struct WhiteButtonTheme;
|
||||
|
||||
@@ -10,7 +10,6 @@ use crate::ui_components::menu_button::{icon_button_with_context_menu, MenuDirec
|
||||
use crate::util::time_format::format_approx_duration_from_now_utc;
|
||||
use crate::util::truncation::truncate_from_end;
|
||||
use crate::workspace::view::conversation_list::view::ConversationListViewAction;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::color::coloru_with_opacity;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_util::path::user_friendly_path;
|
||||
@@ -26,6 +25,7 @@ use galaxyui::platform::Cursor;
|
||||
use galaxyui::text_layout::TextStyle;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, SingletonEntity, ViewHandle};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
/// Maximum length for tooltip text before truncation
|
||||
const MAX_TOOLTIP_LENGTH: usize = 80;
|
||||
|
||||
@@ -6,10 +6,6 @@ use crate::ui_components::icons::Icon;
|
||||
use crate::workspaces::user_workspaces::UserWorkspaces;
|
||||
use crate::TelemetryEvent;
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use thousands::Separable;
|
||||
use galaxy_core::send_telemetry_from_ctx;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::{Fill, WarpTheme};
|
||||
@@ -26,6 +22,10 @@ use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::{AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext};
|
||||
use markdown_parser::{FormattedText, FormattedTextFragment, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use thousands::Separable;
|
||||
|
||||
const BUTTON_DIAMETER: f32 = 20.;
|
||||
const MODAL_HEIGHT: f32 = 440.;
|
||||
|
||||
@@ -2,14 +2,14 @@ use crate::workspace::view::global_search::view::GlobalSearchEvent;
|
||||
use crate::workspace::view::global_search::SearchConfig;
|
||||
use anyhow::Result;
|
||||
use futures::StreamExt as _;
|
||||
use galaxy_ripgrep::search::{Match as RipgrepMatch, Submatch};
|
||||
use galaxyui::r#async::SpawnedFutureHandle;
|
||||
use galaxyui::{Entity, ModelContext, ModelSpawner};
|
||||
use instant::Instant;
|
||||
use num_traits::SaturatingSub;
|
||||
use regex::escape;
|
||||
use std::path::PathBuf;
|
||||
use string_offset::ByteOffset;
|
||||
use galaxy_ripgrep::search::{Match as RipgrepMatch, Submatch};
|
||||
use galaxyui::r#async::SpawnedFutureHandle;
|
||||
use galaxyui::{Entity, ModelContext, ModelSpawner};
|
||||
|
||||
const START_BATCH_AFTER_COUNT: usize = 50;
|
||||
const MAX_BATCH_SIZE: usize = 512;
|
||||
|
||||
@@ -8,10 +8,10 @@ use std::time::Duration;
|
||||
use crate::coding_panel_enablement_state::CodingPanelEnablementState;
|
||||
|
||||
use async_channel::Sender;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::{ByteOffset, CharCounter};
|
||||
use galaxy_editor::editor::NavigationKey;
|
||||
use galaxy_ripgrep::search::{Match as RipgrepMatch, Submatch};
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use string_offset::{ByteOffset, CharCounter};
|
||||
|
||||
use crate::code::icon_from_file_path;
|
||||
use crate::debounce::debounce;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use super::Slide;
|
||||
use crate::server::telemetry::TelemetryEvent;
|
||||
use std::rc::Rc;
|
||||
use galaxyui::ViewContext;
|
||||
use std::rc::Rc;
|
||||
|
||||
/// A callback function for custom CTA button actions.
|
||||
type CustomCallback<S> = Rc<dyn Fn(&mut ViewContext<super::LaunchModal<S>>)>;
|
||||
|
||||
@@ -10,9 +10,6 @@ use crate::ui_components::blended_colors;
|
||||
use crate::ui_components::icons::Icon;
|
||||
use crate::view_components::action_button::{ActionButton, PrimaryTheme, SecondaryTheme};
|
||||
use crate::workspace::view::launch_modal::cta_button::{CTAButton, CTAButtonAction};
|
||||
use markdown_parser::{parse_markdown, FormattedText, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use std::collections::HashMap;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::assets::asset_cache::AssetSource;
|
||||
@@ -31,6 +28,9 @@ use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use markdown_parser::{parse_markdown, FormattedText, FormattedTextLine};
|
||||
use pathfinder_color::ColorU;
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub fn init<S: Slide>(app: &mut AppContext) {
|
||||
use galaxyui::keymap::macros::*;
|
||||
|
||||
@@ -7,10 +7,10 @@ use crate::workspace::view::OnboardingTutorial;
|
||||
use crate::workspaces::user_workspaces::UserWorkspaces;
|
||||
use crate::workspaces::workspace::{AdminEnablementSetting, UgcCollectionEnablementSetting};
|
||||
use asset_macro::bundled_or_fetched_asset;
|
||||
use markdown_parser::{FormattedTextFragment, FormattedTextLine};
|
||||
use galaxy_core::send_telemetry_from_ctx;
|
||||
use galaxyui::assets::asset_cache::AssetSource;
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
use markdown_parser::{FormattedTextFragment, FormattedTextLine};
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum OzLaunchSlide {
|
||||
|
||||
@@ -6,11 +6,11 @@ use crate::terminal::view::{
|
||||
};
|
||||
use crate::workspace::Workspace;
|
||||
use crate::FeatureFlag;
|
||||
use galaxyui::{SingletonEntity as _, ViewContext};
|
||||
use onboarding::{ProjectOnboardingSettings, SelectedSettings};
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use galaxyui::{SingletonEntity as _, ViewContext};
|
||||
|
||||
/// Configuration for starting the agent onboarding tutorial.
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
use markdown_parser::{
|
||||
FormattedText, FormattedTextFragment, FormattedTextLine, FormattedTextStyles, Hyperlink,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::theme::{phenomenon::PhenomenonStyle, Fill};
|
||||
use galaxyui::assets::asset_cache::AssetSource;
|
||||
use galaxyui::elements::{
|
||||
@@ -16,6 +11,11 @@ use galaxyui::keymap::FixedBinding;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, SingletonEntity, TypedActionView, View, ViewContext, ViewHandle,
|
||||
};
|
||||
use markdown_parser::{
|
||||
FormattedText, FormattedTextFragment, FormattedTextLine, FormattedTextStyles, Hyperlink,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::ui_components::icons::Icon;
|
||||
|
||||
@@ -31,11 +31,6 @@ use crate::{
|
||||
};
|
||||
use crate::{code_review::diff_state::DiffStateModel, terminal::view::TerminalView};
|
||||
use dunce::canonicalize;
|
||||
use itertools::Itertools;
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::ui::Icon;
|
||||
use galaxy_util::path::LineAndColumnArg;
|
||||
@@ -59,6 +54,11 @@ use galaxyui::{
|
||||
platform::Cursor,
|
||||
ui_components::components::UiComponent,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
/// Describes which agent destination is available for sending review comments.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
||||
@@ -6,9 +6,9 @@ use crate::terminal::available_shells::AvailableShell;
|
||||
use crate::terminal::available_shells::AvailableShells;
|
||||
use crate::terminal::session_settings::{NewSessionSource, SessionSettings};
|
||||
use crate::terminal::ShellLaunchData;
|
||||
use std::path::PathBuf;
|
||||
use galaxyui::SingletonEntity;
|
||||
use galaxyui::{AppContext, ViewContext, WindowId};
|
||||
use std::path::PathBuf;
|
||||
|
||||
impl Workspace {
|
||||
/// Helper function to compute the initial directory for a new session
|
||||
|
||||
@@ -51,11 +51,6 @@ use crate::workspace::{
|
||||
};
|
||||
use languages::language_by_filename;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use settings::Setting as _;
|
||||
use std::path::{Path, PathBuf};
|
||||
use galaxy_core::context_flag::ContextFlag;
|
||||
use galaxy_core::telemetry::TelemetryEvent as _;
|
||||
use galaxy_core::ui::color::blend::Blend;
|
||||
@@ -80,6 +75,11 @@ use galaxyui::text_layout::ClipConfig;
|
||||
use galaxyui::ui_components::components::{UiComponent, UiComponentStyles};
|
||||
use galaxyui::ui_components::text_input::TextInput;
|
||||
use galaxyui::{AppContext, EntityId, SingletonEntity, ViewHandle, WindowId};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use settings::Setting as _;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
const PANEL_WIDTH: f32 = 248.;
|
||||
const MIN_PANEL_WIDTH: f32 = 200.;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use serde_json::{json, Value};
|
||||
use strum_macros::{EnumDiscriminants, EnumIter};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::telemetry::{EnablementState, TelemetryEvent, TelemetryEventDesc};
|
||||
use serde_json::{json, Value};
|
||||
use strum_macros::{EnumDiscriminants, EnumIter};
|
||||
|
||||
use crate::workspace::tab_settings::{
|
||||
VerticalTabsCompactSubtitle, VerticalTabsDisplayGranularity, VerticalTabsPrimaryInfo,
|
||||
|
||||
@@ -4,11 +4,11 @@ use crate::pane_group::{PaneId, TerminalPaneId};
|
||||
use crate::safe_triangle::SafeTriangle;
|
||||
use crate::terminal::CLIAgent;
|
||||
use crate::workspace::tab_settings::VerticalTabsDisplayGranularity;
|
||||
use galaxyui::elements::PositionedElementOffsetBounds;
|
||||
use galaxyui::EntityId;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::Vector2F;
|
||||
use std::path::PathBuf;
|
||||
use galaxyui::elements::PositionedElementOffsetBounds;
|
||||
use galaxyui::EntityId;
|
||||
|
||||
use super::{
|
||||
branch_label_display, coalesce_summary_branch_entries, code_detail_kind_label,
|
||||
|
||||
Reference in New Issue
Block a user