An app's members page showing who has access, their title and end date, with add and remove.
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-lead-h"><div class="cap-people-head"><h2 id="pr-lead-h">Lab members</h2><p class="cap-people-count">4 people have access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><div class="cap-table-wrap" role="region" aria-labelledby="pr-lead-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr><tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park"><th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="rosa.park@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu"/><a class="cap-option cap-menu-item" href="?change=rosa.park%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="active" data-email="sam.ortiz@example.edu" data-name="Sam Ortiz"><th scope="row" class="cap-people-who"><span class="cap-people-name">Sam Ortiz</span><span class="cap-people-email cap-mono">sam.ortiz@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="info"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6" opacity="0.35"></circle><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 1.8a6.2 6.2 0 0 1 6.2 6.2"></path></svg>Waiting for Cloudflare</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="retry"/><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Retry<span class="cap-sr-only"> for Sam Ortiz</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Sam Ortiz">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-option cap-menu-item" value="renew" name="intent"><span class="cap-option-label">Renew to May 14, 2027</span></button><a class="cap-option cap-menu-item" href="?change=sam.ortiz%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=sam.ortiz%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="active" data-email="lee.wong@example.edu" data-name="Lee Wong"><th scope="row" class="cap-people-who"><span class="cap-people-name">Lee Wong</span><span class="cap-people-email cap-mono">lee.wong@example.edu</span></th><td>Safety officer</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="crit"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z"></path></svg>Cloudflare refused</span><span class="cap-people-sync-error">The group's name did not match lab-people, so nothing was written.</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="retry"/><input type="hidden" name="email" value="lee.wong@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Retry<span class="cap-sr-only"> for Lee Wong</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Lee Wong">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="lee.wong@example.edu"/><a class="cap-option cap-menu-item" href="?change=lee.wong%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=lee.wong%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="expired" data-email="ana.ruiz@example.edu" data-name="Ana Ruiz"><th scope="row" class="cap-people-who"><span class="cap-people-name">Ana Ruiz</span><span class="cap-people-email cap-mono">ana.ruiz@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end">Ended Aug 14, 2026</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: signed out</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="ana.ruiz@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to Dec 18, 2026<span class="cap-sr-only"> for Ana Ruiz</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Ana Ruiz">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="ana.ruiz@example.edu"/><a class="cap-option cap-menu-item" href="?person=ana.ruiz%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="removed" data-email="jo.kim@example.edu" data-name="Jo Kim"><th scope="row" class="cap-people-who"><span class="cap-people-name">Jo Kim</span><span class="cap-people-email cap-mono">jo.kim@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end">Removed Oct 2, 2026</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: signed out</span></td><td class="cap-people-actions"><div class="cap-people-acts"><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Jo Kim">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="jo.kim@example.edu"/><a class="cap-option cap-menu-item" href="?person=jo.kim%40example.edu"><span class="cap-option-label">History</span></a></form></details></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-lead-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-lead-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-lead-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-lead-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-lead-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-lead-email-e pr-lead-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-lead-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-lead-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-lead-name" required="" autoComplete="off" aria-describedby="pr-lead-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-lead-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-lead-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-lead-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-lead-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-lead-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-lead-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-lead-end" type="date" required="" max="2026-12-18" aria-describedby="pr-lead-end-e pr-lead-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-lead-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
Installation
// package.json: "capsomer": "github:DrDustinEdwards/capsomer#v0.152.2"
import "capsomer/tokens.css";
import "capsomer/base.css";
import "capsomer/people-roles.css";
import { enhance } from "capsomer/behavior/people-roles";
enhance();import "capsomer/tokens.css";
import "capsomer/people-roles.css";
import { PeopleRoles, RoleGrid } from "capsomer/react/people-roles";Usage
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-h">
<div class="cap-people-head"><h2 id="pr-h">Lab members</h2><p class="cap-people-count">5 people have access</p></div>
<p class="cap-people-lead">You manage Lab workers and Safety officers.</p>
<p class="cap-people-result" role="status" data-tone="ok"><span class="cap-status" data-tone="ok">[ok glyph]<span class="cap-sr-only">Done:</span></span><span>Added Sam Ortiz.</span></p>
<form class="cap-people-card cap-people-review" data-variant="review" method="post" action="/lab/members" aria-labelledby="pr-rv">
<input type="hidden" name="intent" value="review">
<h3 id="pr-rv">Still on your team?</h3>
<div class="cap-people-review-list">
<fieldset class="cap-people-review-item"><legend>Rosa Park <span class="cap-people-review-who">Lab worker</span></legend>
<label class="cap-check"><input type="radio" name="answer-0" value="keep"> Keep, until May 14, 2027</label>
<label class="cap-check"><input type="radio" name="answer-0" value="remove"> Remove</label>
<input type="hidden" name="email-0" value="rosa.park@example.edu">
</fieldset>
</div>
<div class="cap-people-review-foot"><button type="submit" class="cap-btn" data-variant="primary">Save review</button><p class="cap-people-tally" data-cap-part="tally" aria-live="polite">0 to keep, 0 to remove, 1 not answered.</p></div>
</form>
<div class="cap-table-wrap" role="region" aria-labelledby="pr-h" tabindex="0">
<table class="cap-table cap-people-table">
<thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead>
<tbody>
<tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park">
<th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th>
<td>Lab worker</td>
<td><span class="cap-people-end" data-soon>[warn glyph]Ends Dec 18, 2026, in 18 days</span></td>
<td><span class="cap-status" data-tone="ok">[ok glyph]Ready: they can sign in</span></td>
<td class="cap-people-actions"><div class="cap-people-acts">
<form method="post" action="/lab/members"><input type="hidden" name="intent" value="renew"><input type="hidden" name="email" value="rosa.park@example.edu"><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form>
<details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions[chevron]</summary>
<form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu">
<a class="cap-option cap-menu-item" href="?change=rosa.park%40example.edu">Change title</a>
<a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu">History</a>
<hr class="cap-listbox-separator cap-menu-separator">
<button type="submit" class="cap-option cap-menu-item" name="intent" value="remove" data-tone="crit">Remove</button>
</form></details>
</div></td>
</tr>
<tr class="cap-people-edit" id="pr-change-rosa"><td colspan="5"><form class="cap-people-change cap-field-row" data-cap="field" method="post">...title select, reason (required), Change title, Cancel...</form></td></tr>
</tbody>
</table>
</div>
<section class="cap-people-history" aria-labelledby="pr-hi">...<ol class="cap-people-history-list"><li class="cap-people-history-item"><time class="cap-people-history-when">...</time><div><p class="cap-people-history-what">Renewed, until May 14, 2027</p><span class="cap-people-history-by">By Maya Chen</span></div><span class="cap-status" data-tone="info">...Waiting for Cloudflare</span></li></ol></section>
<form class="cap-people-card cap-people-add" data-cap="field" method="post" aria-labelledby="pr-add">...email, name, title (each option's data-end), end date (max is the title's default)...</form>
</section>Examples
Review open
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-review-h"><div class="cap-people-head"><h2 id="pr-review-h">Lab members</h2><p class="cap-people-count">3 people have access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><form class="cap-people-card cap-people-review" data-variant="review" aria-labelledby="pr-review-rv" action="/lab/members" method="post"><input type="hidden" name="intent" value="review"/><h3 id="pr-review-rv">Still on your team?</h3><p class="cap-people-lead">These people's access ends on Dec 18, 2026. Keep or remove each. Anyone not answered loses access on that date.</p><div class="cap-people-review-list"><fieldset class="cap-people-review-item"><legend>Rosa Park <span class="cap-people-review-who">Lab worker</span></legend><label class="cap-check"><input type="radio" name="answer-0" value="keep"/> Keep, until May 14, 2027</label><label class="cap-check"><input type="radio" name="answer-0" value="remove"/> Remove</label><input type="hidden" name="email-0" value="rosa.park@example.edu"/></fieldset><fieldset class="cap-people-review-item"><legend>Sam Ortiz <span class="cap-people-review-who">Lab worker</span></legend><label class="cap-check"><input type="radio" name="answer-1" value="keep"/> Keep, until May 14, 2027</label><label class="cap-check"><input type="radio" name="answer-1" value="remove"/> Remove</label><input type="hidden" name="email-1" value="sam.ortiz@example.edu"/></fieldset></div><div class="cap-people-review-foot"><button type="submit" class="cap-btn" data-variant="primary">Save review</button><p class="cap-people-tally" data-cap-part="tally" aria-live="polite">0 to keep, 0 to remove, 2 not answered.</p></div></form><div class="cap-table-wrap" role="region" aria-labelledby="pr-review-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr><tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park"><th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="rosa.park@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu"/><a class="cap-option cap-menu-item" href="?change=rosa.park%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="active" data-email="sam.ortiz@example.edu" data-name="Sam Ortiz"><th scope="row" class="cap-people-who"><span class="cap-people-name">Sam Ortiz</span><span class="cap-people-email cap-mono">sam.ortiz@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="info"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6" opacity="0.35"></circle><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 1.8a6.2 6.2 0 0 1 6.2 6.2"></path></svg>Waiting for Cloudflare</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="retry"/><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Retry<span class="cap-sr-only"> for Sam Ortiz</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Sam Ortiz">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-option cap-menu-item" value="renew" name="intent"><span class="cap-option-label">Renew to May 14, 2027</span></button><a class="cap-option cap-menu-item" href="?change=sam.ortiz%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=sam.ortiz%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-review-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-review-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-review-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-review-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-review-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-review-email-e pr-review-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-review-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-review-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-review-name" required="" autoComplete="off" aria-describedby="pr-review-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-review-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-review-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-review-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-review-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-review-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-review-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-review-end" type="date" required="" max="2026-12-18" aria-describedby="pr-review-end-e pr-review-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-review-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
Changing a title
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-change-h"><div class="cap-people-head"><h2 id="pr-change-h">Lab members</h2><p class="cap-people-count">3 people have access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><div class="cap-table-wrap" role="region" aria-labelledby="pr-change-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr><tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park"><th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="rosa.park@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu"/><a class="cap-option cap-menu-item" href="?"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr class="cap-people-edit" id="pr-change-rosa-park-example-edu"><td colSpan="5"><form class="cap-people-change cap-field-row" data-cap="field" aria-label="Change Rosa Park's title" action="/lab/members" method="post"><input type="hidden" name="intent" value="change_title"/><input type="hidden" name="email" value="rosa.park@example.edu"/><div class="cap-field"><label class="cap-field-label" for="pr-change-rosa-park-example-edu-title">New title for Rosa Park</label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-change-rosa-park-example-edu-title" name="title" required=""><option value="safety_officer">Safety officer</option></select></div></div><div class="cap-field"><label class="cap-field-label" for="pr-change-rosa-park-example-edu-reason">Reason <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-change-rosa-park-example-edu-reason-h">One line, recorded with the change.</p><input class="cap-input" id="pr-change-rosa-park-example-edu-reason" required="" autoComplete="off" maxLength="200" aria-describedby="pr-change-rosa-park-example-edu-reason-e pr-change-rosa-park-example-edu-reason-h" data-error-value-missing="Type a reason. It is recorded with the change." name="reason"/><p class="cap-field-error" id="pr-change-rosa-park-example-edu-reason-e" hidden=""></p></div><div class="cap-people-change-actions"><button type="submit" class="cap-btn" data-variant="primary">Change title</button><a class="cap-btn" href="?">Cancel</a></div></form></td></tr><tr data-status="active" data-email="sam.ortiz@example.edu" data-name="Sam Ortiz"><th scope="row" class="cap-people-who"><span class="cap-people-name">Sam Ortiz</span><span class="cap-people-email cap-mono">sam.ortiz@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="info"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6" opacity="0.35"></circle><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 1.8a6.2 6.2 0 0 1 6.2 6.2"></path></svg>Waiting for Cloudflare</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="retry"/><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Retry<span class="cap-sr-only"> for Sam Ortiz</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Sam Ortiz">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-option cap-menu-item" value="renew" name="intent"><span class="cap-option-label">Renew to May 14, 2027</span></button><a class="cap-option cap-menu-item" href="?change=sam.ortiz%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=sam.ortiz%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-change-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-change-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-change-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-change-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-change-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-change-email-e pr-change-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-change-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-change-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-change-name" required="" autoComplete="off" aria-describedby="pr-change-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-change-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-change-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-change-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-change-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-change-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-change-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-change-end" type="date" required="" max="2026-12-18" aria-describedby="pr-change-end-e pr-change-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-change-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
One person's history
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-history-h"><div class="cap-people-head"><h2 id="pr-history-h">Lab members</h2><p class="cap-people-count">2 people have access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><div class="cap-table-wrap" role="region" aria-labelledby="pr-history-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr><tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park"><th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="rosa.park@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu"/><a class="cap-option cap-menu-item" href="?change=rosa.park%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr></tbody></table></div><section class="cap-people-history" aria-labelledby="pr-history-hi"><div class="cap-people-history-head"><h3 id="pr-history-hi">History for Rosa Park</h3><a class="cap-btn" data-size="sm" href="?">Close history</a></div><ol class="cap-people-history-list"><li class="cap-people-history-item"><time class="cap-people-history-when" dateTime="2026-11-30T14:10:00Z">Nov 30, 2026, 2:10 PM UTC</time><div><p class="cap-people-history-what">Renewed, until May 14, 2027</p><span class="cap-people-history-by">By Maya Chen</span></div><span class="cap-status" data-tone="info"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" stroke-width="1.6" opacity="0.35"></circle><path fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" d="M8 1.8a6.2 6.2 0 0 1 6.2 6.2"></path></svg>Waiting for Cloudflare</span></li><li class="cap-people-history-item"><time class="cap-people-history-when" dateTime="2026-10-02T14:52:00Z">Oct 2, 2026, 2:52 PM UTC</time><div><p class="cap-people-history-what">Title changed from Safety officer to Lab worker</p><span class="cap-people-history-by">By Maya Chen</span><span class="cap-people-history-reason">Reason: Stepping back to bench work this term</span></div><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Cloudflare accepted</span></li><li class="cap-people-history-item"><time class="cap-people-history-when" dateTime="2026-09-08T09:31:00Z">Sep 8, 2026, 9:31 AM UTC</time><div><p class="cap-people-history-what">Added as Safety officer, until Dec 18, 2026</p><span class="cap-people-history-by">By Alex Rivera</span></div><span class="cap-status" data-tone="crit"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z"></path></svg>Cloudflare refused: rate limited, retried at 09:32</span></li></ol></section><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-history-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-history-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-history-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-history-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-history-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-history-email-e pr-history-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-history-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-history-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-history-name" required="" autoComplete="off" aria-describedby="pr-history-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-history-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-history-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-history-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-history-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-history-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-history-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-history-end" type="date" required="" max="2026-12-18" aria-describedby="pr-history-end-e pr-history-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-history-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
An Owner's page, after adding someone
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-owner-h"><div class="cap-people-head"><h2 id="pr-owner-h">Lab members</h2><p class="cap-people-count">3 people have access</p></div><p class="cap-people-lead">You manage everyone but the Primary Owner.</p><p class="cap-people-result" role="status" data-tone="ok"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg><span class="cap-sr-only">Done:</span></span><span>Added Sam Ortiz as Lab worker, until Dec 18, 2026. Cloudflare confirmed: they can sign in.</span></p><div class="cap-table-wrap" role="region" aria-labelledby="pr-owner-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen</span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="maya.chen@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to Dec 17, 2027<span class="cap-sr-only"> for Maya Chen</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Maya Chen">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="maya.chen@example.edu"/><a class="cap-option cap-menu-item" href="?change=maya.chen%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=maya.chen%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="active" data-email="rosa.park@example.edu" data-name="Rosa Park"><th scope="row" class="cap-people-who"><span class="cap-people-name">Rosa Park</span><span class="cap-people-email cap-mono">rosa.park@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="rosa.park@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Rosa Park</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Rosa Park">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="rosa.park@example.edu"/><a class="cap-option cap-menu-item" href="?change=rosa.park%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=rosa.park%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr><tr data-status="active" data-email="sam.ortiz@example.edu" data-name="Sam Ortiz"><th scope="row" class="cap-people-who"><span class="cap-people-name">Sam Ortiz</span><span class="cap-people-email cap-mono">sam.ortiz@example.edu</span></th><td>Lab worker</td><td><span class="cap-people-end" data-soon=""><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1.2 15.4 14H.6zM7.3 6h1.4v4H7.3zM7.3 11h1.4v1.4H7.3z"></path></svg>Ends Dec 18, 2026, in 18 days</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="renew"/><input type="hidden" name="email" value="sam.ortiz@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Renew to May 14, 2027<span class="cap-sr-only"> for Sam Ortiz</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Sam Ortiz">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="sam.ortiz@example.edu"/><a class="cap-option cap-menu-item" href="?change=sam.ortiz%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=sam.ortiz%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-owner-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-owner-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-owner-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-owner-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-owner-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-owner-email-e pr-owner-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-owner-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-owner-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-owner-name" required="" autoComplete="off" aria-describedby="pr-owner-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-owner-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-owner-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-owner-title" name="title" required=""><option value="lab_manager" data-end="2027-05-14" selected="">Lab manager</option><option value="lab_worker" data-end="2026-12-18">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option><option value="owner" data-end="">Owner</option></select></div><p class="cap-field-error" id="pr-owner-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-owner-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-owner-end-h" data-cap-part="end-help">Defaults to the end of the term, May 14, 2027. You can choose an earlier date.</p><input class="cap-input" id="pr-owner-end" type="date" required="" max="2027-05-14" aria-describedby="pr-owner-end-e pr-owner-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2027-05-14"/><p class="cap-field-error" id="pr-owner-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
A change Cloudflare refused
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-refused-h"><div class="cap-people-head"><h2 id="pr-refused-h">Lab members</h2><p class="cap-people-count">2 people have access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><p class="cap-people-result" role="alert" data-tone="crit"><span class="cap-status" data-tone="crit"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z"></path></svg><span class="cap-sr-only">Not done:</span></span><span>Lee Wong's title changed, but Cloudflare refused the allow list. They keep their old access until Retry succeeds.</span></p><div class="cap-table-wrap" role="region" aria-labelledby="pr-refused-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr><tr data-status="active" data-email="lee.wong@example.edu" data-name="Lee Wong"><th scope="row" class="cap-people-who"><span class="cap-people-name">Lee Wong</span><span class="cap-people-email cap-mono">lee.wong@example.edu</span></th><td>Safety officer</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="crit"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M5 1h6l4 4v6l-4 4H5l-4-4V5zM7.2 4h1.6v5H7.2zM7.2 10.4h1.6V12H7.2z"></path></svg>Cloudflare refused</span><span class="cap-people-sync-error">The group's name did not match lab-people, so nothing was written.</span></td><td class="cap-people-actions"><div class="cap-people-acts"><form action="/lab/members" method="post"><input type="hidden" name="intent" value="retry"/><input type="hidden" name="email" value="lee.wong@example.edu"/><button type="submit" class="cap-btn" data-size="sm">Retry<span class="cap-sr-only"> for Lee Wong</span></button></form><details class="cap-menu-form" data-cap="menu-form"><summary class="cap-btn cap-menu-trigger" aria-label="Actions for Lee Wong">Actions<svg class="cap-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m6 9 6 6 6-6"></path></svg></summary><form class="cap-popover cap-menu" action="/lab/members" method="post"><input type="hidden" name="email" value="lee.wong@example.edu"/><a class="cap-option cap-menu-item" href="?change=lee.wong%40example.edu"><span class="cap-option-label">Change title</span></a><a class="cap-option cap-menu-item" href="?person=lee.wong%40example.edu"><span class="cap-option-label">History</span></a><hr class="cap-listbox-separator cap-menu-separator"/><button type="submit" class="cap-option cap-menu-item" value="remove" data-tone="crit" name="intent"><span class="cap-option-label">Remove</span></button></form></details></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-refused-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-refused-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-refused-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-refused-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-refused-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-refused-email-e pr-refused-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-refused-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-refused-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-refused-name" required="" autoComplete="off" aria-describedby="pr-refused-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-refused-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-refused-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-refused-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-refused-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-refused-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-refused-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-refused-end" type="date" required="" max="2026-12-18" aria-describedby="pr-refused-end-e pr-refused-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-refused-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
Nobody added yet
<section class="cap-people" data-cap="people-roles" aria-labelledby="pr-empty-h"><div class="cap-people-head"><h2 id="pr-empty-h">Lab members</h2><p class="cap-people-count">1 person has access</p></div><p class="cap-people-lead">You manage Lab workers and Safety officers. Owners manage Lab managers.</p><div class="cap-table-wrap" role="region" aria-labelledby="pr-empty-h" tabindex="0"><table class="cap-table cap-people-table"><thead><tr><th scope="col">Person</th><th scope="col">Title</th><th scope="col">Access</th><th scope="col">Cloudflare</th><th scope="col"><span class="cap-sr-only">Actions</span></th></tr></thead><tbody><tr data-status="active" data-email="maya.chen@example.edu" data-name="Maya Chen"><th scope="row" class="cap-people-who"><span class="cap-people-name">Maya Chen<span class="cap-pill cap-people-you" data-variant="secondary">You</span></span><span class="cap-people-email cap-mono">maya.chen@example.edu</span></th><td>Lab manager</td><td><span class="cap-people-end">Ends May 14, 2027</span></td><td class="cap-people-sync"><span class="cap-status" data-tone="ok"><svg class="cap-status-glyph" viewBox="0 0 16 16" aria-hidden="true" focusable="false"><path fill="currentColor" fill-rule="evenodd" d="M8 1a7 7 0 1 0 0 14A7 7 0 1 0 8 1zM3.9 9l3 3 5.2-5.6-1.4-1.4-3.8 4.2-1.6-1.6z"></path></svg>Ready: they can sign in</span></td><td class="cap-people-actions"><div class="cap-people-acts"><a class="cap-btn" data-size="sm" href="?person=maya.chen%40example.edu">History<span class="cap-sr-only"> for Maya Chen</span></a></div></td></tr></tbody></table></div><form class="cap-people-card cap-people-add" data-cap="field" aria-labelledby="pr-empty-add" action="/lab/members" method="post"><input type="hidden" name="intent" value="add"/><h3 id="pr-empty-add">Add a person</h3><div class="cap-fields cap-people-add-fields"><div class="cap-field"><label class="cap-field-label" for="pr-empty-email">Email <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-empty-email-h">The address they sign in with. Cloudflare emails them a code.</p><input class="cap-input" id="pr-empty-email" type="email" required="" autoComplete="off" spellCheck="false" aria-describedby="pr-empty-email-e pr-empty-email-h" data-error-value-missing="Type their email." data-error-type-mismatch="Type a full email, such as name@example.edu." name="email"/><p class="cap-field-error" id="pr-empty-email-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-empty-name">Name <span class="cap-field-required" aria-hidden="true">Required</span></label><input class="cap-input" id="pr-empty-name" required="" autoComplete="off" aria-describedby="pr-empty-name-e" data-error-value-missing="Type their name." name="name"/><p class="cap-field-error" id="pr-empty-name-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-empty-title">Title <span class="cap-field-required" aria-hidden="true">Required</span></label><div class="cap-select-wrap" data-cap="select" data-native=""><select class="cap-select" id="pr-empty-title" name="title" required=""><option value="lab_worker" data-end="2026-12-18" selected="">Lab worker</option><option value="safety_officer" data-end="2026-12-18">Safety officer</option></select></div><p class="cap-field-error" id="pr-empty-title-e" hidden=""></p></div><div class="cap-field"><label class="cap-field-label" for="pr-empty-end">Access ends <span class="cap-field-required" aria-hidden="true">Required</span></label><p class="cap-field-help" id="pr-empty-end-h" data-cap-part="end-help">Defaults to the end of the term, Dec 18, 2026. You can choose an earlier date.</p><input class="cap-input" id="pr-empty-end" type="date" required="" max="2026-12-18" aria-describedby="pr-empty-end-e pr-empty-end-h" data-error-value-missing="Choose the date their access ends." data-error-range-overflow="Choose a date no later than the end of the term." name="end_date" value="2026-12-18"/><p class="cap-field-error" id="pr-empty-end-e" hidden=""></p></div></div><div class="cap-people-add-foot"><button type="submit" class="cap-btn" data-variant="primary">Add person</button><p class="cap-people-tally">They can sign in once Cloudflare confirms, usually within a minute.</p></div></form></section>
Role grid: people by projects, a role in each cell that saves on change
<div data-mount="grid"></div>
API reference
PeopleRoles
| Prop | Type | Required | Does |
|---|---|---|---|
data | PeopleData | Yes | |
action | string | Yes | Where every form posts. Each carries intent: add, change_title, renew, remove, retry, review. |
now | number | Today, for "ends in 5 days". Defaults to now. | |
hrefFor | (kind: "person" | "change", email: string) => string | Builds the address that opens a person's history or change-title row. Defaults to ?person= and ?change=. | |
closeHref | string | Where Close goes, from a history or a change-title row. Defaults to "?". | |
onIntent | (intent: string, fields: FormData) => void | Promise<void> | Runs a post in place instead of a page load. The page shows data.result when it comes back. | |
headingLevel | 2 | 3 | The h level of the heading. The cards and the history use the next one down. |
RoleGrid
| Prop | Type | Required | Does |
|---|---|---|---|
people | RoleGridPerson[] | Yes | |
scopes | RoleScope[] | Yes | |
caption | string | Yes | The table's caption, for screen readers: "People, and their role on each project". |
personHeading | string | The first column's heading. Default "Person". | |
options | (person: RoleGridPerson, scope: RoleScope) => RoleOption[] | Yes | The roles this person may have on this scope (a reviewer is offered no Editor). "" is no access and is always offered first. |
onRoleChange | (person: RoleGridPerson, scope: RoleScope, role: string) => void | Promise<void> | With the script: a cell saves as soon as it changes. The grid says "Saved: ..." when it resolves. Without the script, each row's Save posts every scope's role at once (intent "roles", person, and role-<scope id> per scope). | |
onAccess | (person: RoleGridPerson, intent: "disable" | "enable") => void | Promise<void> | Disable and Enable. With the script it is called and Disable offers Undo; without it, the row's form posts intent "disable" or "enable" and person. | |
action | string | Where the no-script forms post. Default: the page itself. | |
noAccess | string | The words for no access. Default "No access". |
Functions
| Function | Signature | Does |
|---|---|---|
daysLeft | (endDate: string, now: number): number | Whole days from now until the end of the end date (0 on the end date itself). |
accessText | (p: Pick<PersonRow, "status" | "endDate" | "endedOn">, now: number): string | The Access column's words. |
endsSoon | (p: Pick<PersonRow, "status" | "endDate">, now: number): boolean | Whether the end date is close enough to mark (the review is open). |
syncText | (p: Pick<PersonRow, "status" | "sync">): string | The Cloudflare column's words. A removed or expired person is "Ready" once Cloudflare has taken them off, so the column always answers "does Cloudflare match this row yet". |
actionText | (e: HistoryEntry): string | One history line's words. |
cloudflareText | (e: Pick<HistoryEntry, "cloudflare" | "cloudflareError">): string | |
endHelp | (defaultEnd: string | null): string | The add form's help line under the end date. |
tallyText | (keep: number, remove: number, open: number): string | The review's running count. |
removeBody | (name: string, email: string): string[] | The removal's confirm, from the server's own words: who, and what follows. |
removeTarget | (form: HTMLFormElement): { name: string; email: string; } | Who a removal is for, from the row the form sits in (or the form's own data). |
confirmRemove | (form: HTMLFormElement): Promise<boolean> | Asks before a removal; on Remove, posts the form with intent=remove and confirmed=yes. Without script the form posts without confirmed and the server answers with the confirm page. |
rowActions | (p: Pick<PersonRow, "status" | "sync" | "manageable" | "renewTo">, canChangeTitle: boolean, changeHref: string, historyHref: string): { primary: { intent: string; label: string; } | null; items: RowAction[]; } | What a row offers: one action inline (Retry while Cloudflare has not caught up, else Renew), and the rest in its Actions menu. A person the viewer may not manage gets neither. |
followTitle | (form: HTMLFormElement): void | Moves the add form's end date to the chosen title's default: its value and its latest allowed date, or hides the field for a title that does not expire. |
updateTally | (form: HTMLFormElement): void | Counts the review's answers into its tally line. |
enhance | (root?: ParentNode): () => void | Attaches to every [data-cap="people-roles"] under root that is not attached yet. Returns a function that detaches them all. |
pluralTitle | (label: string): string | ---- The members page's address and lead line (from dustinedwards.info's lab, members.server.ts) A title as a group of people: "Lab worker" is "Lab workers"; a title already plural stays. |
manageLead | (titles: readonly string[], notice?: string | undefined): string | undefined | The line under the heading: "You manage Lab workers and Lab managers." from the titles the viewer may give, highest first. notice follows it when something must be set up first (no term dates yet). Undefined when the viewer gives no title. |
personFromParam | (params: URLSearchParams, name: "person" | "change", emails: readonly string[], allowed?: (email: string) => boolean): string | undefined | The person an address names (?person= opens their history, ?change= their inline change row), matched against the people the viewer may see and, for a change, allowed (whom the viewer manages). Anything else names nobody, so an address can never show a person the page would not list. |
roleSavedText | (person: string, scope: string, role: string): string | "Saved: Rosa Park on Field notes, Editor." |
roleFailedText | (person: string, scope: string): string | A role change the app refused: the select goes back to the saved role. |
personName | (p: Pick<RoleGridPerson, "name" | "email">): string | The name the grid shows for a person. |
dayText | (date: string): string | "Dec 18, 2026", from a YYYY-MM-DD date, in UTC: American English, as the family writes dates. |
timeText | (iso: string): string | "Oct 2, 2026, 2:52 PM UTC", from an ISO time. |
CSS variables
| Variable | Default |
|---|---|
--fields-gap | var(--space-4) |
--fields-min | 14rem |
Parts and data attributes
| Class | Is |
|---|---|
.cap-people | the root |
.cap-people-actions | a part |
.cap-people-acts | a part |
.cap-people-add-fields | a part |
.cap-people-add-foot | a part |
.cap-people-card | a part |
.cap-people-change | a part |
.cap-people-change-actions | a part |
.cap-people-count | a part |
.cap-people-edit | a part |
.cap-people-email | a part |
.cap-people-end | a part |
.cap-people-head | a part |
.cap-people-history | a part |
.cap-people-history-by | a part |
.cap-people-history-head | a part |
.cap-people-history-item | a part |
.cap-people-history-list | a part |
.cap-people-history-reason | a part |
.cap-people-history-what | a part |
.cap-people-history-when | a part |
.cap-people-lead | a part |
.cap-people-name | a part |
.cap-people-result | a part |
.cap-people-review-foot | a part |
.cap-people-review-item | a part |
.cap-people-review-list | a part |
.cap-people-review-who | a part |
.cap-people-sync | a part |
.cap-people-sync-error | a part |
.cap-people-table | a part |
.cap-people-tally | a part |
.cap-people-who | a part |
.cap-people-you | a part |
| Attribute | Values |
|---|---|
data-soon | present or absent |
data-status | expired removed |
data-tone | crit |
data-variant | review |
Accessibility
| Key | Does |
|---|---|
| Tab | Moves through the review's choices and Save review, the table's scroll region, each row's inline action (Retry or Renew) and its Actions menu, then the add form |
| Enter or ArrowDown on Actions | Opens the menu; the arrow keys move through it, Esc closes it (the form menu's own keys) |
| Arrow keys in a review item | Move between Keep and Remove (the browser's own radios) |
| Enter on a form's button | Posts it; on Remove, opens the confirm first |
| Esc in the remove confirm | Cancels, focus back on the page |
| Enter in the reason field | Changes the title; with no reason, says so beside the field and keeps focus there |
- Every inline action carries the person's name for a screen reader ("Renew to May 14, 2027 for Rosa Park"), and each Actions menu is named for its person ("Actions for Rosa Park"), so a column of buttons is not six "Actions".
- The person is the row header (
th scope="row"), so each cell reads with their name. - Each status is a word and a shape (ok, the running arc, critical, warning), never color alone; the shapes are hidden from the accessibility tree.
- The result line is a status region when it worked and an alert when it did not, with "Done:" or "Not done:" before the words.
- The review's tally is a polite live region.
- Forced colors: the cards' and the result's edges become CanvasText.