-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
refactor: Update AccountMenu and HeaderMenu components #4534
Conversation
- Update AccountMenu component to conditionally render CustomHeaderMenuItemsTitle - Update HeaderMenu component to adjust styling and class names
…mport-home-nav-updates
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.
lgtm
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.
Great job! Just some minor changes that can be fixed shortly
src/frontend/src/components/appHeaderComponent/components/HeaderMenu/index.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM!
This pull request includes several changes to the
appHeaderComponent
and related components to improve the layout and conditional rendering based on theENABLE_DATASTAX_LANGFLOW
feature flag. The most important changes include modifications to theAccountMenu
,HeaderMenu
, andAppHeader
components, as well as updates to theHomePage
.Changes to Layout and Styling:
src/frontend/src/components/appHeaderComponent/components/AccountMenu/index.tsx
: Updated class names for styling improvements and added conditional rendering forCustomHeaderMenuItemsTitle
andThemeButtons
based on theENABLE_DATASTAX_LANGFLOW
feature flag.src/frontend/src/components/appHeaderComponent/components/HeaderMenu/index.tsx
: Modified class names forHeaderMenuToggle
,HeaderMenuItemLink
, andHeaderMenuItems
to improve layout and styling. [1] [2] [3]src/frontend/src/components/ui/dropdown-menu.tsx
: Added margin toDropdownMenuContent
for better spacing.Conditional Rendering Based on Feature Flag:
src/frontend/src/components/appHeaderComponent/index.tsx
: Updated theAppHeader
component to conditionally render elements based on theENABLE_DATASTAX_LANGFLOW
feature flag, including changes to the left section, middle section, and additional buttons. [1] [2] [3] [4] [5] [6] [7]src/frontend/src/pages/MainPage/pages/homePage/index.tsx
: Added a custom banner forDataStax Langflow
when the feature flag is enabled and removed the old commented-out banner code. [1] [2]- Update AccountMenu component to conditionally render CustomHeaderMenuItemsTitle