Skip to content

A community project's Copy link is the site's, wherever it is open - #192

Merged
Jing-yilin merged 4 commits into
mainfrom
community-links-public
Sep 26, 2026
Merged

Jing-yilin merged 4 commits into
mainfrom
community-links-public

Conversation

@Jing-yilin

@Jing-yilin Jing-yilin commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

A community project opened in the app lives at 127.0.0.1:<port>/c/<id>/. The canvas strip's and a board's Copy link handed that address out, and it opens nowhere else. Now every Copy link on a community project gives the site's address, superproto.dev/p/<id>/<name>, with the same view and board, whether the project is open in the app or on the web.

  • canvasUrl.ts adds four helpers, with tests:
    • webUrl: the site's address for a project, moved here from Community.tsx;
    • communityIdOf: the project id an address points at;
    • shareUrl: the address to hand someone;
    • sameProject: whether two addresses point at the same project.
  • The copy links (the tab bar, the canvas strip, and a selection's Copy link and ⌘C) go through shareUrl.
  • Pasting a link into the chat, or onto the canvas, compares with sameProject. So a site link copied off a community project still attaches its boards in the app.
  • A local project's links are unchanged. A /p/<uuid>/ on 127.0.0.1 is a local folder, not a community project, and a test covers that case.

Two more changes, both from trying this in the app:

  • The + on each board, and on a selection, shows on a community project in the app. It was gated on served, which a /c/<id>/ page is not. It is now gated on local(), as the chat panel it hands things to is. The server already shoots a community board. The hosted site still has neither.
  • A superproto.dev link pasted into the chat is one the agent can open, when it is another project's than the one open, and so arrives as text. sp fetch and sp duplicate take the link as well as the id. The agent's preamble says how the link's ?canvas=, #<board>, #assets/… and ?doc= map to the files of the copy sp fetch prints.

🤖 Generated with Claude Code

In the app a community project is at 127.0.0.1:<port>/c/<id>/, and the
canvas strip's and a board's Copy link handed that out, which opens
nowhere else. Every Copy link on one now gives
superproto.dev/p/<id>/<name> with the same view and board, and a link off
the site pasted into the app still attaches its boards. A local project's
links are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Deploying super-prototyping with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4263c23
Status: ✅  Deploy successful!
Preview URL: https://cdb55e54.super-prototyping.pages.dev
Branch Preview URL: https://community-links-public.super-prototyping.pages.dev

View logs

Jing-yilin and others added 3 commits September 26, 2026 04:48
Its server draws a community board as it draws a project's own, so the +
on each board and on a selection hands it to the chat, as on a project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sp fetch and sp duplicate take the link as well as the id, and the agent is
told how the link's canvas, board, picture and document map to the files of
the copy sp fetch prints. A link to the project open in the app still
becomes chips (App.tsx, attach).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zsh reads its ? as a glob and runs nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jing-yilin
Jing-yilin merged commit f2c9f61 into main Sep 26, 2026
11 checks passed
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