Skip to content

Console: visible auto-refund, Pro = 1,000 credits, hero issues in place, English generator - #63

Open
ArceeDev wants to merge 1 commit into
mainfrom
claude/project-thread-f0f4re
Open

ArceeDev wants to merge 1 commit into
mainfrom
claude/project-thread-f0f4re

Conversation

@ArceeDev

Copy link
Copy Markdown
Owner

Requested by Arcee · project thread

Applies the Reddit feedback on the keyflint.dev console.

Changes

  1. Auto-refund visible: new "Simulate failed call" button in Credit quota. It debits N credits, simulates a tool returning isError: true, calls /api/v1/quota/refund with the same idempotency key and shows balance_before, balance_after, restored: true. Browser demo (docs/demo-api.js) now implements /quota/refund (once per key, like the gateway).
  2. Pro = 500 bug: root cause was docs/demo-api.js (browser demo) with pro.credits: 500; the gateway (license.py) and the dropdown use 1,000. Fixed to 1,000.
  3. Hero button: "Issue a test license" now scrolls to the Issue card and issues the license, so the token shows next to the button.
  4. Code generator: English placeholders (PASTE_YOUR_PUBLIC_KEY_HEX, licenses.your-domain.com, my-tool, search) and inline 64-hex validation (aria-invalid + hint).

Same changes in docs/ (GitHub Pages) and app/presentation/static/ (gateway console).

Verification

  • python run_tests.py: 246/246 OK.
  • Playwright on docs/: hero issues Pro with quota_credits: 1000; refund demo 1000 → 995 → 1000, restored: true; "zzz" shows the hint, 64 hex hides it; no page errors.

Generated by Claude Code

…, English generator

- Credit quota: "Simulate failed call" debits, simulates isError and refunds with the
  same idempotency key, showing the balance restored. Browser demo gains /quota/refund.
- Browser demo Pro tier had 500 credits; now 1,000 like the gateway and the dropdown.
- Hero "Issue a test license" scrolls to the Issue card and issues right away.
- Code generator: English placeholders and inline 64-hex check for the public key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R4cLjcdXkpRJyhnGVudtMn
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
meconoces Ready Ready Preview Nov 26, 2026 8:31pm UTC

@ArceeDev ArceeDev self-assigned this Nov 26, 2026

This branch has not been deployed

No deployments
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.

2 participants