Skip to content

refactor: finish indexeddb winner selection#995

Draft
ryokun6 wants to merge 15 commits intomainfrom
cursor/simplification-execution-waves-73a9
Draft

refactor: finish indexeddb winner selection#995
ryokun6 wants to merge 15 commits intomainfrom
cursor/simplification-execution-waves-73a9

Conversation

@ryokun6
Copy link
Copy Markdown
Owner

@ryokun6 ryokun6 commented Mar 17, 2026

Summary

  • promote src/utils/indexedDBOperations.ts to the shared IndexedDB CRUD entrypoint
  • remove the Finder-owned generic dbOperations wrapper and update file/content consumers to import the shared helper directly
  • migrate useFilesStore and useDisplaySettingsStore off routine raw IndexedDB transactions
  • merge the latest main changes into this branch and restore custom-wallpapers under the logical files sync domain so merged sync APIs and tests stay aligned
  • reuse the shared useThemeFlags() helper in CandyBar instead of recomputing raw theme booleans in merged UI files
  • continue Wave 7 by moving auth, room typing, room message delete, and user-search client calls onto src/api/* wrappers
  • fix the useFilesStore default-file rehydrate noise by normalizing malformed filesystem payloads before root-directory reconciliation
  • update plans/simplification_execution_waves.md to reflect Wave 7 partial progress and the resolved rehydrate cleanup noise

Testing

  • bun run build
  • bun test tests/test-cloud-sync-domains.test.ts tests/test-cloud-sync-utils.test.ts tests/test-cloud-sync-backup.test.ts
  • bun test tests/test-auth-extra.test.ts tests/test-new-api.test.ts tests/test-rooms-extra.test.ts
  • bun test tests/test-cloud-sync-utils.test.ts

Notes

  • specialized backup, migration, and sync flows still open IndexedDB directly where they need cursor/bulk behavior; routine CRUD now goes through the shared helper
  • the sync-focused API test runs require the standalone API server (bun run dev:api) to be running locally
  • Wave 7 is still not fully complete: other internal API wrappers and migrations remain outside the auth/rooms slice
Open in Web Open in Cursor 

cursoragent and others added 2 commits March 17, 2026 07:52
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
@ryos-deploy
Copy link
Copy Markdown

ryos-deploy bot commented Mar 17, 2026

The preview deployment for ryos-dev is ready. 🟢

Open Preview | Open Build Logs | Open Application Logs

Last updated at: 2026-03-17 16:06:39 CET

cursoragent and others added 13 commits March 17, 2026 08:15
…-execution-waves-73a9

Co-authored-by: Ryo Lu <me@ryo.lu>
Merge had moved custom-wallpapers to settings, breaking PUT/prepare on
/api/sync/domains/files. Restore LOGICAL_TO_PHYSICAL mapping expected by
API and client transport tests.

Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Co-authored-by: Ryo Lu <me@ryo.lu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants