Skip to content

Fourier lab: shareable links (?text=, &n=) with live URL sync + Copy link - #13

Merged
benjamin-small merged 1 commit into
mainfrom
feat/fourier-share-link
Sep 8, 2026
Merged

Fourier lab: shareable links (?text=, &n=) with live URL sync + Copy link#13
benjamin-small merged 1 commit into
mainfrom
feat/fourier-share-link

Conversation

@benjamin-small

Copy link
Copy Markdown
Owner

Adds a hash-query override for the traced message — #/fourier?text=YOUR+TEXT (and &n= for the epicycle count) — so drawings can be hard-linked and shared. The URL stays in sync as you type (history.replaceState, defaults omitted), pasted links are adopted live, and a Copy link button copies the current URL. Router gains route.query / navigate(id, query) / replaceQuery() plus pure parseHashQuery/buildQuery helpers; tests for both layers; README documents the format.

…, Copy link

#/fourier?text=YOUR+TEXT (and &n=<epicycles>) overrides the default
message so a drawing can be hard-linked and shared. The lab keeps the
URL in sync after every push via history.replaceState (no history spam,
no hashchange loop; defaults are omitted so the plain #/fourier stays
canonical), adopts a pasted link's params live through the router's new
route.query, and gains a Copy link button.

Router: route.query, navigate(id, query?), replaceQuery(); pure
parseHashQuery/buildQuery helpers with tests. Lab tests cover reading
params on mount and URL sync while typing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@benjamin-small
benjamin-small merged commit 15b9257 into main Sep 8, 2026
6 checks passed
@benjamin-small
benjamin-small deleted the feat/fourier-share-link branch September 8, 2026 00:45
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