Skip to content
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

Fix logo height #3967

Merged
merged 13 commits into from
Mar 27, 2024
Merged

Fix logo height #3967

merged 13 commits into from
Mar 27, 2024

Conversation

zackkrida
Copy link
Member

@zackkrida zackkrida commented Mar 25, 2024

Fixes

Fixes #476 by @fcoveram.

Description

Fixes the logo by reducing its size and making its size universal. Also removes "baked in" padding to the logo loader; this instead comes from the context of the loader.

The Openverse logo should be the same size everywhere, now.

This PR also removes the global maxDiffPixelRatio from our Playwright tests. These tests are fortunately much more stable these days, and removing this gives us better assurances we are capturing changes to our front-end.

For example, with that setting enabled, our tests missed the fact that the "Terms" link was added to the header! Some snapshot changes only reflect the change in this link and not a change to the logo.

Testing Instructions

Run the PR locally with just frontend. The Openverse logo should be the same size everywhere, now. Click through the site and confirm. Tests should pass too.

Checklist

  • My pull request has a descriptive title (not a vague title likeUpdate index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.
  • I ran the DAG documentation generator (if applicable).

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@zackkrida zackkrida requested a review from a team as a code owner March 25, 2024 23:06
@openverse-bot openverse-bot added 🟨 priority: medium Not blocking but should be addressed soon ✨ goal: improvement Improvement to an existing user-facing feature 🕹 aspect: interface Concerns end-users' experience with the software 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Mar 25, 2024
@github-actions github-actions bot added the 🧱 stack: frontend Related to the Nuxt frontend label Mar 25, 2024
@zackkrida zackkrida removed the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Mar 25, 2024
@zackkrida zackkrida requested a review from fcoveram March 25, 2024 23:22
obulat
obulat previously requested changes Mar 26, 2024
Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The maxDiffPixelRatio of 0.01 does not catch the small changes in the header. We can lower it to 0.005 to prevent extreme flakiness while also catching differences in the logos.

My request for change is to lower the ratio to 0.005 and update the snapshots:

I think you will also need to rebase onto main because there were some updates to snapshots in recently-merged PRs.

Copy link
Contributor

@fcoveram fcoveram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks correct 🚀

@zackkrida
Copy link
Member Author

@obulat of course, the maxDiffPixelRatio! Thank you, I will play with this a little.

@zackkrida zackkrida marked this pull request as draft March 26, 2024 16:14
@zackkrida
Copy link
Member Author

This one is going to take a little bit of time and effort to dial in the tests and identify any existing flake with the pixel ratio.

@zackkrida zackkrida requested a review from obulat March 26, 2024 17:01
@zackkrida zackkrida marked this pull request as ready for review March 26, 2024 17:03
@zackkrida zackkrida dismissed obulat’s stale review March 26, 2024 18:17

Requested change was made

@zackkrida zackkrida added 🟧 priority: high Stalls work on the project or its dependents and removed 🟨 priority: medium Not blocking but should be addressed soon labels Mar 26, 2024
Copy link
Contributor

@obulat obulat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only 93 files 🎉 Great that no other snapshots had to be updated.

Would be nice to make sure that this PR is up-to-date before merging to avoid test regressions.

@zackkrida zackkrida merged commit 8c047aa into main Mar 27, 2024
39 checks passed
@zackkrida zackkrida deleted the fix-logo-in-nav branch March 27, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕹 aspect: interface Concerns end-users' experience with the software ✨ goal: improvement Improvement to an existing user-facing feature 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Updating logo nav component in header
4 participants