matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
screen/level-choice.mjs
View on GitHubimport { html, useMemo } from "./vendor/preact-htm.mjs";
import { levelName } from "./levels.mjs";
import { Label } from "./ui.mjs";
let made = 0;
/** One level as a segmented choice: real radio buttons kept on screen, so arrow keys move it. `state` is a quiet word
* beside the name; `notes` are quiet lines under the row, the empty ones left out; `children` come after them. */
export function LevelChoice({ legend, state, levels, value, notes = [], onChange, children }) {
const name = useMemo(() => `access-level-${++made}`, []);
return html`<fieldset class="grid min-w-0 gap-1.5">
<legend class="mb-1 text-sm">${legend}${state && [" ", html`<span class="text-muted-foreground">· ${state}</span>`]}</legend>
<div class="flex flex-wrap items-center">${[null, ...levels].map(level =>
html`<${Label} class="-ms-px cursor-pointer border px-3 py-2 font-normal first:ms-0 first:rounded-s-md last:rounded-e-md has-checked:bg-secondary has-checked:font-semibold" key=${levelName(level)}>
<input type="radio" class="size-4 accent-primary" name=${name} checked=${value === level} onChange=${() => onChange(level)} />${levelName(level)}
<//>`)}
</div>
${notes.filter(Boolean).map(note => html`<p class="text-sm text-muted-foreground" key=${note}>${note}</p>`)}
${children}
</fieldset>`;
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |