Commit graph

29 commits

Author SHA1 Message Date
Troll (Hermes Agent)
51f7ffd5ab Add revision prompt copy button for Hermes on admin request page
When a request has revision_note set, the operator now sees a
'Copy revision prompt for Hermes' button in the revision note box.
It copies a prompt that includes:
- the original customer brief,
- the previously generated title/style/lyrics,
- the customer's revision request,
- the signed callback URL and expected JSON shape.

Minor version bump: 0.3.0 → 0.4.0.
2026-08-05 03:25:34 +00:00
Troll (Hermes Agent)
2b46f7d3dc Guard customer_approved null/None in all templates
Some rows (schema drift, cancelled requests, manual status edits) have
customer_approved = NULL instead of the default 'none'. Templates called
.upper() on it blindly, causing a Jinja2 UndefinedError / 500 when the
customer player or admin pages loaded.

Replace all .upper() calls with (value or 'none').upper() and add truthy
checks before rendering the approved choice in status.html and
dashboard.html.
2026-08-05 03:11:21 +00:00
Troll (Hermes Agent)
8de32d91b7 Move revision history above operator notes, move cancel button next to status with confirmation 2026-08-04 18:58:49 +00:00
Troll (Hermes Agent)
968a6fb43c Add Cancelled status and cancel request button 2026-08-04 17:56:02 +00:00
Troll (Hermes Agent)
fd58cf47da Reorder Suno copy buttons to Lyrics, Style, Title 2026-08-04 17:49:44 +00:00
Troll (Hermes Agent)
cda4d57859 Add revision history log and music files ZIP backup 2026-08-04 16:54:51 +00:00
Troll (Hermes Agent)
8246f641a2 Move request status badge to top of admin request page 2026-08-04 16:45:24 +00:00
Troll (Hermes Agent)
0c90b5a298 Make all customer info fields editable from admin request page 2026-08-04 16:32:17 +00:00
Troll (Hermes Agent)
d02d0b3d25 Add stems_link support for Pingvin-Share-X delivery 2026-08-04 01:10:15 +00:00
Troll (Hermes Agent)
d5d4882d07 feat: require customer approval before mark paid/deliver
- Disable checkboxes, payment ref input, and submit button in admin UI when customer has not approved.
- Add server-side guard in mark_paid_deliver action.
2026-08-03 19:07:22 +00:00
Troll (Hermes Agent)
6a60aa686c feat: Hermes prompt callback endpoint + API key management
- Add /api/prompt/<rid> callback endpoint with dual auth:
  per-request signed URL token + Bearer API key.
- Add HERMES_API_KEY config and runtime key helpers in app.py.
- Update admin request page to copy request details + callback URL.
- Add API key management to admin settings: regenerate, mask, show-once.
- Update .env.example, docker-compose.yml, README, REVIEW docs.
2026-08-03 17:16:56 +00:00
Troll (Hermes Agent)
e46893e0b4 docs: update comments, docstrings, README, REVIEW, and env docs to match current features 2026-08-03 00:11:41 +00:00
Troll (Hermes Agent)
0aa3eab084 fix: record payment ref immediately; show it on admin request page 2026-08-02 23:23:45 +00:00
Troll (Hermes Agent)
3cb63a6480 ui: convert admin request page to two-column layout 2026-08-02 22:24:54 +00:00
Troll (Hermes Agent)
3e25c3638b feat: add operator-only notes field per request 2026-08-02 22:10:42 +00:00
Troll (Hermes Agent)
bf9f9e09fd feat: editable customer email in admin + email validation on public form 2026-08-02 16:51:32 +00:00
Troll (Hermes Agent)
4af9322c9d docs: update comments and README to reflect current feature set
- Refresh app.py module and route docstrings for runtime settings,
  MP3 tagging, rate limiting, revision workflow, and admin actions.
- Clarify config.py and models.py comments.
- Update template comments/CSS for dashboard filters, request detail,
  player page, and settings page.
- Rewrite README.md with current features, status flow, file layout,
  deployment variables, and troubleshooting.
- Refresh REVIEW.md quick-reference.
- Add MAX_REVISIONS to docker-compose.yml environment list.
- Expand requirements.txt comment coverage.

No version history or changelog included.
2026-08-02 00:07:24 +00:00
Troll (Hermes Agent)
5b6012aa3d Add vocal gender preference to customer request form and admin view 2026-08-01 21:20:11 +00:00
Troll (Hermes Agent)
0f6b68cf5d Lock customer page after choice, archive files on revision, add file checkboxes for delivery 2026-08-01 21:10:57 +00:00
Troll (Hermes Agent)
2b960bd3d5 Add revisions_requested status and visible revision note on admin detail page 2026-08-01 20:41:59 +00:00
Troll (Hermes Agent)
daf232308e Show operator preview link on admin request page when both songs uploaded 2026-08-01 20:33:36 +00:00
Troll (Hermes Agent)
12a29208be Remove Hermes response parser; use manual Title/Style/Lyrics paste fields 2026-08-01 20:22:19 +00:00
Troll (Hermes Agent)
b4f0222bd5 Add comprehensive comments to all source files and expand documentation 2026-07-31 22:23:40 +00:00
Troll (Hermes Agent)
3db7d6449e Fix missing </form> tag that broke notify_customer and paid_deliver forms 2026-07-31 21:53:53 +00:00
Troll (Hermes Agent)
7ef8779eb7 Add status badges for uploaded files and sent emails on admin request page 2026-07-31 21:43:38 +00:00
Troll (Hermes Agent)
30732c0b64 Single-paste Hermes response with title extraction and copy buttons 2026-07-31 21:38:38 +00:00
Troll (Hermes Agent)
665a7e5655 Switch Hermes prompt workflow to plain-text Style/Lyrics paste blocks 2026-07-31 21:30:56 +00:00
Troll (Hermes Agent)
f3d81832d5 Add Hermes JSON paste parser to admin request page 2026-07-31 21:18:30 +00:00
Troll (Hermes Agent)
c16d48ee32 Initial prototype for theme song booth 2026-07-31 19:47:52 +00:00