mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-24 13:11:18 -08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b06a4cb4ab |
No files matched your search
@@ -90,6 +90,7 @@ The same areas as one-command rows live in the [Test map](./AGENTS-test-map.md),
|
|||||||
| What changed | Run |
|
| What changed | Run |
|
||||||
|---|---|
|
|---|---|
|
||||||
| An Activities game (`public/activities/*`), `public/tones.js` or `public/music.js` | `node --test scripts/test-web-console-tones.mjs scripts/test-web-console-activities.mjs`, plus the game's own `scripts/test-web-console-activities-<game>*.mjs` when it has one; add `test-web-console-page-activities.mjs` when the Activities window or its switches changed |
|
| An Activities game (`public/activities/*`), `public/tones.js` or `public/music.js` | `node --test scripts/test-web-console-tones.mjs scripts/test-web-console-activities.mjs`, plus the game's own `scripts/test-web-console-activities-<game>*.mjs` when it has one; add `test-web-console-page-activities.mjs` when the Activities window or its switches changed |
|
||||||
|
| Page styles (`public/styles/*.css`) or `public/index.html` | `npm run test:page -- scripts/test-web-console-page-layout.mjs`, plus the page file of a screen whose own look changed (`test:page` unsets the app variables, takes `--test-name-pattern`, and is the way to run any page file) |
|
||||||
| A music prototype (`prototypes/music/<game>/`) | `node prototypes/music/check.cjs <game>` (nothing in `npm test` reads `prototypes/`) |
|
| A music prototype (`prototypes/music/<game>/`) | `node prototypes/music/check.cjs <game>` (nothing in `npm test` reads `prototypes/`) |
|
||||||
| One web console area (server routes, chat, git board, workspace, notepad, Implementation Loop...) | that area's `scripts/test-web-console-<area>.mjs` (the loop's is `test-web-console-loop.mjs`), and its `test-web-console-page-<area>.mjs` when the page changed; `node scripts/parse-check.mjs` after editing any browser module under `public/` |
|
| One web console area (server routes, chat, git board, workspace, notepad, Implementation Loop...) | that area's `scripts/test-web-console-<area>.mjs` (the loop's is `test-web-console-loop.mjs`), and its `test-web-console-page-<area>.mjs` when the page changed; `node scripts/parse-check.mjs` after editing any browser module under `public/` |
|
||||||
| The launcher (`src/launcher/`) | `node --test scripts/test-launcher.mjs` |
|
| The launcher (`src/launcher/`) | `node --test scripts/test-launcher.mjs` |
|
||||||
|
|||||||
@@ -18,5 +18,6 @@ Which checks cover which files, read by PR Prep and Test (`test-map.mjs read` ch
|
|||||||
| Desktop app | `plan2code-app/**` | `cd plan2code-app && cargo test` | no |
|
| Desktop app | `plan2code-app/**` | `cd plan2code-app && cargo test` | no |
|
||||||
| Metrics | `plan2code-metrics/**` | `cd plan2code-metrics && npm test` | no |
|
| Metrics | `plan2code-metrics/**` | `cd plan2code-metrics && npm test` | no |
|
||||||
| Bot | `plan2code-bot/**` | `cd plan2code-bot && npm test` | no |
|
| Bot | `plan2code-bot/**` | `cd plan2code-bot && npm test` | no |
|
||||||
|
| Web console page shell and styles | `src/web-console/public/styles/**`, `src/web-console/public/index.html` | `npm run test:page -- scripts/test-web-console-page-layout.mjs` | no |
|
||||||
| Shared code | `install.js`, `src/web-console/public/skills.js`, `src/web-console/console.mjs`, `src/web-console/routes.mjs`, `src/web-console/static.mjs`, `scripts/*-helpers.mjs` | `npm test` | yes |
|
| Shared code | `install.js`, `src/web-console/public/skills.js`, `src/web-console/console.mjs`, `src/web-console/routes.mjs`, `src/web-console/static.mjs`, `scripts/*-helpers.mjs` | `npm test` | yes |
|
||||||
| Docs only | `**/*.md` | `node --test scripts/test-us-english.mjs scripts/test-line-endings.mjs` | no |
|
| Docs only | `**/*.md` | `node --test scripts/test-us-english.mjs scripts/test-line-endings.mjs` | no |
|
||||||
@@ -1 +1 @@
|
|||||||
U0VOQwEIwpvqLDLCPqABsj78HHjAP4LCF3YHi+TAqmTZKXEX0MOp3crSM09XMVuneNhoOk05JYSSIrr2qJG4TJVmRAU7AFHtTXVH2+JHQw5Hd9oQ8t72lH5bmCtAZ1QRIAbCuaHFbWF7Lq1nRsIPuK9S5++Z6uTDJU8b/PBnQT+hX7FZtAvMoXS3O+lAbzTa5XoGQWh/FOESEk18Ro/K+raioOva/FB6hvRycyXYv9V+KlkzKhPEVtQKkulswwTUN+rfs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H8xRa5lk9E5CwLine truncated
|
||||||
@@ -4,6 +4,14 @@ All notable changes to Plan2Code will be documented in this file.
|
|||||||
|
|
||||||
<!-- Format from 3.1.0 on: `## vX.Y.Z (YYYY-MM-DD)` with the date from version.json; a minor release opens with a three-bullet `### Highlights`; sections run Added, Changed, Fixed; game changes sit under one Activities line; tooling and test lines go under "For contributors". Older headings have no date and are not backfilled. -->
|
<!-- Format from 3.1.0 on: `## vX.Y.Z (YYYY-MM-DD)` with the date from version.json; a minor release opens with a three-bullet `### Highlights`; sections run Added, Changed, Fixed; game changes sit under one Activities line; tooling and test lines go under "For contributors". Older headings have no date and are not backfilled. -->
|
||||||
|
|
||||||
|
## v3.1.5 (2026-11-23)
|
||||||
|
|
||||||
|
### 🐛 Fixed
|
||||||
|
|
||||||
|
- **desktop app**: Change project, and picking a recent folder, now starts the new project's agent and dashboard; before, the agent opened inside the old project's stopped session and never showed its page.
|
||||||
|
- **web console**: the page itself no longer scrolls (its panels do), so the blank space that could show below the footer is gone; the narrow-window layout and printing follow the same rule.
|
||||||
|
- **For contributors**: `npm run test:page -- <file>` runs page test files with the desktop app's variables unset, and a new layout page test checks that the page shell never scrolls.
|
||||||
|
|
||||||
## v3.1.4 (2026-11-20)
|
## v3.1.4 (2026-11-20)
|
||||||
|
|
||||||
### 🔧 Changed
|
### 🔧 Changed
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
Plan2Code is a spec-driven workflow for AI coding agents. You work through it on a page in your browser: the dashboard lists every step as a card, and each step's questions, progress and sign-offs arrive on that same page while your agent does the work. An approved plan becomes phase documents, and the agent builds to them one phase at a time.
|
Plan2Code is a spec-driven workflow for AI coding agents. You work through it on a page in your browser: the dashboard lists every step as a card, and each step's questions, progress and sign-offs arrive on that same page while your agent does the work. An approved plan becomes phase documents, and the agent builds to them one phase at a time.
|
||||||
|
|
||||||
Version 3.1.4 · Apache 2.0 · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
|
Version 3.1.5 · Apache 2.0 · 📖 [plan2code.jparkerweb.com](https://plan2code.jparkerweb.com)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plan2code",
|
"name": "plan2code",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -17,7 +17,8 @@
|
|||||||
"play": "node scripts/play.mjs",
|
"play": "node scripts/play.mjs",
|
||||||
"pretest": "node scripts/fix-line-endings.mjs",
|
"pretest": "node scripts/fix-line-endings.mjs",
|
||||||
"test:fast": "node scripts/test-fast.mjs",
|
"test:fast": "node scripts/test-fast.mjs",
|
||||||
"test": "node scripts/check-test-lanes.mjs && node scripts/validate-char-count.js && node install.js --build-skills && node scripts/check-versions.mjs && node scripts/check-doc-size.mjs && node scripts/parse-check.mjs && node scripts/check-skill-table.mjs && node scripts/check-prompt-wording.mjs && node scripts/check-console-openings.mjs && node scripts/node-test.mjs scripts/test-line-endings.mjs scripts/test-us-english.mjs scripts/test-script-git.mjs scripts/test-git-repo.mjs scripts/test-skill-scripts.mjs scripts/test-script-test-map.mjs scripts/test-script-lessons.mjs scripts/test-script-test-match.mjs scripts/test-script-test-commands.mjs scripts/test-script-run-check.mjs scripts/test-script-pr-prep.mjs scripts/test-script-dead-code.mjs scripts/test-script-deps.mjs scripts/test-script-ui-prototype.mjs scripts/test-script-coverage.mjs scripts/test-script-changelog.mjs scripts/test-script-changes.mjs scripts/test-web-console-git.mjs scripts/test-web-console-git-board.mjs scripts/test-web-console-chat.mjs scripts/test-web-console-subagents.mjs scripts/test-web-console-pointers.mjs scripts/test-web-console-learning.mjs scripts/test-console-wire-budgets.mjs scripts/test-web-console-speed.mjs scripts/test-web-console-qa.mjs scripts/test-web-console-concurrency.mjs scripts/test-web-console-diff-parse.mjs scripts/test-web-console-workspace.mjs scripts/test-web-console-lifecycle.mjs scripts/test-web-console-chat-stress.mjs scripts/test-web-console-server.mjs scripts/test-web-console-session.mjs scripts/test-web-console-logic.mjs scripts/test-web-console-agents-doc.mjs scripts/test-web-console-prototypes.mjs scripts/test-web-console-activities.mjs scripts/test-web-console-activities-rapids.mjs scripts/test-web-console-activities-flock.mjs scripts/test-web-console-activities-bounce.mjs scripts/test-web-console-activities-bounce-game.mjs scripts/test-web-console-activities-ghoul.mjs scripts/test-web-console-activities-ghoul-graveyard.mjs scripts/test-web-console-activities-ghoul-grounds.mjs scripts/test-web-console-activities-ghoul-chapel.mjs scripts/test-web-console-activities-ghoul-sanatorium.mjs scripts/test-web-console-activities-ghoul-village.mjs scripts/test-web-console-activities-ghoul-mine.mjs scripts/test-web-console-activities-ghoul-carnival.mjs scripts/test-web-console-activities-ghoul-frozen.mjs scripts/test-web-console-activities-ghoul-bog.mjs scripts/test-web-console-activities-ghoul-lantern.mjs scripts/test-web-console-activities-ghoul-marrow.mjs scripts/test-web-console-activities-ghoul-mat.mjs scripts/test-web-console-activities-ghoul-eye.mjs scripts/test-web-console-activities-ghoul-bonestair.mjs scripts/test-web-console-activities-ghoul-heart.mjs scripts/test-web-console-activities-ghoul-ending.mjs scripts/test-web-console-activities-ghoul-ride.mjs scripts/test-web-console-activities-ghoul-cart.mjs scripts/test-web-console-activities-ghoul-sled.mjs scripts/test-web-console-activities-ghoul-banister.mjs scripts/test-web-console-activities-ghoul-gurney.mjs scripts/test-web-console-activities-ghoul-hearse.mjs scripts/test-web-console-activities-ghoul-wagon.mjs scripts/test-web-console-activities-ghoul-pew.mjs scripts/test-web-console-activities-ghoul-mower.mjs scripts/test-web-console-activities-ghoul-tray.mjs scripts/test-web-console-activities-ghoul-arms.mjs scripts/test-web-console-activities-ghoul-dice.mjs scripts/test-web-console-activities-ghoul-gameover.mjs scripts/test-web-console-activities-ghoul-intro.mjs scripts/test-web-console-activities-ghoul-bossintro.mjs scripts/test-web-console-activities-ghoul-story.mjs scripts/test-web-console-activities-ghoul-bones.mjs scripts/test-web-console-activities-ghoul-retry.mjs scripts/test-web-console-activities-bounce-cars.mjs scripts/test-web-console-activities-bounce-arcade.mjs scripts/test-web-console-tones.mjs scripts/test-web-console-skills.mjs scripts/test-web-console-spec-states.mjs scripts/test-web-console-card-rows.mjs scripts/test-spec-carry.mjs scripts/test-spec-carry-page.mjs scripts/test-web-console-state.mjs scripts/test-web-console-send-state.mjs scripts/test-web-console-strengths.mjs scripts/test-web-console-shape.mjs scripts/test-script-pathfinder.mjs scripts/test-skill-test-runs.mjs scripts/test-launcher.mjs scripts/test-agents-file.mjs scripts/test-agent-lookup.mjs scripts/test-web-console-source.mjs scripts/test-web-console-hardening.mjs scripts/test-web-console-embed.mjs scripts/test-web-console-in-app.mjs scripts/test-web-console-loop.mjs scripts/test-web-console-handoffs.mjs scripts/test-web-console-notepad.mjs scripts/test-script-xray.mjs scripts/test-script-finalize.mjs scripts/test-getting-started.mjs scripts/test-install-update.mjs scripts/test-browser-helper.mjs scripts/test-web-console-page-cards.mjs scripts/test-web-console-page-changes.mjs scripts/test-web-console-page-dashboard.mjs scripts/test-web-console-page-learning.mjs scripts/test-web-console-page-session.mjs scripts/test-web-console-page-ask.mjs scripts/test-Line truncated
|
"test:page": "node scripts/run-page-tests.mjs",
|
||||||
|
"test": "node scripts/check-test-lanes.mjs && node scripts/validate-char-count.js && node install.js --build-skills && node scripts/check-versions.mjs && node scripts/check-doc-size.mjs && node scripts/parse-check.mjs && node scripts/check-skill-table.mjs && node scripts/check-prompt-wording.mjs && node scripts/check-console-openings.mjs && node scripts/node-test.mjs scripts/test-line-endings.mjs scripts/test-us-english.mjs scripts/test-script-git.mjs scripts/test-git-repo.mjs scripts/test-skill-scripts.mjs scripts/test-script-test-map.mjs scripts/test-script-lessons.mjs scripts/test-script-test-match.mjs scripts/test-script-test-commands.mjs scripts/test-script-run-check.mjs scripts/test-script-pr-prep.mjs scripts/test-script-dead-code.mjs scripts/test-script-deps.mjs scripts/test-script-ui-prototype.mjs scripts/test-script-coverage.mjs scripts/test-script-changelog.mjs scripts/test-script-changes.mjs scripts/test-web-console-git.mjs scripts/test-web-console-git-board.mjs scripts/test-web-console-chat.mjs scripts/test-web-console-subagents.mjs scripts/test-web-console-pointers.mjs scripts/test-web-console-learning.mjs scripts/test-console-wire-budgets.mjs scripts/test-web-console-speed.mjs scripts/test-web-console-qa.mjs scripts/test-web-console-concurrency.mjs scripts/test-web-console-diff-parse.mjs scripts/test-web-console-workspace.mjs scripts/test-web-console-lifecycle.mjs scripts/test-web-console-chat-stress.mjs scripts/test-web-console-server.mjs scripts/test-web-console-session.mjs scripts/test-web-console-logic.mjs scripts/test-web-console-agents-doc.mjs scripts/test-web-console-prototypes.mjs scripts/test-web-console-activities.mjs scripts/test-web-console-activities-rapids.mjs scripts/test-web-console-activities-flock.mjs scripts/test-web-console-activities-bounce.mjs scripts/test-web-console-activities-bounce-game.mjs scripts/test-web-console-activities-ghoul.mjs scripts/test-web-console-activities-ghoul-graveyard.mjs scripts/test-web-console-activities-ghoul-grounds.mjs scripts/test-web-console-activities-ghoul-chapel.mjs scripts/test-web-console-activities-ghoul-sanatorium.mjs scripts/test-web-console-activities-ghoul-village.mjs scripts/test-web-console-activities-ghoul-mine.mjs scripts/test-web-console-activities-ghoul-carnival.mjs scripts/test-web-console-activities-ghoul-frozen.mjs scripts/test-web-console-activities-ghoul-bog.mjs scripts/test-web-console-activities-ghoul-lantern.mjs scripts/test-web-console-activities-ghoul-marrow.mjs scripts/test-web-console-activities-ghoul-mat.mjs scripts/test-web-console-activities-ghoul-eye.mjs scripts/test-web-console-activities-ghoul-bonestair.mjs scripts/test-web-console-activities-ghoul-heart.mjs scripts/test-web-console-activities-ghoul-ending.mjs scripts/test-web-console-activities-ghoul-ride.mjs scripts/test-web-console-activities-ghoul-cart.mjs scripts/test-web-console-activities-ghoul-sled.mjs scripts/test-web-console-activities-ghoul-banister.mjs scripts/test-web-console-activities-ghoul-gurney.mjs scripts/test-web-console-activities-ghoul-hearse.mjs scripts/test-web-console-activities-ghoul-wagon.mjs scripts/test-web-console-activities-ghoul-pew.mjs scripts/test-web-console-activities-ghoul-mower.mjs scripts/test-web-console-activities-ghoul-tray.mjs scripts/test-web-console-activities-ghoul-arms.mjs scripts/test-web-console-activities-ghoul-dice.mjs scripts/test-web-console-activities-ghoul-gameover.mjs scripts/test-web-console-activities-ghoul-intro.mjs scripts/test-web-console-activities-ghoul-bossintro.mjs scripts/test-web-console-activities-ghoul-story.mjs scripts/test-web-console-activities-ghoul-bones.mjs scripts/test-web-console-activities-ghoul-retry.mjs scripts/test-web-console-activities-bounce-cars.mjs scripts/test-web-console-activities-bounce-arcade.mjs scripts/test-web-console-tones.mjs scripts/test-web-console-skills.mjs scripts/test-web-console-spec-states.mjs scripts/test-web-console-card-rows.mjs scripts/test-spec-carry.mjs scripts/test-spec-carry-page.mjs scripts/test-web-console-state.mjs scripts/test-web-console-send-state.mjs scripts/test-web-console-strengths.mjs scripts/test-web-console-shape.mjs scripts/test-script-pathfinder.mjs scripts/test-skill-test-runs.mjs scripts/test-launcher.mjs scripts/test-agents-file.mjs scripts/test-agent-lookup.mjs scripts/test-web-console-source.mjs scripts/test-web-console-hardening.mjs scripts/test-web-console-embed.mjs scripts/test-web-console-in-app.mjs scripts/test-web-console-loop.mjs scripts/test-web-console-handoffs.mjs scripts/test-web-console-notepad.mjs scripts/test-script-xray.mjs scripts/test-script-finalize.mjs scripts/test-getting-started.mjs scripts/test-install-update.mjs scripts/test-browser-helper.mjs scripts/test-web-console-page-cards.mjs scripts/test-web-console-page-changes.mjs scripts/test-web-console-page-dashboard.mjs scripts/test-web-console-page-layout.mjs scripts/test-web-console-page-learning.mjs scripts/test-web-console-page-session.mjs scripts/teLine truncated
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gpt-tokenizer": "2.9.0",
|
"gpt-tokenizer": "2.9.0",
|
||||||
|
|||||||
Generated
+2
-2
@@ -957,7 +957,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fake-agent"
|
name = "fake-agent"
|
||||||
version = "3.1.4"
|
version = "3.1.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde_json",
|
"serde_json",
|
||||||
"terminal_size",
|
"terminal_size",
|
||||||
@@ -2647,7 +2647,7 @@ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "plan2code-app"
|
name = "plan2code-app"
|
||||||
version = "3.1.4"
|
version = "3.1.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"libc",
|
"libc",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "fake-agent"
|
name = "fake-agent"
|
||||||
version = "3.1.4"
|
version = "3.1.5"
|
||||||
description = "A stand-in agent program for the Plan2Code app's tests"
|
description = "A stand-in agent program for the Plan2Code app's tests"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "plan2code-app",
|
"name": "plan2code-app",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "plan2code-app",
|
"name": "plan2code-app",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "2.12.4",
|
"@tauri-apps/api": "2.12.4",
|
||||||
"@xterm/addon-fit": "0.11.0",
|
"@xterm/addon-fit": "0.11.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "plan2code-app",
|
"name": "plan2code-app",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Plan2Code desktop app (Tauri). Separate from the repo root so the root and the web console stay dependency-free.",
|
"description": "Plan2Code desktop app (Tauri). Separate from the repo root so the root and the web console stay dependency-free.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "plan2code-app"
|
name = "plan2code-app"
|
||||||
version = "3.1.4"
|
version = "3.1.5"
|
||||||
description = "Plan2Code desktop app"
|
description = "Plan2Code desktop app"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|||||||
@@ -1139,6 +1139,14 @@ fn teardown_project(state: &AppState) -> Result<(), String> {
|
|||||||
let _ = sup.stop();
|
let _ = sup.stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// The new project's agent asks the window which session is current and
|
||||||
|
// joins it; left at the old project's (its console just stopped), its
|
||||||
|
// `open` joined a dead page and the dashboard never showed.
|
||||||
|
if let Ok(guard) = state.announce.lock() {
|
||||||
|
if let Some(server) = guard.as_ref() {
|
||||||
|
server.forget_current();
|
||||||
|
}
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2011,8 +2019,22 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn new_session_forgets_the_windows_session_so_the_fresh_agent_starts_its_own() {
|
fn changing_project_forgets_the_old_projects_session_so_the_new_agent_starts_its_own() {
|
||||||
|
// The new agent's `open` asks the window which session is current; left
|
||||||
|
// at the old project's (its console torn down) it joined a dead page
|
||||||
|
// and never showed its dashboard.
|
||||||
let state = state_for("project-a");
|
let state = state_for("project-a");
|
||||||
|
announce_page(&state, "s1");
|
||||||
|
teardown_project(&state).unwrap();
|
||||||
|
assert_eq!(
|
||||||
|
state.announce.lock().unwrap().as_ref().unwrap().current(),
|
||||||
|
None,
|
||||||
|
"the new project's agent must not join the old project's s1"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Starts the announce server on `state` and announces page `sid` to it.
|
||||||
|
fn announce_page(state: &AppState, sid: &str) {
|
||||||
let server = AnnounceServer::start(Arc::new(|_| true)).unwrap();
|
let server = AnnounceServer::start(Arc::new(|_| true)).unwrap();
|
||||||
let port: u16 = server
|
let port: u16 = server
|
||||||
.url()
|
.url()
|
||||||
@@ -2023,7 +2045,8 @@ mod tests {
|
|||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
*state.announce.lock().unwrap() = Some(server);
|
*state.announce.lock().unwrap() = Some(server);
|
||||||
let body = r#"{"url":"http://127.0.0.1:5000/s/abc/","sid":"s1","workflow":"plan"}"#;
|
let body =
|
||||||
|
format!(r#"{{"url":"http://127.0.0.1:5000/s/abc/","sid":"{sid}","workflow":"plan"}}"#);
|
||||||
let mut stream = std::net::TcpStream::connect(("127.0.0.1", port)).unwrap();
|
let mut stream = std::net::TcpStream::connect(("127.0.0.1", port)).unwrap();
|
||||||
let token = state
|
let token = state
|
||||||
.announce
|
.announce
|
||||||
@@ -2055,8 +2078,14 @@ mod tests {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.current()
|
.current()
|
||||||
.map(|n| n.sid),
|
.map(|n| n.sid),
|
||||||
Some("s1".to_string())
|
Some(sid.to_string())
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn new_session_forgets_the_windows_session_so_the_fresh_agent_starts_its_own() {
|
||||||
|
let state = state_for("project-a");
|
||||||
|
announce_page(&state, "s1");
|
||||||
|
|
||||||
// No console supervised here, so no brief to write: only the forgetting.
|
// No console supervised here, so no brief to write: only the forgetting.
|
||||||
assert_eq!(before_fresh_hook(&state)(), None);
|
assert_eq!(before_fresh_hook(&state)(), None);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Plan2Code",
|
"productName": "Plan2Code",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"identifier": "com.plan2code.desktop",
|
"identifier": "com.plan2code.desktop",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../ui",
|
"frontendDist": "../ui",
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// Runs page test files the way CI does: the PLAN2CODE_* app variables are
|
||||||
|
// unset first, because inherited from the desktop app (or an agent running
|
||||||
|
// inside it) they fail about a dozen unrelated tests. Files run through
|
||||||
|
// node-test.mjs, so its cap of one file per spare core applies. Extra
|
||||||
|
// arguments (such as --test-name-pattern "<name>") pass straight through.
|
||||||
|
// Usage: npm run test:page -- scripts/test-web-console-page-layout.mjs
|
||||||
|
|
||||||
|
import { spawnSync } from "node:child_process";
|
||||||
|
import path from "node:path";
|
||||||
|
import { fileURLToPath } from "node:url";
|
||||||
|
|
||||||
|
const env = { ...process.env };
|
||||||
|
for (const name of Object.keys(env)) if (name.startsWith("PLAN2CODE_") && /^PLAN2CODE_(IN_APP|APP_|EMBED_ORIGIN|CONSOLE_SID|LOOP_STRENGTH)/.test(name)) delete env[name];
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
if (!args.length) {
|
||||||
|
console.error("Usage: npm run test:page -- <scripts/test-web-console-page-*.mjs ...> [--test-name-pattern <name>]");
|
||||||
|
process.exit(2);
|
||||||
|
}
|
||||||
|
const runner = path.join(path.dirname(fileURLToPath(import.meta.url)), "node-test.mjs");
|
||||||
|
const r = spawnSync(process.execPath, [runner, ...args], { env, stdio: "inherit" });
|
||||||
|
process.exit(r.status ?? 1);
|
||||||
@@ -115,6 +115,7 @@
|
|||||||
"test-web-console-page-cards.mjs",
|
"test-web-console-page-cards.mjs",
|
||||||
"test-web-console-page-changes.mjs",
|
"test-web-console-page-changes.mjs",
|
||||||
"test-web-console-page-dashboard.mjs",
|
"test-web-console-page-dashboard.mjs",
|
||||||
|
"test-web-console-page-layout.mjs",
|
||||||
"test-web-console-page-git.mjs",
|
"test-web-console-page-git.mjs",
|
||||||
"test-web-console-page-help.mjs",
|
"test-web-console-page-help.mjs",
|
||||||
"test-web-console-page-learning.mjs",
|
"test-web-console-page-learning.mjs",
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
// Page tests for the page shell: what keeps the console page itself from
|
||||||
|
// scrolling (only its panels scroll), checked at wide and narrow window sizes.
|
||||||
|
// A change to src/web-console/public/styles/ or index.html needs only this
|
||||||
|
// file, not the whole page suites. Run with:
|
||||||
|
// npm run test:page -- scripts/test-web-console-page-layout.mjs
|
||||||
|
//
|
||||||
|
// Each test drives the real console in a real Chrome or Edge through
|
||||||
|
// scripts/page-test-helpers.mjs: one browser for the file, a fresh console
|
||||||
|
// session per test.
|
||||||
|
|
||||||
|
import test from "node:test";
|
||||||
|
import assert from "node:assert/strict";
|
||||||
|
import { pageSuite, openSession } from "./page-test-helpers.mjs";
|
||||||
|
|
||||||
|
const suite = pageSuite(test);
|
||||||
|
|
||||||
|
// A plan session on the person's turn: one text question and the agent listening.
|
||||||
|
const PLAN_QUESTION = {
|
||||||
|
items: [{ id: "q1", kind: "text", title: "What to call it", body: "A short name for the export." }],
|
||||||
|
agent: { status: "waiting" },
|
||||||
|
};
|
||||||
|
|
||||||
|
test("the page itself never scrolls: oversized content stays inside its own panel", async (t) => {
|
||||||
|
const s = await openSession(await suite.browser(), { t, workflow: "plan", payload: PLAN_QUESTION });
|
||||||
|
await s.page.locator("#main [data-item=\"q1\"]").first().waitFor();
|
||||||
|
const page = await s.page.evaluate(() => {
|
||||||
|
const big = document.createElement("div");
|
||||||
|
big.style.cssText = "height: 5000px";
|
||||||
|
document.querySelector(".main").append(big);
|
||||||
|
const root = document.documentElement;
|
||||||
|
const before = { scrollHeight: root.scrollHeight, innerHeight: innerHeight };
|
||||||
|
scrollTo(0, 400);
|
||||||
|
return {
|
||||||
|
...before,
|
||||||
|
scrolled: scrollY,
|
||||||
|
rootOverflow: getComputedStyle(root).overflowY,
|
||||||
|
bodyOverflow: getComputedStyle(document.body).overflowY,
|
||||||
|
bodyHeight: Math.round(document.body.getBoundingClientRect().height),
|
||||||
|
};
|
||||||
|
});
|
||||||
|
assert.equal(page.rootOverflow, "hidden", "the page root never scrolls");
|
||||||
|
assert.equal(page.bodyOverflow, "hidden", "the body never scrolls");
|
||||||
|
assert.equal(page.bodyHeight, page.innerHeight, "the body is exactly the window tall");
|
||||||
|
assert.ok(page.scrollHeight <= page.innerHeight, "the page is never taller than the window (an absolutely placed bit in a panel stretched it)");
|
||||||
|
assert.equal(page.scrolled, 0, "the page does not move when asked to scroll");
|
||||||
|
});
|
||||||
|
|
||||||
|
test("the one-column layout (900px and narrower) keeps its page scroll", async (t) => {
|
||||||
|
const s = await openSession(await suite.browser(), { t, workflow: "plan", payload: PLAN_QUESTION });
|
||||||
|
await s.page.setViewportSize({ width: 600, height: 700 });
|
||||||
|
const narrow = await s.page.evaluate(() => getComputedStyle(document.documentElement).overflowY);
|
||||||
|
assert.equal(narrow, "visible", "its content sits under the first screen, so the lock must not apply");
|
||||||
|
});
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
/* Print only the document; session furniture stays off paper. */
|
/* Print only the document; session furniture stays off paper. */
|
||||||
@media print {
|
@media print {
|
||||||
.topbar, .rail, .aside, .footer, .banner, .skip, .doc-tools, .pager, .modal, .arrival, .review-offer { display: none !important; }
|
.topbar, .rail, .aside, .footer, .banner, .skip, .doc-tools, .pager, .modal, .arrival, .review-offer { display: none !important; }
|
||||||
html, body { height: auto; background: #fff; color: #000; }
|
html, body { height: auto; overflow: visible; background: #fff; color: #000; }
|
||||||
body { display: block; }
|
body { display: block; }
|
||||||
.layout { display: block; overflow: visible; }
|
.layout { display: block; overflow: visible; }
|
||||||
.main { overflow: visible; padding: 0; max-width: none; }
|
.main { overflow: visible; padding: 0; max-width: none; }
|
||||||
@@ -32,7 +32,9 @@
|
|||||||
rail becomes a strip above the page (Planny beside the list) and the notes
|
rail becomes a strip above the page (Planny beside the list) and the notes
|
||||||
follow the card, as on a phone. */
|
follow the card, as on a phone. */
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
body { display: block; }
|
/* One column: here the page scrolls as a whole (the sticky footer rides it). */
|
||||||
|
html, body { overflow: visible; }
|
||||||
|
body { display: block; min-height: 100vh; }
|
||||||
.layout, .layout:has(> .aside:empty), .layout:has(.git-board) { display: block; }
|
.layout, .layout:has(> .aside:empty), .layout:has(.git-board) { display: block; }
|
||||||
.rail { border-right: 0; border-bottom: 1px solid var(--rule); }
|
.rail { border-right: 0; border-bottom: 1px solid var(--rule); }
|
||||||
.sidebar, .aside { border: 0; border-bottom: 1px solid var(--rule); max-height: 30vh; }
|
.sidebar, .aside { border: 0; border-bottom: 1px solid var(--rule); max-height: 30vh; }
|
||||||
|
|||||||
@@ -217,6 +217,10 @@ h1 {
|
|||||||
grid-template-columns: 250px minmax(0, 1fr) 320px;
|
grid-template-columns: 250px minmax(0, 1fr) 320px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
/* The containing block for the absolutely placed bits inside (the rail items'
|
||||||
|
screen-reader text): without one they sit against the page, and the ones
|
||||||
|
below a scrolled panel stretched the page itself past the footer. */
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A side column with nothing to show is not drawn: an empty aside gives its
|
/* A side column with nothing to show is not drawn: an empty aside gives its
|
||||||
|
|||||||
@@ -194,7 +194,9 @@ h1, h2, h3, .md-h, .dash-title, .git-branch, .git-step-title { font-variant-nume
|
|||||||
.md-p, .card .prompt { text-wrap: pretty; }
|
.md-p, .card .prompt { text-wrap: pretty; }
|
||||||
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
|
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
|
||||||
|
|
||||||
html, body { height: 100%; }
|
/* The page itself never scrolls (the desktop app frames it, and a scrolling
|
||||||
|
page showed blank space under the footer): panels scroll, the shell does not. */
|
||||||
|
html, body { height: 100%; overflow: hidden; }
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -203,7 +205,7 @@ body {
|
|||||||
font: var(--fs-base)/var(--lh-body) var(--sans);
|
font: var(--fs-base)/var(--lh-body) var(--sans);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
min-height: 100vh;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus-visible {
|
:focus-visible {
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Plan2Code",
|
"name": "Plan2Code",
|
||||||
"version": "3.1.4",
|
"version": "3.1.5",
|
||||||
"description": "A structured workflow of six steps (Pathfinder, Plan, Document, Implement, Review, Finalize) for AI-assisted software development",
|
"description": "A structured workflow of six steps (Pathfinder, Plan, Document, Implement, Review, Finalize) for AI-assisted software development",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"ai",
|
"ai",
|
||||||
@@ -17,6 +17,6 @@
|
|||||||
"url": "https://github.com/jparkerweb/plan2code"
|
"url": "https://github.com/jparkerweb/plan2code"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/jparkerweb/plan2code",
|
"homepage": "https://github.com/jparkerweb/plan2code",
|
||||||
"releaseDate": "2026-11-20",
|
"releaseDate": "2026-11-23",
|
||||||
"mode": "utility"
|
"mode": "utility"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user