Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
a71809f
chore: added .codex to gitignore
Romyr05 Mar 30, 2026
50e0b41
Merge branch 'popcorn-prophets:main' into main
Romyr05 Apr 1, 2026
af544c8
feat(db): bootstrap super admin
dejely Apr 1, 2026
2b546fc
feat: add basic RLS
dejely Apr 1, 2026
9a63d9d
chore: update app_role
dejely Apr 1, 2026
7aac046
Merge branch 'popcorn-prophets:main' into feat/RBAC
dejely Apr 2, 2026
74c5dc1
feat: change font to Inter
andrianllmm Apr 2, 2026
d947399
feat(db): align rbac with initial schema
dejely Apr 2, 2026
9008e33
fix(config): seed both and
dejely Apr 2, 2026
4757b56
feat: add logos
andrianllmm Apr 2, 2026
171e26f
feat: add favicon
andrianllmm Apr 2, 2026
ffd6e94
fix: adjust logo sizes
andrianllmm Apr 2, 2026
cab7bd1
fix: add display swap to font
andrianllmm Apr 2, 2026
3d15cd0
fix: add remaining props to brand components
andrianllmm Apr 2, 2026
283274c
Merge pull request #21 from andrianllmm/feature/integrate-branding
andrianllmm Apr 2, 2026
2772ccb
chore(db): update enums and remap perms
dejely Apr 2, 2026
47933f6
feat: setup homepage redirect
andrianllmm Apr 2, 2026
4753cae
chore: add new env variables to .env.example
dejely Apr 2, 2026
7fcc6d1
feat(UI): bootstrap first user as admin in UI
dejely Apr 2, 2026
69b061c
chore: integrate auth and signup for invited admins
dejely Apr 2, 2026
4738e25
Merge branch 'popcorn-prophets:main' into main
Romyr05 Apr 2, 2026
8c72caa
chore: regenerate supabase types
dejely Apr 2, 2026
561860a
feat(invites): add Reissue button for email link
dejely Apr 2, 2026
3b51681
refactor(auth): refactored actions.ts into seperate files
dejely Apr 2, 2026
d447d8c
chore: added privacy page and terms page
Romyr05 Apr 2, 2026
b095f0c
chore: integrated it to homepage
Romyr05 Apr 2, 2026
cf9ac5b
feat: Api for Health Check Endpoint and Readiness Status
Romyr05 Apr 2, 2026
dcb7c0f
chore: added a status page in the main page footer
Romyr05 Apr 2, 2026
6364d36
chore: clean-up comments
Romyr05 Apr 2, 2026
86ce7cf
Merge pull request #23 from andrianllmm/feature/homepage-redirect
andrianllmm Apr 3, 2026
a42117d
chore: add shadcn agent skills
andrianllmm Apr 3, 2026
f84d4b2
Merge pull request #41 from andrianllmm/chore/add-shadcn-agent-skills
andrianllmm Apr 3, 2026
4056720
chore: upgrade tailwind
andrianllmm Apr 3, 2026
ebbbe96
Merge pull request #42 from andrianllmm/chore/upgrade-tailwind
andrianllmm Apr 3, 2026
a5dc2f6
chore: initialize shadcn dashboard
andrianllmm Apr 3, 2026
3a1a390
fix: homepage redirect
andrianllmm Apr 3, 2026
3019d7d
fix: update getting user
andrianllmm Apr 3, 2026
30c52c5
feat: update sidebar colors
andrianllmm Apr 3, 2026
6ee7f5a
fix: add tooltip provider
andrianllmm Apr 3, 2026
1ddf54a
feat: initialize pages
andrianllmm Apr 3, 2026
9163350
feat: update app sidebar
andrianllmm Apr 3, 2026
652e3dc
feat: update site header
andrianllmm Apr 3, 2026
fc599d4
feat: update header nav
andrianllmm Apr 3, 2026
2d5075c
refactor: move control center components into dedicated folder
andrianllmm Apr 3, 2026
6aa2790
fix: get initial of email instead of hardcoding in nav user
andrianllmm Apr 3, 2026
4e8c9cc
fix: use server side for getting user for nav user
andrianllmm Apr 3, 2026
882c30c
fix: shadcn tooltip missing suspense
andrianllmm Apr 3, 2026
373eb04
feat: update control center pages
andrianllmm Apr 3, 2026
c336e57
Merge pull request #44 from andrianllmm/feature/initialize-control-ce…
andrianllmm Apr 3, 2026
72846e9
Merge branch 'main' into feat/RBAC
dejely Apr 3, 2026
3332014
fix(db): double roles on first sign up (super admin & admin)
dejely Apr 3, 2026
c5d01f8
chore(UI): change to components
dejely Apr 3, 2026
2dbd74e
fix: CI/CD supabase ok to supabase okay
Romyr05 Apr 3, 2026
ebafc16
Merge branch 'main' into feat/Status_HealthEnpoint
Romyr05 Apr 3, 2026
4a74cde
test: test CI pipeline fix
Romyr05 Apr 3, 2026
47a58e0
test: merge main to branch
Romyr05 Apr 3, 2026
dbcf83a
Merge pull request #14 from dejely/feat/RBAC
dejely Apr 3, 2026
d6e7f3e
chore: resolved comments
Romyr05 Apr 3, 2026
1b9b963
chore: added the status and health check in Control commands get help
Romyr05 Apr 3, 2026
5ad574c
Create CNAME
dejely Apr 3, 2026
ef38ee4
feat: implement staff management roles func
dejely Apr 3, 2026
0c39c66
chore(admin): secure admin authentication add utils
dejely Apr 3, 2026
73f6a9f
chore(UI): add helper function for display field
dejely Apr 3, 2026
c332335
feat(UI): add control center for admin users
dejely Apr 3, 2026
2e23593
feat(admin): moved invites here, and removed from landing page
dejely Apr 3, 2026
5cf06b4
chore(UI): reuse/use shadcn interfaces for consistency
dejely Apr 3, 2026
9219520
Merge branch 'popcorn-prophets:main' into feat/RBAC
dejely Apr 3, 2026
53c7bc7
refactor(db): refactored to use auth.admin.getuserbyid and fetches on…
dejely Apr 3, 2026
38598e5
refactor: generalize chatbot webhooks
andrianllmm Apr 3, 2026
9d7e55e
feat: implement resident onboarding
andrianllmm Apr 3, 2026
b43327d
chore: rename controlpanel/team -> admin-panel
dejely Apr 3, 2026
253ee8e
refactor: chatbot flow
andrianllmm Apr 3, 2026
b18686c
refactor: dynamic imports in steps
andrianllmm Apr 3, 2026
36d6574
refactor: use validators for onboarding flow
andrianllmm Apr 3, 2026
d0eb038
chore: removed blank page and redirect to admin-panel
dejely Apr 3, 2026
5fe711b
Merge pull request #51 from andrianllmm/feature/resident-onboarding
andrianllmm Apr 3, 2026
a974859
Merge pull request #47 from dejely/feat/RBAC
dejely Apr 3, 2026
c41313b
fix: sync supabase types
andrianllmm Apr 3, 2026
aaa7165
Merge pull request #53 from andrianllmm/fix/unsynced-supabase-types
andrianllmm Apr 3, 2026
cc5a055
feat: implement form-based incident reporting
andrianllmm Apr 3, 2026
6fbf28d
Merge pull request #54 from andrianllmm/feature/form-based-incident-r…
Romyr05 Apr 3, 2026
f66f908
chore: resolved comments
Romyr05 Apr 3, 2026
c2c23ac
Merge pull request #25 from Romyr05/feat/Status_HealthEnpoint
andrianllmm Apr 4, 2026
e60cdf3
fix: add mock value for secret reading
dejely Apr 4, 2026
d24752b
fix: generate next route types before typecheck
dejely Apr 4, 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
242 changes: 242 additions & 0 deletions .agents/skills/shadcn/SKILL.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .agents/skills/shadcn/agents/openai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
interface:
display_name: "shadcn/ui"
short_description: "Manages shadcn/ui components — adding, searching, fixing, debugging, styling, and composing UI."
icon_small: "./assets/shadcn-small.png"
icon_large: "./assets/shadcn.png"
Binary file added .agents/skills/shadcn/assets/shadcn-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .agents/skills/shadcn/assets/shadcn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
257 changes: 257 additions & 0 deletions .agents/skills/shadcn/cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
# shadcn CLI Reference

