refactor: update UI components to utilize Frame for improved layout and consistency
Refactored multiple components, including PanelCard, SettingsCard, and DataGridShell, to replace Card with Frame for better organization and presentation. Enhanced the DataGridToolbar to support optional ReUI filters and improved the overall structure of the KPI stat grid. Updated .gitignore to include .env.local for local environment configurations, ensuring better management of environment variables.
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
/**
|
||||
* EvoBGP UI surface contract (ReUI Pro).
|
||||
*
|
||||
* KPI tiles: **stats-12** pattern via `KpiStatGrid` / `SectionCards` (Frame + icon tile + badge).
|
||||
* Panels and data grids: shadcn Card via `PanelCard` / `DataGridCard`.
|
||||
* Ops / list / dashboard / detail / settings: **Frame** only.
|
||||
* KPI tiles: **stats-12** via `KpiStatGrid` / `reui-kit/KpiStatGrid`.
|
||||
* Lists: Frame + DataGrid (`ResourcePage` / `DataGridSection`), not Card shell.
|
||||
*
|
||||
* @see https://reui.io/blocks — stats-12, dashboard-1
|
||||
* @see `.agents/skills/shadcn-react/SKILL.md`
|
||||
* @see https://reui.io/preview/base/stats-12
|
||||
* @see https://reui.io/preview/base/dashboard-1
|
||||
* @see https://reui.io/preview/base/data-grid-filtering-2
|
||||
* @see docs/ui-design-contract.md
|
||||
*/
|
||||
export const UI_SURFACE = 'card' as const
|
||||
export const UI_SURFACE = 'frame' as const
|
||||
|
||||
/** Grid for ReUI stats-12 KPI rows (3–6 tiles). */
|
||||
export const kpiStatGridClassName = '@container w-full'
|
||||
|
||||
Reference in New Issue
Block a user