Tree:
9067bec54a
adjust-note
button-visual-enhancement
bvc-shortcut
claim-view-improvements
cleanup-and-qr-code
contact-amounts-ui-improvements
design-tweaks-2023-12
experimental_plugin
feat/vitejs
fix-contact-totals
friend-tech-inspired-pwa-dialog
gifted-camera-improvements
home-infinite
home-view-notification-improvements
identity-switcher
increment-derived
jdenticon-entity-photos
many-misc
master
misc2
miscellany
more-smalls
move-id-switch
new-web-push
no-accounts-in-memory
notification-request-permission-dialog
notiwind-alert
openssl
photo-ratio
photo-upload
plan-loc
polish-ui-project-view
project-gives
project-map-link
projects-view-improvements
qr-reader
qr-reader-rebased
quicknav-component
remove-old-alerts
search-bbox
searching
seed-backup-view-improvements
service-worker-final
similarify-search
simple-signer
starred-projects
sw-cleanup
tmp
try-cypress
tweaks
ui-fix
update-api-server
vite-version
web-push-permissions
why-migrate-fail
world-fix
yml-fixes
0.1.8
0.2.1
0.2.11
0.2.17
0.2.2
0.2.4
0.3.35
0.3.50
0.3.51
0.3.52
0.3.53
0.3.54
0.3.55
0.3.56
0.3.57
0.4.1
0.4.2
0.4.3
0.4.4
0.5.8
0.5.9
1.0.0
1.0.2
1.0.4
${ noResults }
1 Commits (9067bec54aec277663d046aefae69be72dae370f)
Author | SHA1 | Message | Date |
---|---|---|---|
|
9067bec54a |
fix: Convert searchBoxes arrays to JSON strings in $saveSettings and $updateSettings
- Add _convertSettingsForStorage helper method to handle Settings → SettingsWithJsonStrings conversion - Fix $saveSettings and $saveUserSettings to properly convert searchBoxes arrays to JSON strings before database storage - Update SearchAreaView.vue to use array format instead of manual JSON.stringify conversion - Add comprehensive test UI in PlatformServiceMixinTest.vue with visual feedback and clear demonstration of conversion process - Document migration strategy for consolidating $updateSettings into $saveSettings to reduce code duplication - Add deprecation notices to $updateSettings method with clear migration guidance The fix ensures that searchBoxes arrays are properly converted to JSON strings before database storage, preventing data corruption and maintaining consistency with the SettingsWithJsonStrings type definition. The enhanced test interface provides clear visualization of the conversion process and database storage format. Migration Strategy: - $saveSettings: ✅ KEEP (will be primary method after consolidation) - $updateSettings: ⚠️ DEPRECATED (will be removed in favor of $saveSettings) - Future: Consolidate to single $saveSettings(changes, did?) method Files changed: - src/utils/PlatformServiceMixin.ts: Add conversion helper, fix save methods, add deprecation notices - src/views/SearchAreaView.vue: Remove manual JSON conversion - src/test/PlatformServiceMixinTest.vue: Add comprehensive test UI with highlighting - docs/migration-templates/updateSettings-consolidation-plan.md: Document future consolidation strategy |
4 weeks ago |