Configuration is read from `components.json`.

> **IMPORTANT:** Always run commands using the project's package runner: `npx shadcn@latest`, `pnpm dlx shadcn@latest`, or `bunx --bun shadcn@latest`. Check `packageManager` from project context to choose the right one. Examples below use `npx shadcn@latest` but substitute the correct runner for the project.

> **IMPORTANT:** Only use the flags documented below. Do not invent or guess flags — if a flag isn't listed here, it doesn't exist. The CLI auto-detects the package manager from the project's lockfile; there is no `--package-manager` flag.

## Contents

- Commands: init, add (dry-run, smart merge), search, view, docs, info, build
- Templates: next, vite, start, react-router, astro
- Presets: named, code, URL formats and fields
- Switching presets

---

## Commands

### `init` — Initialize or create a project

```bash
npx shadcn@latest init [components...] [options]
```

Initializes shadcn/ui in an existing project or creates a new project (when `--name` is provided). Optionally installs components in the same step.

| Flag | Short | Description | Default |
| ----------------------- | ----- | --------------------------------------------------------- | ------- |
| `--template <template>` | `-t` | Template (next, start, vite, next-monorepo, react-router) | — |
| `--preset [name]` | `-p` | Preset configuration (named, code, or URL) | — |
| `--yes` | `-y` | Skip confirmation prompt | `true` |
| `--defaults` | `-d` | Use defaults (`--template=next --preset=base-nova`) | `false` |
| `--force` | `-f` | Force overwrite existing configuration | `false` |
| `--cwd <cwd>` | `-c` | Working directory | current |
| `--name <name>` | `-n` | Name for new project | — |
| `--silent` | `-s` | Mute output | `false` |
| `--rtl` | | Enable RTL support | — |
| `--reinstall` | | Re-install existing UI components | `false` |
| `--monorepo` | | Scaffold a monorepo project | — |
| `--no-monorepo` | | Skip the monorepo prompt | — |

