-
Notifications
You must be signed in to change notification settings - Fork 293
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
Implement new Unified Dashboard header design/UI behind feature flag #4048
Comments
Following from the above comment, same for events in #4058 |
We need to use the
We need to make changes in the new
Let's create a new component for it instead of adding button and input elements directly to the |
IB ✔️ |
@kuasha420 i see you are already working on this ticket. Please, add the correct event tracking to the new |
@eugene-manuilov Wouldn't it be better to add the tracking event on #4049 as that's where the EntitySearchComponent will be properly implemented? These cross ticket IBs made me a little confused! |
@wpdarren the ACs don't require that the search field matches the design, this is more of a scaffolding of the foundation for the feature. The ACs mention that this will be handled in a subsequent issue:
I raised this above; I'm not sure it matters too much which issue it's fixed in, so long as we agree on one before this one moves to approval (cc: @kuasha420). @tofumatt anything else needed here? |
@aaemnnosttv it does mention in QAB referencing the AC which says
This is why I have included the observations in my comment. The reference to the other ticket is related to the input field, I agree can be excluded from my observations. |
I meant for this issue to cover that URL Search style, but I think it's fine to fix in #4049 instead, where any other issues here can be fixed. Again: this issue is largely about scaffolding, so I think it's fine as-is—even the arrow spacing Evan mentioned here: #4048 (comment) could be fixed there, I think. |
Update: Made a follow up PR addressing the above issues. Also updated QAB. Cheers. |
Back to you @wpdarren for another pass 👍 |
QA Update:
|
@wpdarren Yes, those issues are fine—the avatar seems okay to me (and how those avatars look on other Google products). The header should be fixed elsewhere, I think the main thing is to hide the "Site Kit" text on mobile, but it's not part of this issue I think 👍🏻 So should be good 🙂 |
QA Update: ✅Verified:
|
Feature Description
The Unified Dashboard has an updated Header design that should be implemented, preferably in the existing
Header
component, behind a feature flag.It should start with the header being "sticky", the user avatar being only an icon on all screen sizes, and a "dummy" button that a user can click to open the URL/page title search, eg:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Header
component (assets/js/components/Header.js
) should continue to be used. All modifications in this issue should only be present when the feature flagunifiedDashboard
is enabled.In its default state the URL Search button should look like this:
When clicked it should expand to show an
<input>
component:Note the exact design and functionality will be implemented in #4049, so a simple
<input>
element when the "URL Search"/magnifying glass icon button is clicked for now is fine.The desktop Figma file is here: https://www.figma.com/file/VILRieNSLg2DOVyEgFBkXe/%5BMVP%5D-Generic-Dashboard?node-id=0%3A1 (under the "Single Search: Full frames" section). The mobile versions are available here: https://www.figma.com/file/VILRieNSLg2DOVyEgFBkXe/%5BMVP%5D-Generic-Dashboard?node-id=382%3A1699
When the input is blurred it should disappear and the "URL Search" button should appear again. No functionality other than the show/hide functionality should be implemented as part of this issue.
Implementation Brief
Create a new component
assets/js/components/EntitySearchInput
, it will need a single piece of stateisActive
, when it is inactive (false === isActive
) it renders as a<Button
component. The icon needs to have a magnifying glass (per the AC), for which we need a new image and the text "URL Search". In theonClick
handler for the button, theisActive
state is set to true, and the component renders as an<input />
field, which will be further implemented in #4049. In theonBlur
handler for the input field, theisActive
state is set back to false.assets/js/components/DashboardEntityApp.js
andassets/js/components/DashboardMainApp.js
. Since they are both already behind the feature flag for unified dashboard, we don't need to further check for the feature flag. The changes will need to occur in both files.Add
three
child components to the<Header />
component:<EntitySearchInput />
(created above),<DateRangeSelector />
,<HelpMenu />
. If you're familiar withDashboardDetailsApp
, the order ofHelpMenu
andDateRangeSelector
is intentionally switched to align with the figma files.assets/js/components/UserMenu.js
add a check for the feature flagconst unifiedDashboardEnabled = useFeature( 'unifiedDashboard' );
, and when the feature is enabled, ignore the return when! userEmail
, and don't show the text in the button{ userEmail }
.QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: