Add in design theme - #357
Conversation
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughA new Vite plugin ( 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62b62c47e8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
| Filename | Overview |
|---|---|
| packages/landing/src/components/Nav.tsx | Brand mark on desktop now dynamically links to the theme-specific design-system page; JSDoc comment retains the old #top description. |
| packages/landing/vite/design-system-plugin.ts | New Vite plugin that emits light/dark design HTML as static assets at build time and serves them via dev-server middleware; logic looks correct with proper early returns and distinct file paths per theme. |
| packages/landing/vite.config.ts | Registers the new designSystemPlugin and injects __APP_VERSION__ from the CLI package; the global is already declared in vite-env.d.ts. |
| biome.json | Excludes packages/landing/design*.html from Biome linting to avoid false positives on auto-generated design-system HTML. |
| lefthook.yml | Mirrors the Biome exclusion in pre-commit hooks so design HTML files are skipped during both check and lint stages. |
Reviews (4): Last reviewed commit: "Apply suggestions from code review" | Re-trigger Greptile
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: fea96ab8-bc28-4f9d-a1de-8932410527b1
📒 Files selected for processing (7)
biome.jsonlefthook.ymlpackages/landing/design-dark.htmlpackages/landing/design-light.htmlpackages/landing/src/components/Nav.tsxpackages/landing/vite.config.tspackages/landing/vite/design-system-plugin.ts
Merge activity
|
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
9748a21 to
16a1fe0
Compare
16a1fe0 to
4822cae
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4822cae0ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| */ | ||
| export function Nav() { | ||
| const isMobile = useIsMobile() | ||
| const [theme] = useTheme() |
There was a problem hiding this comment.
Keep the design link synced with theme toggles
In desktop sessions where the visitor uses the ThemeToggle, this separate useTheme() instance in Nav never observes the child component's local state update, so designLink keeps the theme resolved at the last Nav render. The page theme changes via the toggle's own hook, but the logo href can still point at the old /design-light or /design-dark route until a reload or OS preference event, sending users to the wrong themed design page.
Useful? React with 👍 / 👎.

Why
Details
Verification
Summary by CodeRabbit