diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b969bc..b798d7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,7 @@ All notable changes to Plan2Code will be documented in this file. - **web console**: Help's "When an update is out" line now knows when it is read inside the app too: there, it names **Update skills** in the bar instead of describing the dashboard's UPDATE AVAILABLE banner and a terminal command, since that banner never shows under the app and the command has no terminal to run in. - **desktop app**: the top bar's **Restart** button is now **New Session**, and every place the console names it under the app (the session meter, the dashboard's red-session banner, the finished-step guide, the Welcome tip, Help's Ask and Finishing topics, the handoff copy button's description) says so too; the meter's own advice under the app is a single **Start a New Session** button in the user's highlight color. Its confirmation no longer claims "What it was doing is not saved" (not always true). - **desktop app**: with nothing saved yet, the terminal panel now starts docked right at a width that keeps the console's own side panels (such as Notes) from stacking under the main content, instead of the bottom dock it always opened with before; a saved choice from before is still kept exactly as it was. -- **desktop app**: docked right and collapsed, the terminal panel's **Expand** label now reads top to bottom instead of running off the edge of the narrow strip. +- **desktop app**: the collapsed terminal panel's **Expand** button now reads **View Agent Terminal**, and docked right it reads top to bottom instead of running off the edge of the narrow strip. - **desktop app**: the agent no longer prints the console's web address in the terminal panel, since the page is already in the window beside it: `terminalLine` under the app points at the dashboard instead, and the agent contract says to give no link there. - **desktop app**: the console's "Not running... type **continue**" line makes **continue** a button under the app, which types `continue` and Enter (and, under Claude Code, its send-now chord) into the agent's terminal panel for you; the session meter's **Start a New Session** button presses the bar's own New Session (its confirmation included), replacing a "Press New Session at the top of the window" sentence now that the press works from there. - **desktop app**: **New Session** now starts the fresh agent on a new console session, so the session meter starts over at green. Before, the fresh agent joined the window's old session, and the meter stayed red after the very press it asks for. The brief of where you were is still written from the old session first, and the old console shuts itself down once the window moves on. diff --git a/plan2code-app/RELEASE-CHECKLIST.md b/plan2code-app/RELEASE-CHECKLIST.md index 051f752..d3aaa59 100644 --- a/plan2code-app/RELEASE-CHECKLIST.md +++ b/plan2code-app/RELEASE-CHECKLIST.md @@ -65,9 +65,9 @@ file directly after checking it against the release's checksum list. just disabled - [ ] **Dock the terminal to the right**: the splitter becomes vertical, the toolbar stacks, and the dashboard keeps the rest of the width; dock it back to the bottom -- [ ] **Collapse** the terminal to a thin strip (either dock) and **Expand** it back; its size from - before collapsing is remembered -- [ ] Docked right, collapsed: the **Expand** label reads top-to-bottom and fits inside the strip, +- [ ] **Collapse** the terminal to a thin strip (either dock) and **View Agent Terminal** brings it + back; its size from before collapsing is remembered +- [ ] Docked right, collapsed: the **View Agent Terminal** label reads top-to-bottom and fits inside the strip, not sideways text running off the edge - [ ] Collapse the terminal (or shrink it small), let the agent go quiet for a while mid-answer: the "agent may need you" badge appears on the strip; expanding it clears the badge diff --git a/plan2code-app/ui/app.js b/plan2code-app/ui/app.js index a605e1b..c86e503 100644 --- a/plan2code-app/ui/app.js +++ b/plan2code-app/ui/app.js @@ -563,7 +563,7 @@ function applyPaneLayout() { termDockBtn.textContent = paneDock === 'right' ? 'Dock bottom' : 'Dock right'; termMaximizeBtn.textContent = paneMaximized ? 'Restore' : 'Maximize'; termMaximizeBtn.setAttribute('aria-pressed', String(paneMaximized)); - termCollapseBtn.textContent = paneCollapsed ? 'Expand' : 'Collapse'; + termCollapseBtn.textContent = paneCollapsed ? 'View Agent Terminal' : 'Collapse'; termCollapseBtn.setAttribute('aria-pressed', String(paneCollapsed)); updateBadge(); } diff --git a/plan2code-app/ui/index.html b/plan2code-app/ui/index.html index f3b694c..090f4ff 100644 --- a/plan2code-app/ui/index.html +++ b/plan2code-app/ui/index.html @@ -215,8 +215,8 @@ #term-toolbar button:hover { background: #333; } #term-toolbar button[aria-pressed="true"] { color: #fff; border-color: #888; } #term-panel.collapsed #term-dock, #term-panel.collapsed #term-maximize { display: none; } - /* Docked right and collapsed, the panel is a 28px-wide strip: "Expand" - does not fit sideways, so it reads top-to-bottom instead, rotated the + /* Docked right and collapsed, the panel is a 28px-wide strip: "View Agent + Terminal" does not fit sideways, so it reads top-to-bottom instead, rotated the same way a reader would turn the panel to read it. */ #workspace.dock-right #term-panel.collapsed #term-toolbar { padding: 6px 2px; align-items: center; } #workspace.dock-right #term-panel.collapsed #term-collapse { diff --git a/scripts/test-app-meter.mjs b/scripts/test-app-meter.mjs index 1acdaea..4539dc5 100644 --- a/scripts/test-app-meter.mjs +++ b/scripts/test-app-meter.mjs @@ -174,9 +174,9 @@ test("with nothing saved yet, app.js starts the terminal docked right via defaul }); // Docked right and collapsed, the terminal panel is a 28px-wide strip: the -// Expand/Collapse button's text used to run horizontally off the edge of it +// collapse button's text used to run horizontally off the edge of it // (visible, unreadable). It now reads top-to-bottom instead. -test("docked right and collapsed, the terminal panel's Expand button fits the strip instead of overflowing it", async (t) => { +test("docked right and collapsed, the terminal panel's View Agent Terminal button fits the strip instead of overflowing it", async (t) => { if (!findBrowser()) return t.skip("no Chrome or Edge installed"); const browser = await launchBrowser(); try { @@ -186,7 +186,7 @@ test("docked right and collapsed, the terminal panel's Expand button fits the st await page.evaluate(() => { document.getElementById("workspace").classList.add("dock-right"); document.getElementById("term-panel").classList.add("collapsed"); - document.getElementById("term-collapse").textContent = "Expand"; + document.getElementById("term-collapse").textContent = "View Agent Terminal"; }); const fit = await page.evaluate(() => { const el = document.getElementById("term-collapse");