Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::{
|
||||
drive::{folders::CloudFolder, items::WarpDriveItemId, CloudObjectTypeAndId},
|
||||
ui_components::breadcrumb::Breadcrumb,
|
||||
};
|
||||
use warpui::AppContext;
|
||||
use galaxyui::AppContext;
|
||||
|
||||
// Encapsulates an object that can contain other objects, and keeps
|
||||
// information necessary to show breadcrumbs.
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
use warpui::fonts::{Properties, Style, Weight};
|
||||
use warpui::platform::Cursor;
|
||||
use warpui::ui_components::button::ButtonVariant;
|
||||
use warpui::{elements::Element, AppContext, View};
|
||||
use warpui::{Entity, SingletonEntity, TypedActionView, ViewContext};
|
||||
use galaxyui::fonts::{Properties, Style, Weight};
|
||||
use galaxyui::platform::Cursor;
|
||||
use galaxyui::ui_components::button::ButtonVariant;
|
||||
use galaxyui::{elements::Element, AppContext, View};
|
||||
use galaxyui::{Entity, SingletonEntity, TypedActionView, ViewContext};
|
||||
|
||||
use crate::appearance::Appearance;
|
||||
use crate::ui_components::buttons::close_button;
|
||||
use crate::ui_components::dialog::{dialog_styles, Dialog};
|
||||
use warpui::elements::{Container, MouseStateHandle, Text};
|
||||
use warpui::ui_components::components::UiComponent;
|
||||
use galaxyui::elements::{Container, MouseStateHandle, Text};
|
||||
use galaxyui::ui_components::components::UiComponent;
|
||||
|
||||
const EDIT_ANYWAY_CTA_LABEL: &str = "Edit anyway";
|
||||
const CANCEL_CTA_LABEL: &str = "Cancel";
|
||||
|
||||
@@ -62,18 +62,18 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
use url::Url;
|
||||
use warp_core::{channel::Channel, features::FeatureFlag};
|
||||
use warp_graphql::{
|
||||
use galaxy_core::{channel::Channel, features::FeatureFlag};
|
||||
use galaxy_graphql::{
|
||||
queries::get_updated_cloud_objects::UpdatedObjectInput, scalars::time::ServerTimestamp,
|
||||
};
|
||||
use warpui::{AppContext, SingletonEntity};
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
|
||||
pub mod breadcrumbs;
|
||||
pub mod grab_edit_access_modal;
|
||||
pub mod model;
|
||||
pub mod toast_message;
|
||||
|
||||
pub use warp_server_client::cloud_object::*;
|
||||
pub use galaxy_server_client::cloud_object::*;
|
||||
|
||||
/// A CloudObject represents
|
||||
/// therefore shareable and editable (i.e. Notebooks and Workflows). In order
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use chrono::{DateTime, Duration, Utc};
|
||||
use warpui::{Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::{Entity, ModelContext, SingletonEntity};
|
||||
|
||||
use crate::{
|
||||
persistence::model::PersistedObjectAction,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::App;
|
||||
use galaxyui::App;
|
||||
|
||||
use super::{ObjectAction, ObjectActionSubtype, ObjectActionType, ObjectActions};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use chrono::Utc;
|
||||
use lazy_static::lazy_static;
|
||||
use settings::{RespectUserSyncSetting, SyncToCloud};
|
||||
use warpui::{App, ModelHandle};
|
||||
use galaxyui::{App, ModelHandle};
|
||||
|
||||
use crate::auth::auth_manager::AuthManager;
|
||||
use crate::auth::user::TEST_USER_UID;
|
||||
@@ -753,7 +753,7 @@ fn test_load_cloud_objects_on_initial_load_with_empty_cache() {
|
||||
initialize_app(&mut app, Vec::new(), Arc::new(cloud_object_server_api_mock));
|
||||
|
||||
// Spend time waiting for the initial load to finish etc.
|
||||
warpui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
galaxyui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
|
||||
// TODO: @ianhodge - update tests once cloud model APIs are added
|
||||
// Now CloudModel should include all objects that were fetched via initial load
|
||||
@@ -862,7 +862,7 @@ fn test_loading_all_cloud_objects_after_switching_from_offline() {
|
||||
check_cloud_folders(&mut app, 0);
|
||||
|
||||
// Spend time waiting for the initial load to finish etc.
|
||||
warpui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
galaxyui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
|
||||
// Now CloudModel should include all objects that were fetched via initial load (in this
|
||||
// case: personal only)
|
||||
@@ -881,7 +881,7 @@ fn test_loading_all_cloud_objects_after_switching_from_offline() {
|
||||
});
|
||||
|
||||
// Spend time waiting for the load to finish etc.
|
||||
warpui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
galaxyui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
|
||||
// Now CloudModel should include all objects that were fetched via initial load
|
||||
check_cloud_workflows(&mut app, personal_workflows_len + team_workflows_len);
|
||||
@@ -930,7 +930,7 @@ fn test_force_refresh_only_happens_once() {
|
||||
initialize_app(&mut app, Vec::new(), Arc::new(cloud_object_server_api_mock));
|
||||
|
||||
// Spend time waiting for the initial load to finish etc.
|
||||
warpui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
galaxyui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
|
||||
// Check that pending refresh is now false on CloudModel
|
||||
CloudModel::handle(&app).read(&app, |model, _ctx| {
|
||||
@@ -979,7 +979,7 @@ fn test_force_refresh_correctly_resets_timestamp() {
|
||||
initialize_app(&mut app, Vec::new(), Arc::new(cloud_object_server_api_mock));
|
||||
|
||||
// Spend time waiting for the initial load to finish etc.
|
||||
warpui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
galaxyui::r#async::Timer::after(Duration::from_secs(1)).await;
|
||||
|
||||
// Check that pending refresh is within the acceptable hour range.
|
||||
CloudModel::handle(&app).read(&app, |model, _ctx| {
|
||||
|
||||
@@ -24,14 +24,14 @@ use crate::workspaces::user_workspaces::UserWorkspaces;
|
||||
use itertools::Itertools;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::sync::mpsc::SyncSender;
|
||||
use warp_graphql::scalars::time::ServerTimestamp;
|
||||
use galaxy_graphql::scalars::time::ServerTimestamp;
|
||||
|
||||
use warpui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
use galaxyui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
|
||||
use crate::cloud_object::CloudObject;
|
||||
use chrono::{DateTime, Duration, Utc};
|
||||
use rand::Rng;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
|
||||
use super::generic_string_model::GenericStringObjectId;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use std::{cell::RefCell, collections::HashMap};
|
||||
|
||||
use chrono::{Duration, Utc};
|
||||
use warp_graphql::scalars::time::ServerTimestamp;
|
||||
use warpui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
use galaxy_graphql::scalars::time::ServerTimestamp;
|
||||
use galaxyui::{AppContext, Entity, ModelContext, SingletonEntity};
|
||||
|
||||
use crate::{
|
||||
auth::{AuthStateProvider, UserUid},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use warpui::AppContext;
|
||||
use galaxyui::AppContext;
|
||||
|
||||
use crate::server::cloud_objects::update_manager::{
|
||||
InitiatedBy, ObjectOperation, OperationSuccessType,
|
||||
|
||||
Reference in New Issue
Block a user