Skip to content

Keep role names with each row of the Cloud permissions tables - #5715

Merged
Duncanma merged 3 commits into
mainfrom
duncan/permissions-table-chunking
Nov 13, 2026
Merged

Duncanma merged 3 commits into
mainfrom
duncan/permissions-table-chunking

Conversation

@Duncanma

Copy link
Copy Markdown
Contributor

What

Adds a RoleCheck component and uses it for all 577 check marks in the tables on Permissions reference.

<RoleCheck role="Finance Admin" /> renders the same ✅ as before, with the role name as visually hidden text (the clip-rect pattern AgentDirective uses). The ✅ itself is aria-hidden. Footnote markers (*, †, ‡) are kept.

The Markdown pipeline (scripts/mdx-to-md.mjs) turns it into ✅ Finance Admin, so the .md output and llms-full.txt carry the role name too. Documented in readme/COMPONENTS.md.

Why

Kapa splits long tables into chunks, and a row of bare check marks loses the header row that names the roles. Asked which roles can create billing reports, Kapa answered (marked certain) that the columns were flattened and it couldn't tell which roles had the check marks. Screen readers had a similar problem: each cell read as "check mark" with no role.

The role name is real text rather than an aria-label or alt, because scrapers and chunkers often drop attributes.

Appearance

No visible change. The hidden span measures 1px with clip-path: inset(50%), and the tables render with only the ✅ marks.

Checks

  • yarn build passes. The built row text reads CreateBillingReport ✅ Finance Admin ✅ Account Owner.
  • node --test tests/test-mdx-to-md.mjs: 136 pass, including a new RoleCheck test.
  • vale --config .vale-ci.ini is clean on the page.
  • _custom_role_permissions_table.mdx (generated by temporal-cicd) has no check marks, so the sync won't touch this.

Kapa chunks long tables, so a row of bare check marks lost the header that
said which roles they covered. Asked which roles can create billing
reports, it answered that the columns were flattened and it couldn't tell.

RoleCheck renders the same check mark with the role name as visually hidden
text, so the page looks unchanged while screen readers, scrapers, and the
Markdown pipeline get the role name on every row.
@Duncanma
Duncanma requested a review from a team as a code owner November 13, 2026 17:50
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:50
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Nov 13, 2026 8:44pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the role-aware permissions table update.

No open issues 🎉

What changed in this PR

This PR keeps role names attached to Cloud permissions table cells for screen readers and text consumers, while preserving the visible check marks and footnotes.

Changes:

  • Adds a reusable RoleCheck component with visually hidden role text.
  • Replaces bare check marks in the permissions reference with role-aware cells.
  • Adds Markdown conversion support, regression coverage, and component usage documentation.
File Description
tests/​test-mdx-to-md.mjs Tests role-name conversion and footnote preservation; registers the new strategy.
src/​components/​RoleCheck/​RoleCheck.module.css Hides role text visually while retaining accessibility access.
src/​components/​RoleCheck/​RoleCheck.js Renders a check mark with accessible role text.
src/​components/​RoleCheck/​index.js Exports the component.
src/​components/​index.js Exposes RoleCheck through shared component imports.
scripts/​mdx-to-md.mjs Converts RoleCheck into a check mark and role name in Markdown.
readme/​COMPONENTS.md Documents component usage and output.
docs/​cloud/​manage-access/​permissions-reference.mdx Adds role labels to check-mark cells without changing permission assignments.

Review effort: Balanced

Duncanma added a commit that referenced this pull request Nov 13, 2026
Records the topics from the first kapa-improve-docs run (2026-10-13 to
2026-11-12): two fixed in #5715 and #5716, six deferred with their signal
counts and reasons. Later runs read this file so they don't propose the
same topic again unless its volume roughly doubles.

The run also used a "certain but hedged" scan, which finds answers Kapa
marked certain whose text still hedges. Kapa's uncertain flag and Coverage
Gaps miss these.
@Duncanma
Duncanma merged commit 42c2151 into main Nov 13, 2026
17 of 18 checks passed
@Duncanma
Duncanma deleted the duncan/permissions-table-chunking branch November 13, 2026 20:44

This branch was successfully deployed

1 active deployment
Preview — 9d28b1ba Deployed Nov 13, 2026 by vercel[bot]
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