Spaces:
Sleeping
Sleeping
Add 7 persona pages: cards/arena/buddy/mirror/quests/mood-ci/marketplace
#2
by ArthurZ HF Staff - opened
What this adds
Seven self-contained vanilla-JS pages on the Space, each delivering one validated proposition from the slyfox roadmap. All run on mock data so the demo is live the moment this merges โ no dependency on emotion-vector extraction or analysis runs.
| Route | What | Lines |
|---|---|---|
/cards |
Maintainer trading cards (breathing orbs, rarity tiers, 20-spoke radar, share URL) | 689 |
/arena |
2-model showdown with side-by-side circumplex replay + Vibe-ELO vote | 798 |
/buddy |
Persona steering selector with live intensity blending + curl/python/JS snippets | 714 |
/mirror |
Dual-orb (user vs buddy baseline) + embeddable widget via postMessage |
800 |
/quests |
Daily/weekly/legendary quests, 18 generated badge SVGs, share-as-markdown | 655 |
/mood-ci |
GitHub-Actions-style PR mood checker with rewrite suggestions | 784 |
/marketplace |
Browse models by maintainer-fit; open-source upsets highlighted | 627 |
Style + integration
- Same CSS variables (
--bg,--panel,--accent, etc.) asjobs.html/community.htmlโ copy-paste compatible. - Unified nav across all pages (Chat / Jobs / Cards / Arena / Buddy / Mirror / Quests / Mood CI / Marketplace / Community).
- Each page is a single HTML file with no frameworks, no build step, no external CDNs.
Dockerfilenow usesCOPY app.py *.html ./so adding pages doesn'''t require Dockerfile edits./api/chats/*and/api/jobs/*routes untouched.
Mock data
Every page falls back to mock data when its eventual backend isn'''t wired (e.g. /api/community/runs returns empty until traces are published). Mock-data sections are clearly marked with a comment block at the top of each file so the swap is mechanical.
Why ship the UI first
These are demo-grade pages designed to make the slyfox story tellable today. Real-data wiring follows once emotion vectors are extracted and analyses run, but the screenshots, share artifacts, and stakeholder demos work right now.
ArthurZ changed pull request status to open
ArthurZ changed pull request status to merged