AI-powered virtual executive team — a single coherent executive persona backed by 8 specialist agents (FastAPI + Next.js).
chore(ui): tidy up after the eslint switch (#328)
Rufus0748a8298b58
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex ee91cd1e..66f8b1ee 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -23,6 +23,12 @@ updates:schedule:interval: "weekly"open-pull-requests-limit: 10+ # eslint-config-next's react, import and jsx-a11y plugins cap at ESLint 9,+ # so `npm run lint` (run in CI) fails on 10. Keep dependabot on 9.x until+ # those plugins support 10.+ ignore:+ - dependency-name: "eslint"+ versions: [">=10"]groups:npm-dependencies:patterns:diff --git a/CLAUDE.md b/CLAUDE.mdindex ec69d63a..041f43b5 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -176,9 +176,10 @@ See `.env.example`. Required: `ANTHROPIC_API_KEY`, `EXEC_EMAIL_ADDRESS` (no defa> run, so lock freshness is gated by the `uv lock --check` step in `ci.yml`.> `uv export -o FILE` still echoes the full export to stdout unless `-q`.-> **UI lint:** `packages/ui` has no ESLint config — `npm run lint` opens an-> interactive setup prompt. `npm run build` (`next build`) is the UI's-> lint/type gate. CI's UI job also runs `npx tsc --noEmit` and `npm test`,+> **UI lint:** `npm run lint` is `eslint .` over the whole package+> (`packages/ui/eslint.config.mjs`) and CI runs it. ESLint stays on 9 (the+> Next config's plugins cap there), and `typescript` is aliased to the TS 6 API+> for typescript-eslint while `tsc` is still 7. CI's UI job also runs `npx tsc --noEmit` and `npm test`,> and some of those `scripts/*.test.mjs` parity tests parse Python source> (`api/main.py`'s `_LOOPBACK_HOST_RE` / `_OWN_PAGE_FETCH_SITES`,> `utils/deployment.py`'s `FALSEY_ENV`) — moving or renaming one of thosediff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 9e5e0c8f..7651a540 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -2,7 +2,7 @@"name": "open-executive-ui","version": "0.4.5","private": true,- "description": "Next.js 15 web UI for Open Executive \u2014 an AI-powered virtual executive team.",+ "description": "Next.js 15 web UI for Open Executive — an AI-powered virtual executive team.","license": "Apache-2.0","repository": {"type": "git",diff --git a/packages/ui/src/components/Briefing.tsx b/packages/ui/src/components/Briefing.tsxindex 160b89a1..a711097b 100644--- a/packages/ui/src/components/Briefing.tsx+++ b/packages/ui/src/components/Briefing.tsx@@ -1979,7 +1979,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:} catch (e) {// Revert the optimistic removal on failure so the user can retry.setActedAlertIds(prev);-console.error("Approve failed", e);}}, [actedAlertIds, onContinue, refreshToday]);@@ -2013,7 +2012,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:await ackAlert(proposal.alert_id, "dismissed");} catch (e) {setActedAlertIds(prev);-console.error("Dismiss failed", e);}}, [actedAlertIds, refreshToday]);@@ -2032,7 +2030,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:refreshToday();} catch (e) {setActedAlertIds(prev);-console.error("Bulk dismiss failed", e);}}, [actedAlertIds, refreshToday]);@@ -2046,7 +2043,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:await reviewAlerts();refreshToday();} catch (e) {-console.error("Alert review failed", e);} finally {setRecheckBusy(false);@@ -2066,7 +2062,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:setUndoneRows((prev) => new Set(prev).add(rowKey));return;}-console.error("Reopen failed", e);}}, [refreshToday]);@@ -2091,7 +2086,6 @@ export default function Briefing({ onContinue, showHeader = false, firstName }:}} catch (e) {setActedAlertIds(prev);-console.error("Approve-with-edits failed", e);}}, [actedAlertIds, onContinue]);diff --git a/packages/ui/src/components/ReviewQueue.tsx b/packages/ui/src/components/ReviewQueue.tsxindex e07f03d2..6ff76d6b 100644--- a/packages/ui/src/components/ReviewQueue.tsx+++ b/packages/ui/src/components/ReviewQueue.tsx@@ -92,7 +92,6 @@ function ItemSlideOver({setExternalChunks([]);setExternalChunkLimit(10);setLoadingChunks(false);-}, [itemId_stable]);useEffect(() => {diff --git a/packages/ui/src/components/architecture/MermaidDiagram.tsx b/packages/ui/src/components/architecture/MermaidDiagram.tsxindex 6ac47d5c..911c417a 100644--- a/packages/ui/src/components/architecture/MermaidDiagram.tsx+++ b/packages/ui/src/components/architecture/MermaidDiagram.tsx@@ -107,7 +107,6 @@ export default function MermaidDiagram({ definition, id }: Props) {setError(msg.split('\n')[0]);setSvg(null);// Keep the console error for devs; users see the inline fallback.-console.error('Mermaid render failed:', e);}}