From 0ce1a1aa5cb747a5de739f94a271d7bc4f8e4182 Mon Sep 17 00:00:00 2001 From: Michael Gartner Date: Tue, 3 Mar 2026 11:47:11 -0600 Subject: [PATCH 1/2] Refactor HomePersonalSettings component to streamline migration flow and improve UI responsiveness. Adjusted dialog structure and button actions for better user experience during relation migration. Removed unused imports from migrateRelations utility. --- .../settings/HomePersonalSettings.tsx | 93 +++++++++---------- apps/roam/src/utils/migrateRelations.ts | 2 - 2 files changed, 45 insertions(+), 50 deletions(-) diff --git a/apps/roam/src/components/settings/HomePersonalSettings.tsx b/apps/roam/src/components/settings/HomePersonalSettings.tsx index fe63908a8..1aeb640e7 100644 --- a/apps/roam/src/components/settings/HomePersonalSettings.tsx +++ b/apps/roam/src/components/settings/HomePersonalSettings.tsx @@ -293,13 +293,11 @@ const HomePersonalSettings = ({ onloadArgs }: { onloadArgs: OnloadArgs }) => { }} style={{ width: "600px" }} > - {isOngoing ? ( -
+
+ {isOngoing ? (

Migrating relations, please wait

-
- ) : ( - <> -
+ ) : ( + <>

Activating the faster relations system will migrate all previously created relations and newly created relations will @@ -308,58 +306,57 @@ const HomePersonalSettings = ({ onloadArgs }: { onloadArgs: OnloadArgs }) => { deleted; however, they will not be accessible until you reactivate the faster relation system.

- {activeRelationMigration === RelationMigrationDialog.activate ? ( -
-
- -
-
{numExistingRelations}
+ {activeRelationMigration === + RelationMigrationDialog.reactivate ? ( +
+ +
+                    {numExistingRelations}
+                  
- ) : ( - "" - )} -
-
-
+ ) : null} + + )} +
+ {!isOngoing && ( +
+
+ + {activeRelationMigration === + RelationMigrationDialog.reactivate ? ( + ) : null} + - ) : ( - "" - )} - -
+ RelationMigrationDialog.reactivate + ? "Migrate again and Reactivate" + : "Activate and Migrate"} +
- +
)} Date: Tue, 3 Mar 2026 11:52:48 -0600 Subject: [PATCH 2/2] format --- apps/roam/src/components/settings/HomePersonalSettings.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/roam/src/components/settings/HomePersonalSettings.tsx b/apps/roam/src/components/settings/HomePersonalSettings.tsx index 1aeb640e7..9ef6df75d 100644 --- a/apps/roam/src/components/settings/HomePersonalSettings.tsx +++ b/apps/roam/src/components/settings/HomePersonalSettings.tsx @@ -309,7 +309,7 @@ const HomePersonalSettings = ({ onloadArgs }: { onloadArgs: OnloadArgs }) => { {activeRelationMigration === RelationMigrationDialog.reactivate ? (
- +
                     {numExistingRelations}
                   
@@ -350,8 +350,7 @@ const HomePersonalSettings = ({ onloadArgs }: { onloadArgs: OnloadArgs }) => { void startMigration(); }} > - {activeRelationMigration === - RelationMigrationDialog.reactivate + {activeRelationMigration === RelationMigrationDialog.reactivate ? "Migrate again and Reactivate" : "Activate and Migrate"}