From 320852b03511c04c911eb7b04ead92faba98b879 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Thu, 19 Mar 2026 10:55:01 -0400 Subject: [PATCH] fix(web): import globals.css directly instead of as a URL stylesheet link --- .oxfmtrc.json | 9 +++++- .oxlintrc.json | 4 ++- AGENTS.md | 30 +++++++++++++++---- README.md | 3 +- .../settings/system-health-section.tsx | 16 ++++------ .../titles/title-keyboard-shortcuts.tsx | 9 +++--- apps/web/src/main.tsx | 3 +- apps/web/src/routes/__root.tsx | 4 +-- apps/web/src/routes/_app/explore.tsx | 28 +++++++++-------- apps/web/src/routes/index.tsx | 6 ++-- package.json | 1 + packages/core/src/imports/processor.ts | 1 - packages/core/test/preload.ts | 2 ++ 13 files changed, 73 insertions(+), 43 deletions(-) diff --git a/.oxfmtrc.json b/.oxfmtrc.json index b27f0e9..433924b 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -1,7 +1,14 @@ { "$schema": "./node_modules/oxfmt/configuration_schema.json", "sortImports": { - "groups": ["builtin", "external", "internal", "parent", "sibling", "index"], + "groups": [ + "builtin", + "external", + ["internal", "subpath"], + ["parent", "sibling", "index"], + "style", + "unknown" + ], "internalPattern": ["@/", "@sofa/"], "newlinesBetween": true, "order": "asc" diff --git a/.oxlintrc.json b/.oxlintrc.json index 286f2f3..cd8b8b2 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -18,7 +18,9 @@ "unicorn/consistent-function-scoping": "off", "no-new": "off", "no-await-in-loop": "off", - "react/no-array-index-key": "off" + "react/no-array-index-key": "off", + "react/jsx-no-useless-fragment": "error", + "react/rules-of-hooks": "error" }, "ignorePatterns": ["node_modules", "dist", "build", "docs", "**/routeTree.gen.ts"] } diff --git a/AGENTS.md b/AGENTS.md index 99eb7dd..131fe6f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,13 +4,17 @@ ```bash # Root commands (via Turborepo) -bun run dev # Start API server + Vite dev server +bun run dev # Start API, Vite dev, and Expo dev servers +bun run dev:docs # Start the fumadocs/Next.js dev server bun run build # Production build (both apps) bun run lint # Oxlint lint check bun run format # Oxfmt format (auto-fix) bun run check-types # TypeScript type check bun run test # Run tests bun run generate:openapi # Regenerate OpenAPI spec + docs API pages (run after contract/schema changes) +bun run i18n:extract # Run LingUI's string extraction +bun run i18n:compile # Run LingUI's typescript compilation +bun run i18n:claude # Prompt Claude Code to fill in untranslated strings # Database commands (run from packages/db/) cd packages/db && bun run db:push # Push schema changes to SQLite database @@ -21,14 +25,15 @@ cd packages/db && bun run db:studio # Open Drizzle Studio (visual DB browser **Use Bun, not Node.js** — `bun `, `bun test`, `bun install`, `bun run