Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d60b0b4
added roids skill
Developing-Gamer Apr 21, 2026
6d87ff6
auth methods page redesigned (1/2)
Developing-Gamer Apr 21, 2026
18f9d24
auth methods page redesigned (2/2)
Developing-Gamer Apr 21, 2026
6bfd71c
Sign-up rules page redesigned (1/2)
Developing-Gamer Apr 21, 2026
8c026a9
updated dialogs
Developing-Gamer Apr 22, 2026
ed24d9f
add reusable DesignDialog base component
Developing-Gamer Apr 22, 2026
cad76f8
export DesignDialog primitives from dashboard ui package
Developing-Gamer Apr 22, 2026
6251bd2
document DesignDialog as default dashboard modal
Developing-Gamer Apr 22, 2026
b8a164a
migrate trigger history modal to DesignDialog shell
Developing-Gamer Apr 22, 2026
8e9c228
add DesignDialog demos to design language catalog
Developing-Gamer Apr 22, 2026
d23fbbd
add interactive DesignDialog controls in playground
Developing-Gamer Apr 22, 2026
22b12a3
add onboarding email verification setting strip
Developing-Gamer Apr 22, 2026
7112f49
refactor onboarding page to use DesignDialog and new setting
Developing-Gamer Apr 22, 2026
28ac2bf
tune email verification dialog copy and affected-user header
Developing-Gamer Apr 22, 2026
37e33a0
Merge branch 'dev' into onboarding-app-redesign
mantrakp04 May 13, 2026
14ec26d
Merge branch 'dev' into onboarding-app-redesign
mantrakp04 May 14, 2026
ae8c80a
docs(roids): clarify preview-only scope and loading mechanism
mantrakp04 May 13, 2026
f3ec022
docs(design-guide): fix stale §22 ref to §4.14 for DesignDialog
mantrakp04 May 13, 2026
fc2272c
fix(providers): import ReactNode from react for NoteInline prop type
mantrakp04 May 13, 2026
2b8092f
refactor(auth-methods): improve confirmation handling and switch ID g…
mantrakp04 May 14, 2026
5094f02
fix(app-card): add Film icon for session-replays app
mantrakp04 May 14, 2026
0639461
fix(dashboard): address remaining PR review comments
mantrakp04 May 14, 2026
de17506
refactor(sign-up-rules): enhance UI components and improve styling
mantrakp04 May 14, 2026
97d382b
fix(app-card): remove Film icon from session-replays app
mantrakp04 May 14, 2026
8761527
fix(auth-methods): update confirmation handling to use async function
mantrakp04 May 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .agents/skills/roids/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: roids
description: Use when presenting more than one comparable UI direction, or proactively whenever you ship multiple layout options for the user to choose—do not wait for the user to mention Roids or type /roids. Use for comparison, preview-first, or pick-a-winner flows before cleanup. Default to a small set of variants (~2–5) unless the user specifies how many.
metadata:
version: "1.0.0"
---

# Roids

Compare variants in the browser with the hosted runtime and markup contract.

## How it works

**Preview-only — not for production.** The TryRoids hosted runtime (`https://tryroids.com/roid-tool.js`) and any wiring described in `SKILL.txt` are intended only for sandboxed variant previews. Never include them in production dashboard or app code, and never inject a `<script src="https://tryroids.com/roid-tool.js">` into shipped bundles.

1. Fetch the source URL below for documentation only—do not load it via `<script src>` in production code.
2. Follow `SKILL.txt` exactly: "wire" means using the documented inline markup pattern (the `data-roid-*` attributes on variant elements) inside a sandboxed preview runner. The hosted runtime URL is referenced in docs or loaded only by the preview sandbox, never by application code.
3. Do not use custom tabs, selects, or one-off pickers for those variants.

## Source

`https://tryroids.com/SKILL.txt`
100 changes: 99 additions & 1 deletion apps/dashboard/DESIGN-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,22 @@ Use this when implementing a new dashboard UI quickly:
- Use `DataGrid` + `useDataSource` + `createDefaultDataGridState` from `@stackframe/dashboard-ui-components`.
11. Need dropdown action/selector/toggle menu?
- Use `DesignMenu`.
12. Need a focus-trapping modal/dialog (confirmation, rich modal, tester, form)?
- Use `DesignDialog`.

---

## 3) Allowed Base UI Usage

`@/components/ui/*` can still be used for primitives that do not currently have a design-components equivalent:

- dialogs/sheets/popovers (`ActionDialog`, `FormDialog`, `Sheet`, etc.)
- confirmation-pattern helpers like `ActionDialog` / `FormDialog` (these wrap an `onClick`/form submit lifecycle and remain useful when you only need a dressed-up confirm/submit prompt)
- side-sheets/popovers (`Sheet`, `Popover`, etc.)
- complex layout containers where design-components does not provide one
- highly specialized editor internals