`npx shadcn@latest create` is an alias for `npx shadcn@latest init`.

### `add` — Add components

> **IMPORTANT:** To compare local components against upstream or to preview changes, ALWAYS use `npx shadcn@latest add <component> --dry-run`, `--diff`, or `--view`. NEVER fetch raw files from GitHub or other sources manually. The CLI handles registry resolution, file paths, and CSS diffing automatically.

```bash
npx shadcn@latest add [components...] [options]
```

Accepts component names, registry-prefixed names (`@magicui/shimmer-button`), URLs, or local paths.

| Flag | Short | Description | Default |
| --------------- | ----- | -------------------------------------------------------------------------------------------------------------------- | ------- |
| `--yes` | `-y` | Skip confirmation prompt | `false` |
| `--overwrite` | `-o` | Overwrite existing files | `false` |
| `--cwd <cwd>` | `-c` | Working directory | current |
| `--all` | `-a` | Add all available components | `false` |
| `--path <path>` | `-p` | Target path for the component | — |
| `--silent` | `-s` | Mute output | `false` |
| `--dry-run` | | Preview all changes without writing files | `false` |
| `--diff [path]` | | Show diffs. Without a path, shows the first 5 files. With a path, shows that file only (implies `--dry-run`) | — |
| `--view [path]` | | Show file contents. Without a path, shows the first 5 files. With a path, shows that file only (implies `--dry-run`) | — |

#### Dry-Run Mode

Use `--dry-run` to preview what `add` would do without writing any files. `--diff` and `--view` both imply `--dry-run`.

