Matthew Raymer
3553ac8e30
docs(PhotoDialog): improve component documentation and error handling
- Add comprehensive JSDoc documentation for component features and capabilities
- Fix line wrapping in file-level documentation header
- Improve error message formatting for better readability
- Remove unused PhotoResult interface
- Maintain consistent documentation style with project standards
The documentation improvements help developers better understand the component's
cross-platform photo handling capabilities and error management approach.
4 months ago
Matthew Raymer
a3f7b651d2
fix: improve error handling in photo upload
- Add proper unknown type for error handling in PhotoDialog
- Remove any type in favor of unknown for better type safety
- Fix error message access with type guards
5 months ago
Matthew Raymer
17c9c22741
refactor: improve camera controls and modularize data export
- Add detailed error logging for image upload failures in PhotoDialog and SharedPhotoView
- Extract DataExportSection into standalone component with proper prop handling
- Fix Backup Identifier Seed visibility by passing activeDid prop
5 months ago
Matthew Raymer
7db3974459
feat: enhance error logging and upgrade Android build tools
- Add detailed error logging for image upload failures
- Upgrade Gradle to 8.11.1 and Android build tools to 8.9.0
- Add Capacitor camera and filesystem modules to Android build
5 months ago
Matthew Raymer
4b203ed815
chore(deps): Add Capacitor camera and filesystem plugins
- Add @capacitor/camera@6.0.0 for cross-platform photo capture
- Add @capacitor/filesystem@6.0.0 for file system operations
- Maintain compatibility with existing Capacitor core v6.2.1
These plugins enable native camera access and file system operations
for the Capacitor platform implementation.
5 months ago
Matthew Raymer
b0a66d790d
**refactor(PhotoDialog, PlatformService): Implement cross-platform photo capture and encapsulated image processing**
- Replace direct camera library with platform-agnostic `PlatformService`
- Move platform-specific image processing logic to respective platform implementations
- Introduce `ImageResult` interface for consistent image handling across platforms
- Add support for native camera and image picker across all platforms
- Simplify `PhotoDialog` by removing platform-specific logic
- Maintain existing cropping and upload functionality
- Improve error handling and logging throughout
- Clean up UI for better user experience
- Add comprehensive documentation for usage and architecture
**BREAKING CHANGE:** Removes direct camera library dependency in favor of `PlatformService`
This change improves separation of concerns, enhances maintainability, and standardizes cross-platform image handling.
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
6 months ago
Matthew Raymer
3dbb836ae5
style: reorder v-model and v-bind directives
Changes:
- Move v-model directives before other attributes
- Move v-bind directives before event handlers
- Reorder attributes for better readability
- Fix template attribute ordering across components
- Improve eslint rules
- add default vite config for testing (handles nostr error too)
This follows Vue.js style guide recommendations for attribute
ordering and improves template consistency.
6 months ago
Matthew Raymer
79ef59c5a9
refactor: migrate interfaces to dedicated directory
Reorganizes TypeScript interfaces into a modular structure:
- Create dedicated interfaces directory with specialized files
- Split interfaces by domain (claims, common, limits, records, user)
- Update imports in endorserServer.ts to use new interface locations
- Replace 'any' types with 'unknown' for better type safety
- Add proper type imports and exports
This improves code organization and maintainability by:
- Centralizing interface definitions
- Reducing file size of endorserServer.ts
- Making interface relationships more explicit
- Improving type safety with stricter types
6 months ago
Trent Larson
898821c9aa
fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)
6 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
7189cce25e
ensure overlays show on top of relative+absolute positioning like green pluses
9 months ago
Trent Larson
1d48da6855
disable checkboxes for nostr partner messages; adjust linting warnings
11 months ago
Trent Larson
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
11 months 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
145a1da37e
linting cleanup
1 year ago
Trent Larson
bce003e508
change accessToken to take a DID
1 year ago
Trent Larson
33a340326f
set the correct active camera number when it starts
1 year ago
Trent Larson
fd112bd447
allow any image URL for gifts & profiles
1 year ago
Trent Larson
7d6b210ee1
allow file choice for gift, plus other UI fixes
1 year ago
Trent Larson
6c28828c0a
fix cropping problem where long images go off the screen
1 year ago
Trent Larson
6af239378c
bump to v 0.3.10, fix image upload on Chrome
1 year ago
Trent Larson
17c901b1de
add file-chooser to the profile image selection
1 year ago
Trent Larson
7f02ba29a3
add a share_target for people to add a photo
1 year ago
Trent Larson
883687f1c3
make so cropping isn't behind header; delete profile image from storage when deleted
1 year ago
Trent Larson
581a374b05
show contact's or user's icon in more places
1 year ago
Trent Larson
1009574721
crop the image and store online and in settings
1 year ago
Trent Larson
75f9f20ea3
fix check for more camera-device options
1 year ago
Trent Larson
9059f7a9a7
add button on photo to switch to mirror mode
1 year ago
Trent Larson
cf2e800dec
add a camera-switch button
1 year ago
Jose Olarte III
b6e344a15e
Propagated button improvements across views
1 year ago
Trent Larson
313cd79e60
finalize the photo-taking code, adding comments and removing logging
1 year ago
Jose Olarte III
cbf8cb9f46
Fixed placement of upload/retry buttons
1 year ago
Jose Olarte III
fe0668e4b3
Improved Camera Popup
1 year ago
Trent Larson
a230506d96
change the X and picture button so that landscape is all functional (if not great-looking)
1 year ago
Trent Larson
c49c55d394
change the photo ratios to fix all but portrait-orientation on mobile-emulation
1 year ago
Trent Larson
251986d2bc
make the photo show in a pop-up dialog
1 year ago
Trent Larson
49bb1c07b7
fix file extension
1 year ago
Trent Larson
476d35452a
send the claim type with an image
1 year ago
Trent Larson
c602c5ce50
add some other image deletions in other cases
1 year ago
Trent Larson
e4543457e2
add image onto give claim, then display on feel (full round-trip, baby!)
1 year ago
Trent Larson
c58f012d2c
allow viewing and deletion of an image
1 year ago
Trent Larson
792e9cb648
separate picture taking from uploading
1 year ago
Trent Larson
cae2bbc4ff
make styled button to take picture
1 year ago
Trent Larson
0eb64ed716
add authentication token for image server, change default image server to localhost
1 year ago
Trent Larson
92b924643e
fix camera resolution, parameterize image API server
1 year ago
Trent Larson
c696de33f3
add page to take a picture and upload to an image server
2 years ago