Matthew Raymer
30e448faf8
refactor(qr): improve QR code scanning robustness and error handling
- Enhance JWT extraction with unified path handling and validation
- Add debouncing to prevent duplicate scans
- Improve error handling and logging throughout QR flow
- Add proper TypeScript interfaces for QR scan results
- Implement mobile app lifecycle handlers (pause/resume)
- Enhance logging with structured data and consistent levels
- Clean up scanner resources properly on component destroy
- Split contact handling into separate method for better organization
- Add proper type for UserNameDialog ref
This commit improves the reliability and maintainability of the QR code
scanning functionality while adding better error handling and logging.
2 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
3 months ago
Trent Larson
64830eeb05
fix linting (and change a little wording in onboarding page)
4 months ago
Trent Larson
2a23587c3b
make screen where user can create a group onboarding meeting
4 months ago
Trent Larson
6514f52b92
change all copied contact URLs to contact-import, and handle multiples & singles separately
5 months ago
Trent Larson
07c4e58e87
add sanity checks for importing bulk contacts, eg. when there is a truncated link
5 months ago
Trent Larson
702e44872f
switch so personal contact JWT is link to this server (not endorser.ch), make empty-did URL show user's info
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.
5 months ago
Trent Larson
b2ebc2992b
cache the passkey JWANT access token for multiple signatures
11 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>
11 months ago
Trent Larson
7cb9e2aa52
replace remaining didJwt.createJwt calls with one that checks for did:peer
11 months ago
Trent Larson
145a1da37e
linting cleanup
11 months ago
Trent Larson
bce003e508
change accessToken to take a DID
11 months ago
Trent Larson
45f0a14661
add expiration inside JWANT & refactor getHeaders to move toward supporting did:peer
11 months ago
trentlarson
4cb434fd5d
passkey test ( #116 )
Co-authored-by: Trent Larson <trent@trentlarson.com>
Reviewed-on: https://gitea.anomalistdesign.com/trent_larson/crowd-funder-for-time-pwa/pulls/116
Co-authored-by: trentlarson <trent@trentlarson.com>
Co-committed-by: trentlarson <trent@trentlarson.com>
12 months ago
Jason Buchanan
ef5f81932d
Initial stab at vitejs update
1 year ago
Trent Larson
934664b9c9
add the hashed-next-key to the contact data, shown & stored
1 year ago
Trent Larson
94051e6ba9
revert changes that are contained in other PRs
2 years ago
Trent Larson
ce06e8f0fa
update derivation path to the one for time
2 years ago
Trent Larson
116b239616
change derivation path, add task to test app updating
2 years ago
Trent Larson
94d9c425ad
add QR scanner for adding a contact
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
754bced2a9
Considerable cleanup. I think I also found the issue from the other day with values not loading from settings.
2 years ago
Trent Larson
cfeabf05a4
refactor DB organization (prepping for more tables)
2 years ago
Trent Larson
2a7c858662
refactor: use our own SimpleSigner since library version is deprecated
2 years ago
Trent Larson
693df1bda1
feat: switch to the SimpleSigner code for working signatures
2 years ago
Matthew Aaron Raymer
ba85663048
Linted
2 years ago
Trent Larson
9d566fa977
fix: use SimpleSigner directly from did-jwt
2 years ago
Matthew Aaron Raymer
150b35c4c7
Update with our own SimpleSigner
2 years ago
Matthew Aaron Raymer
f858a4d29a
Linted
2 years ago
Matthew Aaron Raymer
f021fcdb1c
New Project
2 years ago
Matthew Aaron Raymer
6325bcbe35
Work in progress
2 years ago
Matthew Aaron Raymer
0ee35e4946
Added variation of accessToken method carried over from endorser-mobile
2 years ago
Matthew Aaron Raymer
b58c0ce820
First iteration of account creation. More refactoring to come
3 years ago