Commit Graph
20 Commits
Author SHA1 Message Date
google-labs-jules[bot] 8bbe3f623d Fix login modal nsec error visibility
- Removed `required` attribute from nsec secret input in `components/login-modal.html` to prevent browser native validation from suppressing custom error UI.
- Updated `js/ui/loginModalController.js` to ensure `required` property is disabled in JavaScript logic.
- Added comprehensive unit tests in `tests/login-modal-controller.test.mjs` to verify:
    - Custom error message is shown on empty submission.
    - Required attributes remain disabled when toggling between unlock/import modes.
    - NIP-46 handshake panel is correctly displayed (regression check).
- Verified fix with existing E2E test `tests/e2e/ui-modals.spec.ts` (NSEC error assertion passes).
2026-01-22 18:59:02 +00:00
google-labs-jules[bot] 4196a6bb42 Refactor NIP-46 login UI to be cleaner and QR-first
- Simplified `components/login-modal.html` to center the QR code and use a "Copy Link" button instead of a large textarea.
- Updated `js/ui/loginModalController.js` to support the new DOM structure and error handling.
- Added `docs/nip46-roadmap.md` to document current state and future features.
2026-01-16 19:40:46 +00:00
google-labs-jules[bot] eed0193d18 Fix stuck Create Account button after cancellation
- Fix a logic error where the `isSelectionInProgress` flag was not reset if the user cancelled the "Create Account" flow (or other flows with early returns).
- Wrapped the entire `handleProviderSelection` logic in a `try...finally` block to ensure the flag is always reset, preventing the button from becoming unresponsive.
- Verified with reproduction test that cancelling and re-opening the "Create Account" view now works correctly.
2026-01-16 12:58:55 +00:00
google-labs-jules[bot] a27dcd7a1e Fix double-click issue in LoginModal and add Generate Keys button
- Prevent race condition where double-clicking "Create Account" could stack multiple views, causing navigation issues on cancel.
- Implement "Generate Keys" button in the Create Account view to defer key generation until user action, as requested by the user.
- Ensure keys are not generated immediately upon opening the view.
- Fix memory leak in LoginModalController destroy method.
2026-01-16 12:53:25 +00:00
google-labs-jules[bot] 0e6bc392c6 Fix login modal create account cancellation and key persistence logic
- Always generate fresh keys when opening the Create Account view, as per user request.
- Fix issue where cancelling the Create Account view could trigger a re-entry or double-click behavior by adding event.stopPropagation() to the Cancel button.
- Fix memory leak in LoginModalController destroy method by properly clearing the modal close observer and interval.
2026-01-16 12:42:06 +00:00
thePR0M3TH3AN 6724166f9c Add comments for login modal generation guard 2026-01-15 14:58:20 -05:00
thePR0M3TH3AN 4da17853cd Guard generate key reuse until modal closes 2026-01-15 14:53:36 -05:00
thePR0M3TH3AN b186e216ed Avoid persisting generated keys without passphrase 2026-01-15 14:25:03 -05:00
google-labs-jules[bot] 5ee8ec614a feat: add 'Create Account' option to login modal
- Adds a new documentation page `content/nostr-keys.md` explaining Nostr keys.
- Updates the sidebar to include a link to the new documentation.
- Registers a new 'generate' auth provider in `js/services/authProviders/`.
- Updates `components/login-modal.html` with a new template for key generation.
- Implements `promptForGenerateOptions` in `js/ui/loginModalController.js` to handle client-side key generation using `NostrTools`.
- Allows users to generate keys, copy/download them, and log in directly with the new `nsec`.
2026-01-15 16:14:23 +00:00
thePR0M3TH3AN 2e30087ed1 Refactor login modal flow for profile addition 2025-10-22 22:38:36 -04:00
thePR0M3TH3AN e3c7b93d1e Ensure NIP-46 QR code renders on white background 2025-10-21 22:31:48 -04:00
thePR0M3TH3AN 407d02d12a Fix nip46 handshake UI and guard QR stubs 2025-10-21 20:28:35 -04:00
thePR0M3TH3AN 386ad854d2 Add client-first NIP-46 handshake flow 2025-10-21 19:25:26 -04:00
thePR0M3TH3AN 616fad1612 Revamp login modal auth provider cards 2025-10-21 18:37:41 -04:00
thePR0M3TH3AN d390f0c444 Merge pull request #766 from PR0M3TH3AN/codex/update-login-modal-design
Refresh login modal design and button styling
2025-10-21 17:49:25 -04:00
thePR0M3TH3AN 04b092507f Refresh login modal layout and styling 2025-10-21 17:48:22 -04:00
thePR0M3TH3AN aed5c7f083 Allow profile additions to use provider picker 2025-10-21 17:45:01 -04:00
thePR0M3TH3AN d3c3ac1ee7 Finalize NIP-46 remote signer integration 2025-10-21 16:28:26 -04:00
thePR0M3TH3AN cf65ace78e Add direct key auth flow with encrypted key storage 2025-10-21 15:43:53 -04:00
thePR0M3TH3AN a86c86f695 Refactor login modal provider handling 2025-10-21 14:19:30 -04:00