Skip to content

Commit 883bdbe

Browse files
thephezclaude
andcommitted
refactor(dashnote): clarify login secret label and surface key-type requirement
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 41eb2e5 commit 883bdbe

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

example-apps/dashnote/src/components/LoginModal.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,13 @@ export function LoginModal({ open, onClose }: LoginModalProps) {
253253

254254
<label className="flex flex-col gap-1">
255255
<span className="text-[10px] font-semibold uppercase tracking-[0.12em] text-ink-4">
256-
{showRememberedPanel ? "Secret" : "Identity Secret"}
256+
{showRememberedPanel
257+
? "Mnemonic or Private Key"
258+
: "Identity Mnemonic or Private Key"}
257259
</span>
258260
{!showRememberedPanel && (
259261
<p className="text-[11px] text-ink-3">
260-
Paste a recovery phrase or a WIF private key. Need an identity?
261-
Use the{" "}
262+
Need an identity? Use the{" "}
262263
<a
263264
href="https://bridge.thepasta.org/"
264265
target="_blank"
@@ -276,11 +277,7 @@ export function LoginModal({ open, onClose }: LoginModalProps) {
276277
required
277278
value={secret}
278279
onChange={(event) => setSecret(event.target.value)}
279-
placeholder={
280-
showRememberedPanel
281-
? "Enter the mnemonic phrase or private key for this identity"
282-
: "mnemonic phrase or private key (WIF)"
283-
}
280+
placeholder="Mnemonic phrase or WIF private key (high/critical)"
284281
className="rounded-md border border-line bg-bg px-3 py-2 text-[13px] text-ink outline-none transition focus:border-accent-dim"
285282
/>
286283
{isWifInput && wifPreview.status !== "idle" && (
@@ -426,9 +423,8 @@ export function LoginModal({ open, onClose }: LoginModalProps) {
426423
)}
427424

428425
<p className="text-[11px] text-ink-4">
429-
Your secret stays in browser memory and is never sent or saved. Only
430-
the public identity ID is persisted, and only when “Remember me” is
431-
checked.
426+
Your secret never leaves this browser. Only the public identity ID
427+
is stored when this identity is remembered on this device.
432428
</p>
433429

434430
<div className="flex gap-2 pt-1">

example-apps/dashnote/test/LoginModal.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ describe("LoginModal", () => {
309309
expect(identityField.value).toBe("remembered-identity-id");
310310

311311
const mnemonicField = screen.getByPlaceholderText(
312-
/enter the mnemonic phrase or private key for this identity/i,
312+
/mnemonic phrase or wif private key/i,
313313
);
314314
expect(
315315
identityField.compareDocumentPosition(mnemonicField) &
@@ -343,7 +343,7 @@ describe("LoginModal", () => {
343343
render(<LoginModal open onClose={vi.fn()} />);
344344

345345
const mnemonicField = screen.getByPlaceholderText(
346-
/enter the mnemonic phrase or private key for this identity/i,
346+
/mnemonic phrase or wif private key/i,
347347
);
348348
const actions = screen.getByTestId("remembered-identity-actions");
349349
expect(

0 commit comments

Comments
 (0)