74 Commits

Author SHA1 Message Date
DocNR
ff8851bd04 feat(auth): implement auth system core infrastructure (Phase 1)
- Add state machine for authentication state management
- Add signing queue for background processing
- Add auth service for centralized authentication logic
- Add React context provider for components
- Keep feature flag disabled for now
2025-04-02 23:40:54 -04:00
DocNR
969163313a fix(auth): Improve authentication state handling and avatar display
* Add style prop to UserAvatar component for better customization
* Refactor UserAvatar to use getAvatarSeed utility for consistent avatar generation
* Fix React hook ordering issues in profile/overview.tsx to prevent crashes during auth state changes
* Add proper state initialization and cleanup during authentication transitions
* Ensure consistent fallback avatar display for unauthenticated users

These changes improve stability during login/logout operations and provide better visual continuity with Robohash avatars when profile images aren't available.
2025-04-02 21:11:25 -04:00
DocNR
755e86e30b fix(profile): standardize login experience across profile screens
- Create reusable NostrProfileLogin component for consistent UI across all screens
- Fix profile feed error when not authenticated by conditionally calling useSocialFeed
- Resolve hook ordering inconsistencies to prevent React errors
- Improve feed loading state management during authentication transitions
- Update all profile screens (overview, activity, progress, settings) to use shared component
- Add proper error handling for profile data loading when not authenticated

This change resolves the console error that appeared when accessing the profile tab
while not logged in, while also providing a better user experience through
consistent styling and messaging across all profile screens.
2025-04-01 21:28:50 -04:00
DocNR
fdd17ef261 Complete Android Amber integration and EAS build setup
- Updated UI resources and splash screens

- Added package configuration for EAS builds

- Updated iOS related configuration files

- Added necessary files for cross-platform builds

- Synchronized package dependencies
2025-04-01 00:04:33 -04:00
DocNR
8e68fcf60f Fix Android Amber signer integration and cleanup repo structure
- Added Amber external signer integration for secure private key management on Android

- Fixed authentication issues and NIP-55 protocol implementation

- Added comprehensive documentation in amber-integration-fixes.md

- Moved android_backup to external location to keep repo clean

