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.
3 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.
3 months ago
Trent Larson
5f24f4975d
fix linting
3 months ago
Trent Larson
26fba66bba
fix linting
3 months ago
Trent Larson
a38934e38d
fix problems with race conditions and multiple DatabaseService instances
3 months ago
Trent Larson
bea5f78171
fix problems with race conditions and multiple DatabaseService instances
3 months ago
Trent Larson
83771caee1
add more to the inital migration, and refactor the locations of types
3 months ago
Trent Larson
60be32e120
add more to the inital migration, and refactor the locations of types
3 months ago
Trent Larson
1129a13e20
add more error handling and messaging when there are bad DB errors
3 months ago
Trent Larson
df5a719a24
add more error handling and messaging when there are bad DB errors
3 months ago
Matthew Raymer
2660b91995
wip: Improve deep link validation and error handling
- Add comprehensive route validation with zod schema
- Create type-safe DeepLinkRoute enum for all valid routes
- Add structured error handling for invalid routes
- Redirect to error page with detailed feedback
- Add better timeout handling in deeplink tests
The changes improve robustness by:
1. Validating route paths before navigation
2. Providing detailed error messages for invalid links
3. Redirecting users to dedicated error pages
4. Adding parameter validation with specific feedback
5. Improving type safety across deeplink handling
5 months ago
Matthew Raymer
26b98d8b0a
wip: Improve deep link validation and error handling
- Add comprehensive route validation with zod schema
- Create type-safe DeepLinkRoute enum for all valid routes
- Add structured error handling for invalid routes
- Redirect to error page with detailed feedback
- Add better timeout handling in deeplink tests
The changes improve robustness by:
1. Validating route paths before navigation
2. Providing detailed error messages for invalid links
3. Redirecting users to dedicated error pages
4. Adding parameter validation with specific feedback
5. Improving type safety across deeplink handling
5 months ago
Trent Larson
6f4fbc697f
fix 'give' query and restore confirmClaim method
5 months ago
Trent Larson
6c538de762
fix 'give' query and restore confirmClaim method
5 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
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
5 months ago
Trent Larson
62ae603778
fix linting
7 months ago
Trent Larson
19fd0da4b0
fix linting
7 months ago
Matthew Raymer
d9085ced6d
(chore): cleaning up formatting and relative references
7 months ago
Matthew Raymer
15783cdbe6
(chore): cleaning up formatting and relative references
7 months ago
Trent Larson
fe71c3f754
make member view available to onboard meeting organizer and reorganize buttons
7 months ago
Trent Larson
bb5913fef4
make member view available to onboard meeting organizer and reorganize buttons
7 months ago
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.
8 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.
8 months ago
Trent Larson
6ffbcfa9a1
catch more errors if something catastrophic happens to encrypted data
8 months ago
Trent Larson
af197f7c11
catch more errors if something catastrophic happens to encrypted data
8 months ago
Trent Larson
bb3807a805
switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
9 months ago
Trent Larson
251649e6fe
switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
9 months ago
Trent Larson
7acf921e82
refactor some verbiage & look-and-feel
9 months ago
Trent Larson
1714f4d087
refactor some verbiage & look-and-feel
9 months ago
Trent Larson
10bb79f695
refactor project screen: add action to record a give from it, and add checks to give confirmation buttons
9 months ago
Trent Larson
8db7ac3f6f
refactor project screen: add action to record a give from it, and add checks to give confirmation buttons
9 months ago
Trent Larson
7777fa202b
finish separation of daily reminder message, bump version to 0.3.34
9 months ago
Trent Larson
2758af6e6e
finish separation of daily reminder message, bump version to 0.3.34
9 months ago
Trent Larson
2c0c7ac256
add minute to notification scheduling & fix a bug, plus other tweaks
9 months ago
Trent Larson
f57d3b7707
add minute to notification scheduling & fix a bug, plus other tweaks
9 months ago
Trent Larson
53abf964b2
add basic page-by-page onboarding help
10 months ago
Trent Larson
149481d468
finish the loading of an invite RegisterAction when clicking on a link
11 months ago
Trent Larson
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
11 months ago
Trent Larson
9a9c9d3a06
jump from ideas directly into giving dialog choice
12 months ago
Trent Larson
a5248af4a3
move contact actions into the details page (prepping for checkboxes)
1 year ago
Trent Larson
7df6668dc6
put BTC before BX in unit rotation
1 year ago
Trent Larson
bdb544a624
fix error sharing image and failing to upload, fix upload in webkit/safari, and test it
1 year ago
Trent Larson
e0c50dcf62
add 'isRegistered' check to guard against many buttons
1 year ago
Trent Larson
d724d8093c
add ability to edit a GiveAction
1 year ago
Trent Larson
41a9c65afb
fix linting
1 year ago
Trent Larson
b2ebc2992b
cache the passkey JWANT access token for multiple signatures
1 year ago
Trent Larson
cd0a31e6f5
remove remaining getIdentity calls & fix QR code for did:peer
1 year ago
trentlarson
f6338c05ee
move low-level DID-related create & decode into separate folder ( #120 )
Co-authored-by: Trent Larson <trent@trentlarson.com>
Reviewed-on: https://gitea.anomalistdesign.com/trent_larson/crowd-funder-for-time-pwa/pulls/120
Co-authored-by: trentlarson <trent@trentlarson.com>
Co-committed-by: trentlarson <trent@trentlarson.com>
1 year ago
Trent Larson
7cb9e2aa52
replace remaining didJwt.createJwt calls with one that checks for did:peer
1 year ago