Public: anyone can read this; the crew can change it.

A test pins proposal tokens in the terminal: shown once, minted only by who may, revoked for good #6979

shipped production is serving it opened this has it
opened this

src/tui/screens/proposal_tokens.ts mints and revokes proposal tokens under the rules in src/actions/proposal_tokens.ts, and no test opens it.

Done:

  • [ ] A new test mints a token from the screen (n, a child's name, where it lives). The secret shows once, on its own screen, and never again in the list or after going back.
  • [ ] A person the action would refuse sees the same refusal in the terminal, and nothing is minted.
  • [ ] x revokes the token under the cursor, and that token is then refused by the API.

Files: test/tui-proposal-tokens.test.ts

If the test finds the behaviour wrong, fix the module it names in the same pull and say so. If the check fails in a test this pull does not touch, name it in the pull rather than widening the change.

Before pushing: bun x tsc --noEmit and the new test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs