feat(pages): copy button for page addresses #54

Merged
ngqile merged 1 commits from pages-copy-address into main 2026-12-02 09:30:03 +00:00
Owner

The owner asked for a copy button next to the page addresses.

  • Where it shows: the Pages list (Address column) and the page editor (above the form, once the page is saved).
  • What it copies: the full URL, which is this site's origin plus /p/{company}/{slug}. It shows "Link copied", or "Could not copy." if the clipboard refuses.
  • Labels: it reuses the existing copy labels (QrCopy, QrCopied, CopyFailed), so no new labels or SQL are needed.
  • Scope: a small UI addition with no change to behaviour or the API, so it has no OpenSpec change.

Verification

  • Tests: two new tests: the list copies the full URL and reports a clipboard failure, and the editor copies the saved page's address. Both were red before the change.
  • Portal: vitest 1831 passed, plus 1 skipped (the zh change-folder check, skipped by design since that change is archived). tsc is clean, and lint shows only the 4 existing warnings.
  • Live, on the local stack: clicked copy in the Pages list and saw "Link copied", and the copy button shows in the editor.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

The owner asked for a copy button next to the page addresses. - **Where it shows:** the Pages list (Address column) and the page editor (above the form, once the page is saved). - **What it copies:** the full URL, which is this site's origin plus `/p/{company}/{slug}`. It shows "Link copied", or "Could not copy." if the clipboard refuses. - **Labels:** it reuses the existing copy labels (`QrCopy`, `QrCopied`, `CopyFailed`), so no new labels or SQL are needed. - **Scope:** a small UI addition with no change to behaviour or the API, so it has no OpenSpec change. ## Verification - **Tests:** two new tests: the list copies the full URL and reports a clipboard failure, and the editor copies the saved page's address. Both were red before the change. - **Portal:** vitest 1831 passed, plus 1 skipped (the zh change-folder check, skipped by design since that change is archived). tsc is clean, and lint shows only the 4 existing warnings. - **Live, on the local stack:** clicked copy in the Pages list and saw "Link copied", and the copy button shows in the editor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 1 commit 2026-12-02 09:29:59 +00:00
The Pages list and the page editor show a copy button next to the page
address. It copies the full URL (this site's origin plus the path) and
reuses the existing copy labels, so no new labels or SQL are needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile merged commit 53f3298ded into main 2026-12-02 09:30:03 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#54