Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -4,7 +4,6 @@ use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use futures::{pin_mut, FutureExt as _};
|
||||
use itertools::Itertools;
|
||||
use galaxy_completer::completer::CommandExitStatus;
|
||||
use galaxy_core::r#async::debounce;
|
||||
use galaxy_core::user_preferences::GetUserPreferences;
|
||||
@@ -13,6 +12,7 @@ use galaxyui::{
|
||||
AppContext, Entity, ModelAsRef, ModelContext, ModelHandle, SingletonEntity, ViewHandle,
|
||||
WeakModelHandle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
|
||||
use super::context_chip::{
|
||||
ChipAvailability, ChipFingerprintInput, ChipRuntimeCapabilities, ContextChip, Environment,
|
||||
|
||||
@@ -3,6 +3,7 @@ use std::collections::{HashMap, VecDeque};
|
||||
use std::sync::Arc;
|
||||
|
||||
use async_trait::async_trait;
|
||||
use galaxy_completer::completer::{CommandExitStatus, CommandOutput};
|
||||
use galaxy_core::command::ExitCode;
|
||||
use galaxyui::{App, SingletonEntity};
|
||||
use galaxyui_extras::user_preferences;
|
||||
@@ -11,7 +12,6 @@ use parking_lot::Mutex;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use repo_metadata::DirectoryWatcher;
|
||||
use settings::Setting as _;
|
||||
use galaxy_completer::completer::{CommandExitStatus, CommandOutput};
|
||||
|
||||
use super::{ChipUpdateStatus, CurrentPrompt, PromptContext};
|
||||
use crate::auth::auth_manager::AuthManager;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use std::cmp::Ordering;
|
||||
|
||||
use typed_path::TypedPathBuf;
|
||||
use galaxy_completer::completer::{EngineDirEntry, EngineFileType};
|
||||
use galaxy_util::file_type::is_binary_file;
|
||||
use galaxyui::r#async::SpawnedFutureHandle;
|
||||
use galaxyui::{AppContext, Entity, ModelContext};
|
||||
use typed_path::TypedPathBuf;
|
||||
|
||||
use super::display_menu::GenericMenuItem;
|
||||
use crate::completer::SessionContext;
|
||||
|
||||
@@ -2,11 +2,11 @@ use std::borrow::Cow;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use warpui::elements::{
|
||||
Border, ChildAnchor, ChildView, ConstrainedBox, Container, CornerRadius, CrossAxisAlignment,
|
||||
Empty, Flex, Hoverable, MouseStateHandle, OffsetPositioning, ParentAnchor, ParentElement,
|
||||
|
||||
@@ -5,8 +5,6 @@ use std::rc::Rc;
|
||||
use std::sync::Arc;
|
||||
|
||||
use fuzzy_match::{match_indices_case_insensitive, FuzzyMatchResult};
|
||||
use instant::Instant;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::builder::MIN_FONT_SIZE;
|
||||
use galaxy_core::ui::theme::color::internal_colors;
|
||||
@@ -31,6 +29,8 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, FocusContext, SingletonEntity as _, TypedActionView, View,
|
||||
ViewContext, ViewHandle, WindowId,
|
||||
};
|
||||
use instant::Instant;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use crate::ai::cloud_environments::CloudAmbientAgentEnvironment;
|
||||
use crate::cloud_object::model::generic_string_model::StringModel;
|
||||
|
||||
@@ -19,11 +19,11 @@ use std::collections::HashMap;
|
||||
use std::time::Duration;
|
||||
|
||||
use context_chip::PromptGenerator;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use smol_str::SmolStr;
|
||||
use galaxyui::color::ColorU;
|
||||
use galaxyui::elements::Text;
|
||||
use galaxyui::fonts::{Properties, Weight};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use smol_str::SmolStr;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub use self::context_chip::{
|
||||
@@ -629,11 +629,8 @@ pub fn chips_to_string(chips: impl Iterator<Item = ChipResult>) -> String {
|
||||
match (chip_kind, next_chip_kind) {
|
||||
// Omit the space between adjacent Svn chips.
|
||||
(ContextChipKind::SvnBranch, Some(ContextChipKind::SvnDirtyItems)) => (),
|
||||
(_, Some(_)) => {
|
||||
// Add padding after non-empty chips.
|
||||
if !chip_display_value.is_empty() {
|
||||
prompt.push(' ');
|
||||
}
|
||||
(_, Some(_)) if !chip_display_value.is_empty() => {
|
||||
prompt.push(' ');
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
use pathfinder_color::ColorU;
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{
|
||||
@@ -12,6 +14,7 @@ use galaxyui::{
|
||||
AppContext, Element, Entity, ModelHandle, SingletonEntity, TypedActionView, View, ViewContext,
|
||||
ViewHandle,
|
||||
};
|
||||
use pathfinder_color::ColorU;
|
||||
|
||||
use crate::menu::{self, Event as MenuEvent, Menu, MenuItemFields};
|
||||
use crate::terminal::model_events::{ModelEvent, ModelEventDispatcher};
|
||||
@@ -514,7 +517,6 @@ fn detect_nvm_installed() -> bool {
|
||||
|
||||
// Enumerate installed Node versions managed by nvm (best-effort, cross-OS)
|
||||
fn list_nvm_versions() -> Vec<String> {
|
||||
|
||||
let mut out: Vec<String> = Vec::new();
|
||||
|
||||
#[cfg(windows)]
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use itertools::Itertools;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::Setting as _;
|
||||
use galaxyui::{
|
||||
Entity, GetSingletonModelHandle, ModelContext, ModelHandle, SingletonEntity, UpdateModel,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use settings::Setting as _;
|
||||
|
||||
pub use super::ContextChipKind;
|
||||
use crate::settings::{
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
//! The renderer for a single context chip.
|
||||
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxy_core::ui::theme::Fill;
|
||||
use galaxyui::elements::{
|
||||
ConstrainedBox, Container, CrossAxisAlignment, DraggableState, Flex, Hoverable,
|
||||
@@ -11,6 +9,8 @@ use galaxyui::fonts::{Properties, Weight};
|
||||
use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::components::UiComponent;
|
||||
use galaxyui::{Action, Element};
|
||||
use pathfinder_color::ColorU;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use super::context_chip::ContextChip;
|
||||
use super::display_chip::{chip_container, udi_font_size};
|
||||
|
||||
Reference in New Issue
Block a user