Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -4,11 +4,11 @@ use settings::{
|
||||
Setting, SettingsManager,
|
||||
};
|
||||
use settings_value::SettingsValue;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warp_core::settings::{macros::define_settings_group, SupportedPlatforms, SyncToCloud};
|
||||
use warp_core::user_preferences::GetUserPreferences as _;
|
||||
use warpui::SingletonEntity;
|
||||
use warpui_extras::user_preferences;
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxy_core::settings::{macros::define_settings_group, SupportedPlatforms, SyncToCloud};
|
||||
use galaxy_core::user_preferences::GetUserPreferences as _;
|
||||
use galaxyui::SingletonEntity;
|
||||
use galaxyui_extras::user_preferences;
|
||||
|
||||
use crate::terminal::session_settings::{NotificationsMode, NotificationsSettings};
|
||||
|
||||
@@ -47,7 +47,7 @@ define_settings_group!(MigrationTestSettings, settings: [
|
||||
|
||||
/// Registers separate InMemoryPreferences singletons for public and private
|
||||
/// stores, then adds a SettingsManager and the test settings group.
|
||||
fn init_test_app(ctx: &mut warpui::AppContext) {
|
||||
fn init_test_app(ctx: &mut galaxyui::AppContext) {
|
||||
ctx.add_singleton_model(move |_| {
|
||||
PublicPreferences::new(Box::<user_preferences::in_memory::InMemoryPreferences>::default())
|
||||
});
|
||||
@@ -80,7 +80,7 @@ impl Drop for SettingsFileEnabledGuard {
|
||||
#[test]
|
||||
#[serial_test::serial]
|
||||
fn test_migration_copies_public_settings_from_native_store() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
// Enable the settings file so `preferences_for_setting` routes
|
||||
// public setting writes to the Model singleton (not the private store).
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
@@ -144,7 +144,7 @@ fn test_migration_copies_public_settings_from_native_store() {
|
||||
|
||||
#[test]
|
||||
fn test_migration_writes_marker_to_native_store() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
app.update(init_test_app);
|
||||
|
||||
// No marker before migration.
|
||||
@@ -174,7 +174,7 @@ fn test_migration_writes_marker_to_native_store() {
|
||||
#[test]
|
||||
#[serial_test::serial]
|
||||
fn test_migration_skips_settings_absent_from_native_store() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
let _settings_file_enabled = SettingsFileEnabledGuard::new(true);
|
||||
app.update(init_test_app);
|
||||
@@ -217,7 +217,7 @@ fn test_migration_skips_settings_absent_from_native_store() {
|
||||
|
||||
#[test]
|
||||
fn test_migration_handles_string_setting() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
app.update(init_test_app);
|
||||
|
||||
// Seed a JSON-encoded string value in the native store.
|
||||
@@ -245,7 +245,7 @@ fn test_migration_handles_string_setting() {
|
||||
|
||||
#[test]
|
||||
fn test_migration_does_not_rerun_when_marker_present() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
|
||||
app.update(init_test_app);
|
||||
@@ -284,7 +284,7 @@ fn test_migration_does_not_rerun_when_marker_present() {
|
||||
#[test]
|
||||
#[serial_test::serial]
|
||||
fn test_migration_with_multiple_setting_types() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
let _settings_file_enabled = SettingsFileEnabledGuard::new(true);
|
||||
|
||||
@@ -380,8 +380,8 @@ fn test_migration_with_multiple_setting_types() {
|
||||
|
||||
mod notifications_migration {
|
||||
use settings::{PrivatePreferences, PublicPreferences, SettingsManager};
|
||||
use warp_core::settings::{macros::define_settings_group, SupportedPlatforms, SyncToCloud};
|
||||
use warpui_extras::user_preferences;
|
||||
use galaxy_core::settings::{macros::define_settings_group, SupportedPlatforms, SyncToCloud};
|
||||
use galaxyui_extras::user_preferences;
|
||||
|
||||
use crate::terminal::session_settings::NotificationsSettings;
|
||||
|
||||
@@ -397,7 +397,7 @@ mod notifications_migration {
|
||||
},
|
||||
]);
|
||||
|
||||
pub fn init_notifications_migration_test_app(ctx: &mut warpui::AppContext) {
|
||||
pub fn init_notifications_migration_test_app(ctx: &mut galaxyui::AppContext) {
|
||||
ctx.add_singleton_model(move |_| {
|
||||
PublicPreferences::new(
|
||||
Box::<user_preferences::in_memory::InMemoryPreferences>::default(),
|
||||
@@ -464,7 +464,7 @@ fn test_notifications_from_file_value_rejects_serde_format_duration() {
|
||||
#[test]
|
||||
#[serial_test::serial]
|
||||
fn test_migration_preserves_notifications_mode() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
let _settings_file_enabled = SettingsFileEnabledGuard::new(true);
|
||||
|
||||
@@ -503,7 +503,7 @@ fn test_migration_preserves_notifications_mode() {
|
||||
#[test]
|
||||
#[serial_test::serial]
|
||||
fn test_migration_preserves_custom_long_running_threshold() {
|
||||
warpui::App::test((), |mut app| async move {
|
||||
galaxyui::App::test((), |mut app| async move {
|
||||
let _guard = FeatureFlag::SettingsFile.override_enabled(true);
|
||||
let _settings_file_enabled = SettingsFileEnabledGuard::new(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user