Skip to content

Commit cd387cd

Browse files
docs(site): the "New to devcoach?" panel follows the import panel (#149)
On the share page, when no dashboard answers, the newcomer panel came first and pushed "Add it to your devcoach" below the fold of the aside. Someone who already has devcoach came for Import, so that panel stays first and the pitch for newcomers sits under it. Same content, same states; CHANGELOG wording follows. Claude-Session: https://claude.ai/code/session_01LWas1iLGAaSFTxXrcucoSr
1 parent 0cd9aa7 commit cd387cd

2 files changed

Lines changed: 25 additions & 24 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ Notable changes to devcoach. Versions follow [Semantic Versioning](https://semve
5959
& releases to `CONTRIBUTING.md`. The GIF is recorded from the docs home's demo by
6060
`scripts/demo-gif.mjs`, and the screenshots workflow refreshes it.
6161
- **A shared lesson introduces devcoach to people who don't have it.** The share page names the
62-
sender ("Alex shared a devcoach lesson with you"), and when no dashboard answers it opens with a
63-
*New to devcoach?* panel: what devcoach does in one sentence, **Install devcoach**, **See how it
64-
works**, and a reminder that the link keeps the lesson for later. With a running dashboard the
65-
page is unchanged.
62+
sender ("Alex shared a devcoach lesson with you"), and when no dashboard answers a *New to
63+
devcoach?* panel follows the import panel: what devcoach does in one sentence, **Install
64+
devcoach**, **See how it works**, and a reminder that the link keeps the lesson for later. With a
65+
running dashboard the page is unchanged.
6666

6767
## [2.7.1] — 2026-10-08
6868

‎website/src/pages/lesson.tsx‎

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -227,26 +227,6 @@ export default function LessonPage(): ReactNode {
227227
</article>
228228

229229
<aside className={styles.aside}>
230-
{/* No dashboard answered (or the browser can't tell): this visitor may not have devcoach
231-
at all — a shared lesson is how many people first meet it. */}
232-
{dashboard !== "up" && dashboard !== "checking" && (
233-
<div className={`${styles.panel} ${styles.newcomer}`}>
234-
<p className={styles.panelTitle}>New to devcoach?</p>
235-
<p className={styles.newcomerText}>
236-
This lesson came from devcoach: when your AI agent finishes a task, it teaches you one
237-
thing from it that you don't know yet. Free and 100% local.
238-
</p>
239-
<div className={styles.buttons}>
240-
<Link className={`button button--primary button--block ${styles.mainButton}`} to="/install">
241-
Install devcoach
242-
</Link>
243-
<Link className="button button--secondary button--block" to="/">
244-
See how it works
245-
</Link>
246-
</div>
247-
<p className={styles.hint}>Then come back: this link keeps the lesson, ready to import.</p>
248-
</div>
249-
)}
250230
<div className={styles.panel}>
251231
<p className={styles.panelTitle}>Add it to your devcoach</p>
252232
<p className={`${styles.status} ${dashboard === "up" ? styles.up : ""}`}>
@@ -333,6 +313,27 @@ export default function LessonPage(): ReactNode {
333313
travels, and what never does.
334314
</p>
335315
</div>
316+
{/* No dashboard answered (or the browser can't tell): this visitor may not have devcoach
317+
at all — a shared lesson is how many people first meet it. It sits below the import panel:
318+
someone who already has devcoach came here for Import. */}
319+
{dashboard !== "up" && dashboard !== "checking" && (
320+
<div className={`${styles.panel} ${styles.newcomer}`}>
321+
<p className={styles.panelTitle}>New to devcoach?</p>
322+
<p className={styles.newcomerText}>
323+
This lesson came from devcoach: when your AI agent finishes a task, it teaches you one
324+
thing from it that you don't know yet. Free and 100% local.
325+
</p>
326+
<div className={styles.buttons}>
327+
<Link className={`button button--primary button--block ${styles.mainButton}`} to="/install">
328+
Install devcoach
329+
</Link>
330+
<Link className="button button--secondary button--block" to="/">
331+
See how it works
332+
</Link>
333+
</div>
334+
<p className={styles.hint}>Then come back: this link keeps the lesson, ready to import.</p>
335+
</div>
336+
)}
336337
</aside>
337338
</div>
338339
<p className={styles.footer}>

0 commit comments

Comments
 (0)