matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
screen/app.mjs
View on GitHubimport { html } from "./vendor/preact-htm.mjs";
import { readApps, useAccess } from "./api.mjs";
import { useScreen } from "./context.mjs";
import { FinishStep } from "./notices.mjs";
import { Own } from "./own.mjs";
import { LoadingPeople, Owner, Unavailable } from "./owner.mjs";
// The owner and an Admin manage people and roles, and find themselves in the People table; everyone else sees what
// they can use. The page sets no width or margin of its own; it measures itself, so rows stack by the room they have.
export function App() {
const { data, error, reload } = useAccess(useScreen().api, "apps", readApps);
const manages = !!data && data.state !== "legacy" && (data.role === "owner" || !!data.manages);
return html`<div class="@container grid gap-4">
<h1>Access</h1>
${!data && !error && html`<${LoadingPeople} />`}
${error && html`<${Unavailable} reload=${reload} />`}
${data?.state === "legacy" && html`<${FinishStep}><strong>Access setup is not finished.</strong> Everyone who signs in keeps every app. To choose apps per person, ask your assistant:<//>`}
${data && data.state !== "legacy" && (manages ? html`<${Owner} />` : html`<${Own} apps=${data.apps} keys=${(data.state === "current" && data.keys) || []} />`)}
</div>`;
}
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 |