```bash
# Preview all changes.
npx shadcn@latest add button --dry-run

# Show diffs for all files (top 5).
npx shadcn@latest add button --diff

# Show the diff for a specific file.
npx shadcn@latest add button --diff button.tsx

# Show contents for all files (top 5).
npx shadcn@latest add button --view

# Show the full content of a specific file.
npx shadcn@latest add button --view button.tsx

# Works with URLs too.
npx shadcn@latest add https://api.npoint.io/abc123 --dry-run

# CSS diffs.
npx shadcn@latest add button --diff globals.css
```

**When to use dry-run:**

- When the user asks "what files will this add?" or "what will this change?" — use `--dry-run`.
- Before overwriting existing components — use `--diff` to preview the changes first.
- When the user wants to inspect component source code without installing — use `--view`.
- When checking what CSS changes would be made to `globals.css` — use `--diff globals.css`.
- When the user asks to review or audit third-party registry code before installing — use `--view` to inspect the source.

> **`npx shadcn@latest add --dry-run` vs `npx shadcn@latest view`:** Prefer `npx shadcn@latest add --dry-run/--diff/--view` over `npx shadcn@latest view` when the user wants to preview changes to their project. `npx shadcn@latest view` only shows raw registry metadata. `npx shadcn@latest add --dry-run` shows exactly what would happen in the user's project: resolved file paths, diffs against existing files, and CSS updates. Use `npx shadcn@latest view` only when the user wants to browse registry info without a project context.

#### Smart Merge from Upstream

See [Updating Components in SKILL.md](./SKILL.md#updating-components) for the full workflow.

### `search` — Search registries

```bash
npx shadcn@latest search <registries...> [options]
```

Fuzzy search across registries. Also aliased as `npx shadcn@latest list`. Without `-q`, lists all items.

| Flag | Short | Description | Default |
| ------------------- | ----- | ---------------------- | ------- |
| `--query <query>` | `-q` | Search query | — |
| `--limit <number>` | `-l` | Max items per registry | `100` |
| `--offset <number>` | `-o` | Items to skip | `0` |
| `--cwd <cwd>` | `-c` | Working directory | current |

### `view` — View item details

```bash
npx shadcn@latest view <items...> [options]
```

Displays item info including file contents. Example: `npx shadcn@latest view @shadcn/button`.

### `docs` — Get component documentation URLs

```bash
npx shadcn@latest docs <components...> [options]
```

Outputs resolved URLs for component documentation, examples, and API references. Accepts one or more component names. Fetch the URLs to get the actual content.

Example output for `npx shadcn@latest docs input button`:

```
base radix

input
docs https://ui.shadcn.com/docs/components/radix/input
examples https://raw.githubusercontent.com/.../examples/input-example.tsx

button
docs https://ui.shadcn.com/docs/components/radix/button
examples https://raw.githubusercontent.com/.../examples/button-example.tsx
```

Some components include an `api` link to the underlying library (e.g. `cmdk` for the command component).

### `diff` — Check for updates

Do not use this command. Use `npx shadcn@latest add --diff` instead.

### `info` — Project information

```bash
npx shadcn@latest info [options]
```

Displays project info and `components.json` configuration. Run this first to discover the project's framework, aliases, Tailwind version, and resolved paths.

| Flag | Short | Description | Default |
| ------------- | ----- | ----------------- | ------- |
| `--cwd <cwd>` | `-c` | Working directory | current |

**Project Info fields:**

| Field | Type | Meaning |
| -------------------- | --------- | ------------------------------------------------------------------ |
| `framework` | `string` | Detected framework (`next`, `vite`, `react-router`, `start`, etc.) |
| `frameworkVersion` | `string` | Framework version (e.g. `15.2.4`) |
| `isSrcDir` | `boolean` | Whether the project uses a `src/` directory |
| `isRSC` | `boolean` | Whether React Server Components are enabled |
| `isTsx` | `boolean` | Whether the project uses TypeScript |
| `tailwindVersion` | `string` | `"v3"` or `"v4"` |
| `tailwindConfigFile` | `string` | Path to the Tailwind config file |
| `tailwindCssFile` | `string` | Path to the global CSS file |
| `aliasPrefix` | `string` | Import alias prefix (e.g. `@`, `~`, `@/`) |
| `packageManager` | `string` | Detected package manager (`npm`, `pnpm`, `yarn`, `bun`) |

**Components.json fields:**

| Field | Type | Meaning |
| -------------------- | --------- | ------------------------------------------------------------------------------------------ |
| `base` | `string` | Primitive library (`radix` or `base`) — determines component APIs and available props |
| `style` | `string` | Visual style (e.g. `nova`, `vega`) |
| `rsc` | `boolean` | RSC flag from config |
| `tsx` | `boolean` | TypeScript flag |
| `tailwind.config` | `string` | Tailwind config path |
| `tailwind.css` | `string` | Global CSS path — this is where custom CSS variables go |
| `iconLibrary` | `string` | Icon library — determines icon import package (e.g. `lucide-react`, `@tabler/icons-react`) |
| `aliases.components` | `string` | Component import alias (e.g. `@/components`) |
| `aliases.utils` | `string` | Utils import alias (e.g. `@/lib/utils`) |
| `aliases.ui` | `string` | UI component alias (e.g. `@/components/ui`) |
| `aliases.lib` | `string` | Lib alias (e.g. `@/lib`) |
| `aliases.hooks` | `string` | Hooks alias (e.g. `@/hooks`) |
| `resolvedPaths` | `object` | Absolute file-system paths for each alias |
| `registries` | `object` | Configured custom registries |

**Links fields:**

The `info` output includes a **Links** section with templated URLs for component docs, source, and examples. For resolved URLs, use `npx shadcn@latest docs <component>` instead.

### `build` — Build a custom registry

```bash
npx shadcn@latest build [registry] [options]
```

Builds `registry.json` into individual JSON files for distribution. Default input: `./registry.json`, default output: `./public/r`.

| Flag | Short | Description | Default |
| ----------------- | ----- | ----------------- | ------------ |
| `--output <path>` | `-o` | Output directory | `./public/r` |
| `--cwd <cwd>` | `-c` | Working directory | current |

---

## Templates

| Value | Framework | Monorepo support |
| -------------- | -------------- | ---------------- |
| `next` | Next.js | Yes |
| `vite` | Vite | Yes |
| `start` | TanStack Start | Yes |
| `react-router` | React Router | Yes |
| `astro` | Astro | Yes |
| `laravel` | Laravel | No |

All templates support monorepo scaffolding via the `--monorepo` flag. When passed, the CLI uses a monorepo-specific template directory (e.g. `next-monorepo`, `vite-monorepo`). When neither `--monorepo` nor `--no-monorepo` is passed, the CLI prompts interactively. Laravel does not support monorepo scaffolding.

---

## Presets

Three ways to specify a preset via `--preset`:

1. **Named:** `--preset base-nova` or `--preset radix-nova`
2. **Code:** `--preset a2r6bw` (base62 string, starts with lowercase `a`)
3. **URL:** `--preset "https://ui.shadcn.com/init?base=radix&style=nova&..."`

> **IMPORTANT:** Never try to decode, fetch, or resolve preset codes manually. Preset codes are opaque — pass them directly to `npx shadcn@latest init --preset <code>` and let the CLI handle resolution.

## Switching Presets

Ask the user first: **reinstall**, **merge**, or **skip** existing components?

- **Re-install** → `npx shadcn@latest init --preset <code> --force --reinstall`. Overwrites all component files with the new preset styles. Use when the user hasn't customized components.
- **Merge** → `npx shadcn@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn@latest info` to get the list of installed components and use the [smart merge workflow](./SKILL.md#updating-components) to update them one by one, preserving local changes. Use when the user has customized components.
- **Skip** → `npx shadcn@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS variables, leaves existing components as-is.

Always run preset commands inside the user's project directory. The CLI automatically preserves the current base (`base` vs `radix`) from `components.json`. If you must use a scratch/temp directory (e.g. for `--dry-run` comparisons), pass `--base <current-base>` explicitly — preset codes do not encode the base.
Loading
Loading