WIP: Fix DB disconnects
#204
Open
trentlarson
wants to merge 8 commits from clean-db-disconnects
into master
pull from: clean-db-disconnects
merge into: trent_larson:master
trent_larson:account-import-duplicate-prevention
trent_larson:active_did_redux
trent_larson:activedid_migration
trent_larson:ai-context
trent_larson:android-15-check
trent_larson:android-file-save
trent_larson:android-safe-area-insets
trent_larson:app_id_fix
trent_larson:ask-for-contacts-export
trent_larson:build-dev-to-dist
trent_larson:build-improvement
trent_larson:build-ios
trent_larson:build-web-serve-test
trent_larson:build-with-env
trent_larson:capacitor-local-save
trent_larson:claim-view-error-handling
trent_larson:claimview-fullfills-offer
trent_larson:contact-gifting-current-user
trent_larson:contacts-view-fixes
trent_larson:cross-platform-factory
trent_larson:cross-platform-factory-redux
trent_larson:d9085ced6df7dc7bdcd899959cea6489cab7f8b8
trent_larson:db-backup-cross-platform
trent_larson:deep-link
trent_larson:deep-link-views-safe-area-inset
trent_larson:deep-links-android-update
trent_larson:deep_linking
trent_larson:design-tweaks-2023-12
trent_larson:dialog-notification-z-index
trent_larson:dialog-styles-unified
trent_larson:didview-invalid-did-handling
trent_larson:electron-build-capacitor-config
trent_larson:electron-build-config-overwrite
trent_larson:electron-copy-paste-keyboard-shortcuts
trent_larson:electron_fix_20250317
trent_larson:experimental_plugin
trent_larson:eye-slash
trent_larson:fix-contact-import-export
trent_larson:fix-deep-link
trent_larson:fix-service-worker
trent_larson:friend-tech-inspired-pwa-dialog
trent_larson:get-get-hash
trent_larson:gifting-periphery-improvements
trent_larson:gifting-ui-2025-05
trent_larson:home-icon-enhancements
trent_larson:home-view-notification-improvements
trent_larson:homeview-cleanup-2025-03
trent_larson:homeview-refresh-2025-02
trent_larson:imagemagick-anrdoid
trent_larson:ios-contact-copy
trent_larson:ios-disable-zoom
trent_larson:ios-qr-code-copy
trent_larson:load-build-mode-env-file
trent_larson:logger-level
trent_larson:logging-upgrade
trent_larson:main
trent_larson:master
trent_larson:master-patch
trent_larson:master-settings-upgrade
trent_larson:matthew-scratch-2025-06-28
trent_larson:meeting-members-set-visibility
trent_larson:migrate-dexie-to-sqlite
trent_larson:nearby-filter
trent_larson:new-activity-mark-read
trent_larson:new-storage
trent_larson:nostr
trent_larson:notification-line-wrapping
trent_larson:notification-request-permission-dialog
trent_larson:notification-section
trent_larson:notification-system
trent_larson:notify-initialization-fix
trent_larson:notify-time
trent_larson:offer-edit
trent_larson:offer-validation-logic
trent_larson:onboard-alert-component
trent_larson:onboarding-dialog-fix
trent_larson:passkey
trent_larson:passkey-cache
trent_larson:performance-optimizations-testing
trent_larson:photo-reverse
trent_larson:plan-loc
trent_larson:platformservicemixin-interface-consolidation
trent_larson:playwright-pwa-install-test
trent_larson:playwright-test-00-fix
trent_larson:playwright-test-60-fix
trent_larson:playwright-test-updates
trent_larson:profile-pic
trent_larson:profile_include_location
trent_larson:project-gives
trent_larson:projectview-hide-offer-link-unregistered
trent_larson:qrcode-capacitor
trent_larson:registration-gate
trent_larson:registration-prompt-parity
trent_larson:remove-cannot-upload-images-notification
trent_larson:remove-image-cache
trent_larson:replace-iconrenderer
trent_larson:search-map-fix
trent_larson:seed-phrase-backup-prompt
trent_larson:side_step
trent_larson:simple-signer
trent_larson:split_build_process
trent_larson:sql-absurd-sql
trent_larson:sql-absurd-sql-further
trent_larson:sql-wa-sqlite
trent_larson:star-projects
trent_larson:star-projects2
trent_larson:starred-projects
trent_larson:streamline-attempt
trent_larson:sw-cleanup
trent_larson:switching-identities-change-name
trent_larson:tmp
trent_larson:trent-tweaks
trent_larson:tweaks
trent_larson:ui-fixes-2024-03
trent_larson:ui-fixes-2025-03
trent_larson:ui-fixes-2025-06-w2
trent_larson:units-mocking
trent_larson:v-onboarding-2024-04
trent_larson:view-headings-refresh
trent_larson:vite-version
trent_larson:web-serve-fix
trent_larson:web-tests
trent_larson:wip_new_notifications
8 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
|
fface30123 |
fix(platforms): include accountDid in settings retrieval for both platforms
- Remove accountDid exclusion from settings object construction in CapacitorPlatformService - Remove accountDid exclusion from settings object construction in WebPlatformService - Ensure accountDid is included in retrieved settings for proper DID-specific configuration handling This change ensures that the accountDid field is properly included when retrieving settings for the active account, allowing for proper DID-specific configuration management across both Capacitor (mobile) and Web platforms. Files modified: - src/services/platforms/CapacitorPlatformService.ts - src/services/platforms/WebPlatformService.ts Timestamp: Wed Oct 8 03:05:45 PM UTC 2025 |
1 week ago |
|
97b382451a |
Merge branch 'master' into clean-db-disconnects
|
2 weeks ago |
|
7fd2c4e0c7 |
fix(AccountView): resolve stale registration status cache after identity creation
- Add live registration verification to AccountView.initializeState() - When settings show unregistered but user has activeDid, verify with server - Use fetchEndorserRateLimits() matching HomeView's successful pattern - Update database and UI state immediately upon server confirmation - Eliminate need to navigate away/back to refresh registration status Technical details: - Condition: if (!this.isRegistered && this.activeDid) - Server check: fetchEndorserRateLimits(this.apiServer, this.axios, this.activeDid) - On success: $saveUserSettings({isRegistered: true}) + this.isRegistered = true - Graceful handling for actually unregistered users (expected behavior) Fixes issue where AccountView showed "Before you can publicly announce..." message immediately after User Zero identity creation, despite server confirming user was registered. Problem was Vue component state caching stale settings while database contained updated registration status. Resolves behavior reported in iOS testing: User had to navigate to HomeView and back to AccountView for registration status to update properly. |
2 weeks ago |
|
20322789a2 |
fix(AccountView): resolve stale registration status cache after identity creation
- Add live registration verification to AccountView.initializeState() - When settings show unregistered but user has activeDid, verify with server - Use fetchEndorserRateLimits() matching HomeView's successful pattern - Update database and UI state immediately upon server confirmation - Eliminate need to navigate away/back to refresh registration status Technical details: - Condition: if (!this.isRegistered && this.activeDid) - Server check: fetchEndorserRateLimits(this.apiServer, this.axios, this.activeDid) - On success: $saveUserSettings({isRegistered: true}) + this.isRegistered = true - Graceful handling for actually unregistered users (expected behavior) Fixes issue where AccountView showed "Before you can publicly announce..." message immediately after User Zero identity creation, despite server confirming user was registered. Problem was Vue component state caching stale settings while database contained updated registration status. Resolves behavior reported in iOS testing: User had to navigate to HomeView and back to AccountView for registration status to update properly. |
2 weeks ago |
|
666bed0efd |
refactor(services): align Capacitor and Web platform services with active_identity architecture
- Update CapacitorPlatformService.updateDefaultSettings() to use active_identity table instead of hard-coded id=1 - Update CapacitorPlatformService.retrieveSettingsForActiveAccount() to query by accountDid from active_identity - Add getActiveIdentity() method to CapacitorPlatformService for consistency with WebPlatformService - Update WebPlatformService.retrieveSettingsForActiveAccount() to match CapacitorPlatformService pattern - Both services now consistently use active_identity table instead of legacy MASTER_SETTINGS_KEY approach - Maintains backward compatibility with databaseUtil.ts for PWA migration support Technical details: - CapacitorPlatformService: Fixed hard-coded WHERE id = 1 → WHERE accountDid = ? - WebPlatformService: Fixed retrieval pattern to match new architecture - Platform services now aligned with migration 004 active_identity table schema - databaseUtil.ts remains unchanged for PWA-to-SQLite migration bridge |
2 weeks ago |
|
7432525f4c |
refactor(services): align Capacitor and Web platform services with active_identity architecture
- Update CapacitorPlatformService.updateDefaultSettings() to use active_identity table instead of hard-coded id=1 - Update CapacitorPlatformService.retrieveSettingsForActiveAccount() to query by accountDid from active_identity - Add getActiveIdentity() method to CapacitorPlatformService for consistency with WebPlatformService - Update WebPlatformService.retrieveSettingsForActiveAccount() to match CapacitorPlatformService pattern - Both services now consistently use active_identity table instead of legacy MASTER_SETTINGS_KEY approach - Maintains backward compatibility with databaseUtil.ts for PWA migration support Technical details: - CapacitorPlatformService: Fixed hard-coded WHERE id = 1 → WHERE accountDid = ? - WebPlatformService: Fixed retrieval pattern to match new architecture - Platform services now aligned with migration 004 active_identity table schema - databaseUtil.ts remains unchanged for PWA-to-SQLite migration bridge |
2 weeks ago |
|
530cddfab0 |
fix: linting
|
3 weeks ago |
|
5340c00ae2 |
fix: remove the duplicate settings for user 0, remove other user-0-specific code, enhance errors
|
3 weeks ago |