Conversation
Enhance README with detailed project structure, setup instructions, and development guidelines for the OWS Branding Layer of the 1Shot Wallet.
…ing Layer, removing the vendor directory. Update Dockerfile, package.json, and README to reflect new dependencies and build process. Implement wallet functionality with onboarding, backup, and credential management components. Enhance UI with modals and panels for user interaction.
- Added `zod` as a dependency in `package.json` and `package-lock.json`. - Updated the README to reflect the integration of `shadcn/ui` in the 1Shot Wallet branding layer. - Introduced a new `StyleProvider` and `styleController` for managing theme and style settings. - Implemented a custom RPC method `setStyle` for dynamic theming, allowing host integration to customize branding. - Refactored components to utilize the new styling context and applied default styles. - Expanded the roadmap to include styling features and integration steps for developers.
- Introduced a new `host` directory containing the Test Host Layer for testing the integration between the Branding Layer and the wallet. - Added `dev:host` script to `package.json` for running the Test Host Layer. - Updated `.env.example` to include new configuration options for the Test Host Layer. - Created a new `README.md` for the Test Host Layer with setup instructions and usage details. - Implemented a basic HTML structure and styles for the Test Host interface, allowing interaction with the wallet. - Enhanced existing components to support the new styling and functionality, including dynamic theming through the `setStyle` RPC method. - Updated `package-lock.json` and `package.json` to include new dependencies and workspace configurations.
- Changed the branding layer's base path from `/wallet/` to the root (`/`), simplifying the URL structure. - Updated the Dockerfile to copy the entire build output to the Nginx HTML directory. - Modified Nginx configuration to serve the branding layer from the root path. - Created a new `AGENTS.md` file with instructions for embedding the 1Shot Wallet. - Adjusted various documentation files to reflect the new URL structure and usage instructions. - Enhanced the development scripts and environment configurations for improved local testing.
- Replaced the existing modal implementation with a new Dialog component using shadcn Dialog for better accessibility and functionality. - Updated the MainPanel to conditionally render buttons based on backup status. - Introduced new Input, Label, and Textarea components for consistent UI styling. - Enhanced BackupModals to wait for signer slots before proceeding with backup and restore actions. - Improved SetupModals to utilize the new Input and Label components for better user experience. - Added new dialog-related components (Dialog, DialogContent, DialogHeader, etc.) to streamline modal usage across the application.
- Updated the roadmap to mark the completion of the `connect` migration. - Added new copy options for the connect modal, including title, body, reject label, and continue label. - Integrated new input fields for connect modal title and continue button in the HTML structure. - Modified the `readStyleForm` and `fillStyleForm` functions to handle new connect modal properties. - Updated the `ConnectModal` component to utilize dynamic copy for improved user experience. - Enhanced style management to support new connect modal copy options.
- Marked the `walletSetup` migration as complete in the roadmap. - Added new copy options for the wallet setup modal, including title, body, cancel label, login label, and create label. - Integrated new input fields for wallet setup title and create account in the HTML structure. - Updated the `readStyleForm` and `fillStyleForm` functions to handle new wallet setup properties. - Enhanced the `WalletSetupModal` component to utilize dynamic copy for improved user experience. - Improved style management to support new wallet setup modal copy options.
- Marked the `passkeyName` migration as complete in the roadmap. - Added new copy options for the passkey name modal, including title, body, field label, placeholder, empty error, cancel label, and continue label. - Integrated new input fields for passkey name and continue action in the HTML structure. - Updated the `readStyleForm` and `fillStyleForm` functions to handle new passkey name properties. - Enhanced the `PasskeyNameModal` component to utilize dynamic copy for improved user experience. - Improved style management to support new passkey name modal copy options.
- Introduced Zustand for state management by adding `zustand` as a dependency. - Created `sessionStore` to manage wallet session state, including readiness, errors, and addresses. - Implemented `modalStore` to handle modal queue and active modal state. - Updated `WalletProvider` to utilize the new session store for managing wallet state. - Refactored components (`App`, `MainPanel`, `ModalHost`) to use the new stores for state management. - Marked the addition of Zustand in the roadmap as complete.
- Introduced a new React-based structure for the host application, replacing the previous HTML/JavaScript setup. - Added Tailwind CSS and ShadCN for improved styling and design consistency. - Implemented a new `App` component to manage the main application logic and UI. - Created a `styleForm` module to handle dynamic styling options for the host. - Added new SVG assets for branding and favicon. - Updated the roadmap to reflect the completion of the host tester's design and functionality enhancements.
…tion - Added a new dependency entry for the `@1shotapi/ows-provider` package in the package-lock.json, linking it to a local path. - Modified the host's package.json to reference the local `@1shotapi/ows-provider` package. - Enhanced the App component to support inline wallet presentation mode, improving the user experience during design mode. - Updated the DesignPanel component to accommodate the new inline wallet preview functionality. - Refactored the WalletConfigurator to streamline style application feedback.
… fields - Introduced `react-colorful` as a dependency for color selection. - Updated `WalletConfigurator` to include a logo URL field and reorganized the layout into tabs for better user experience. - Enhanced form state management by adding new properties for logo URL and additional text fields. - Improved styling capabilities by integrating color picker components for theme customization.
- Added new dependencies: `@simplewebauthn/browser` and `@tanstack/react-table` for improved credential handling and table functionalities. - Refactored credential list management by replacing the `CredentialListModal` with a new `CredentialsTab` component, providing a more integrated user experience. - Introduced `CredentialDetailDialog` for displaying detailed information about stored credentials. - Updated roadmap to reflect changes in credential management structure and UI enhancements. - Improved styling and layout for better usability in the wallet interface.
- Bumped versions of `@1shotapi/ows-oid4`, `@1shotapi/ows-signer-utils`, `@1shotapi/ows-types`, and `@1shotapi/ows-wallet-utils` for improved features and fixes. - Implemented USDC balance checking and sending capabilities in the wallet interface. - Enhanced the `WalletActions` component to support USDC transactions with appropriate input fields and actions. - Added a new `SendTransactionModal` for transaction approval, improving user interaction during USDC transfers. - Updated styling and configuration to accommodate new transaction features and ensure a seamless user experience.
- Replaced manual copy functionality with the new CopyableText component in MainPanel and CreateBackupModal for improved code clarity and reusability. - Removed unused copy state management and related logic from MainPanel. - Simplified the backup modal by integrating CopyableText for displaying the encrypted private key.
arc is new default network
Feature/new login
- Added `focusWallet` and `unfocusWallet` RPC methods to enable host-controlled wallet modes. - Introduced `FOCUS_USDC_ARC` and `FOCUS_USDT_BASE` constants for specific asset focus actions. - Updated `MainPanel` to conditionally render `AssetDetails` when in focused mode. - Enhanced `WalletActions` component with buttons for focusing and unfocusing the wallet. - Created `AssetDetails` component to display detailed information for focused assets. - Modified session store to manage wallet mode and focused asset address state.
- Introduced `addAsset` RPC method to allow users to propose tracked assets with user confirmation. - Updated `SKILL.md` to include `addAsset` in the custom RPC section and clarified its functionality. - Implemented UI components in `WalletActions` for adding Arc USDC and Base USDT assets. - Enhanced `MainPanel` to support asset details with the appropriate chain ID. - Added `AddAssetModal` for user confirmation during asset addition. - Updated session store to track the count of added assets, ensuring the Balances tab refreshes correctly. - Modified styles and types to accommodate new balances functionality and improve user experience.
- Removed legacy asset management files and interfaces, streamlining the codebase. - Added `HardcodedKnownAssetRepository` and `LocalStorageTrackedAssetRepository` for improved asset tracking and management. - Updated `AGENTS.md` to reflect new domain layers and branded types structure. - Enhanced `AssetDetails`, `BalanceDisplay`, and `AssetList` components to utilize new asset types and repositories. - Improved user experience by ensuring live balance updates and better asset resolution logic. - Clarified `addAsset` functionality in `SKILL.md` to specify ERC-20 requirements and user confirmation process.
- Added new user-facing copy for balances and receiving assets in `AGENTS.md`. - Updated `styleForm.ts` and `WalletConfigurator.tsx` to include fields for balance and receive labels, titles, and messages. - Introduced `QRCode` and `ReceiveModal` components to display wallet addresses and QR codes for receiving assets. - Enhanced `AssetDetails` to utilize the new receive functionality and display appropriate labels. - Updated `defaults.ts` and `registerSetStyle.ts` to support new style properties for receiving assets.
- Introduced `TransferTokensModal` for user-initiated ERC-20 token transfers, allowing users to specify recipient and amount. - Added `ConfirmTransferModal` to confirm transfer details before execution. - Updated `AssetDetails` to include a send button that opens the transfer modal. - Enhanced `AGENTS.md` to document new domain layers and transaction utilities. - Refactored transaction handling with the new `OneshotRelayerRepository` for improved transaction submission. - Updated various components to support new transaction-related features and UI elements.
- Introduced `SentTransactionModal` to provide user confirmation after a successful token transfer. - Updated `TransferTokensModal` to display the new modal upon successful transaction submission. - Enhanced form validation UX to keep the submit button disabled until all required fields are valid. - Added new style properties for transaction confirmation messages in `styleForm.ts` and `defaults.ts`. - Updated `AGENTS.md` to document new form validation behavior and transaction confirmation flow.
- Introduced `PasskeyPromptModal` to display non-interactive prompts during WebAuthn ceremonies. - Updated `AGENTS.md` to document the new passkey ceremony flow and UI requirements. - Enhanced `styleForm.ts` and `defaults.ts` with new style properties for passkey prompts. - Implemented `withPasskeyPrompt` utility to manage passkey prompt visibility during signing operations. - Updated `WalletConfigurator.tsx` to include fields for customizing passkey prompt titles. - Added `EPasskeyPromptReason` enum to categorize different passkey prompt scenarios. - Refactored relevant components to integrate passkey prompt functionality seamlessly.
- Introduced new fields for customizing passkey prompt titles in `styleForm.ts` and `WalletConfigurator.tsx`. - Added titles for creating, encrypting, decrypting, and backing up passkeys to enhance user experience during passkey ceremonies. - Updated relevant UI components to support the new passkey prompt functionalities.
UI refinements
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.
No description provided.