Skip to content

feat(vault): card-cardholder read selector (+ TUI prefill)#33

Merged
UnbreakableMJ merged 1 commit into
mainfrom
card-cardholder-field
Jun 16, 2026
Merged

feat(vault): card-cardholder read selector (+ TUI prefill)#33
UnbreakableMJ merged 1 commit into
mainfrom
card-cardholder-field

Conversation

@UnbreakableMJ

Copy link
Copy Markdown
Contributor

What

Adds a card-cardholder field selector: vault get <card> --field card-cardholder returns the cardholder name, and the TUI detail pane shows a Holder line. That detail line also lets the TUI card edit form prefill the cardholder, which previously started blank because there was no read selector — closing the card edit-prefill gap noted across PRs #25/#26/#28.

How (mirrors the existing card selectors)

  • vault-ipcField::CardCardholder.
  • vault-cliFieldArg::CardCardholder--field card-cardholder (clap-derived).
  • vault-agentget_field decrypts the card (DecryptOptions { card: true }) and returns cardholder_name.
  • vault-tuiensure_detail adds ("Holder", Field::CardCardholder) to the card specs; new_edit prefills F_CARDHOLDER from the Holder line.

Tests

The TUI card-edit test now seeds a Holder detail line and asserts the cardholder row prefills. Core already covers cardholder decrypt; the proto/CLI mapping is compiler-exhaustive.

Verification

fmt --check, fresh-isolated clippy --all-features -D warnings, cargo test --workspace --all-targets, cargo deny check, both headless builds — all green.

🤖 Generated with Claude Code

`vault get <card> --field card-cardholder` returns the cardholder name,
and the TUI detail pane gains a `Holder` line — which also lets the TUI
card edit form prefill the cardholder (it previously started blank, as
there was no read selector). Closes the card edit-prefill gap from the
card-write / TUI-card slices.

- vault-ipc: `Field::CardCardholder`.
- vault-cli: `FieldArg::CardCardholder` (`--field card-cardholder`).
- vault-agent: `get_field` decrypts the card and returns `cardholder_name`.
- vault-tui: `ensure_detail` fetches a `Holder` line for cards;
  `new_edit` prefills `F_CARDHOLDER` from it.
- docs: README selector list, CHANGELOG; TUI card-edit test now asserts
  the cardholder prefills.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@UnbreakableMJ
UnbreakableMJ merged commit 10bd3e7 into main Jun 16, 2026
8 checks passed
@UnbreakableMJ
UnbreakableMJ deleted the card-cardholder-field branch June 16, 2026 12:31
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