Repository navigation
Popup UI overhaul: tabbed IA, pubkey/npub/DID switcher, in-popup export/reset, and inline validation - #40
Merged
Conversation
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.
Summary
Overhauls the main extension popup (
popup/popup.html,popup/popup.css,popup/popup.js) to resolve vertical crowding, eliminate blocking browser dialogs, fix form state bugs, and improve accessibility.Key Improvements
Unlockedpill (fixes the closed-padlock icon contradiction) and a dedicated header Lock button.Revokebutton.Identity|Sites (N)|Settings) with keyboard arrow navigation (ArrowLeft/ArrowRight), separating identity, trusted sites (with inline bulkRemove all), and settings/danger zone cleanly.npub/did:nostr/hexswitcher:npub(via existinghexToNpub),did:nostr, andhexwith one-click copy for whichever format is active.alert(),confirm(), orprompt():nsec/hexswitcher, and Copy button.role="alert") and live passphrase/key validation checklists across Generate, Import, and Unlock.Replacewas offered).<form>for Enter-to-submit and added Show/Hide toggles on all passphrase and private-key inputs.Importing…button onhandleImport(missingfinally), cleared stale secrets on Import open/cancel, awaitedgetPasskeyConfig()before showing#unlockScreen(eliminating flash of passphrase inputs on derived passkeys), and syncedchrome.storage.onChangedfor lock/unlock and settings changes.--text-faint→--text-muted), added missing labels/aria-labelledbyattributes, replaced<a href="#">action links with<button type="button">, added responsivebody.own-windowsizing, and respectedprefers-reduced-motion.Testing
npm run buildnpm test(251/251 passing, including newtest/popup-helpers.test.js)npm run lint+npx eslint popup/