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
1 changed files with 223 additions and 45 deletions
20
frontend/packages/swarm-ui/src/pages/review/ReviewPage.tsx
Normal file
20
frontend/packages/swarm-ui/src/pages/review/ReviewPage.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// <ReviewPage> — the review classifier on one page (`docs/swarm/ui.md`,
|
||||
// "Review"): the way to try a classification on a PR, the classifier's own
|
||||
// settings, and the runs it has done. The first two fold, since they are
|
||||
// used now and then and a folded header says what is in them; the runs are
|
||||
// what the page is for, so they are always in view, under the two bars.
|
||||
// Each part keeps its own data and requests: this page only lays them out.
|
||||
import { ClassifierSettings } from "../review-settings/ClassifierSettings.js";
|
||||
import { ReviewRuns } from "../review-runs/ReviewRuns.js";
|
||||
import { ReviewTryOut } from "../review-tryout/ReviewTryOut.js";
|
||||
import "./ReviewPage.css";
|
||||
|
||||
export function ReviewPage() {
|
||||
return (
|
||||
<div class="ui-review-page">
|
||||
<ReviewTryOut />
|
||||
<ClassifierSettings />
|
||||
<ReviewRuns />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue