36 lines
1.6 KiB
Markdown
36 lines
1.6 KiB
Markdown
# Telemt Panel — agent notes
|
|
|
|
## UI hierarchy (жёстко)
|
|
|
|
1. **ReUI PRO** — MCP `user-reui`, registry `@reui`, blocks/components, skill `.cursor/skills/reui`
|
|
2. **Kit** — `apps/web/src/components/reui-kit/` (adapt, не redesign)
|
|
3. **shadcn primitives** — `@telemt/ui` + MCP `plugin-shadcn-shadcn` (Button/Field/Sidebar/…)
|
|
4. **Domain** — данные Telemt / fleet
|
|
|
|
Голый shadcn/ui **blocks** и ui.shadcn.com/blocks **не** эталон для ops-экранов.
|
|
|
|
Rules: `.cursor/rules/reui-pro-priority.mdc` (always), `reui-mcp.mdc`, `kpi-hybrid.mdc`.
|
|
Contract: `docs/ui-design-contract.md`.
|
|
|
|
## UI (ReUI PRO)
|
|
|
|
- Surface: **frame** only (`apps/web/src/lib/ui-surface.ts`)
|
|
- MCP: `search` → `get_block`/`compose_page` → `get_install_command` → CLI → `validate_usage`
|
|
- Always cite `previewUrl` + `docsUrl`
|
|
- Previews: [app-shell-12](https://reui.io/preview/base/app-shell-12), [stats-12](https://reui.io/preview/base/stats-12), [settings-16](https://reui.io/preview/base/settings-16), [auth-4](https://reui.io/preview/base/auth-4)
|
|
- Kit: `ResourcePage`, `KpiStatGrid`, `QuickActionGrid`, `OpsDashboard`, `SettingsShell`, `DetailPanel`
|
|
|
|
## License / Cursor
|
|
|
|
- [License Setup](https://reui.io/docs/license-setup) · [Cursor MCP](https://reui.io/docs/cursor)
|
|
- `REUI_LICENSE_KEY` in root `.env.local` + `apps/web/.env.local`
|
|
- `components.json` → `@reui` Bearer `${REUI_LICENSE_KEY}`
|
|
- `.cursor/mcp.json` → Bearer `${env:REUI_LICENSE_KEY}`
|
|
|
|
## Scope
|
|
|
|
- Plan 1: ReUI PRO scaffold (done)
|
|
- Plan 2: fleet API, local JWT auth, Go agent, Telemt `/v1` via agents
|
|
|
|
Do not mix Card and Frame on ops screens.
|