|
|
@@ -143,13 +143,8 @@
|
|
|
· priority <strong stm-text="goal.priority">3</strong>
|
|
|
<span stm-if="goal.agent_saddle.length > 0"> · agent saddle
|
|
|
<strong stm-text="goal.agent_saddle">saddle</strong></span></p>
|
|
|
- <p stm-if="goal.push_branches.length > 0">Goal branches:
|
|
|
- <span stm-for-branch-in="goal.push_branches">
|
|
|
- <code stm-text="branch.branch">b</code>
|
|
|
- <span stm-attribute.class="branch.pushed ? 'badge badge-done' : 'badge badge-failed'"
|
|
|
- stm-text="branch.pushed ? 'pushed' : 'unpushed'">state</span>
|
|
|
- </span>
|
|
|
- <span class="muted">(the daemon's /status report)</span></p>
|
|
|
+ <pstm-fragment name="goal-branches"
|
|
|
+ note=""(the daemon's /status report)""/>
|
|
|
<p class="muted">Project:
|
|
|
<a stm-attribute.href="'/projects/' + goal.project_id" stm-text="goal.project_name">project</a>
|
|
|
· Created <span stm-text="goal.created_display">when</span>
|
|
|
@@ -193,19 +188,7 @@
|
|
|
card rhythm). -->
|
|
|
<section class="card">
|
|
|
<h3>Agent progress</h3>
|
|
|
- <div stm-if="goal.progress.length > 0">
|
|
|
- <p class="progress-latest" stm-text="goal.progress[0].summary">latest</p>
|
|
|
- <p class="muted" stm-text="'reported ' + goal.progress[0].when_display">when</p>
|
|
|
- <details class="history-expander" stm-if="goal.progress.length > 1">
|
|
|
- <summary>Show history (<span stm-text="goal.progress.length">0</span> updates)</summary>
|
|
|
- <ul class="progress-history">
|
|
|
- <li stm-for-item-in="goal.progress">
|
|
|
- <span class="muted" stm-text="item.when_display">when</span> —
|
|
|
- <span stm-text="item.summary">summary</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </details>
|
|
|
- </div>
|
|
|
+ <pstm-fragment name="progress-feed" entries="goal.progress"/>
|
|
|
<p stm-if="goal.progress.length == 0" class="muted">No progress reports yet — the goal
|
|
|
agent reports via <code>saddle progress-update</code>.</p>
|
|
|
</section>
|
|
|
@@ -231,14 +214,8 @@
|
|
|
<div stm-if="block.is_completion_review"
|
|
|
class="plan-review" data-plan-review
|
|
|
stm-attribute.data-block-id="block.id">
|
|
|
- <p stm-if="goal.push_branches.length > 0">Goal branches:
|
|
|
- <span stm-for-branch-in="goal.push_branches">
|
|
|
- <code stm-text="branch.branch">b</code>
|
|
|
- <span stm-attribute.class="branch.pushed ? 'badge badge-done' : 'badge badge-failed'"
|
|
|
- stm-text="branch.pushed ? 'pushed' : 'unpushed'">state</span>
|
|
|
- </span></p>
|
|
|
- <p><a stm-if="goal.compare_url.length > 0" stm-attribute.href="goal.compare_url"
|
|
|
- target="_blank" rel="noopener">Compare changes</a></p>
|
|
|
+ <pstm-fragment name="goal-branches"/>
|
|
|
+ <pstm-fragment name="goal-compare"/>
|
|
|
<div class="md rfc-body goal-body" data-plan-body
|
|
|
stm-markdown="block.body">report</div>
|
|
|
<div class="actions">
|
|
|
@@ -260,18 +237,8 @@
|
|
|
<div stm-if="!block.is_completion_review">
|
|
|
<div stm-if="block.show_body && block.body.length > 0"
|
|
|
class="md rfc-body goal-body" stm-markdown="block.body">body</div>
|
|
|
- <form stm-action="block.answer_action">
|
|
|
- <div stm-if="block.options.length > 0" class="form-row">
|
|
|
- <label>Options</label>
|
|
|
- <select name="option">
|
|
|
- <option stm-for-option-in="block.options" stm-attribute.value="option"
|
|
|
- stm-text="option">opt</option>
|
|
|
- </select></div>
|
|
|
- <div class="form-row">
|
|
|
- <textarea name="answer" rows="2"
|
|
|
- placeholder="Reply (or pick an option)"></textarea></div>
|
|
|
- <button type="submit" class="primary">Answer</button>
|
|
|
- </form>
|
|
|
+ <pstm-fragment name="block-answer"/>
|
|
|
+ <pstm-fragment name="block-reply"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<details class="history-expander" stm-if="goal.answered_blocks.length > 0">
|
|
|
@@ -296,14 +263,8 @@
|
|
|
the attention blocks above (the rich review form). -->
|
|
|
<section class="card" stm-if="goal.terminal && goal.completion_report.length > 0">
|
|
|
<h3>Completion review</h3>
|
|
|
- <p stm-if="goal.push_branches.length > 0">Goal branches:
|
|
|
- <span stm-for-branch-in="goal.push_branches">
|
|
|
- <code stm-text="branch.branch">b</code>
|
|
|
- <span stm-attribute.class="branch.pushed ? 'badge badge-done' : 'badge badge-failed'"
|
|
|
- stm-text="branch.pushed ? 'pushed' : 'unpushed'">state</span>
|
|
|
- </span></p>
|
|
|
- <p><a stm-if="goal.compare_url.length > 0" stm-attribute.href="goal.compare_url"
|
|
|
- target="_blank" rel="noopener">Compare changes</a></p>
|
|
|
+ <pstm-fragment name="goal-branches"/>
|
|
|
+ <pstm-fragment name="goal-compare"/>
|
|
|
<div class="md rfc-body goal-body" stm-markdown="goal.completion_report">report</div>
|
|
|
</section>
|
|
|
|