Repository navigation
[WidgetPicker] Add opt-in tenant brand header preset - #1898
victrvondoom wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Signed-off-by: vsrupeshkumar <vsrupeshkumar@users.noreply.github.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
suttonskate
left a comment
There was a problem hiding this comment.
Approved, nice work. This implements approach 2 from #1844 exactly as fitzergerald chose it: the neutral background.default / text.primary default stays untouched, and tenant branding is an opt-in headerPreset="brand" that resolves background.brand.default with a primary.main fallback and text.inverse. Explicit headerBackgroundColor / headerTextColor still override the preset, and the close icon follows the resolved text color. Tests cover the default and brand preset in light and dark mode, the primary.main fallback, and the explicit overrides, plus stories for both treatments. DCO signed, no conflicts. One note: CodeRabbit is still running, so I am leaving the merge to a later pass once its review lands.
|
Good work! You might like to present your work in the upcoming, weekly Meshery development meeting (meshery.io/calendar). If so, I encourage you to add this item in the meeting agenda (https://meet.meshery.io/dev-minutes), attend, present, and receive feedback. |
Notes for Reviewers
This PR fixes #1844.
brandvalue for WidgetPicker'sheaderPreset, resolvingbackground.brand.defaultbeforeprimary.mainand pairing it withtext.inverse.background.default/text.primarytreatment as the default. ExistingheaderBackgroundColorandheaderTextColorremain supported and override either preset.Validation
npm run lint— passed.npm test -- --runInBand— passed (39 suites, 667 tests).$env:NODE_ENV = 'production'; npx tsup— passed, including declaration build.npm run builduses Unix-only environment syntax and does not run directly in PowerShell.npx prettier --check src/custom/WidgetPicker/WidgetPicker.tsx src/custom/WidgetPicker/index.tsx src/custom/WidgetPicker/WidgetPicker.stories.tsx src/__testing__/WidgetPicker.test.tsx src/index.tsx --config ./.prettierrc— passed.npm run format:check— reports pre-existing formatting issues elsewhere in the repository.no-mistakesexecutable is a different static-analysis CLI and does not provide theaxicommand. The required no-mistakes PR check may therefore remain blocked.Signed commits
Summary by CodeRabbit