Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs: rename frontend style rulebook to frontend-style-rules
Jose Ramirezabea56591250
diff --git a/.cursor/rules/control-ui-desktop-app.mdc b/.cursor/rules/frontend-style-rules.mdcsimilarity index 93%rename from .cursor/rules/control-ui-desktop-app.mdcrename to .cursor/rules/frontend-style-rules.mdcindex 722a094a4..b6a27e5ec 100644--- a/.cursor/rules/control-ui-desktop-app.mdc+++ b/.cursor/rules/frontend-style-rules.mdc@@ -7,7 +7,7 @@ globs:alwaysApply: false----Apply the shared UI rules in `docs/agents/control-ui-desktop-app.md` when working inside these paths:+Apply the shared UI rules in `docs/agents/frontend-style-rules.md` when working inside these paths:- `control-ui/**`- `desktop-app/ui/**`diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 49631ec07..ac357d722 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -1,6 +1,6 @@# Copilot Instructions-When you edit files under `control-ui/**`, `desktop-app/ui/**`, or `profile-ui/**`, apply the shared UI rules in [`docs/agents/control-ui-desktop-app.md`](../docs/agents/control-ui-desktop-app.md).+When you edit files under `control-ui/**`, `desktop-app/ui/**`, or `profile-ui/**`, apply the shared UI rules in [`docs/agents/frontend-style-rules.md`](../docs/agents/frontend-style-rules.md).For `control-ui/**` and `profile-ui/**`, sidebar destinations and shareable tab-like sections must use canonical Next App Router paths and child routes, not `?tab=...`, `profileTab`, `localStorage`, or component-only state as routing.diff --git a/control-ui/AGENTS.md b/control-ui/AGENTS.mdindex 3f5398739..7d0644c0d 100644--- a/control-ui/AGENTS.md+++ b/control-ui/AGENTS.md@@ -1,6 +1,6 @@# AGENTS.md — control-ui-This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/control-ui-desktop-app.md`](../docs/agents/control-ui-desktop-app.md).+This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/frontend-style-rules.md`](../docs/agents/frontend-style-rules.md).Read those rules before generating, refactoring, or styling any code in this directory.@@ -10,7 +10,7 @@ Read those rules before generating, refactoring, or styling any code in this dir- **Class prefix:** `cu-` (control-ui) for all shared utility classes.- **Primitives:** `components/ui/index.tsx` — use the existing primitives (`Button`, `Field`, `TextInput`, `SelectInput`, `TextAreaInput`, `CheckboxField`, `FormSection`) instead of recreating equivalents.- **Routing:** Sidebar destinations and shareable tab-like sections must use canonical Next App Router paths and child route segments. Do not use `?tab=...`, `profileTab`, `localStorage`, or component-only state as section routing.-- **Control behavior:** Follow the shared control rules from `../docs/agents/control-ui-desktop-app.md`: reuse single-purpose controls before adding native buttons/tabs/menus, and do not add hover `transform`, `translate`, `top`, `margin`, or `filter` effects to interactive controls. Hover states should use background, border, text color, or shadow.+- **Control behavior:** Follow the shared control rules from `../docs/agents/frontend-style-rules.md`: reuse single-purpose controls before adding native buttons/tabs/menus, and do not add hover `transform`, `translate`, `top`, `margin`, or `filter` effects to interactive controls. Hover states should use background, border, text color, or shadow.- **Components folder:** `components/` (folder-based, with `index.tsx` + `types.ts`).- **Project-specific patterns:** Use `TablePanelHeader` + `TableHeaderRow` for every route table/section. The section header must stay visible with icon, title, subtitle, search, refresh, and CTAs while only the content area shows initial loading/empty/error state and scrolls. Disable header CTAs during initial loading. Use `CreatePageHeader` for create/install pages. Wrap auth-gated pages in `<AuthGate>`. Reserve `cu-modal-panel` for overlay/dialog contexts only.diff --git a/control-ui/CLAUDE.md b/control-ui/CLAUDE.mdindex bcb83854f..0e64e6a61 100644--- a/control-ui/CLAUDE.md+++ b/control-ui/CLAUDE.md@@ -1,6 +1,6 @@# CLAUDE.md — control-ui-This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/control-ui-desktop-app.md`](../docs/agents/control-ui-desktop-app.md).+This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/frontend-style-rules.md`](../docs/agents/frontend-style-rules.md).Read those rules before generating, refactoring, or styling any code in this directory.@@ -10,7 +10,7 @@ Read those rules before generating, refactoring, or styling any code in this dir- **Class prefix:** `cu-` (control-ui) for all shared utility classes.- **Primitives:** `components/ui/index.tsx` — use the existing primitives (`Button`, `Field`, `TextInput`, `SelectInput`, `TextAreaInput`, `CheckboxField`, `FormSection`) instead of recreating equivalents.- **Routing:** Sidebar destinations and shareable tab-like sections must use canonical Next App Router paths and child route segments. Do not use `?tab=...`, `profileTab`, `localStorage`, or component-only state as section routing.-- **Control behavior:** Follow the shared control rules from `../docs/agents/control-ui-desktop-app.md`: reuse single-purpose controls before adding native buttons/tabs/menus, and do not add hover `transform`, `translate`, `top`, `margin`, or `filter` effects to interactive controls. Hover states should use background, border, text color, or shadow.+- **Control behavior:** Follow the shared control rules from `../docs/agents/frontend-style-rules.md`: reuse single-purpose controls before adding native buttons/tabs/menus, and do not add hover `transform`, `translate`, `top`, `margin`, or `filter` effects to interactive controls. Hover states should use background, border, text color, or shadow.- **Components folder:** `components/` (folder-based, with `index.tsx` + `types.ts`).- **Project-specific patterns:** Use `TablePanelHeader` + `TableHeaderRow` for every route table/section. The section header must stay visible with icon, title, subtitle, search, refresh, and CTAs while only the content area shows initial loading/empty/error state and scrolls. Disable header CTAs during initial loading. Use `CreatePageHeader` for create/install pages. Wrap auth-gated pages in `<AuthGate>`. Reserve `cu-modal-panel` for overlay/dialog contexts only.diff --git a/desktop-app/ui/AGENTS.md b/desktop-app/ui/AGENTS.mdindex be8c342a0..626b2adf2 100644--- a/desktop-app/ui/AGENTS.md+++ b/desktop-app/ui/AGENTS.md@@ -2,7 +2,7 @@This is one of three frontend projects in the monorepo. It follows two layered sources of truth:-1. **Cross-app rules** — [`../../docs/agents/control-ui-desktop-app.md`](../../docs/agents/control-ui-desktop-app.md). Tokens, primitives, accessibility, semantic headings, etc. Read first.+1. **Cross-app rules** — [`../../docs/agents/frontend-style-rules.md`](../../docs/agents/frontend-style-rules.md). Tokens, primitives, accessibility, semantic headings, etc. Read first.2. **desktop-app-specific patterns** — [`docs/STYLE_STANDARDIZATION.md`](./docs/STYLE_STANDARDIZATION.md). The page shell, tabs, DataGrid, where pages live, and what not to extend. **Read this before touching any page or shared style.**If those two docs disagree (they shouldn't), the cross-app doc wins for token/primitive concerns; STYLE_STANDARDIZATION wins for desktop-app layout shape.@@ -13,7 +13,7 @@ If those two docs disagree (they shouldn't), the cross-app doc wins for token/pr- **Class prefix:** `da-` for shared, primitive-style classes (e.g. `da-grid`). Page shell and tabs use unprefixed semantic names (`page`, `page-card`, `page-tabs`) — that's intentional, don't migrate them.- **Global stylesheet:** `src/styles.css` — shared layout, primitives, patterns. Add new shared classes here at the end of the relevant section. **Do not** create new component-level `.css` files.- **Common controls:** `src/components/Common/<Component>/index.tsx` with colocated `types.ts`, re-exported from `src/components/Common/index.ts` — `Button`, `IconButton`, `TabButton`, `MenuItem`, `NavItem`, `Pill`, `SelectableOption`, `TextInput`, `SelectInput`, `Field`, `Badge`, `StatusBanner`, `EmptyState`, `DetailRow`, `ToastStack`. Use them; don't recreate.-- **Control behavior:** Follow the shared control rules from `../../docs/agents/control-ui-desktop-app.md`: compose the Common controls before adding native button/tab/menu/option markup, and never use hover `transform`, `translate`, `top`, `margin`, or `filter` effects for interactive controls. Hover states should use background, border, text color, or shadow.+- **Control behavior:** Follow the shared control rules from `../../docs/agents/frontend-style-rules.md`: compose the Common controls before adding native button/tab/menu/option markup, and never use hover `transform`, `translate`, `top`, `margin`, or `filter` effects for interactive controls. Hover states should use background, border, text color, or shadow.- **Pages:** `src/pages/` — top-level pages are flat `<Name>Page.tsx`; only auth/error pages use folder-based `<Name>Page/index.tsx`.## Quick rules (the things that drift first)diff --git a/desktop-app/ui/CLAUDE.md b/desktop-app/ui/CLAUDE.mdindex d7c85533e..4c2478f6b 100644--- a/desktop-app/ui/CLAUDE.md+++ b/desktop-app/ui/CLAUDE.md@@ -2,7 +2,7 @@This is one of three frontend projects in the monorepo. It follows two layered sources of truth:-1. **Cross-app rules** — [`../../docs/agents/control-ui-desktop-app.md`](../../docs/agents/control-ui-desktop-app.md). Tokens, primitives, accessibility, semantic headings, etc. Read first.+1. **Cross-app rules** — [`../../docs/agents/frontend-style-rules.md`](../../docs/agents/frontend-style-rules.md). Tokens, primitives, accessibility, semantic headings, etc. Read first.2. **desktop-app-specific patterns** — [`docs/STYLE_STANDARDIZATION.md`](./docs/STYLE_STANDARDIZATION.md). The page shell, tabs, DataGrid, where pages live, and what not to extend. **Read this before touching any page or shared style.**If those two docs disagree (they shouldn't), the cross-app doc wins for token/primitive concerns; STYLE_STANDARDIZATION wins for desktop-app layout shape.@@ -13,7 +13,7 @@ If those two docs disagree (they shouldn't), the cross-app doc wins for token/pr- **Class prefix:** `da-` for shared, primitive-style classes (e.g. `da-grid`). Page shell and tabs use unprefixed semantic names (`page`, `page-card`, `page-tabs`) — that's intentional, don't migrate them.- **Global stylesheet:** `src/styles.css` — shared layout, primitives, patterns. Add new shared classes here at the end of the relevant section. **Do not** create new component-level `.css` files.- **Common controls:** `src/components/Common/<Component>/index.tsx` with colocated `types.ts`, re-exported from `src/components/Common/index.ts` — `Button`, `IconButton`, `TabButton`, `MenuItem`, `NavItem`, `Pill`, `SelectableOption`, `TextInput`, `SelectInput`, `Field`, `Badge`, `StatusBanner`, `EmptyState`, `DetailRow`, `ToastStack`. Use them; don't recreate.-- **Control behavior:** Follow the shared control rules from `../../docs/agents/control-ui-desktop-app.md`: compose the Common controls before adding native button/tab/menu/option markup, and never use hover `transform`, `translate`, `top`, `margin`, or `filter` effects for interactive controls. Hover states should use background, border, text color, or shadow.+- **Control behavior:** Follow the shared control rules from `../../docs/agents/frontend-style-rules.md`: compose the Common controls before adding native button/tab/menu/option markup, and never use hover `transform`, `translate`, `top`, `margin`, or `filter` effects for interactive controls. Hover states should use background, border, text color, or shadow.- **Pages:** `src/pages/` — top-level pages are flat `<Name>Page.tsx`; only auth/error pages use folder-based `<Name>Page/index.tsx`.## Quick rules (the things that drift first)diff --git a/desktop-app/ui/docs/STYLE_STANDARDIZATION.md b/desktop-app/ui/docs/STYLE_STANDARDIZATION.mdindex f7491a0f1..8fa4675d6 100644--- a/desktop-app/ui/docs/STYLE_STANDARDIZATION.md+++ b/desktop-app/ui/docs/STYLE_STANDARDIZATION.md@@ -1,6 +1,6 @@# Style Standardization — desktop-app/ui-This document is the authoritative reference for **how a page is built in desktop-app/ui** after the layout/token consolidation refactor. It complements the cross-app rules in [`../../../docs/agents/control-ui-desktop-app.md`](../../../docs/agents/control-ui-desktop-app.md) — read that first; this doc adds desktop-app-specific patterns.+This document is the authoritative reference for **how a page is built in desktop-app/ui** after the layout/token consolidation refactor. It complements the cross-app rules in [`../../../docs/agents/frontend-style-rules.md`](../../../docs/agents/frontend-style-rules.md) — read that first; this doc adds desktop-app-specific patterns.When in doubt, mimic an existing post-refactor page (`ContextsPage`, `WorkflowsPage`, `TeamsPage`, `McpServersPage`) before inventing.diff --git a/docs/README.md b/docs/README.mdindex 4a0592918..c477a77a3 100644--- a/docs/README.md+++ b/docs/README.md@@ -65,7 +65,7 @@ Use this index for long-form docs.| Doc | Description || --------------------------------------------------------------- | ----------------------------- || [WorkflowRecipe guide](agents/CLERUM_WORKFLOW_RECIPE_GUIDE.md) | Authoring recipes, for agents |-| [control-ui & desktop-app](agents/control-ui-desktop-app.md) | UI surfaces, for agents |+| [control-ui & desktop-app](agents/frontend-style-rules.md) | UI surfaces, for agents || [WorkflowRecipe naming](architecture/workflow-recipe-naming.md) | Generated resource-name rules |## Community & trustdiff --git a/docs/agents/control-ui-desktop-app.md b/docs/agents/frontend-style-rules.mdsimilarity index 99%rename from docs/agents/control-ui-desktop-app.mdrename to docs/agents/frontend-style-rules.mdindex ce942f5bb..48afb6070 100644--- a/docs/agents/control-ui-desktop-app.md+++ b/docs/agents/frontend-style-rules.md@@ -1,4 +1,4 @@-# Shared Frontend Agent Rules+# Frontend style rules (control-ui, desktop-app/ui, profile-ui)These rules apply only when editing files under `control-ui/**`, `desktop-app/ui/**`, and `profile-ui/**`.diff --git a/profile-ui/AGENTS.md b/profile-ui/AGENTS.mdindex 24225f456..383f5994c 100644--- a/profile-ui/AGENTS.md+++ b/profile-ui/AGENTS.md@@ -1,6 +1,6 @@# AGENTS.md — profile-ui-This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/control-ui-desktop-app.md`](../docs/agents/control-ui-desktop-app.md).+This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/frontend-style-rules.md`](../docs/agents/frontend-style-rules.md).Read those rules before generating, refactoring, or styling any code in this directory.diff --git a/profile-ui/CLAUDE.md b/profile-ui/CLAUDE.mdindex c40f55284..81e7fda13 100644--- a/profile-ui/CLAUDE.md+++ b/profile-ui/CLAUDE.md@@ -1,6 +1,6 @@# CLAUDE.md — profile-ui-This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/control-ui-desktop-app.md`](../docs/agents/control-ui-desktop-app.md).+This is one of three frontend projects in the monorepo (Next.js). It follows the **shared frontend UI rules** in [`../docs/agents/frontend-style-rules.md`](../docs/agents/frontend-style-rules.md).Read those rules before generating, refactoring, or styling any code in this directory.diff --git a/scripts/style-rules/README.md b/scripts/style-rules/README.mdindex 6bb845dca..2b1a4b716 100644--- a/scripts/style-rules/README.md+++ b/scripts/style-rules/README.md@@ -1,7 +1,7 @@# style-rulesLightweight, repo-local enforcement for the frontend style conventions-documented in [`docs/agents/control-ui-desktop-app.md`](../../docs/agents/control-ui-desktop-app.md)+documented in [`docs/agents/frontend-style-rules.md`](../../docs/agents/frontend-style-rules.md)and the per-app pattern docs (e.g. `desktop-app/ui/docs/STYLE_STANDARDIZATION.md`).This is **not** Stylelint or ESLint. It is a small Node script — same shapediff --git a/scripts/style-rules/rules.mjs b/scripts/style-rules/rules.mjsindex 79632e5e0..866ef51a9 100644--- a/scripts/style-rules/rules.mjs+++ b/scripts/style-rules/rules.mjs@@ -8,7 +8,7 @@* - check({ file, content, lines }): returns array of { line, message }** Rules are intentionally kept narrow and project-scoped. The canonical doc- * is `docs/agents/control-ui-desktop-app.md`; per-app pattern docs live+ * is `docs/agents/frontend-style-rules.md`; per-app pattern docs live* inside each app (e.g. `desktop-app/ui/docs/STYLE_STANDARDIZATION.md`).*/