Matthew Raymer
daed0a97c9
WIP: restore database migration system and improve error handling
...
- Restore runMigrations functionality for database schema migrations
- Remove indexedDBMigrationService.ts (was for IndexedDB to SQLite migration)
- Recreate migrationService.ts and db-sql/migration.ts for schema management
- Add proper TypeScript error handling with type guards in AccountViewView
- Fix CreateAndSubmitClaimResult property access in QuickActionBvcBeginView
- Remove LeafletMouseEvent from Vue components array (it's a type, not component)
- Add null check for UserNameDialog callback to prevent undefined assignment
- Implement extractErrorMessage helper function for consistent error handling
- Update router to remove database-migration route
The migration system now properly handles database schema evolution
across app versions, while the IndexedDB to SQLite migration service
has been removed as it was specific to that one-time migration.
2025-06-23 08:25:10 +00:00
820ae727ed
fix linting
2025-06-07 17:19:01 -06:00
dbeb1c6b4b
Merge branch 'sql-absurd-sql-back'
2025-06-07 17:18:10 -06:00
8d1511e38f
convert all remaining DB writes & reads to SQL (with successful registration & claim)
2025-05-27 21:07:24 -06:00
5d8175aeeb
add encryption for the two SQL columns, replace basic DB utils, add USE_DEXIE_DB flag, and start adding SQL everywhere
2025-05-26 19:03:20 -06:00
Jose Olarte III
47501ae917
Linting
2025-05-26 19:23:41 +08:00
Matt Raymer
ee441d1aea
refactor(db): improve type safety in migration system
...
- Replace any[] with SqlValue[] type for SQL parameters in runMigrations
- Update import to use QueryExecResult from interfaces/database
- Add proper typing for SQL parameter values (string | number | null | Uint8Array)
This change improves type safety and helps catch potential SQL parameter
type mismatches at compile time, reducing the risk of runtime errors
or data corruption.
2025-05-25 23:09:53 -04:00
5f24f4975d
fix linting
2025-05-25 20:48:33 -06:00
946e88d903
add a input area for arbitrary SQL on the test page
2025-05-25 20:27:06 -06:00
1129a13e20
add more error handling and messaging when there are bad DB errors
2025-05-23 12:35:16 -06:00
829870b16c
add some logging to the DB (especially for iOS app feed debugging)
2025-03-24 19:26:47 -06:00
Matthew Raymer
e0aded04b4
refactor: Replace console logging with logger utility
...
- Add logger import across multiple view components
- Replace console.error/warn/log with logger methods
- Update error handling to use structured logging
- Improve type safety for error objects
- Add crypto-browserify polyfill for browser environment
The changes improve logging by:
1. Using consistent logging interface
2. Adding structured error logging
3. Improving error type safety
4. Centralizing logging configuration
5. Fixing browser compatibility issues
Affected files:
- Multiple view components
- vite.config.ts
- Build configuration
2025-03-11 09:35:55 +00:00
811fddf24a
fix error setting the apiServer to "", plus some refactors while fixing test 40
2025-02-16 20:36:44 -07:00
Matthew Raymer
be8ba12df6
Refatored vite.config to be a bit more streamlined before adding alternate build options. This did end up requiring me to remove @ from imports for some reason. Tests came out fine.
2025-01-05 08:38:15 +00:00
bb3807a805
switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
2024-12-08 19:34:31 -07:00
6dc44b2494
move more logging into the database
2024-11-17 18:16:22 -07:00
2c0c7ac256
add minute to notification scheduling & fix a bug, plus other tweaks
2024-11-15 20:39:08 -07:00
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
2024-09-15 16:30:46 -06:00
5ad8a2d2ba
await all of the db.settings updates
2024-07-20 07:19:27 -06:00
7f02ba29a3
add a share_target for people to add a photo
2024-05-10 13:17:20 -06:00
25b1598fcb
doc: add more help for the notifications
2023-12-26 17:48:14 -07:00
05c6ddda02
allow a test notification from the notification help screen
2023-12-24 21:24:51 -07:00
d7f4acb702
make more adjustments to try and get logging to work
2023-12-21 20:50:35 -07:00
4f2cb55753
add warning if on unexpected server
2023-12-16 08:04:16 -07:00
3bf8fd0c22
rename "push" to "webPush" for future-proofing
2023-12-02 15:28:32 -07:00
65a5edf26b
allow to customize the push-server for testing
2023-11-12 11:35:36 -07:00
Matthew Raymer
082a6eae1f
Refactor db setup a bit
2023-10-16 18:49:18 +08:00
0c05505c46
allow use of custom derivation path, and add way to increment derivation for existing
2023-08-20 19:46:12 -06:00
Matthew Raymer
b6b7c56157
DiscoverView searches almost done.
...
Contact fixes
ContactAmounts fix quick-nav
Cleaning up ProjectView still more to do
Hide advanced by default on StatisticsView
project.task updated
2023-07-10 18:03:51 +08:00
6daa515d19
load feed of give records on home screen
2023-06-11 20:37:34 -06:00
d5336dbf1b
docs & comments & labels
2023-06-11 17:02:20 -06:00
fc7c1187e8
allow to switch the server
2023-05-19 13:28:52 -06:00
c7fa6823bc
add DB export
2023-03-19 18:23:15 -06:00
45b54db01e
separate account from other data for backup/restore
2023-03-19 16:25:19 -06:00
ee32c1aef4
Merge branch 'master' into db-set-and-bak
2023-03-19 11:30:00 -06:00
afc175e3e7
add settings table to store names (and other things soon)
2023-03-18 19:56:57 -06:00
cfeabf05a4
refactor DB organization (prepping for more tables)
2023-03-18 17:04:14 -06:00
4fdfe2f824
feat: add contacts DB & page
2023-03-12 18:30:18 -06:00
Matthew Aaron Raymer
4a407b43ae
Fix encrypt-decrypt issue.
2022-12-17 13:32:00 +08:00
Matthew Aaron Raymer
c6d0473fab
Refactored again. Fields update on Account page
2022-12-16 18:46:01 +08:00
Matthew Aaron Raymer
c9d5ab82fd
Adds an initial account as long as there are no available accounts.
2022-12-15 17:52:42 +08:00
Matthew Aaron Raymer
3ac8f911ac
DB being created. Still getting an exception.
2022-12-15 16:45:38 +08:00
Matthew Aaron Raymer
9232afb5af
In transition ... experimenting
2022-12-15 16:36:23 +08:00