swarm ui: one review page
The two review tabs, runs and try-out, are one: /review. It is a column of three sections: try a classification and the classifier settings, each a folded bar (the settings' bar says what they are now), then the recent runs, always open. The settings had been pinned under the try-out form; they are now a section of their own. A new Disclosure primitive is the folding bar, a native details wearing the Panel's classes, so the folded and open sections read as the same surface. /review-runs and /review-tryout are gone, with no redirect.
This commit is contained in:
parent
7b1435eaea
commit
a68d73fa74
19 changed files with 223 additions and 45 deletions
|
|
@ -17,8 +17,7 @@ domain, covers host-level detail for one hive.
|
|||
| `/jobs` | the controller's job graph — where agent creation and credential mints show progress |
|
||||
| `/schedules` | the scheduled prompts: add, edit, pause, resume and remove |
|
||||
| `/issues` | a cross-repo issue report |
|
||||
| `/review-runs` | the review classifier's recent runs: which PRs, what it answered, which failed |
|
||||
| `/review-tryout` | try a review classification against a real PR |
|
||||
| `/review` | the review classifier: its recent runs, a try-out on a real PR, and its settings |
|
||||
|
||||
Everything it shows comes from [`swarm-controller`](../../swarm-controller/README.md).
|
||||
An agent created here or with `swarmctl agent create` starts `paused`; set it
|
||||
|
|
@ -57,9 +56,18 @@ page. Selecting outside it, or Escape, closes it. You can stop or pause the
|
|||
agent, or link an account, without leaving the terminal. A subagent's tab opens
|
||||
its agent's details.
|
||||
|
||||
### Review runs
|
||||
### Review
|
||||
|
||||
`/review-runs` lists what the [review classifier](review-classifier.md) has
|
||||
`/review` is the one page for the [review classifier](review-classifier.md),
|
||||
with three sections in a column. **try a classification** and **classifier
|
||||
settings** come first, each folded to a single bar: the bar of the settings
|
||||
says what they are now, and what you typed in a section stays when you fold it.
|
||||
**recent runs** is under them and always open. The sections share nothing and
|
||||
ask for their own data.
|
||||
|
||||
#### Recent runs
|
||||
|
||||
The **recent runs** section lists what the [review classifier](review-classifier.md) has
|
||||
run, newest first, one card per run. A card shows the repo and PR, the head
|
||||
commit, whether the run was a try-out or a requested review, how long ago it
|
||||
started, how long it took, how many classifications ran, and the outcome as a
|
||||
|
|
@ -84,9 +92,9 @@ does. An empty list says there are no runs yet, and a failed load shows the reas
|
|||
controller gave. The page shows no token counts, cache counts or cost, and
|
||||
stores and posts nothing.
|
||||
|
||||
### Review try-out
|
||||
#### Try a classification
|
||||
|
||||
`/review-tryout` shows how the [review classifier](review-classifier.md)
|
||||
The **try a classification** section shows how the [review classifier](review-classifier.md)
|
||||
answers a classification on a real PR, before you put it in a repo's config.
|
||||
Give it a repo as `owner/name` and a PR number, then write a classification: a
|
||||
name, a description, a polarity (positive or negative) and a threshold from 0
|
||||
|
|
@ -130,9 +138,9 @@ first. If the classifier's account may not push to the repo, the page says so:
|
|||
a repo admin adds it as a collaborator with write access
|
||||
([the service account](review-classifier.md#the-service-account)).
|
||||
|
||||
### Classifier settings
|
||||
#### Classifier settings
|
||||
|
||||
Under the try-out form, **classifier settings** shows the runtime, model and
|
||||
The **classifier settings** section shows the runtime, model and
|
||||
effort the [review classifier](review-classifier.md) runs with and how many
|
||||
requested reviews run at once, and lets you change them. The runtime is **API
|
||||
key** (claude on the Anthropic key) or **ACP** (opencode on a provider). On the
|
||||
|
|
|
|||
Loading…
Reference in a new issue