- Updated .gitignore to exclude APK files
2025-04-01 00:03:41 -04:00
DocNR
aad1b875a3 Android NIP-55 Amber integration and nsec key handling fixes 2025-03-29 17:47:10 -07:00
DocNR
89504f48e8 feat(deployment): prepare app for iOS TestFlight submission
- Update outdated Expo packages to latest compatible versions
- Remove unmaintained expo-random package
- Remove unnecessary @types/react-native package
- Configure eas.json with preview and production profiles for iOS
- Fix updates URL in app.json with correct project ID
- Add /android and /ios to .gitignore to resolve workflow conflict
- Create comprehensive iOS TestFlight submission guide
- Add production flag in theme constants
- Hide development-only Programs tab in production builds
- Remove debug UI and console logs from social feed in production
- Update CHANGELOG.md with TestFlight preparation changes
All checks from expo-doctor now pass (15/15).
2025-03-28 21:22:20 -07:00
DocNR
3f2ababe4f nostr.band integration for follow/following count 2025-03-28 10:18:44 -07:00
DocNR
08bb9884bc fixed infinite loop in local/all workout toggle in history view 2025-03-28 07:24:09 -07:00
DocNR
e81012841f Merge branch 'stable-with-docs' 2025-03-26 20:03:16 -07:00
DocNR
22dcf81828 Restore documentation changes while maintaining stable codebase 2025-03-26 20:02:53 -07:00
DocNR
f17f0c4ff4 Add contact cache schema and service integration
- Add contact_cache table schema and migration
- Update useContactList hook with caching support
- Enhance RelayInitializer with cache initialization
- Update SocialFeedService to work with caching system
2025-03-24 22:08:10 -04:00
DocNR
b5bf32d10f Update RelayInitializer and SocialFeedService to use transaction lock 2025-03-24 21:51:15 -04:00
DocNR
4e5ca9fcaf Fix Following feed transaction conflicts and improve error handling
- Implemented global transaction lock mechanism in SocialFeedCache
- Updated ContactCacheService to use the transaction lock
- Enhanced Following feed refresh logic with retry mechanism
- Extended transaction lock to WorkoutService
- Updated documentation with transaction lock details
- Cleaned up code and improved error handling
2025-03-24 21:43:30 -04:00
DocNR
2316a93dc2 social feed wip, still having loading issues with following feed 2025-03-24 15:55:58 -04:00
DocNR
8c6a7ba810 Fix social feed issues: 1) Extended time range for feeds, 2) Improved database connection handling in SocialFeedCache, 3) Ensured POWR account is included in following feed 2025-03-24 11:29:32 -04:00
DocNR
9043179643 Add NDK Mobile Cache Integration Plan and enhance offline functionality 2025-03-23 15:53:34 -04:00
DocNR
a5d98ba251 Fix calendar date highlighting shape and improve workout date detection 2025-03-23 11:07:26 -04:00
DocNR
3004bcd4f8 Fix history tab navigation issues and improve workout detail error handling 2025-03-23 06:59:22 -04:00
DocNR
e4aa59a07e Add Profile Tab enhancements and Terms of Service modal 2025-03-22 23:21:26 -04:00
DocNR
329154fc3d fix(templates): preserve exercise IDs during template creation
- Modified NewTemplateSheet to store full exercise objects
- Updated handleAddTemplate to use original exercise IDs
- Fixed type definitions to support enhanced template exercises
2025-03-22 20:14:19 -04:00
DocNR
6a8589662d updated documentation 2025-03-22 19:27:24 -04:00
DocNR
58194c0eb3 restructure and optimization of social tab 2025-03-21 22:21:45 -04:00
DocNR
24e7f53ac3 fixed favorites refresh and fixed but in powrpacksection that wasn't showing filtered powr packs (directly adding powrpacks by hex id now) 2025-03-18 15:55:00 -04:00
DocNR
c6a9af080c added library store and fixed refresh issues in exercise and template screens in user library 2025-03-17 23:37:08 -04:00
DocNR
6ac0e80e45 splash screen, fixed delete exercises and templates when deleting powr pack bug, ui improvement to import powr pack screen 2025-03-17 20:20:16 -04:00
DocNR
f1411e8568 powr pack bug fixes 2025-03-16 21:31:38 -04:00
DocNR
80bdb87fdc removed mock data! using powr pack to seed library 2025-03-13 23:07:09 -04:00
DocNR
5b706b3894 bug fix to associate exercise and workouts in powr pack 2025-03-13 22:39:28 -04:00
DocNR
a3e9dc36d8 POWR Pack feature WIP - basic functionality, need to associate exercise events with workout template events. 2025-03-13 14:02:36 -04:00
DocNR
ea5dde32f4 android ui bugs 2025-03-12 22:35:41 -04:00
DocNR
43df1aeb79 android icon and other bug fixes 2025-03-12 19:23:28 -04:00
DocNR
43d6d7d12b added k tag for social kind 1 quote posts of workout events 2025-03-12 11:42:14 -04:00
DocNR
704fa27950 improved relay system, fixed bugs 2025-03-11 23:59:00 -04:00
DocNR
4cd62cf775 basic relay managment system working 2025-03-09 12:48:24 -04:00
DocNR
07fada6d07 new relay managment system 2025-03-09 11:15:28 -04:00
DocNR
29c4dd1675 feat(database): Add workout and template persistence
Implements database tables and services for workout and template storage:
- Updates schema to version 5 with new workout and template tables
- Adds WorkoutService for CRUD operations on workouts
- Enhances TemplateService for template management
- Creates NostrWorkoutService for bidirectional Nostr event handling
- Implements React hooks for database access
- Connects workout store to database layer for persistence
- Improves offline support with publication queue

This change ensures workouts and templates are properly saved to SQLite
and can be referenced across app sessions, while maintaining Nostr
integration for social sharing.
2025-03-08 15:48:07 -05:00
DocNR
001cb3078d history tab wip, still need to connect db 2025-03-07 23:46:41 -05:00
DocNR
3feb366a78 bug fix workout completion flow 2025-03-07 12:38:21 -05:00
DocNR
25d40b3a12 workout completion flow WIP 2025-03-07 10:09:55 -05:00
DocNR
b61381b865 updated with NDK-mobile library and removed custom nostr functions 2025-03-06 16:34:50 -05:00
DocNR
2564450333 Expo devclient development build 2025-03-06 14:18:10 -05:00
DocNR
4eb9d428a2 updated exercise/template UI, publication queue, forking of exercises (templates next) 2025-03-06 09:19:16 -05:00
DocNR
98a5b9ed09 add exercise to active workout and bug fixes 2025-03-05 14:37:38 -05:00
DocNR
f870f2a0ca nostr testing component (programs) functioning with all event kinds 2025-03-04 08:07:27 -05:00
DocNR
8e85ee4704 nostr testing component for publishing workout events 2025-03-03 22:40:11 -05:00
DocNR
173e4e31e4 update to nostr exercise nip and minor UI 2025-03-02 13:23:28 -05:00
DocNR
dca4ef5b33 nip update and WIP social tab 2025-03-01 13:43:42 -05:00
DocNR
15c973f333 updated header in tabs and searchbar in library 2025-02-27 20:24:04 -05:00
DocNR
0d460e8f3e fixed ui for template social feed 2025-02-27 00:13:44 -05:00