From 60ce7592c104fa79cbc0c56c3f0fafcea73d80c1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 17 Oct 2026 18:59:04 +0000 Subject: [PATCH] feat: Bin and rated results sections of the training Data step are collapsible Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01MpnF7GwNGMbngU11wjym7P --- app/ui/features/training/data.js | 5 +++-- app/ui/features/training/index.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/ui/features/training/data.js b/app/ui/features/training/data.js index cd5a0308..95be2b1b 100644 --- a/app/ui/features/training/data.js +++ b/app/ui/features/training/data.js @@ -118,8 +118,9 @@ export function dataStep({ app, session, go, ui }) { c.field.default({ label: "Training set", hint: "A saved list of what to learn from.", control: c.region.stack({ gap: "sm", children: [setSelect, c.toolbar.default({ items: [make, drop] })] }) }), status, c.group.default({ label: "Drop files", rows: [dropzone] }), - c.group.default({ label: "Choose in your Bin", rows: [gallery, c.toolbar.default({ items: [pickedNote], trailing: [addBin] })] }), - c.group.default({ label: "Choose your own results", hint: "Results you rated in your projects. Liked ones teach what you want; disliked ones can teach what to avoid.", rows: [ratedSel, ratedGallery, include, c.toolbar.default({ items: [ratedNote], trailing: [addRated] })] }), + c.collapsible.default({ label: "Choose in your Bin", open: ui.openBin, onToggle: (o) => { ui.openBin = o; }, body: c.region.stack({ gap: "sm", children: [gallery, c.toolbar.default({ items: [pickedNote], trailing: [addBin] })] }) }), + c.collapsible.default({ label: "Choose your own results", hint: "Results you rated in your projects. Liked ones teach what you want; disliked ones can teach what to avoid.", open: ui.openRated, onToggle: (o) => { ui.openRated = o; }, + body: c.region.stack({ gap: "sm", children: [ratedSel, ratedGallery, include, c.toolbar.default({ items: [ratedNote], trailing: [addRated] })] }) }), next, ] }); } diff --git a/app/ui/features/training/index.js b/app/ui/features/training/index.js index 88f3522e..255abb1c 100644 --- a/app/ui/features/training/index.js +++ b/app/ui/features/training/index.js @@ -26,7 +26,7 @@ export default { const api = app.api; const session = makeSession(api); const ui = { - tab: "data", clips: {}, picked: new Set(), ratedPicked: new Set(), bin: [], rated: { results: [], counts: {} }, ratedKind: "liked", include: ["main"], selected: new Set(), filter: "all", tag: "", limit: 48, + tab: "data", openBin: false, openRated: false, clips: {}, picked: new Set(), ratedPicked: new Set(), bin: [], rated: { results: [], counts: {} }, ratedKind: "liked", include: ["main"], selected: new Set(), filter: "all", tag: "", limit: 48, tagger: { id: "wd_vit_v3", list: [], job: null, general: 0.35, limit: 0, characters: false, mode: "add", scope: "untagged" }, advanced: false, runs: [], chosenRun: "", record: null, run: { shown: false, active: false, state: "idle", loss: [], smooth: [], step: 0, total: 0, elapsed: 0, message: "", error: "", lora: "", before: "" },