diff --git a/app.py b/app.py index 603da3c..11f6487 100644 --- a/app.py +++ b/app.py @@ -56,6 +56,7 @@ STATUS_LABELS = { 'pending': 'Pending', 'prompt_ready': 'Prompt Ready', 'songs_uploaded': 'Songs Uploaded — Awaiting Approval', + 'revisions_requested': 'Revisions Requested', 'awaiting_payment': 'Awaiting Payment', 'paid': 'Paid', 'delivered': 'Delivered', @@ -235,7 +236,7 @@ def revise(token): if not req: abort(404) note = request.form.get('revision_note', '').strip() - update_request(req['id'], revision_note=note, status='songs_uploaded') + update_request(req['id'], revision_note=note, status='revisions_requested') # NOTE: No operator email is sent; the dashboard is the single queue. flash('Your feedback has been saved. We will regenerate and update you.', 'success') diff --git a/templates/admin/dashboard.html b/templates/admin/dashboard.html index 2730a67..2bbde8a 100644 --- a/templates/admin/dashboard.html +++ b/templates/admin/dashboard.html @@ -49,6 +49,7 @@ .paid,.delivered{background:#10b981;color:#000;} .pending,.prompt_ready{background:#60a5fa;color:#000;} .songs_uploaded{background:#a78bfa;color:#000;} + .revisions_requested{background:#f87171;color:#000;} .actions a{ color:#93c5fd; text-decoration:none; diff --git a/templates/admin/request.html b/templates/admin/request.html index acfc358..dbc24ee 100644 --- a/templates/admin/request.html +++ b/templates/admin/request.html @@ -7,11 +7,12 @@ @@ -108,35 +121,42 @@

Notable facts:
{{ req.notable_facts or '-' }}

Style / genre:
{{ req.style_genre or '-' }}

Extra requests:
{{ req.extra_requests or '-' }}

+ + {% if req.revision_note %} + +
+

📝 Revisions Requested

+

{{ req.revision_note }}

+
+ {% endif %}
-

1. Generate Suno Prompt

+

1. Generate Suno Prompt

- - -

Paste Hermes' Title, Style, and Lyrics directly into the fields below, then save.

+ +

Paste Hermes' Title, Style, and Lyrics directly into the fields below, then save.

-
- + + - - + + - - + + - - + + -
- - - - -
-
+
+ + + + +
+
@@ -174,7 +194,7 @@

3. Notify Customer

- +

Preview email: {% if req.preview_sent_at %} diff --git a/templates/player.html b/templates/player.html index 950357e..e7db9ca 100644 --- a/templates/player.html +++ b/templates/player.html @@ -85,7 +85,7 @@

- {% if req.status in ['songs_uploaded','awaiting_payment','paid','delivered'] %} + {% if req.status in ['songs_uploaded','revisions_requested','awaiting_payment','paid','delivered'] %}