Skip to content

r3dr: URL shortener page under Projects - #277

Merged
aaylward merged 1 commit into
mainfrom
claude/r3dr-page
Aug 21, 2026
Merged

r3dr: URL shortener page under Projects#277
aaylward merged 1 commit into
mainfrom
claude/r3dr-page

Conversation

@aaylward

Copy link
Copy Markdown
Contributor

Ports the r3dr_v2 frontend (MoonBase #1359 chunk 2) into the site as /r3dr, under the Projects nav. The standalone sibling keeps living in MoonBase, rebranded for its new home at iili.uk — both mint from the same API and display iili.uk/r/{slug} short links.

  • src/apps/r3dr/ on the house convention: shorten form (bare domains get https://, uppercased schemes lowercased, API traits mirrored client-side in code points), expiry chips (1h/1d/7d/30d — the top one 5 minutes under the API ceiling so a fast client clock can't mint a 400), copy buttons with announced states, last-five recent links in localStorage (slug-shape validated, expiry-pruned each minute), 10s fetch timeout, friendly 429/network messages. Springtime page palette in module CSS; a11y carried over: busy-not-disabled submit, persistent live regions, aria-pressed chips.
  • API: VITE_R3DR_API_URL || https://api.muchq.com/r3dr/v2, wired into local-server like the other apps.
  • Nav: r3dr moves from Elsewhere (r3dr.net, retiring with the old Go service) to Projects as an internal page; Navigation tests updated and a new pin added.
  • Deps: adds @testing-library/user-event (dev).

Verified: typecheck, lint, 460/460 vitest (7 new suites), production build, Playwright smoke in real Chromium at 1440×900 and 390×844 (mint → copy → recent persistence across reload → 400 surfacing → client-validation short-circuit). The component logic previously went through two full review panels on the MoonBase side; all folded findings are in this port.

🤖 Generated with Claude Code

https://claude.ai/code/session_017HmkKHfFNgq4buWdcAFqB8


Generated by Claude Code

Ports the r3dr_v2 frontend (MoonBase #1359 chunk 2) to /r3dr: shorten
form with expiry chips, localStorage recent links, iili.uk short links.
Nav entry moves from Elsewhere (r3dr.net, retiring) to Projects.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HmkKHfFNgq4buWdcAFqB8
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
muchq cca3e5d Commit Preview URL

Branch Preview URL
Aug 21 2026, 09:02 PM

@aaylward
aaylward merged commit c83be11 into main Aug 21, 2026
2 checks passed
@aaylward
aaylward deleted the claude/r3dr-page branch August 21, 2026 21:56
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