{% extends "base.html" %} {% block title %}{{ thread.title }} · Draft Room{% endblock %} {% block content %}

Draft Room / {{ profile.slug }}

{{ thread.title }}

{{ thread.status }} · ${{ "%.4f"|format(spent) }} of ${{ "%.2f"|format(max_cost_usd) }} · {{ remaining_messages }} message(s) left

{% if thread.status == "open" %}
{% endif %}
{% if notice %}
{{ notice }}
{% endif %} {% if error %}{% endif %}
{% for message in messages %}
{{ message.role }} {{ message.created_at }}
{% if message.artifact_type == "draft" %}

Draft · {{ message.artifact_json.get("platform", "") }}

{{ message.content }}
{% if message.artifact_json.get("hashtags") %}

#{{ message.artifact_json["hashtags"]|join(" #") }}

{% endif %} {% if message.content_item_id %}

Content #{{ message.content_item_id }} · view queue

{% else %}
{% endif %}
{% elif message.artifact_type == "compliance" %}

Compliance · risk {{ message.artifact_json.get("risk_level", "unknown") }}

{% if message.artifact_json.get("reasons") %}
    {% for reason in message.artifact_json["reasons"] %}
  • {{ reason }}
  • {% endfor %}
{% endif %}
{{ message.content }}
{% elif message.artifact_type == "profile_patch" %}

Profile patch · {{ message.artifact_json.get("file") }}

{{ message.content }}

{% if message.artifact_json.get("diff") %}
{{ message.artifact_json["diff"] }}
{% endif %} {% if message.artifact_json.get("applied") %}

Applied.

{% else %}
{% endif %}
{% else %}
{{ message.content }}
{% endif %}
{% else %}

No messages yet. Ask the Editor to plan, or the Writer for a draft.

{% endfor %}
{% if thread.status == "open" and remaining_messages > 0 %}

Editor plans, Writer drafts for the selected platform, Compliance reviews the latest draft. Nothing is approved or published here.

{% elif thread.status != "open" %}

This thread is archived. Create a new one to continue.

{% else %}

This thread has reached its message limit.

{% endif %}
{% endblock %}