Matthew Raymer
ebc241eba0
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.
1 month ago
Trent Larson
9760f02aab
fix linting
2 months ago
Trent Larson
8092d1c576
convert all remaining DB writes & reads to SQL (with successful registration & claim)
2 months ago
Trent Larson
3f46e3817a
add encryption for the two SQL columns, replace basic DB utils, add USE_DEXIE_DB flag, and start adding SQL everywhere
2 months ago
Jose Olarte III
aeb771f619
Linting
2 months ago
Matt Raymer
9492018fd6
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.
2 months ago
Trent Larson
26fba66bba
fix linting
2 months ago
Trent Larson
28b24f6c5d
add a input area for arbitrary SQL on the test page
2 months ago
Trent Larson
df5a719a24
add more error handling and messaging when there are bad DB errors
2 months ago
Trent Larson
6301992332
add some logging to the DB (especially for iOS app feed debugging)
4 months ago
Matthew Raymer
c9536dd643
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
5 months ago
Trent Larson
e27aefc19e
fix error setting the apiServer to "", plus some refactors while fixing test 40
5 months ago
Matthew Raymer
8b77d2b573
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.
7 months ago
Trent Larson
251649e6fe
switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
8 months ago
Trent Larson
228f213c10
move more logging into the database
8 months ago
Trent Larson
f57d3b7707
add minute to notification scheduling & fix a bug, plus other tweaks
8 months ago
Trent Larson
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
11 months ago
Trent Larson
5ad8a2d2ba
await all of the db.settings updates
1 year ago
Trent Larson
7f02ba29a3
add a share_target for people to add a photo
1 year ago
Trent Larson
25b1598fcb
doc: add more help for the notifications
2 years ago
Trent Larson
05c6ddda02
allow a test notification from the notification help screen
2 years ago
Trent Larson
d7f4acb702
make more adjustments to try and get logging to work
2 years ago
Trent Larson
4f2cb55753
add warning if on unexpected server
2 years ago
Trent Larson
3bf8fd0c22
rename "push" to "webPush" for future-proofing
2 years ago
Trent Larson
65a5edf26b
allow to customize the push-server for testing
2 years ago
Matthew Raymer
082a6eae1f
Refactor db setup a bit
2 years ago
Trent Larson
0c05505c46
allow use of custom derivation path, and add way to increment derivation for existing
2 years ago
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
2 years ago
Trent Larson
6daa515d19
load feed of give records on home screen
2 years ago
Trent Larson
d5336dbf1b
docs & comments & labels
2 years ago
Trent Larson
fc7c1187e8
allow to switch the server
2 years ago
Trent Larson
c7fa6823bc
add DB export
2 years ago
Trent Larson
45b54db01e
separate account from other data for backup/restore
2 years ago
Trent Larson
afc175e3e7
add settings table to store names (and other things soon)
2 years ago
Trent Larson
cfeabf05a4
refactor DB organization (prepping for more tables)
2 years ago
Trent Larson
4fdfe2f824
feat: add contacts DB & page
2 years ago
Matthew Aaron Raymer
4a407b43ae
Fix encrypt-decrypt issue.
3 years ago
Matthew Aaron Raymer
c6d0473fab
Refactored again. Fields update on Account page
3 years ago
Matthew Aaron Raymer
c9d5ab82fd
Adds an initial account as long as there are no available accounts.
3 years ago
Matthew Aaron Raymer
3ac8f911ac
DB being created. Still getting an exception.
3 years ago
Matthew Aaron Raymer
9232afb5af
In transition ... experimenting
3 years ago