-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat: added functionality behind a feature flag to configure logo dimensions in Branding component #41449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release
Are you sure you want to change the base?
Conversation
…h and height in Branding component. The changes for this will be reflected in the NavigationLogo in the ee repo
WalkthroughThese changes implement a feature-flagged logo resize capability in the branding settings. A new feature flag is introduced, the form interface is extended with width and height properties, and UI controls are added with validation, defaults, and analytics integration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/19958681264. |
|
Deploy-Preview-URL: https://ce-41449.dp.appsmith.com |
…initial value as false.
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/19962396493. |
|
Deploy-Preview-URL: https://ce-41449.dp.appsmith.com |
…ther for breakpoints between lg and 2xl.
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/19971508735. |
|
Deploy-Preview-URL: https://ce-41449.dp.appsmith.com |
…if the user ever clears the input fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/client/src/pages/AdminSettings/Branding/SettingsForm.tsx (1)
108-180: Logo dimensions block works; consider tightening NumberInput handling and textThe section wiring and analytics look fine, but a few small improvements would make it more robust:
- In the
onChangehandlers,val ? parseInt(val, 10) : 160/24treats falsy values (e.g."0") as “reset to default”. If0(or similar) should be rejected rather than silently coerced, prefer an explicit empty‑string /isNaNcheck instead of generic truthiness.- To prevent negative or nonsensical dimensions, consider setting a
minonNumberInput(e.g.min={1}) so only positive pixel values are allowed.- The helper text is hard‑coded; for consistency with other admin settings, you may want to move it into
ee/constants/messagesand usecreateMessage(...).None of these are blockers, but they’ll make the UX and validation behavior more predictable.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
app/client/src/ce/entities/FeatureFlag.ts(2 hunks)app/client/src/pages/AdminSettings/Branding/BrandingPage.tsx(3 hunks)app/client/src/pages/AdminSettings/Branding/SettingsForm.tsx(4 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: ankitakinger
Repo: appsmithorg/appsmith PR: 37330
File: app/client/src/pages/common/SearchBar/HomepageHeaderAction.tsx:95-95
Timestamp: 2024-11-12T11:42:28.998Z
Learning: In icon provider components within the TypeScript/React codebase, old settings icons like `"settings-2-line"` and `"settings-control"` are intentionally provided alongside new icons. These references are acceptable and should not be flagged for updates.
📚 Learning: 2024-11-12T11:42:28.998Z
Learnt from: ankitakinger
Repo: appsmithorg/appsmith PR: 37330
File: app/client/src/pages/common/SearchBar/HomepageHeaderAction.tsx:95-95
Timestamp: 2024-11-12T11:42:28.998Z
Learning: In icon provider components within the TypeScript/React codebase, old settings icons like `"settings-2-line"` and `"settings-control"` are intentionally provided alongside new icons. These references are acceptable and should not be flagged for updates.
Applied to files:
app/client/src/pages/AdminSettings/Branding/SettingsForm.tsxapp/client/src/pages/AdminSettings/Branding/BrandingPage.tsx
📚 Learning: 2024-11-12T07:37:42.598Z
Learnt from: ankitakinger
Repo: appsmithorg/appsmith PR: 37330
File: app/client/src/pages/Editor/gitSync/components/GitChangesList/StaticChange.tsx:52-52
Timestamp: 2024-11-12T07:37:42.598Z
Learning: The icon provider components in `app/client/packages/design-system/widgets-old/src/Icon/index.tsx` and `app/client/packages/design-system/ads/src/Icon/Icon.provider.tsx` should provide both `settings-2-line` and `settings-v3` icons and should not be updated to remove the old icon.
Applied to files:
app/client/src/pages/AdminSettings/Branding/SettingsForm.tsx
📚 Learning: 2024-12-15T17:45:48.303Z
Learnt from: brayn003
Repo: appsmithorg/appsmith PR: 38171
File: app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx:1-14
Timestamp: 2024-12-15T17:45:48.303Z
Learning: In `app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx`, the feature flag check is performed at a higher level, so it's acceptable to have `isGitProtectedFeatureLicensed={false}` in this component.
Applied to files:
app/client/src/ce/entities/FeatureFlag.ts
🧬 Code graph analysis (1)
app/client/src/pages/AdminSettings/Branding/SettingsForm.tsx (1)
app/client/src/pages/AdminSettings/components.tsx (1)
HelperText(63-66)
🔇 Additional comments (4)
app/client/src/pages/AdminSettings/Branding/BrandingPage.tsx (2)
21-27: ExtendInputswith optional logo dimensions (LGTM)Optional
logoWidth/logoHeightalign with the new form fields and keep the type backward‑compatible; no issues here.
37-43: Form defaults and reset wiring for logo dimensions look correctSourcing
logoWidth/logoHeightfromorganizationConfigin bothdefaultValuesand thereseteffect keeps the form state in sync with backend config, consistent with existing branding fields.Also applies to: 62-69
app/client/src/ce/entities/FeatureFlag.ts (1)
69-70: Newrelease_branding_logo_resize_enabledflag is defined consistentlyThe flag key and its default value are added in the right places and follow existing naming conventions; no further changes needed.
Also applies to: 124-125
app/client/src/pages/AdminSettings/Branding/SettingsForm.tsx (1)
11-11: Feature‑flagged enablement for logo dimensions looks goodUsing
useFeatureFlag(FEATURE_FLAG.release_branding_logo_resize_enabled)cleanly gates the new section and aligns with how other flags are wired in this codebase.Also applies to: 32-33, 65-67
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/20018482622. |
|
Deploy-Preview-URL: https://ce-41449.dp.appsmith.com |
Description
Added functionality behind a feature flag to configure logo icon width and height in Branding component
The changes for this will be reflected in the NavigationLogo in the ee repo. On the CE repo it will just be shown as input fields in the Branding page, but a user will not be able to configure this until them move to EE editon.
Fixes 41448
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/20018874227
Commit: 2f64d0b
Cypress dashboard.
Tags:
@tag.AllSpec:
Mon, 08 Dec 2025 07:35:49 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.