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

Update the homepage dark color #4983

Merged
merged 15 commits into from
Oct 18, 2024
Merged

Update the homepage dark color #4983

merged 15 commits into from
Oct 18, 2024

Conversation

obulat
Copy link
Contributor

@obulat obulat commented Sep 24, 2024

Fixes

Fixes #4936 by @fcoveram

Description

This PR changes the color of the homepage in dark mode to match the mockups. This also changes the color of the generic error page, you can see the updated version in the changed snapshots.

Testing Instructions

Run the app and go to http://localhost:8443
Change the app theme to dark
Check that the colors are correct, or suggest improvements.
Also check the error page by going to http://localhost:8443/non-existent-page. Note that this page's design will need to be updated, but in this PR only the colors are updated to match the home page.

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 (ov just catalog/generate-docs for catalog
    PRs) or the media properties generator (ov just catalog/generate-docs media-props
    for the catalog or ov just api/generate-docs for the API) where 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.

@obulat obulat requested a review from a team as a code owner September 24, 2024 12:29
@obulat obulat requested review from zackkrida and dhruvkb September 24, 2024 12:29
@openverse-bot openverse-bot added 🧱 stack: frontend Related to the Nuxt frontend 🟧 priority: high Stalls work on the project or its dependents ✨ goal: improvement Improvement to an existing user-facing feature 🖼️ aspect: design Concerns related to design labels Sep 24, 2024
@obulat obulat force-pushed the update/dark_homepage branch from 78511f9 to cc80665 Compare September 24, 2024 14:06
Copy link
Member

@zackkrida zackkrida left a comment

Choose a reason for hiding this comment

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

Barring any design changes from @fcoveram, I think this looks great! :shipit:

@obulat obulat force-pushed the update/dark_homepage branch from cc80665 to bc161e4 Compare September 25, 2024 06:14
@obulat obulat requested review from fcoveram and removed request for dhruvkb September 25, 2024 07:23
@obulat obulat self-assigned this Sep 25, 2024
@obulat obulat force-pushed the update/dark_homepage branch from bc161e4 to ebc00c3 Compare September 25, 2024 07:34
@zackkrida
Copy link
Member

@obulat looks like potential flake in an audio test

@obulat
Copy link
Contributor Author

obulat commented Sep 25, 2024

@obulat looks like potential flake in an audio test

It's #4981. Working on it

@obulat obulat force-pushed the update/dark_homepage branch 3 times, most recently from f9c7946 to 6dedd69 Compare September 27, 2024 04:14
Copy link

github-actions bot commented Sep 27, 2024

Latest k6 run output1

$     ✓ status was 200

     checks.........................: 100.00% ✓ 8000      ✗ 0   
     data_received..................: 1.9 GB  8.4 MB/s
     data_sent......................: 1.0 MB  4.7 kB/s
     http_req_blocked...............: avg=18.99µs  min=2.05µs  med=4.09µs   max=9.89ms  p(90)=5.52µs   p(95)=5.99µs  
     http_req_connecting............: avg=13.19µs  min=0s      med=0s       max=9.85ms  p(90)=0s       p(95)=0s      
     http_req_duration..............: avg=575.34ms min=76.27ms med=510.22ms max=2.39s   p(90)=1.08s    p(95)=1.19s   
       { expected_response:true }...: avg=575.34ms min=76.27ms med=510.22ms max=2.39s   p(90)=1.08s    p(95)=1.19s   
   ✓ http_req_failed................: 0.00%   ✓ 0         ✗ 8000
     http_req_receiving.............: avg=149.87µs min=39.94µs med=116.87µs max=18.05ms p(90)=185.49µs p(95)=226.47µs
     http_req_sending...............: avg=23.45µs  min=6.7µs   med=20.04µs  max=4.99ms  p(90)=25.8µs   p(95)=28.25µs 
     http_req_tls_handshaking.......: avg=0s       min=0s      med=0s       max=0s      p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=575.16ms min=76.1ms  med=510.01ms max=2.39s   p(90)=1.07s    p(95)=1.19s   
     http_reqs......................: 8000    36.051829/s
     iteration_duration.............: avg=3.84s    min=1.12s   med=3.18s    max=12.83s  p(90)=8.26s    p(95)=8.85s   
     iterations.....................: 1200    5.407774/s
     vus............................: 4       min=4       max=30
     vus_max........................: 30      min=30      max=30

Footnotes

  1. This comment will automatically update with new output each time k6 runs for this PR

@fcoveram
Copy link
Contributor

fcoveram commented Oct 7, 2024

Most elements look good. But as per this comment, I have pending updating the design file. Once the file is done, do you think it is better to include those changes in this PR or close this one and open a follow-up one?

@obulat
Copy link
Contributor Author

obulat commented Oct 8, 2024

Most elements look good. But as per this comment, I have pending updating the design file. Once the file is done, do you think it is better to include those changes in this PR or close this one and open a follow-up one?

I think it would be best to draft this PR, and update it once the design changes are ready. Would that be okay? Could you also ping here when the design changes are ready?

@obulat obulat marked this pull request as draft October 8, 2024 11:03
@fcoveram
Copy link
Contributor

fcoveram commented Oct 8, 2024

Sure. No problem!

@obulat obulat force-pushed the update/dark_homepage branch 2 times, most recently from 3172d05 to bac5448 Compare October 11, 2024 10:32
Copy link

github-actions bot commented Oct 11, 2024

Full-stack documentation: https://docs.openverse.org/_preview/4983

Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again.

You can check the GitHub pages deployment action list to see the current status of the deployments.

@obulat obulat marked this pull request as ready for review October 11, 2024 12:28
@obulat obulat force-pushed the update/dark_homepage branch 2 times, most recently from 8ccebce to f030b52 Compare October 14, 2024 15:38
@obulat obulat force-pushed the update/dark_homepage branch from c2b30ed to aa5d0e6 Compare October 17, 2024 10:30
@obulat
Copy link
Contributor Author

obulat commented Oct 17, 2024

@fcoveram, I rebased this PR onto the one that fixes the links focus outline colors (Fix link focus rings). That PR fixes the last two problems (Other focus styles).

In this PR, I:

  • updated the border color for the content switcher popover to border-overlay
Screenshot 2024-10-17 at 12 56 59 PM
  • updated the close button hover state background color
Screenshot 2024-10-17 at 12 52 17 PM
  • updated the search bar focus state to move the ring inside
Screenshot 2024-10-17 at 12 50 14 PM

If the link focus rings are okay, could you also approve #4958, @fcoveram ?

@obulat obulat force-pushed the fix/link-focus-rings branch from 815669b to 628b474 Compare October 17, 2024 15:02
@obulat obulat force-pushed the update/dark_homepage branch from 1f19fb2 to b57bc0b Compare October 17, 2024 15:03
@fcoveram fcoveram self-requested a review October 17, 2024 15:36
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.

It looks great 👏 ✨ 🚀

@obulat obulat changed the base branch from fix/link-focus-rings to main October 18, 2024 02:59
@obulat obulat changed the base branch from main to fix/link-focus-rings October 18, 2024 03:00
@obulat obulat changed the base branch from fix/link-focus-rings to main October 18, 2024 03:10
@obulat obulat force-pushed the update/dark_homepage branch from b57bc0b to d83e182 Compare October 18, 2024 03:11
@obulat obulat merged commit 86b17a5 into main Oct 18, 2024
46 checks passed
@obulat obulat deleted the update/dark_homepage branch October 18, 2024 03:31
This was referenced Oct 18, 2024
Danil49 pushed a commit to Danil49/openverse that referenced this pull request Oct 29, 2024
* Fix link focus rings

* Fix the page links

* Update snapshots

* Fix focus-slim-offset offset color

* Update the homepage dark color

* Use border-tx button for search type

* Fix search bar focus styles

* Fix border and text-secondary colors

* Update snapshots

* Use inner ring for search button focus ring

* Fix the popover border color

* Fix close buttons

* Fix button borders

* Make sure button is hovered in test

* Update snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖼️ aspect: design Concerns related to design ✨ goal: improvement Improvement to an existing user-facing feature 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: documentation Related to Sphinx documentation 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Darker homepage in dark theme
4 participants