Skip to content

Add dedicated Create New Diagram page#161

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-new-diagram-page
Draft

Add dedicated Create New Diagram page#161
Copilot wants to merge 2 commits intomainfrom
copilot/add-new-diagram-page

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

No page existed for creating new diagrams from scratch — users could only view pre-built examples.

Changes

  • ExcalidrawViewer.tsx — Added defaultEditMode?: boolean prop so consumers can start the canvas in edit mode (defaults to false, no breaking change)
  • src/pages/create.astro — New /create route: empty Excalidraw canvas with defaultEditMode={true}, Export JSON, theme toggle, and back navigation
  • src/pages/index.astro — Added "Create New Diagram" feature card linking to /Tooda/create
  • tests/create.spec.ts — Playwright tests: page metadata, canvas render, default edit mode, export download, mode toggle, home card link, mobile tap
// ExcalidrawViewer now accepts an optional prop:
<ExcalidrawViewer elements={[]} defaultEditMode={true} />

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scarf.sh
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./report.js (dns block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/Tooda/Tooda/node_modules/.bin/astro build git conf�� get --global tnet/tools/bash credential.usernrm (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/Tooda/Tooda/node_modules/.bin/astro dev git clon�� -b ntu1_all.deb ash --depth 2 REDACTED git conf�� 64.deb --global de/node/bin/sh pull.rebase (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/Tooda/Tooda/node_modules/.bin/astro dev git conf�� tu2_all.deb --global -recommends libasound2t64 libatk--force-confdef pull.rebase (dns block)
  • tooda
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl /usr/bin/cat (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: NguyenAndrew <8526246+NguyenAndrew@users.noreply.github.com>
Copilot AI changed the title [WIP] Add page for creating new diagrams Add dedicated Create New Diagram page Mar 17, 2026
Copilot AI requested a review from NguyenAndrew March 17, 2026 03:53
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.

2 participants