matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
screen/confirm.mjs
View on GitHubimport { html } from "./vendor/preact-htm.mjs";
import { Button, Dialog } from "./ui.mjs";
/** The one way Access asks a question: a popup, open while it is drawn. The way out is focused first and is Escape's
* answer too; a click on the dimmed page answers nothing. The answer closes it, so a save shows as on its way. */
export function Confirm({ title, action, cancel = "Cancel", pending, onConfirm, onCancel, children }) {
return html`<${Dialog} class="wrap-anywhere" title=${title} description=${children} onEscape=${onCancel} footer=${[
html`<${Button} key="cancel" variant="outline" data-dialog="cancel" disabled=${pending} onClick=${onCancel}>${cancel}<//>`,
html`<${Button} key="action" data-dialog="action" disabled=${pending} onClick=${onConfirm}>${action}<//>`,
]} />`;
}
/** Giving Admin asks first, in a person's row and in their panel: it is full trust. */
export const MakeAdmin = ({ email, ...props }) =>
html`<${Confirm} title=${`Make ${email} an Admin?`} action="Make Admin" ...${props}>Every app, every key, and can change anyone's access.<//>`;
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 |