Compare commits

...
2 Commits
15 changed files with 83 additions and 23 deletions

No files matched your search

+8
View File
@@ -2,6 +2,14 @@
All notable changes to Plan2Code will be documented in this file.
## v3.0.4
### 🐛 Fixed
- **desktop app**: the agent setup page's **Back** button now sits in the app's top bar instead of floating over the page, where it covered the settings and help icons.
- **web console**: the agent setup page's middle pane now scrolls, so the agent options below the fold (the rest of the list and the templates) can be reached. The list used to be cut off with no scrollbar.
- **web console**: the **Install page** link on the agent setup page now opens in your default browser inside the desktop app. It did nothing there, because the page was not told it was running in the app.
## v3.0.3
### 🐛 Fixed
+1 -1
View File
@@ -13,7 +13,7 @@ the next engineer all start from the same specs.
One command opens it, every step is a card, and the terminal is always there if you prefer it.
Version 3.0.3 · MIT · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
Version 3.0.4 · MIT · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
---
+2 -1
View File
@@ -2759,7 +2759,8 @@ async function installDesktopApp({ quiet = false, unattended = false, outcome =
}
recordInstalled('app');
console.log(` ${COLORS.GREEN}${SYMBOLS.SUCCESS}${COLORS.RESET} Installed: ${APP_DEST}`);
console.log(` ${COLORS.YELLOW}${SYMBOLS.WARNING}${COLORS.RESET} The app is unsigned, and it starts the agent with permission checks off. See docs/desktop-app.md for how to allow it on macOS and Windows.`);
console.log(` ${COLORS.YELLOW}${SYMBOLS.WARNING}${COLORS.RESET} The app is unsigned, and it starts the agent with permission checks off.`);
console.log(` ${COLORS.YELLOW}${SYMBOLS.WARNING}${COLORS.RESET} See docs/desktop-app.md for how to allow it on macOS and Windows if needed.`);
console.log('');
outcome.app = true;
return 0;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "plan2code",
"version": "3.0.3",
"version": "3.0.4",
"private": true,
"bin": {
"plan2code-install": "./install.js"
+2 -2
View File
@@ -757,7 +757,7 @@ dependencies = [
[[package]]
name = "fake-agent"
version = "3.0.3"
version = "3.0.4"
dependencies = [
"serde_json",
"terminal_size",
@@ -2371,7 +2371,7 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
[[package]]
name = "plan2code-app"
version = "3.0.3"
version = "3.0.4"
dependencies = [
"chrono",
"libc",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "fake-agent"
version = "3.0.3"
version = "3.0.4"
description = "A stand-in agent program for the Plan2Code app's tests"
edition = "2021"
publish = false
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "plan2code-app",
"version": "3.0.3",
"version": "3.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "plan2code-app",
"version": "3.0.3",
"version": "3.0.4",
"dependencies": {
"@tauri-apps/api": "2.12.4",
"@xterm/addon-fit": "0.11.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "plan2code-app",
"version": "3.0.3",
"version": "3.0.4",
"private": true,
"description": "Plan2Code desktop app (Tauri). Separate from the repo root so the root and the web console stay dependency-free.",
"scripts": {
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "plan2code-app"
version = "3.0.3"
version = "3.0.4"
description = "Plan2Code desktop app"
edition = "2021"
publish = false
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Plan2Code",
"version": "3.0.3",
"version": "3.0.4",
"identifier": "com.plan2code.desktop",
"build": {
"frontendDist": "../ui",
+3 -6
View File
@@ -193,11 +193,7 @@
/* Set up an agent, shown wherever the app says "no agent". */
.setup-agent-btn { font: inherit; font-size: 12px; margin-top: 4px; padding: 3px 10px; cursor: pointer;
background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 4px; }
/* The way out of the setup page, over its frame. */
#setup-close { position: absolute; top: 10px; right: 10px; z-index: 2; font: inherit; font-size: 12px;
padding: 4px 10px; border-radius: 6px; cursor: pointer; border: 1px solid var(--rule-2);
background: var(--panel); color: var(--ink); }
#setup-close:hover { background: var(--panel-2); }
/* The way out of the setup page: a bar button, so it never covers the page. */
#setup-close[hidden] { display: none; }
#launch-missing code { color: #ddd; }
#launch-agents-warning { margin: 0; font-size: 12px; color: #d7ba7d; white-space: pre-line; }
@@ -291,6 +287,8 @@
<span id="agent-none">No agent</span>
<span id="agent-status" role="status"></span>
<span id="bar-grow"></span>
<!-- Shown only on the agent setup page, in the bar rather than over its frame. -->
<button id="setup-close" type="button" hidden>Back</button>
<!-- The console's or the skills' one next step (meter.js barNextSteps), when there is one. -->
<span id="next-step" role="status" hidden>
<span id="next-step-text"></span>
@@ -332,7 +330,6 @@
<div id="workspace">
<main id="dashboard">
<iframe id="console-frame" title="Plan2Code console dashboard" allow="clipboard-write"></iframe>
<button id="setup-close" type="button" hidden>Back</button>
<div id="dashboard-state" hidden>
<!-- Planny on a coffee break: shown only before a New Session press,
the one state here that is a question rather than a status. The
+40 -1
View File
@@ -25,7 +25,7 @@ import os from "node:os";
import path from "node:path";
import test from "node:test";
import assert from "node:assert/strict";
import { pageSuite, openSession, tempProject, textOf } from "./page-test-helpers.mjs";
import { pageSuite, openSession, tempProject, textOf, scrollCard } from "./page-test-helpers.mjs";
import { cli, sessionUrl, readState, until, MODELS_DIR } from "./web-console-test-helpers.mjs";
const suite = pageSuite(test);
@@ -380,6 +380,45 @@ test("a /handover post with the setup token moves the page to the new session",
await s.page.waitForURL((u) => u.origin === target.base && u.pathname === "/", { timeout: 15000 });
});
test("in the app's frame, the Install page link opens in the default browser through the console", async (t) => {
const f = agentFixtures(t);
// The app starts the setup console without the in-app flag: only the frame says it is there.
const s = await openSession(await suite.browser(), {
t,
workflow: "setup",
env: f.env,
init: () => Object.defineProperty(window, "parent", { configurable: true, get: () => ({ postMessage() {} }) }),
});
const asked = [];
await s.page.route("**/open-link", async (route) => {
asked.push(route.request().postDataJSON());
await route.fulfill({ status: 200, contentType: "application/json", body: JSON.stringify({ ok: true }) });
});
let popups = 0;
s.page.context().on("page", () => popups++);
const gone = await pick(s, "gone", "Gone Agent");
await gone.locator("a", { hasText: "Install page" }).click();
await until(async () => asked.length === 1, 5000);
assert.deepEqual(asked, [{ url: "https://example.com/gone" }]);
await new Promise((r) => setTimeout(r, 300));
assert.equal(popups, 0, "no window opened inside the app");
});
test("the setup page scrolls its own pane so every agent option can be reached", async (t) => {
const f = agentFixtures(t);
const s = await openSession(await suite.browser(), { t, workflow: "setup", env: f.env });
await s.page.locator(".setup-screen").waitFor();
await rowByKey(s, "gone").waitFor();
// A short window: the list and the buttons under it run past the fold.
await s.page.setViewportSize({ width: 1200, height: 520 });
const screen = s.page.locator(".setup-screen");
// scrollCard fails unless the pane holds a scroll, so a clipped pane fails here.
await scrollCard(screen, "end");
const check = s.page.locator(".setup-actions button", { hasText: "Check again" });
const [box, pane] = await Promise.all([check.boundingBox(), screen.boundingBox()]);
assert.ok(box.y + box.height <= pane.y + pane.height + 1, "the last control is reachable at the pane's bottom");
});
test("the setup page keeps no agent-silence UI: no adrift or offline lines, no Ask, top bar down to Help", async (t) => {
const f = agentFixtures(t);
const s = await openSession(await suite.browser(), { t, workflow: "setup", env: f.env });
+5 -3
View File
@@ -71,7 +71,7 @@ import { renderAgentsDoc, renderBriefButton, renderDoc, renderOverview } from ".
import { board, renderGitBoard, resetBoard } from "./git-host.js";
import { renderWorkspace, tellFolderIssues } from "./workspace.js";
import { openHelpOn } from "./help-dialog.js";
import { linkLeavesPage, onAppMessage, startNewSession, tellApp } from "../app-bridge.js";
import { framed, linkLeavesPage, onAppMessage, startNewSession, tellApp } from "../app-bridge.js";
import { continueButton } from "../continue-button.js";
import { askOfflineFlipped, askState, declineOpen, renderAside, renderAsk, renderSubagents, renderSubagentsButton } from "./ask.js";
import { renderHandoff, renderLoopEnd, renderHomeButton, renderStopButton, renderStopControls, renderStopping, stopInProgress, stopWarning } from "./ending.js";
@@ -2251,11 +2251,13 @@ export function wireChrome() {
// Under the app, a link off the page goes to the default browser through
// the console: the app's window opens no new ones, so the click alone would
// do nothing. Capture phase, ahead of any handler on the link itself.
// do nothing. Capture phase, ahead of any handler on the link itself. The
// setup page runs in the app's frame without the in-app flag (the app starts
// its console without it), so a framed page counts too.
document.addEventListener(
"click",
(e) => {
if (!page.inApp || e.defaultPrevented || !(e.target instanceof Element)) return;
if (!(page.inApp || framed()) || e.defaultPrevented || !(e.target instanceof Element)) return;
const a = e.target.closest("a[href]");
if (!a || !linkLeavesPage(a.href, location.origin)) return;
e.preventDefault();
+13
View File
@@ -282,6 +282,19 @@ h1 {
padding-right: 32px;
}
/* The agent setup page is the column's whole contents too, and its agent list
runs past the fold, so it scrolls itself like the menu above. */
.main > .setup-screen {
flex: 0 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
/* Its parts keep their height: the agent list clips its own overflow, so left
to shrink it would be cut at the fold instead of scrolling. */
.main > .setup-screen > * { flex-shrink: 0; }
/* The column itself never scrolls; the card does. The git board is the one
exception, below: its card sits in the board's card slot, so the column
takes the scroll there and card and board flow through it at natural height. */
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "Plan2Code",
"version": "3.0.3",
"version": "3.0.4",
"description": "A structured 4-step workflow methodology for AI-assisted software development",
"keywords": [
"ai",
@@ -17,6 +17,6 @@
"url": "https://github.com/jparkerweb/plan2code"
},
"homepage": "https://github.com/jparkerweb/plan2code",
"releaseDate": "2026-11-06",
"releaseDate": "2026-11-07",
"mode": "utility"
}