For any general-purpose modal surface (rich detail dialogs, tester surfaces, data dialogs, settings popovers presented as modals), use `DesignDialog` instead of wiring `Dialog` + `DialogContent` + `DialogHeader` etc. by hand. `DesignDialog` is the canonical glassmorphic dialog surface for the dashboard — see §4.14 below.

When using a primitive directly:

- keep visual style compatible with design-components surfaces
Expand Down Expand Up @@ -635,6 +640,99 @@ Rules:
- keep as optional enhancement, not required UX
- avoid distracting overuse in production-critical flows

### 4.14 `DesignDialog`

File: `packages/dashboard-ui-components/src/components/dialog.tsx` (re-exported through `@/components/design-components`)

Use for:

- any focus-trapping modal in the dashboard (confirmations, rich detail dialogs, tester surfaces, settings forms presented as modals)
- replacing hand-wired `Dialog` + `DialogContent` + `DialogHeader` combinations from `@stackframe/stack-ui`

Props you should use most:

- `trigger`: element wrapped in a `DialogTrigger`. Skip when controlling externally via `open`/`onOpenChange`/`defaultOpen`.
- `size`: `"sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full"` (defaults to `"lg"`).
- `variant`: `"glassmorphic"` (default) or `"plain"`. `glassmorphic` applies the dashboard's blurred surface + dimmed overlay.
- `icon`: a Phosphor icon component (or `null` to skip the chip).
- `title` / `description`: standard header text. `title` is automatically wired into `DialogTitle` for a11y.
- `headerContent`: rich content rendered below the icon/title block — use this for embedded summary cards, metric tiles, or status pills inside the header.
- `customHeader`: complete override of the header region. You become responsible for rendering an accessible `DialogTitle`.
- `footer`: footer node rendered in a styled bottom bar. Wrap close buttons in `DesignDialogClose asChild` (re-exported by the same module).
- `noBodyPadding`: disable the default `px-6 py-4` padding for full-bleed body content.
- `hideTopCloseButton`: hide the top-right "X" rendered by `DialogContent` for fully custom close affordances.
- `bodyClassName` / `headerClassName` / `footerClassName` / `overlayClassName` / `className`: fine-grained class overrides for each region.

Re-exports (import these from the same module — do not mix with `@stackframe/stack-ui` for the same dialog):

- `DesignDialogClose` (alias of `DialogClose`)
- `DesignDialogTrigger` (alias of `DialogTrigger`)
- `DesignDialogTitle` / `DesignDialogDescription`
- `DesignDialogRoot` (alias of `Dialog`) for the rare cases that need raw `Dialog.Root` semantics

Rules:

- Do not write `Dialog` + `DialogContent` + `DialogHeader` + `DialogBody` + `DialogFooter` directly when building a full-page modal — use `DesignDialog`.
- When refactoring an existing dialog, preserve any `headerContent` summary cards, sparklines, or stat tiles by passing them via the `headerContent` prop rather than crafting a `customHeader` from scratch.
- Footer slot already provides border + background + responsive flex; don't re-add wrapping divs with the same styling.
- Use the smallest `size` that fits your content. `md`/`lg` for confirmations, `2xl`/`3xl` for detail dialogs with summary cards, `5xl`+ for tester/forms.

Common shapes (for AI agents):

```tsx
// Confirmation
<DesignDialog
trigger={<DesignButton size="sm">Open</DesignButton>}
icon={InfoIcon}
title="Heads up"
description="You're about to do something."
footer={
<DesignDialogClose asChild>
<DesignButton variant="secondary" size="sm">Close</DesignButton>
</DesignDialogClose>
}
>
<p className="text-sm">Body content.</p>
</DesignDialog>

// Rich modal with summary card
<DesignDialog
open={open}
onOpenChange={setOpen}
size="2xl"
icon={PulseIcon}
title="Rule trigger history"
description="3 total triggers"
headerContent={<SummaryCard />}
footer={
<DesignDialogClose asChild>
<DesignButton variant="secondary" size="sm">Close</DesignButton>
</DesignDialogClose>
}
>
{/* recent triggers list */}
</DesignDialog>

// Wide tester / form
<DesignDialog
trigger={<DesignButton size="sm">Open tester</DesignButton>}
size="5xl"
icon={FlaskIcon}
title="Test sign-up rules"
description="Simulate a sign-up request."
footer={
<>
<DesignDialogClose asChild>
<DesignButton variant="secondary" size="sm">Cancel</DesignButton>
</DesignDialogClose>
<DesignButton size="sm">Run test</DesignButton>
</>
}
>
<TesterForm />
</DesignDialog>
```

---

## 5) Route-Specific Guidance (Project + Email Surfaces)
Expand Down
Loading
Loading