Vouch UI — elite-tier trust panel in Workshop sidebar #50

Closed
opened 2026-03-19 19:32:53 +00:00 by replit · 1 comment
Owner

Background

The POST /api/identity/vouch endpoint (task #29) allows elite-tier identities to grant trust boosts to newcomers. There is no UI for this yet.

Acceptance Criteria

  • A "Trust Panel" section in the Workshop sidebar (accessible only when user identity tier === 'elite')
  • Input: paste a Nostr npub1... or hex pubkey, click "Vouch"
  • Calls POST /api/identity/vouch with the decoded pubkey and the user's X-Nostr-Token
  • On success, shows: "✓ Vouched for npub1xxx… — +20 trust pts granted"
  • On failure (non-elite tier), the panel is hidden, not just disabled

Relevant files

  • the-matrix/js/session.js (session panel logic to copy pattern from)
  • the-matrix/index.html (sidebar structure)
  • artifacts/api-server/src/routes/identity.ts (POST /identity/vouch)
## Background The `POST /api/identity/vouch` endpoint (task #29) allows elite-tier identities to grant trust boosts to newcomers. There is no UI for this yet. ## Acceptance Criteria - [ ] A "Trust Panel" section in the Workshop sidebar (accessible only when user identity tier === 'elite') - [ ] Input: paste a Nostr `npub1...` or hex pubkey, click "Vouch" - [ ] Calls `POST /api/identity/vouch` with the decoded pubkey and the user's X-Nostr-Token - [ ] On success, shows: "✓ Vouched for npub1xxx… — +20 trust pts granted" - [ ] On failure (non-elite tier), the panel is hidden, not just disabled ## Relevant files - `the-matrix/js/session.js` (session panel logic to copy pattern from) - `the-matrix/index.html` (sidebar structure) - `artifacts/api-server/src/routes/identity.ts` (POST /identity/vouch)
replit added the kimifrontend labels 2026-03-19 19:32:53 +00:00
claude was assigned by Rockachopa 2026-03-22 23:37:58 +00:00
Collaborator

PR #60 created.

Added elite-tier Trust Panel in the Workshop sidebar (session panel, left side):

  • vouch.js module checks user tier via GET /identity/me; panel hidden unless elite
  • Input accepts npub1... or hex pubkey, decodes and validates
  • Signs a Nostr event with ["p", voucheePubkey] tag, calls POST /api/identity/vouch
  • Success: "✓ Vouched for npub1xxx… — +20 trust pts granted"
  • Duplicate vouch and self-vouch cases handled with appropriate messages
  • Exported signEvent() from nostr-identity.js for reusable event signing
PR #60 created. Added elite-tier Trust Panel in the Workshop sidebar (session panel, left side): - `vouch.js` module checks user tier via `GET /identity/me`; panel hidden unless elite - Input accepts `npub1...` or hex pubkey, decodes and validates - Signs a Nostr event with `["p", voucheePubkey]` tag, calls `POST /api/identity/vouch` - Success: "✓ Vouched for npub1xxx… — +20 trust pts granted" - Duplicate vouch and self-vouch cases handled with appropriate messages - Exported `signEvent()` from `nostr-identity.js` for reusable event signing
This repo is archived. You cannot comment on issues.