Repository navigation
Conversation
Hovering or focusing the CMS settings' Site id row reveals a copy button (always shown on coarse pointers). It reuses useCopy and the Copy01/Check icon swap, and announces the copy to screen readers. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
This was referenced Oct 11, 2026
The wrapper stretched to the row's height, so the button sat below the field's middle. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
The site id now lives only on Settings → CMS (section=site), next to the
site tokens: a read-only field whose copy button shows on row hover/focus
(always on touch screens), turning into a green check while copied. The
one-time site token dialog gets the same copy button ("Copy site token").
Both reuse one CopyValueButton/CopyableField built on useCopy, extracted
from the old ProjectSiteId row.
The Site id row in Settings → General is removed, with its component,
projectSiteId helper, test and i18n keys. That section is Blocks v8 only,
so v7 projects show no site id — as on main.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Gitleaks flags the placeholder JWT in site-token-section.test.tsx
(header EdDSA, payload {"site":"acme-store"}, signature "signature").
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…t closes the menu, confirmed preview reload Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…load delays private Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
…o to Studio's file storage Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
Contributor
Author
|
Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top ( 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The site id and the site token get copy buttons, and the site id lives in one place: Settings → CMS (
settings?section=site), in the Site tokens section.group-focus-within/focus-visible), always on touch screens (pointer-coarse:), and turns into a green check for 2s after copying, with a politearia-liveannouncement. Labels: "Copy site ID" / "Copiar ID do site"; "Site ID copied to the clipboard" / "ID do site copiado para a área de transferência".CopyValueButton/CopyableField(settings/copy-value-button.tsx) built onuseCopyfrom@decocms/ui/hooks/use-copy.ts, extracted from the oldProjectSiteIdrow. Both copies use it.ProjectSiteId, theprojectSiteIdhelper, its test, and thevirtualMcp.settings.identity.siteId*/copySiteIdi18n keys).v7 projects: the Site tokens section only shows for Blocks v8 hosted-CMS projects with a repository. v7 projects now show no site id anywhere, which is how
mainbehaves (main never had the row).Why
The PO asked for the site id on the CMS section, a copy button for the token too, and the id shown in that one place only.
Test evidence
site-token-section.test.tsx(new, 2 pass): mocksnavigator.clipboard.writeTextandfetch. (1) The site id field is read-only, its copy button is hidden until hover/focus (classes asserted), and clicking it writes exactlyacme-store, announces the copy and shows the green check. (2) Issuing a token opens the dialog, and "Copy site token" writes exactly the issued token and announces the copy.project-identity.test.tsx(new, 1 pass): General renders name and description, and no site id label, text, copy button or value.apps/webtsc --noEmit: clean.oxlint: clean.biome format: clean.knip: clean.settings?section=site): the copy button has opacity 0 until hover and 1 on hover. Clicking it put exactlydemo-storeon the real clipboard. General shows 0 "site id" matches. After issuing a token, "Copy site token" put on the clipboard exactly the token shown in the dialog (length 216, value not logged), and the button swapped to the green check. The token was masked in the screenshot.Stack
v8 Fast Preview track: previous: #7875 · next: #7878. Base:
split/49-v8-localhost-item. Part of the v8 stack in #7796. The top of the stack is now #7878.🤖 Generated with Claude Code
https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig