Mobile app - #40
Open
csibbach wants to merge 6 commits into
Open
Conversation
added 6 commits
August 11, 2026 12:45
- Introduced a new mobile PWA for the 1Shot Wallet, including a WalletConnect host. - Updated `AGENTS.md` to document the new `/mobile/` route. - Modified `Dockerfile` to include mobile assets and public files. - Enhanced `nginx.conf` to handle routing for the mobile application. - Added new mobile-specific files, including `index.html`, service worker, and icons. - Integrated WalletConnect functionality with the OWSProxy for seamless wallet interactions. - Updated `package.json` and `package-lock.json` to include new dependencies for WalletConnect and Reown WalletKit. - Adjusted TypeScript configurations to include mobile files in the build process. - Created scripts for generating mobile icons dynamically.
- Updated the EIP-1193 request message type to include a routed variant, ensuring proper tab ID assignment. - Enhanced validation for tab IDs in request handling to prevent invalid values. - Modified related functions across background, content, and sidepanel scripts to accommodate the new message structure. - Improved comments and documentation for better clarity on message types and their usage.
- Added new error messages for passkey timeout and failure scenarios in the style form. - Updated the OnboardingPanel to display error messages and toast notifications for better user feedback during wallet setup. - Introduced a new MPA plugin to handle routing for `/mobile/` and `/create/` paths, preventing SPA fallback to the Branding index. - Improved Vite configuration to support the new MPA structure and avoid caching issues during development. - Enhanced session store to track the readiness of the signing layer, improving overall session management.
- Updated the wallet session store to utilize a new `reconcileCachedWalletSession` function for improved session hydration. - Introduced a `clearWalletCreated` function to manage wallet creation state in local storage. - Enhanced onboarding logic to ensure users are directed to the onboarding process if the wallet is not fully created. - Improved address validation for EVM and Solana accounts to ensure usability before proceeding with the session.
- Added a new `runWhileUnlockInFlight` function to serialize post-create/unlock operations, preventing concurrent passkey ceremonies. - Refactored `getPublicKeyCachingRelayerAssertion` to improve handling of relayer challenges during passkey login and wallet creation. - Updated the `loginWithPasskey` and wallet creation logic to utilize the new function, ensuring proper state management and assertion caching. - Enhanced error handling and logging for relayer challenge minting failures, improving user feedback during authentication processes.
- Renamed `notifyOpener` to `notifyWallet` to better reflect its purpose in notifying the wallet. - Improved handling of `window.opener` to accommodate scenarios where it may be null, particularly in Safari extensions. - Introduced a `BroadcastChannel` for account creation handoff messages to ensure reliable communication even when `window.opener` is not available. - Updated related functions to streamline message handling and improve error management during account creation processes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PWA form factor for the wallet