Add a Notepad card, regenerated screenshots and a Notepad shot to the docs
AI Assisted
No files matched your search
@@ -23,6 +23,8 @@ The install command always opens a menu. Back at your prompt with no output at a
|
|||||||
|
|
||||||
Pick a skill on the dashboard and the same page becomes that session. Details: [.readme/web-console.md](.readme/web-console.md) · worked example: [.readme/walkthrough.md](.readme/walkthrough.md).
|
Pick a skill on the dashboard and the same page becomes that session. Details: [.readme/web-console.md](.readme/web-console.md) · worked example: [.readme/walkthrough.md](.readme/walkthrough.md).
|
||||||
|
|
||||||
|
The **Notepad** icon in the top bar opens a private scratch pad for the folder you are in (Markdown and pictures, kept in `~/.plan2code/notepads/`, never shown to the agent).
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
Every command below is what a dashboard card runs. Typed on its own, each one asks "web console or terminal?" first.
|
Every command below is what a dashboard card runs. Typed on its own, each one asks "web console or terminal?" first.
|
||||||
|
|||||||
@@ -150,7 +150,8 @@ next check-in, and it never holds up your answers.
|
|||||||
|
|
||||||
There is more on the page when you need it. Notes on any question can carry screenshots and
|
There is more on the page when you need it. Notes on any question can carry screenshots and
|
||||||
documents. The folder label in the bottom bar opens your workspace, where you add other folders
|
documents. The folder label in the bottom bar opens your workspace, where you add other folders
|
||||||
as read-only context and point at them by `@name`. The session meter in the top bar turns from green
|
as read-only context and point at them by `@name`. The **Notepad** in the top bar is a private pad of your own for the
|
||||||
|
folder, in Markdown with pictures, that the agent never sees. The session meter in the top bar turns from green
|
||||||
to red as a session grows long and suggests a fresh one. **Stop session** saves your place and gives
|
to red as a session grows long and suggests a fresh one. **Stop session** saves your place and gives
|
||||||
you the command to carry on later, and **Back to the dashboard** takes you home to pick the next
|
you the command to carry on later, and **Back to the dashboard** takes you home to pick the next
|
||||||
step in the same session.
|
step in the same session.
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ footer a { color: inherit; }
|
|||||||
<div><h3>Review before you approve</h3><p>Review the code first, on the sign-off card, reviews exactly the files the phase changed. You tick which findings get fixed, then approve.</p></div>
|
<div><h3>Review before you approve</h3><p>Review the code first, on the sign-off card, reviews exactly the files the phase changed. You tick which findings get fixed, then approve.</p></div>
|
||||||
<div><h3>The Ask tab</h3><p>A chat beside the cards for anything you want to know. It is answered at the agent's next check-in and never holds up your answers.</p></div>
|
<div><h3>The Ask tab</h3><p>A chat beside the cards for anything you want to know. It is answered at the agent's next check-in and never holds up your answers.</p></div>
|
||||||
<div><h3>Attachments on notes</h3><p>Paste a screenshot or attach a document to a note on any question, and show instead of describe.</p></div>
|
<div><h3>Attachments on notes</h3><p>Paste a screenshot or attach a document to a note on any question, and show instead of describe.</p></div>
|
||||||
|
<div><h3>A notepad of your own</h3><p>A private pad for each project folder, in Markdown with pictures. It never goes into your project, and the agent never sees it.</p></div>
|
||||||
<div><h3>Workspace folders</h3><p>Add a shared library or a design folder as read-only context, and point at it by its <code>@name</code>.</p></div>
|
<div><h3>Workspace folders</h3><p>Add a shared library or a design folder as read-only context, and point at it by its <code>@name</code>.</p></div>
|
||||||
<div><h3>Session meter</h3><p>A ring in the top bar turns from green to red as a session grows long, and suggests when a fresh one would serve you better.</p></div>
|
<div><h3>Session meter</h3><p>A ring in the top bar turns from green to red as a session grows long, and suggests when a fresh one would serve you better.</p></div>
|
||||||
<div><h3>Runs on your machine</h3><p>A small program Plan2Code starts for you serves the page on <code>127.0.0.1</code>. No account, no dependencies, and nothing leaves your computer.</p></div>
|
<div><h3>Runs on your machine</h3><p>A small program Plan2Code starts for you serves the page on <code>127.0.0.1</code>. No account, no dependencies, and nothing leaves your computer.</p></div>
|
||||||
@@ -354,6 +355,13 @@ footer a { color: inherit; }
|
|||||||
</picture>
|
</picture>
|
||||||
<figcaption>Every ending says what to run next.</figcaption>
|
<figcaption>Every ending says what to run next.</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
<figure style="grid-column:1/-1;max-width:calc(50% - 12px);justify-self:center">
|
||||||
|
<picture class="shot">
|
||||||
|
<source media="(prefers-color-scheme: dark)" srcset="screenshots/notepad-dark.webp">
|
||||||
|
<img src="screenshots/notepad-light.webp" width="2560" height="1600" loading="lazy" alt="The Notepad open over a question: a few lines of Markdown styled as they are typed.">
|
||||||
|
</picture>
|
||||||
|
<figcaption>Your own notepad, private to the folder.</figcaption>
|
||||||
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 109 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 104 KiB |
@@ -81,6 +81,21 @@ const SHOTS = {
|
|||||||
// The git board draws itself from a real repository, so this shot runs in
|
// The git board draws itself from a real repository, so this shot runs in
|
||||||
// its own git sample project; the post only hands the board back to you.
|
// its own git sample project; the post only hands the board back to you.
|
||||||
git: { workflow: "git", posts: ["git"], repo: true },
|
git: { workflow: "git", posts: ["git"], repo: true },
|
||||||
|
// The Notepad dialog over the plan question, with a few lines of Markdown
|
||||||
|
// typed into it. The store is the scratch folder's, never the real one.
|
||||||
|
notepad: {
|
||||||
|
workflow: "plan",
|
||||||
|
posts: ["question"],
|
||||||
|
open: async (page) => {
|
||||||
|
await page.click("#btn-notepad");
|
||||||
|
await page.waitForSelector("#notepad-modal[open]", { timeout: 10000 });
|
||||||
|
await page.waitForFunction(() => !document.querySelector("#notepad-modal textarea").readOnly, null, { timeout: 10000 });
|
||||||
|
await page.locator("#notepad-modal textarea").fill(
|
||||||
|
"# Before the call\n\n- Ask about **paging**: cursor or offset?\n- Who signs in to the API?\n- Check the `/tasks` limit with the team\n"
|
||||||
|
);
|
||||||
|
await sleep(1800);
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// --compare only: the screens the docs never show, shot so a change to the
|
// --compare only: the screens the docs never show, shot so a change to the
|
||||||
@@ -520,7 +535,7 @@ async function main() {
|
|||||||
|
|
||||||
SCRATCH = fs.mkdtempSync(path.join(SCRATCH_ROOT, "p2c-shots-"));
|
SCRATCH = fs.mkdtempSync(path.join(SCRATCH_ROOT, "p2c-shots-"));
|
||||||
HOME = path.join(SCRATCH, "console-home");
|
HOME = path.join(SCRATCH, "console-home");
|
||||||
ENV = { ...process.env, PLAN2CODE_CONSOLE_HOME: HOME, PLAN2CODE_NO_BROWSER: "1" };
|
ENV = { ...process.env, PLAN2CODE_CONSOLE_HOME: HOME, PLAN2CODE_NOTEPADS_DIR: path.join(SCRATCH, "notepads"), PLAN2CODE_NO_BROWSER: "1" };
|
||||||
fs.mkdirSync(HOME, { recursive: true });
|
fs.mkdirSync(HOME, { recursive: true });
|
||||||
fs.mkdirSync(OUT, { recursive: true });
|
fs.mkdirSync(OUT, { recursive: true });
|
||||||
let browser = null;
|
let browser = null;
|
||||||
|
|||||||