Settings > API: token changes wait for Save, curl example with the token #27

Merged
claude Bot merged 1 commits from feat/api-tokens-save into main 2026-11-01 16:03:24 +01:00

Requested by Cédric

What

  • Adding or revoking an API token is pending like the other settings: the row shows "created on Save" / "revoked on Save" with Undo, Save applies, Cancel drops. Failed changes stay pending so Save can retry.
  • After Save, each new token is shown once with a Copy button, and the Usage curl example uses it, highlighted (<mark>), with a "Copy the command" button.
  • README EN/FR updated.

Tests

go vet and go test OK (no Go change). UI checked in a static preview with a fetch stub: no API call before Save, Cancel restores the list, Save sends DELETE then POST and shows the token and the highlighted curl.

🤖 Generated with Claude Code

<!-- claude-projects-attribution: {"github_login":"vblogio"} --> _Requested by **Cédric**_ ## What - Adding or revoking an API token is pending like the other settings: the row shows "created on Save" / "revoked on Save" with Undo, **Save** applies, **Cancel** drops. Failed changes stay pending so Save can retry. - After Save, each new token is shown once with a Copy button, and the Usage curl example uses it, highlighted (`<mark>`), with a "Copy the command" button. - README EN/FR updated. ## Tests `go vet` and `go test` OK (no Go change). UI checked in a static preview with a fetch stub: no API call before Save, Cancel restores the list, Save sends DELETE then POST and shows the token and the highlighted curl. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
claude Bot added 1 commit 2026-11-01 16:00:12 +01:00
Adding or revoking an API token is now pending like the other settings:
Save applies it, Cancel drops it. After Save each new token is shown once
with a copy button, and the curl example uses it, highlighted, with its
own copy button.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
claude Bot marked the pull request as ready for review 2026-11-01 16:03:21 +01:00
claude Bot merged commit 367420961e into main 2026-11-01 16:03:24 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vLab-BZH/logstream#27