mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-29 21:21:18 -08:00
Add the UI Prototype skill, and have Quick Task confirm a saved prototype's brief before planning
AI Assisted
This commit is contained in:
1 parent
2f790027a9
commit
54b316cdf3
130 files changed
+8065
-50
No files matched your search
@@ -757,12 +757,16 @@ export function toggleNoteTick(ticked, id) {
|
||||
/**
|
||||
* The spec a card's launch carries: the picker's selection for the cards that
|
||||
* take a spec, and for Quick Task only a diagnosed bug, whose write-up it reads
|
||||
* first. Every other card launches untargeted.
|
||||
* first, or a folder holding only saved prototypes (files on disk with a
|
||||
* `prototypes` count), which it builds from. A mid-pipeline spec with
|
||||
* prototypes is Implement's to build. Every other card launches untargeted.
|
||||
*/
|
||||
export function launchTarget(entry, sel) {
|
||||
if (!entry || !sel) return null;
|
||||
if (entry.spec) return sel;
|
||||
return entry.skill === "plan2code-quick-task" && sel.state === "diagnosed" ? sel : null;
|
||||
if (entry.skill !== "plan2code-quick-task") return null;
|
||||
const prototypeOnly = sel.state === "unrecognized" && sel.prototypes > 0;
|
||||
return sel.state === "diagnosed" || prototypeOnly ? sel : null;
|
||||
}
|
||||
|
||||
export function cardPresentation(entry, scan, sel, menu = {}) {
|
||||
|
||||
Reference in new issue
Block a user