Files
Zaki 40b3154a34 feat: MFA tools, single-instance, tray polish, prefs persistence
Session highlights:

- feat(prefs): DPAPI-backed key/value store (PM.UserPrefs) — fixes
  rememberedUsername being lost across reboots due to the random
  ephemeral HTTP port changing the localStorage origin every launch.
  Bridge cmd://prefs/{get,set} round-trips through Delphi.

- feat(tray): icon visible from startup (NIM_ADD at constructor, not
  at first minimize). Tray context menu themed via uxtheme!135
  SetPreferredAppMode so it follows the app's dark/light setting.

- feat(single-instance): named mutex + RegisterWindowMessage broadcast.
  Second launch posts WM_PMSHOW to HWND_BROADCAST and exits; the
  running bridge restores the window from tray. Mutex lives in Local\
  namespace so distinct Windows users can still each run one.

- feat(mfa): Authenticator sidebar view (live TOTP codes for every
  entry with a secret) + standalone TOTP generator modal (paste
  base32 / otpauth:// URI, or generate a random 20-byte secret).

- feat(sidebar): Folders / Tags / Tools sections collapsible with
  chevron toggle. Badge counts stay visible when collapsed. State
  persisted in settings_json (synced across devices).

- feat(autofill): hotkey when vault is locked now restores the app
  and focuses the master password input instead of no-op'ing
  silently. Cleaner UX for the common "I hit Ctrl+Shift+L but the
  vault was locked" path.

- feat(quick-unlock): when enabled, skip lockVault on Windows lock /
  sleep. Rationale: the DPAPI blob already gates access via the
  Windows account, so re-locking on top of the OS lock is redundant.
  Idle auto-lock still fires (separate opt-in).

- fix(quick-unlock): re-sync state.quickUnlockEnabled from DPAPI
  source-of-truth at boot, instead of trusting (now-volatile)
  localStorage.

- docs: CLAUDE.md updated with all new modules, bridge commands,
  and the port-ephemeral pitfall.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-08 21:31:39 +01:00

44 lines
1.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"
shape-rendering="crispEdges">
<!-- Pixel-perfect hexagon: vertices at integer coords -->
<!-- Strategy: paint hex row by row as 1px tall rects (no diagonals) -->
<!-- Row 1 (y=0): tip 4px wide -->
<rect x="6" y="0" width="4" height="1" fill="#0891b2"/>
<!-- Row 2 (y=1): 6px -->
<rect x="5" y="1" width="6" height="1" fill="#0891b2"/>
<!-- Row 3 (y=2): 8px -->
<rect x="4" y="2" width="8" height="1" fill="#06b6d4"/>
<!-- Row 4 (y=3): 10px -->
<rect x="3" y="3" width="10" height="1" fill="#06b6d4"/>
<!-- Row 5 (y=4): 12px -->
<rect x="2" y="4" width="12" height="1" fill="#06b6d4"/>
<!-- Rows 5-10 (y=5..10): full 14px wide body -->
<rect x="1" y="5" width="14" height="6" fill="#06b6d4"/>
<!-- Row 11 (y=11): 12px -->
<rect x="2" y="11" width="12" height="1" fill="#06b6d4"/>
<!-- Row 12: 10px -->
<rect x="3" y="12" width="10" height="1" fill="#06b6d4"/>
<!-- Row 13: 8px -->
<rect x="4" y="13" width="8" height="1" fill="#0891b2"/>
<!-- Row 14: 6px -->
<rect x="5" y="14" width="6" height="1" fill="#0891b2"/>
<!-- Row 15: tip 4px -->
<rect x="6" y="15" width="4" height="1" fill="#0891b2"/>
<!-- Center dot: 4x4 dark square + 2x2 purple accent -->
<rect x="6" y="6" width="4" height="4" fill="#0f172a"/>
<rect x="7" y="7" width="2" height="2" fill="#a78bfa"/>
</svg>