Skip to content

feat(learn): interactive Playground feature pages with live embed - #43

Merged
hhimanshu merged 1 commit into
mainfrom
feat/playground-feature-pages
Jul 13, 2026
Merged

feat(learn): interactive Playground feature pages with live embed#43
hhimanshu merged 1 commit into
mainfrom
feat/playground-feature-pages

Conversation

@hhimanshu

Copy link
Copy Markdown
Contributor

What & why

Adds an inline, interactive "try it" to the docs so readers can experiment with TrueCalc's spreadsheet UI features directly on the page, and lands the first set of feature guides.

Changes

  • <TrueCalc> MDX component (components/truecalc.tsx) — renders <TrueCalc mode="standalone" seed="A1=10;A2==A1+1" /> as an iframe of the live playground (https://try.truecalc.app/?seed=<encoded seed>), ~360px tall, bordered, with an accessible title and lazy loading. Registered in the Fumadocs MDX components map (components/mdx.tsx).
  • New "Playground" section under Learn (content/docs/learn/playground/) with a section index plus five feature guides — edit a cell, fill a formula, copy/cut/paste, undo/redo, and bold — each with an inline interactive grid seeded to match its first scenario. Wired into the Learn sidebar via meta.json.

Verification

  • npm run build — succeeds; all six pages emit to the static export and the iframe (with URL-encoded seed) is present in the rendered HTML.
  • npm run gen-docs + drift check (git diff --exit-code -- content/docs/reference/functions) — no drift.
  • npm run types:check — passes.
  • npm run test-docs — the new pages contain no executed code blocks; the one pre-existing failure (learn/(foundations)/cross-sheet-references.mdx) is unrelated to this change and reproduces on main.

Follow-ups (out of scope here)

  • Automated publishing of newly generated feature pages into these docs.
  • Swapping the iframe embed for the future @truecalc/react component once available.

Add a `<TrueCalc>` MDX component that embeds the live playground
(try.truecalc.app) as an iframe, seeded via `seed="A1=10;A2==A1+1"`,
and register it in the Fumadocs MDX components map.

Add a new "Playground" section under Learn with five feature guides —
edit, fill, copy/cut/paste, undo/redo, and bold — each with an inline
interactive "try it" grid. Wire the section into the Learn sidebar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hhimanshu hhimanshu self-assigned this Jul 13, 2026
@hhimanshu
hhimanshu merged commit b6a4dd0 into main Jul 13, 2026
1 check passed
@hhimanshu
hhimanshu deleted the feat/playground-feature-pages branch July 13, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant