rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

Notifications Center — bell + inbox

Bell with unread badge + popover/sheet inbox — adapter-driven, host supplies the feed.

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
notifications-center.prompt.mdmarkdown
# Install `notifications-center` — Notifications Center — bell + inbox

> Bell with unread badge + popover/sheet inbox — adapter-driven, host supplies the feed.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/notifications-center
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=notifications-center
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/notifications-center

## 1. Install

```bash
npx rahman-resources add notifications-center
# alias: npx rr add notifications-center
```

The CLI copies `frontend/slices/notifications-center/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.

## 2. What it ships

- shadcn primitives: `button`, `popover`, `sheet`, `badge`, `scroll-area`, `separator`, `tabs`, `avatar`

## 3. Wire it up

Run `npx rr add notifications-center`. Mount <NotificationBell adapter> in your topbar. Implement NotificationsAdapter over your feed (Convex query + mutations) or start with createMemoryNotificationsAdapter(seed). surface="sheet" for mobile-heavy apps.

## Rules of engagement

- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice

The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.