Wrapping up bedrock implementation

This commit is contained in:
Ryan Ward
2026-05-13 10:04:59 -05:00
parent ed53aa99eb
commit cee61e2af0
1144 changed files with 2954 additions and 2660 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
use uuid::Uuid;
use galaxy_core::user_preferences::GetUserPreferences;
use uuid::Uuid;
/// Key used to persist the anonymous id to user defaults. We use "ExperimentId" as the key
/// since we use the persisted id to determine experiment groups, and we want to avoid
+4 -6
View File
@@ -6,8 +6,6 @@ use std::sync::Arc;
use std::time::Duration;
use anyhow::{anyhow, Result};
use settings::Setting as _;
use uuid::Uuid;
use galaxy_core::channel::ChannelState;
use galaxy_core::features::FeatureFlag;
#[allow(unused_imports)]
@@ -16,6 +14,8 @@ use galaxy_graphql::mutations::create_anonymous_user::{
};
#[allow(unused_imports)]
use galaxyui::{clipboard::ClipboardContent, Entity, ModelContext, SingletonEntity, UpdateModel};
use settings::Setting as _;
use uuid::Uuid;
use super::auth_state::{AuthState, PersistAction};
use super::auth_view_modal::{AuthRedirectPayload, AuthViewVariant};
@@ -557,8 +557,7 @@ impl AuthManager {
/// NOTE: You probably want to call auth::log_out instead; this only manages the auth state,
/// it doesn't shut down any other user-dependent parts of the app.
/// TODO(jeff): Can we move those pieces in here?
pub(super) fn log_out(&mut self, _ctx: &mut ModelContext<Self>) {
}
pub(super) fn log_out(&mut self, _ctx: &mut ModelContext<Self>) {}
/// Sets whether or not this user's Firebase credentials are invalid and thus needs to reauth.
pub fn set_needs_reauth(&self, needs_reauth: bool, ctx: &mut ModelContext<Self>) {
@@ -629,8 +628,7 @@ impl AuthManager {
) {
}
pub fn anonymous_user_hit_drive_object_limit(&self, _ctx: &mut ModelContext<Self>) {
}
pub fn anonymous_user_hit_drive_object_limit(&self, _ctx: &mut ModelContext<Self>) {}
pub fn initiate_anonymous_user_linking(
&self,
@@ -1,7 +1,7 @@
use serde::{Deserialize, Serialize};
use galaxy_graphql::scalars::time::ServerTimestamp;
use galaxyui::AppContext;
use galaxyui_extras::secure_storage;
use serde::{Deserialize, Serialize};
use crate::auth::{
user::{AnonymousUserType, FirebaseAuthTokens, PersonalObjectLimits, UserMetadata},
+3 -6
View File
@@ -5,16 +5,13 @@ use std::sync::{
use anyhow::anyhow;
use chrono::{DateTime, Duration, Utc};
use parking_lot::RwLock;
use uuid::Uuid;
use galaxy_core::channel::{Channel, ChannelState};
use galaxy_graphql::object_permissions::OwnerType;
use galaxyui::{AppContext, Entity, SingletonEntity};
use parking_lot::RwLock;
use uuid::Uuid;
use crate::{
cloud_object::ObjectType,
report_error,
};
use crate::{cloud_object::ObjectType, report_error};
use super::{
anonymous_id::get_or_create_anonymous_id,
+1 -1
View File
@@ -1,6 +1,6 @@
use anyhow::Result;
use url::Url;
use galaxyui::{AppContext, Element, Entity, TypedActionView, View, ViewContext};
use url::Url;
use super::credentials::RefreshToken;
use super::user_uid::UserUid;
+2 -2
View File
@@ -25,10 +25,10 @@ use ::settings::{Setting, SettingsManager, ToggleableSetting};
use ai::index::full_source_code_embedding::manager::CodebaseIndexManager;
pub use auth_manager::AuthManager;
pub use auth_state::AuthStateProvider;
use itertools::Itertools;
pub use auth_view_modal::LoginFailureReason;
pub use user_uid::UserUid;
use galaxyui::modals::{AlertDialogWithCallbacks, ModalButton};
use itertools::Itertools;
pub use user_uid::UserUid;
use galaxy_core::user_preferences::GetUserPreferences as _;
use galaxyui::{AppContext, SingletonEntity};
+1 -1
View File
@@ -1,8 +1,8 @@
use crate::server::datetime_ext::DateTimeExt;
use anyhow::{anyhow, Result};
use chrono::{DateTime, FixedOffset};
use serde::{Deserialize, Serialize};
use galaxy_graphql::{queries::get_user::FirebaseProfile, scalars::time::ServerTimestamp};
use serde::{Deserialize, Serialize};
use super::UserUid;