Trent Larson
8d1511e38f
convert all remaining DB writes & reads to SQL (with successful registration & claim)
1 month ago
Trent Larson
7de4125eb7
add SQL DB access to everywhere we are using the DB, up to the "C" files
1 month ago
Trent Larson
4c1b4fe651
fix linting
1 month ago
Trent Larson
0bfc18c385
add encryption & decryption for the sensitive identity & mnemonic in SQL DB
1 month ago
Matthew Raymer
0f1ac2b230
fix: move lexical declarations outside case blocks in AbsurdSqlDatabaseService
- Move queryResult and allResult declarations outside switch statement
- Change const declarations to let since they're now in outer scope
- Remove const declarations from inside case blocks
This fixes the 'no-case-declarations' linter errors by ensuring variables
are declared in a scope that encompasses all case blocks, preventing
potential scoping issues.
Note: Type definition errors for external modules remain and should be
addressed separately.
1 month ago
Trent Larson
5d8175aeeb
add encryption for the two SQL columns, replace basic DB utils, add USE_DEXIE_DB flag, and start adding SQL everywhere
1 month ago
Trent Larson
92dadba1cb
rename the absurd-sql-specific items for clarity
1 month ago
Trent Larson
3a6f585de0
adjust so DB calls go to the factory
1 month ago
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.
1 month ago
Trent Larson
5f24f4975d
fix linting
1 month ago
Trent Larson
a38934e38d
fix problems with race conditions and multiple DatabaseService instances
1 month ago
Trent Larson
83771caee1
add more to the inital migration, and refactor the locations of types
1 month ago
Trent Larson
1129a13e20
add more error handling and messaging when there are bad DB errors
1 month 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
3 months ago
Trent Larson
6f4fbc697f
fix 'give' query and restore confirmClaim method
3 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
4 months ago
Trent Larson
62ae603778
fix linting
5 months ago
Matthew Raymer
d9085ced6d
(chore): cleaning up formatting and relative references
5 months ago
Trent Larson
fe71c3f754
make member view available to onboard meeting organizer and reorganize buttons
5 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.
6 months ago
Trent Larson
6ffbcfa9a1
catch more errors if something catastrophic happens to encrypted data
7 months ago
Trent Larson
bb3807a805
switch the encryption secret from localStorage to IndexedDB (because localStorage gets lost so often)
7 months ago
Trent Larson
7acf921e82
refactor some verbiage & look-and-feel
7 months ago
Trent Larson
10bb79f695
refactor project screen: add action to record a give from it, and add checks to give confirmation buttons
7 months ago
Trent Larson
7777fa202b
finish separation of daily reminder message, bump version to 0.3.34
7 months ago
Trent Larson
2c0c7ac256
add minute to notification scheduling & fix a bug, plus other tweaks
7 months ago
Trent Larson
53abf964b2
add basic page-by-page onboarding help
8 months ago
Trent Larson
149481d468
finish the loading of an invite RegisterAction when clicking on a link
9 months ago
Trent Larson
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
9 months ago
Trent Larson
9a9c9d3a06
jump from ideas directly into giving dialog choice
10 months ago
Trent Larson
a5248af4a3
move contact actions into the details page (prepping for checkboxes)
10 months ago
Trent Larson
7df6668dc6
put BTC before BX in unit rotation
11 months ago
Trent Larson
bdb544a624
fix error sharing image and failing to upload, fix upload in webkit/safari, and test it
11 months ago
Trent Larson
e0c50dcf62
add 'isRegistered' check to guard against many buttons
11 months ago
Trent Larson
d724d8093c
add ability to edit a GiveAction
11 months ago
Trent Larson
41a9c65afb
fix linting
11 months ago
Trent Larson
b2ebc2992b
cache the passkey JWANT access token for multiple signatures
11 months ago
Trent Larson
cd0a31e6f5
remove remaining getIdentity calls & fix QR code for did:peer
12 months 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>
12 months ago
Trent Larson
7cb9e2aa52
replace remaining didJwt.createJwt calls with one that checks for did:peer
12 months ago
Trent Larson
bce003e508
change accessToken to take a DID
12 months ago
Trent Larson
45f0a14661
add expiration inside JWANT & refactor getHeaders to move toward supporting did:peer
12 months ago
Trent Larson
42fde503e3
make a passkey-generator in start & home pages, and make that the default
12 months ago
Trent Larson
e88eea7f36
add BX currency, add link for user's activity, tweak verbiage
1 year ago
Trent Larson
230773a917
add Confirm Gift screen for simpler confirmation
1 year ago
Trent Larson
8571c78a53
for scan on QR code screen, import and keep on that screen
1 year ago
Trent Larson
b73d2a3b58
fix linting
1 year ago
Trent Larson
3fbf68b117
filter by selections (now all working), add cache for plans
1 year ago
Trent Larson
911203c190
adjust more code to the PushSubscriptionJSON
1 year ago
Trent Larson
2da0394003
adjust the notification-subscription objects to try and send correct info
1 year ago