mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-12-05 00:15:41 -08:00
Sync upstream v3.2.6: Loop checkboxes, Notes drag handle, US English replies, app update fetch (v3.2.6)
- Implement's and Review's confirm panes carry a Loop checkbox in place of the dashboard's loop cards; loop end-screen buttons show a spinner. - The stacked Notes panel gets a drag handle. - Every skill prompt and the console contracts say to reply in US English. - The desktop app offers Update to latest when the skills are newer, and plan2code update refetches an app that install.json does not record. - Devin Balanced maps to Sonnet 5.5 Medium.
This commit is contained in:
1 parent
9629961f36
commit
658c813428
70 files changed
+818
-242
No files matched your search
@@ -119,6 +119,16 @@ test("each version state reads and acts as the old version bar did", () => {
|
||||
const [ahead] = barNextSteps({ version: { kind: "ahead", skills: "3.2.0", app: "3.1.0" } });
|
||||
assert.equal(ahead.action, null, "another Update skills run cannot help when the skills are ahead");
|
||||
assert.match(ahead.title, /newer than this app \(v3\.1\.0\)\. Get the new app\./);
|
||||
assert.equal(ahead.text, "App v3.1.0 is older than the skills (v3.2.0)", "no release known: the plain facts, never 'Skills ... are newer'");
|
||||
// A release is out: the same step offers Update and restart, and the release step is not shown twice.
|
||||
const leadSteps = barNextSteps({ version: { kind: "ahead", skills: "3.2.5", app: "3.2.4" }, newRelease: { latest: "3.2.5" } });
|
||||
assert.deepEqual(leadSteps.map((step) => [step.id, step.text, step.action]), [["ahead", "Update to latest: v3.2.5", "update-restart"]]);
|
||||
assert.match(leadSteps[0].title, /Update and restart installs v3\.2\.5/);
|
||||
assert.equal(leadSteps[0].link.label, "What's new");
|
||||
// While it runs, fails or waits for the restart, the release's own step says so, with no second button.
|
||||
for (const newRelease of [{ latest: "3.2.5", updating: "Downloading" }, { latest: "3.2.5", failed: "No." }, { latest: "3.2.5", restartNeeded: true }]) {
|
||||
assert.deepEqual(barNextSteps({ version: { kind: "ahead", skills: "3.2.5", app: "3.2.4" }, newRelease }).map((step) => step.id), ["new-release"]);
|
||||
}
|
||||
const [updating] = barNextSteps({ version: { kind: "updating", line: "Installing skills (4 of 9)" } });
|
||||
assert.deepEqual([updating.text, updating.busy, updating.action], ["Installing skills (4 of 9)", true, null], "no button while it runs");
|
||||
const [remains] = barNextSteps({ version: { kind: "remains", skills: "3.0.0", app: "3.1.0" } });
|
||||
|
||||
Reference in new issue
Block a user