From 8eff407a9cd9169cfae2b86aab13858e135f5edc Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Thu, 19 Jun 2025 09:54:09 -0600 Subject: [PATCH] IndexedDB migration: reorder the sections to accounts then settings then contacts --- src/views/DatabaseMigration.vue | 525 ++++++++++++++++---------------- 1 file changed, 264 insertions(+), 261 deletions(-) diff --git a/src/views/DatabaseMigration.vue b/src/views/DatabaseMigration.vue index 580497e449..c65719f6a5 100644 --- a/src/views/DatabaseMigration.vue +++ b/src/views/DatabaseMigration.vue @@ -246,22 +246,23 @@
+
- Dexie Contacts + Dexie Accounts
- {{ comparison.dexieContacts.length }} + {{ comparison.dexieAccounts.length }}
@@ -275,16 +276,16 @@
- SQLite Contacts + SQLite Accounts
- {{ comparison.sqliteContacts.length }} + {{ comparison.sqliteAccounts.length }}
@@ -292,6 +293,7 @@
+
@@ -338,22 +340,23 @@
+
- Dexie Accounts + Dexie Contacts
- {{ comparison.dexieAccounts.length }} + {{ comparison.dexieContacts.length }}
@@ -367,16 +370,16 @@
- SQLite Accounts + SQLite Contacts
- {{ comparison.sqliteAccounts.length }} + {{ comparison.sqliteContacts.length }}
@@ -387,253 +390,7 @@
- -
-
-

- Contact Differences -

- -
-
-
- - Added -
- {{ - comparison.differences.contacts.added.length - }} -
- -
-
- - Modified -
- {{ - comparison.differences.contacts.modified.length - }} -
- -
-
- - Missing -
- {{ - comparison.differences.contacts.missing.length - }} -
-
- - -
-

- Added Contacts ({{ comparison.differences.contacts.added.length }}): -

-
-
-
{{ contact.name || '' }}
-
{{ contact.did }}
-
{{ contact.contactMethods?.length || 0 }} contact methods
-
-
-
- - -
-

- Modified Contacts ({{ comparison.differences.contacts.modified.length }}): -

-
-
-
{{ contact.name || '' }}
-
{{ contact.did }}
-
{{ contact.contactMethods?.length || 0 }} contact methods
-
-
-
- - -
-

- Missing Contacts ({{ comparison.differences.contacts.missing.filter(c => c.did).length }}): -

-
-
-
{{ contact.name || '' }}
-
{{ contact.did }}
-
{{ contact.contactMethods?.length || 0 }} contact methods
-
-
-
-
-
- - -
-
-

- Settings Differences -

- -
-
-
- - Added -
- {{ - comparison.differences.settings.added.length - }} -
- -
-
- - Modified -
- {{ - comparison.differences.settings.modified.length - }} -
- -
-
- - Missing -
- {{ - comparison.differences.settings.missing.length - }} -
-
- - -
-

- Added Settings ({{ comparison.differences.settings.added.length }}): -

-
-
-
{{ getSettingDisplayName(setting) }}
-
ID: {{ setting.id }}
-
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
-
-
-
- - -
-

- Modified Settings ({{ comparison.differences.settings.modified.length }}): -

-
-
-
{{ getSettingDisplayName(setting) }}
-
ID: {{ setting.id }}
-
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
-
-
-
- - -
-

- Missing Settings ({{ comparison.differences.settings.missing.filter(s => s.accountDid || s.activeDid).length }}): -

-
-
-
{{ getSettingDisplayName(setting) }}
-
ID: {{ setting.id }}
-
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
-
-
-
-
-
- - +

@@ -761,6 +518,252 @@

+ + +
+
+

+ Settings Differences +

+ +
+
+
+ + Added +
+ {{ + comparison.differences.settings.added.length + }} +
+ +
+
+ + Modified +
+ {{ + comparison.differences.settings.modified.length + }} +
+ +
+
+ + Missing +
+ {{ + comparison.differences.settings.missing.length + }} +
+
+ + +
+

+ Added Settings ({{ comparison.differences.settings.added.length }}): +

+
+
+
{{ getSettingDisplayName(setting) }}
+
ID: {{ setting.id }}
+
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
+
+
+
+ + +
+

+ Modified Settings ({{ comparison.differences.settings.modified.length }}): +

+
+
+
{{ getSettingDisplayName(setting) }}
+
ID: {{ setting.id }}
+
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
+
+
+
+ + +
+

+ Missing Settings ({{ comparison.differences.settings.missing.filter(s => s.accountDid || s.activeDid).length }}): +

+
+
+
{{ getSettingDisplayName(setting) }}
+
ID: {{ setting.id }}
+
Registered: {{ setting.isRegistered ? 'Yes' : 'No' }}
+
+
+
+
+
+ + +
+
+

+ Contact Differences +

+ +
+
+
+ + Added +
+ {{ + comparison.differences.contacts.added.length + }} +
+ +
+
+ + Modified +
+ {{ + comparison.differences.contacts.modified.length + }} +
+ +
+
+ + Missing +
+ {{ + comparison.differences.contacts.missing.length + }} +
+
+ + +
+

+ Added Contacts ({{ comparison.differences.contacts.added.length }}): +

+
+
+
{{ contact.name || '' }}
+
{{ contact.did }}
+
{{ contact.contactMethods?.length || 0 }} contact methods
+
+
+
+ + +
+

+ Modified Contacts ({{ comparison.differences.contacts.modified.length }}): +

+
+
+
{{ contact.name || '' }}
+
{{ contact.did }}
+
{{ contact.contactMethods?.length || 0 }} contact methods
+
+
+
+ + +
+

+ Missing Contacts ({{ comparison.differences.contacts.missing.filter(c => c.did).length }}): +

+
+
+
{{ contact.name || '' }}
+
{{ contact.did }}
+
{{ contact.contactMethods?.length || 0 }} contact methods
+
+
+
+
+