mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Add Continue here, Update CHANGELOG first and Ask prompt blocks to the web console
AI Assisted
This commit is contained in:
1 parent
f8b54ef708
commit
d32925cccf
25 files changed
+454
-28
No files matched your search
@@ -14,10 +14,17 @@
|
||||
// - Git counts as a launch from anywhere: Commit it now on a finished
|
||||
// screen and Changelog's "Commit this now?" both stand in for its
|
||||
// dashboard card, and a finish left behind would keep the page on the old
|
||||
// ending above the new board.
|
||||
// ending above the new board;
|
||||
// - a launch from a finished screen (Continue here, Update CHANGELOG first)
|
||||
// goes from one skill into another and gets a clean page too, since the
|
||||
// finish it leaves behind would keep the page on the old ending. Two
|
||||
// pairs are not that: out of Git (its board hops into Changelog on its
|
||||
// own and keeps its state) and into Review (a skill's review runs inline
|
||||
// and never switches workflow).
|
||||
// A skill run inline from another (a quick task's review) never switches
|
||||
// workflow, so it keeps the page; nor does a resume into the same workflow.
|
||||
export function startsClean(from, to) {
|
||||
if (typeof from !== "string" || typeof to !== "string" || !from || !to || from === to) return false;
|
||||
return from === "dashboard" || to === "dashboard" || to === "git";
|
||||
if (from === "dashboard" || to === "dashboard" || to === "git") return true;
|
||||
return from !== "git" && to !== "review";
|
||||
}
|
||||
Reference in new issue
Block a user