Page MenuHomePhabricator

Query Builder: Add main header
Closed, ResolvedPublic3 Estimated Story Points

Description

Problem

The Query builder's layout doesn't display a header, which makes it off-brand (not manifestly related to Wikidata) and inconsistent with other SPA tools, such as the Mismatch Finder or the Item Quality Evaluator.

Mockups

DesktopBelow tablet breakpoint
Desktop.png (2×3 px, 218 KB)
Mobile (below tablet breakpoint).png (3×640 px, 221 KB)

Link to Figma specs

Acceptance criteria:

  • The Query Builder presents a responsive header that displays the Wikidata Query Builder logo (find desktop and mobile logos attached below)

Attachments

Event Timeline

Sarai-WMDE renamed this task from Add header to Query Builder UI to Add Wikidata header to Query Builder UI.Aug 17 2021, 7:57 AM
Sarai-WMDE renamed this task from Add Wikidata header to Query Builder UI to Add header to Query Builder.Dec 2 2022, 5:54 PM
Sarai-WMDE updated the task description. (Show Details)
Sarai-WMDE updated the task description. (Show Details)
Sarai-WMDE renamed this task from Add header to Query Builder to Query Builder: Add main header.Dec 2 2022, 5:58 PM

Change 865103 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

[wikidata/query-builder@master] Add logo images to /img folder

https://gerrit.wikimedia.org/r/865103

Please note that this task should ideally be followed up by T288931: Query Builder: Replace visible h1 (Currently available in the Unified prioritized backlog)

Change 865103 merged by jenkins-bot:

[wikidata/query-builder@master] Add header logo image to Query Builder

https://gerrit.wikimedia.org/r/865103

Change 866556 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: WDQSGuiBuilder):

[wikidata/query-builder/deploy@production] Merging from 94cc90f99f476efd746498de78932dd4203b24c1

https://gerrit.wikimedia.org/r/866556

Change 866556 merged by Lucas Werkmeister (WMDE):

[wikidata/query-builder/deploy@production] Merging from 94cc90f99f476efd746498de78932dd4203b24c1

https://gerrit.wikimedia.org/r/866556

Looking great! 🎉 Only one question: would it be possible to maintain the 1.5rem top margin in the responsive version of the header (aka below the 609px breakpoint)? It now gets reduced to 1rem (same as all other page margins), but it shouldn't. Thank you!

Screenshot 2022-12-09 at 16.45.52.png (412×1 px, 73 KB)

Change 867118 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

[wikidata/query-builder@master] Adjust padding-top in main

https://gerrit.wikimedia.org/r/867118

Looking great! 🎉 Only one question: would it be possible to maintain the 1.5rem top margin in the responsive version of the header (aka below the 609px breakpoint)? It now gets reduced to 1rem (same as all other page margins), but it shouldn't. Thank you!

Screenshot 2022-12-09 at 16.45.52.png (412×1 px, 73 KB)

I have addressed this in this new patch. It would probably make sense to get this reviewed before we deploy it.

This looks all good to me \o/

Thanks so much!

@SaraiSan Given Lucas' comment in Adjust padding-top in main (Ib48f38b0): Could you say what the margin spacing above the footer should be for the most narrow breakpoint? So far it was 1.5 rem for desktop / wider displays, and 1 rem for mobile / narrow displays.

Meaning this one:

image.png (333×645 px, 22 KB)

Hey! Thanks for the heads-up about the comment, @Michael. The answer is: none of the above. In all SPAs, the footer should have a 2.5rem of spacing above itself. This is regardless of the breakpoint.
There's no need to make any changes as part of this ticket, though. This fix is documented in a separate task: T324356: Query Builder: Adjust footer content and style

Change 867118 merged by jenkins-bot:

[wikidata/query-builder@master] Adjust padding-top in main

https://gerrit.wikimedia.org/r/867118