Skip to content

feat: live ticking one-time code in item detail - #11

Merged
pyramation merged 1 commit into
mainfrom
feat/totp-code-in-detail
Jul 28, 2026
Merged

feat: live ticking one-time code in item detail#11
pyramation merged 1 commit into
mainfrom
feat/totp-code-in-detail

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Clicking an imported 2FA account in the vault list previously showed only its raw fields (a concealed seed, period, digits) — no actual code. ItemDetail now detects any item with a totp_seed-purpose field and renders a live one-time code panel above the fields: big monospace code (split for readability at any digit count), copy button with the 30s clipboard clear, and a countdown Progress bar, polling dcrypt.totp.code(item.id) every second (which already honours stored period/digits).

This works for any item kind that carries a TOTP seed, not just kind === 'totp' — e.g. logins with an attached seed.

Link to Devin session: https://app.devin.ai/sessions/04636534e07048089ffb6b78142e12cd
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 28, 2026
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit 868acbc into main Jul 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant