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:
@@ -7,13 +7,13 @@ use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use std::sync::Arc;
|
||||
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use ignore::gitignore::Gitignore;
|
||||
#[cfg(feature = "local_fs")]
|
||||
use notify_debouncer_full::notify::WatchFilter;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::standing_queries::{StandingQueryDefinitions, StandingQueryResults};
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
|
||||
/// Maximum file size allowed for treesitter parsing (3MB).
|
||||
const MAX_FILE_SIZE: usize = 3 * 1000 * 1000;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
|
||||
use ignore::gitignore::Gitignore;
|
||||
|
||||
@@ -791,7 +792,6 @@ fn lazy_loaded_ignored_directory_marks_loaded_children_as_ignored() {
|
||||
|
||||
#[test]
|
||||
fn should_watch_directory_in_git_path_prunes_non_allowlisted_subtrees() {
|
||||
|
||||
use super::should_watch_directory_in_git_path;
|
||||
for path in [
|
||||
"/repo/.git",
|
||||
@@ -845,7 +845,6 @@ fn should_watch_directory_in_git_path_prunes_non_allowlisted_subtrees() {
|
||||
/// emit predicate only suppresses non-allowlisted `.git/` internals).
|
||||
#[test]
|
||||
fn gitignore_affects_descend_predicate_but_not_emitted_events() {
|
||||
|
||||
use super::{gitignores_for_directory, should_ignore_git_path, should_watch_repo_directory};
|
||||
|
||||
let temp_dir = tempfile::tempdir().unwrap();
|
||||
@@ -879,7 +878,6 @@ fn gitignore_affects_descend_predicate_but_not_emitted_events() {
|
||||
|
||||
#[test]
|
||||
fn test_is_shared_git_ref() {
|
||||
|
||||
use super::is_shared_git_ref;
|
||||
|
||||
// Shared refs — broadcast to all repos
|
||||
|
||||
@@ -2,9 +2,9 @@ mod file_tree_state;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use ignore::gitignore::Gitignore;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::ModelHandle;
|
||||
use ignore::gitignore::Gitignore;
|
||||
|
||||
use crate::file_tree_store::file_tree_state::FileTreeMapStore;
|
||||
use crate::{BuildTreeError, Entry, FileId, FileMetadata, Repository};
|
||||
|
||||
@@ -2,8 +2,8 @@ use std::collections::{HashMap, HashSet};
|
||||
use std::iter;
|
||||
use std::sync::Arc;
|
||||
|
||||
use ignore::gitignore::Gitignore;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use ignore::gitignore::Gitignore;
|
||||
|
||||
use crate::file_tree_store::{FileTreeDirectoryEntryState, FileTreeEntry, FileTreeEntryState};
|
||||
use crate::{BuildTreeError, DirectoryEntry, Entry};
|
||||
|
||||
@@ -5,7 +5,7 @@ use galaxy_util::standardized_path::StandardizedPath;
|
||||
use crate::entry::{DirectoryEntry, Entry, FileId, FileMetadata};
|
||||
use crate::file_tree_store::{FileTreeEntry, FileTreeEntryState};
|
||||
use crate::file_tree_update::*;
|
||||
use crate::local_model::LocalRepoMetadataModel;
|
||||
use crate::local_model::{FileTreeMutation, LocalRepoMetadataModel};
|
||||
|
||||
// ── Helpers ──────────────────────────────────────────────────────────
|
||||
|
||||
@@ -148,7 +148,6 @@ fn apply_mutations_generates_update_for_remove() {
|
||||
|
||||
#[test]
|
||||
fn apply_mutations_generates_update_for_add_file() {
|
||||
|
||||
let initial = dir("/repo", vec![dir("/repo/src", vec![])]);
|
||||
let mut tree = build_tree_from_entry(initial);
|
||||
let mutations = vec![FileTreeMutation::AddFile {
|
||||
@@ -178,7 +177,6 @@ fn apply_mutations_generates_update_for_add_file() {
|
||||
|
||||
#[test]
|
||||
fn apply_mutations_generates_update_for_add_directory_subtree() {
|
||||
|
||||
let subtree = dir(
|
||||
"/repo/src/components",
|
||||
vec![
|
||||
@@ -212,7 +210,6 @@ fn apply_mutations_generates_update_for_add_directory_subtree() {
|
||||
|
||||
#[test]
|
||||
fn apply_mutations_generates_update_for_add_empty_directory() {
|
||||
|
||||
let initial = dir("/repo", vec![dir("/repo/src", vec![])]);
|
||||
let mut tree = build_tree_from_entry(initial);
|
||||
let mutations = vec![FileTreeMutation::AddUnloadedDirectory {
|
||||
@@ -236,7 +233,6 @@ fn apply_mutations_generates_update_for_add_empty_directory() {
|
||||
|
||||
#[test]
|
||||
fn apply_mutations_generates_update_for_mixed_mutations() {
|
||||
|
||||
let initial = dir("/repo", vec![file("/repo/old.rs")]);
|
||||
let mut tree = build_tree_from_entry(initial);
|
||||
let mutations = vec![
|
||||
@@ -262,7 +258,6 @@ fn apply_mutations_generates_update_for_mixed_mutations() {
|
||||
|
||||
#[test]
|
||||
fn apply_mutations_returns_none_when_emit_updates_is_false() {
|
||||
|
||||
let initial = dir("/repo", vec![file("/repo/old.rs")]);
|
||||
let mut tree = build_tree_from_entry(initial);
|
||||
let mutations = vec![FileTreeMutation::Remove(mutation_path("/repo/old.rs"))];
|
||||
@@ -477,7 +472,6 @@ fn apply_incomplete_update_missing_parent_from_undelivered_page() {
|
||||
|
||||
#[test]
|
||||
fn round_trip_apply_mutations_then_apply_update_produces_equivalent_tree() {
|
||||
|
||||
let server_tree_entry = dir(
|
||||
"/repo",
|
||||
vec![dir("/repo/src", vec![file("/repo/src/lib.rs")])],
|
||||
@@ -546,7 +540,6 @@ fn round_trip_apply_mutations_then_apply_update_produces_equivalent_tree() {
|
||||
|
||||
#[test]
|
||||
fn lazy_load_filters_mutations_for_unloaded_parents() {
|
||||
|
||||
let initial = Entry::Directory(DirectoryEntry {
|
||||
path: std_path("/repo"),
|
||||
children: vec![
|
||||
|
||||
@@ -6,9 +6,9 @@ use std::borrow::Borrow;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use thiserror::Error;
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
use galaxyui_core::SingletonEntity;
|
||||
use thiserror::Error;
|
||||
|
||||
/// Errors that can occur when working with repository metadata.
|
||||
#[derive(Error, Debug)]
|
||||
|
||||
@@ -61,8 +61,8 @@ cfg_if::cfg_if! {
|
||||
}
|
||||
}
|
||||
|
||||
use ignore::gitignore::Gitignore;
|
||||
use galaxyui_core::ModelContext;
|
||||
use ignore::gitignore::Gitignore;
|
||||
|
||||
use crate::file_tree_store::{
|
||||
FileTreeDirectoryEntryState, FileTreeEntry, FileTreeEntryState, FileTreeFileMetadata,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -9,11 +9,11 @@ use std::time::Duration;
|
||||
|
||||
use futures::channel::oneshot;
|
||||
use futures::executor::block_on;
|
||||
use ignore::gitignore::Gitignore;
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::r#async::FutureExt as _;
|
||||
use galaxyui_core::App;
|
||||
use ignore::gitignore::Gitignore;
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use watcher::BulkFilesystemWatcherEvent;
|
||||
|
||||
@@ -2006,7 +2006,6 @@ fn test_canonicalized_path_functionality() {
|
||||
|
||||
#[test]
|
||||
fn test_repository_operations_with_standardized_paths() {
|
||||
|
||||
VirtualFS::test("repo_canonicalized_test", |dirs, mut vfs| {
|
||||
let test_root = dirs.tests();
|
||||
|
||||
@@ -2118,7 +2117,6 @@ fn test_repository_operations_with_standardized_paths() {
|
||||
|
||||
#[test]
|
||||
fn test_standardized_path_edge_cases() {
|
||||
|
||||
VirtualFS::test("canonicalized_edge_cases", |dirs, mut vfs| {
|
||||
let test_root = dirs.tests();
|
||||
|
||||
|
||||
@@ -3,8 +3,6 @@ use std::future::Future;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use futures::future::{ready, Either};
|
||||
#[cfg(test)]
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use galaxy_util::host_id::HostId;
|
||||
use galaxy_util::local_or_remote_path::LocalOrRemotePath;
|
||||
use galaxy_util::remote_path::{RemoteNavigationResult, RemotePath};
|
||||
@@ -12,6 +10,8 @@ use galaxy_util::standardized_path::StandardizedPath;
|
||||
#[cfg(test)]
|
||||
use galaxyui_core::r#async::FutureId;
|
||||
use galaxyui_core::{AppContext, Entity, ModelContext, ModelHandle, SingletonEntity};
|
||||
#[cfg(test)]
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
|
||||
use crate::{DirectoryWatcher, Repository};
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use std::fs;
|
||||
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use galaxy_util::local_or_remote_path::LocalOrRemotePath;
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::App;
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
|
||||
use crate::repositories::{stub_git_repository, DetectedRepositories, RepoDetectionSource};
|
||||
use crate::watcher::DirectoryWatcher;
|
||||
|
||||
@@ -14,8 +14,8 @@ use galaxyui_core::SingletonEntity;
|
||||
use galaxyui_core::{Entity, ModelContext, ModelHandle};
|
||||
#[cfg(feature = "local_fs")]
|
||||
use ignore::gitignore::Gitignore;
|
||||
#[cfg(feature = "local_fs")]
|
||||
|
||||
#[cfg(feature = "local_fs")]
|
||||
#[cfg(feature = "local_fs")]
|
||||
use crate::watcher::DirectoryWatcher;
|
||||
use crate::watcher::TaskQueue;
|
||||
|
||||
@@ -5,10 +5,10 @@ use std::time::Duration;
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use futures::{FutureExt as _, StreamExt as _};
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::r#async::Timer;
|
||||
use galaxyui_core::{App, ModelContext};
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
|
||||
use super::{merge_repository_updates, Repository, RepositorySubscriber, TrackedRemoteRef};
|
||||
use crate::repositories::stub_git_repository;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use serde_json::{json, Value};
|
||||
use strum_macros::{EnumDiscriminants, EnumIter};
|
||||
use galaxy_core::register_telemetry_event;
|
||||
use galaxy_core::telemetry::{EnablementState, TelemetryEvent, TelemetryEventDesc};
|
||||
use serde_json::{json, Value};
|
||||
use strum_macros::{EnumDiscriminants, EnumIter};
|
||||
|
||||
#[derive(Clone, EnumDiscriminants)]
|
||||
#[strum_discriminants(derive(EnumIter))]
|
||||
|
||||
@@ -7,10 +7,10 @@ use std::time::Duration;
|
||||
|
||||
use futures::channel::mpsc;
|
||||
use futures::{FutureExt as _, StreamExt as _};
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
use galaxy_util::standardized_path::StandardizedPath;
|
||||
use galaxyui_core::r#async::Timer;
|
||||
use galaxyui_core::{App, ModelContext, ModelHandle};
|
||||
use virtual_fs::{Stub, VirtualFS};
|
||||
|
||||
use crate::repositories::stub_git_repository;
|
||||
use crate::repository::{RepositorySubscriber, TrackedRemoteRef};
|
||||
|
||||
Reference in New Issue
Block a user