fix(blocks): preserve agent block color#4671
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Updates both env-based ( Reviewed by Cursor Bugbot for commit 8844124. Configure here. |
Greptile SummaryThis PR decouples the Agent block's background color from the global
Confidence Score: 5/5Safe to merge — the change is small, targeted, and both whitelabeling override paths are correctly updated. The decoupling is straightforward: a new CSS variable with a fixed purple default, and both whitelabeling code paths updated to propagate the brand primary color to the new variable. No existing behavior is broken — the agent block still picks up org/env brand overrides, and non-whitelabeled deployments retain the original purple. The unrelated editor.tsx class reorder is purely cosmetic. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Agent Block bgColor] -->|reads| B["var(--brand-agent)"]
B -->|default| C["globals.css\n#6f3dfa light / #701ffc dark"]
B -->|env override| D["inject-theme.ts\nNEXT_PUBLIC_BRAND_PRIMARY_COLOR"]
B -->|org override| E["org-branding-utils.ts\nsettings.primaryColor"]
D -->|sets| B
E -->|sets| B
Reviews (1): Last reviewed commit: "fix(blocks): preserve agent block color" | Re-trigger Greptile |
8844124 to
662bcee
Compare
Summary
Testing