Files
supabase/.cursor/rules/studio/sheets/RULE.md
T
Saxon Fletcher bb02df5f69 Update Cursor rules structure (#41338)
* update and expand cursor rules structure

* rule copy

* rule updates
2026-01-20 09:25:29 +10:00

762 B

description, globs, alwaysApply
description globs alwaysApply
Studio: side panels (Sheet) for context-preserving workflows
apps/studio/**/*.{ts,tsx}
false

Studio sheets

Use a Sheet when switching to a new page would be disruptive and the user should keep context (e.g. selecting an item from a list to edit details).

Structure

  • Prefer SheetContent with size="lg" for forms that need horizontal layout.
  • Use SheetHeader, SheetTitle, SheetSection, and SheetFooter for consistent structure.
  • Place submit/cancel actions in SheetFooter.

Forms in sheets

  • Prefer FormItemLayout:
    • layout="horizontal" for wider sheets
    • layout="vertical" for narrow sheets (size="sm" or below)
  • See @studio/forms for the canonical patterns and demos.