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

Add source and provider definition tooltips #3407

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

obulat
Copy link
Contributor

@obulat obulat commented Nov 28, 2023

Fixes

Fixes #2775 by @fcoveram
Fixes #2840 by @fcoveram

Description

Adds the tooltip that opens when you focus or hover over the (i) symbol next to the Provider or Source in the single result page:
Screenshot 2023-12-18 at 2 43 16 PM

I just realized that the provider definition would not be correct when/if we extract sources from Europeana: here, Europeana is an aggregator which allows us to search for images, but the images themselves are hosted on the source sites, not Europeana.

The tooltip

Here are the Figma links to:

Accessibility considerations

WAI ARIA guidelines

Testing Instructions

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.

@github-actions github-actions bot added the 🧱 stack: frontend Related to the Nuxt frontend label Nov 28, 2023
@openverse-bot openverse-bot added the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Nov 28, 2023
Copy link

github-actions bot commented Nov 28, 2023

Size Change: +15.6 kB (+2%)

Total Size: 1.04 MB

Filename Size Change
./frontend/.nuxt/dist/client/251.js 0 B -343 B (removed) 🏆
./frontend/.nuxt/dist/client/251.modern.js 0 B -346 B (removed) 🏆
./frontend/.nuxt/dist/client/252.js 0 B -1.85 kB (removed) 🏆
./frontend/.nuxt/dist/client/app.js 135 kB -14 B (0%)
./frontend/.nuxt/dist/client/app.modern.js 126 kB +11 B (0%)
./frontend/.nuxt/dist/client/commons/app.js 105 kB -21 B (0%)
./frontend/.nuxt/dist/client/commons/app.modern.js 87.5 kB +12 B (0%)
./frontend/.nuxt/dist/client/components/v-media-details.js 7.17 kB +1.29 kB (+22%) 🚨
./frontend/.nuxt/dist/client/components/v-media-details.modern.js 6.96 kB +1.22 kB (+21%) 🚨
./frontend/.nuxt/dist/client/components/v-metadata.js 2.81 kB +1.5 kB (+114%) 🆘
./frontend/.nuxt/dist/client/components/v-metadata.modern.js 2.73 kB +1.42 kB (+107%) 🆘
./frontend/.nuxt/dist/client/components/v-sources-table.js 15.2 kB +27 B (0%)
./frontend/.nuxt/dist/client/components/v-sources-table.modern.js 15.2 kB +28 B (0%)
./frontend/.nuxt/dist/client/pages/audio/_id/index.js 21.6 kB +890 B (+4%)
./frontend/.nuxt/dist/client/pages/audio/_id/index.modern.js 20.6 kB +789 B (+4%)
./frontend/.nuxt/dist/client/pages/image/_id/index.js 19.1 kB +1.08 kB (+6%) 🔍
./frontend/.nuxt/dist/client/pages/image/_id/index.modern.js 17.7 kB +988 B (+6%) 🔍
./frontend/.nuxt/dist/client/pages/search.js 5.81 kB +24 B (0%)
./frontend/.nuxt/dist/client/runtime.js 2.91 kB +22 B (+1%)
./frontend/.nuxt/dist/client/runtime.modern.js 2.91 kB +22 B (+1%)
./frontend/.nuxt/dist/client/vendors/app.modern.js 66.6 kB +25 B (0%)
./frontend/.nuxt/dist/client/253.js 343 B +343 B (new file) 🆕
./frontend/.nuxt/dist/client/253.modern.js 346 B +346 B (new file) 🆕
./frontend/.nuxt/dist/client/254.js 1.85 kB +1.85 kB (new file) 🆕
./frontend/.nuxt/dist/client/components/v-source-provider-tooltip.js 1.79 kB +1.79 kB (new file) 🆕
./frontend/.nuxt/dist/client/components/v-source-provider-tooltip.modern.js 1.71 kB +1.71 kB (new file) 🆕
./frontend/.nuxt/dist/client/components/v-tooltip.js 1.46 kB +1.46 kB (new file) 🆕
./frontend/.nuxt/dist/client/components/v-tooltip.modern.js 1.39 kB +1.39 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
./frontend/.nuxt/dist/client/commons/components/v-error-section/components/v-external-search-form/components/v-external-source-li/4e2d09e1.js 5.18 kB 0 B
./frontend/.nuxt/dist/client/commons/components/v-error-section/components/v-external-search-form/components/v-external-source-li/4e2d09e1.modern.js 5.62 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/loading-icon.js 731 B 0 B
./frontend/.nuxt/dist/client/components/loading-icon.modern.js 734 B 0 B
./frontend/.nuxt/dist/client/components/table-sort-icon.js 514 B 0 B
./frontend/.nuxt/dist/client/components/table-sort-icon.modern.js 519 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-all-results-grid.js 6.64 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-all-results-grid.modern.js 6.48 kB -4 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-collection.js 4.28 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-collection.modern.js 4.16 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-list.js 1.42 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-list.modern.js 1.4 kB 0 B
./frontend/.nuxt/dist/client/components/v-audio-result.js 1.11 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-result.modern.js 1.1 kB 0 B
./frontend/.nuxt/dist/client/components/v-audio-track-skeleton.js 958 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track-skeleton.modern.js 962 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track.js 5.14 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-audio-track.modern.js 5.11 kB -7 B (0%)
./frontend/.nuxt/dist/client/components/v-back-to-search-results-link.js 634 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-back-to-search-results-link.modern.js 639 B 0 B
./frontend/.nuxt/dist/client/components/v-bone.js 633 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-bone.modern.js 635 B 0 B
./frontend/.nuxt/dist/client/components/v-box-layout.js 1.16 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-box-layout.modern.js 1.16 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-by-line.js 2.3 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-by-line.modern.js 2.29 kB 0 B
./frontend/.nuxt/dist/client/components/v-collection-header.js 1.53 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-collection-header.modern.js 1.54 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-collection-page.js 3.88 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-collection-page.modern.js 3.88 kB +4 B (0%)
./frontend/.nuxt/dist/client/components/v-content-link.js 1.06 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-content-link.modern.js 1.06 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-page.js 530 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-page.modern.js 535 B 0 B
./frontend/.nuxt/dist/client/components/v-content-report-button.js 493 B 0 B
./frontend/.nuxt/dist/client/components/v-content-report-button.modern.js 497 B 0 B
./frontend/.nuxt/dist/client/components/v-content-report-form.js 3.35 kB 0 B
./frontend/.nuxt/dist/client/components/v-content-report-form.modern.js 3.23 kB +4 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-popover.js 3.81 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-content-report-popover.modern.js 3.7 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-button.js 3.8 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-button.modern.js 3.81 kB 0 B
./frontend/.nuxt/dist/client/components/v-copy-license.js 2.33 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-license.modern.js 2.31 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-copy-license/components/v-license-tab-panel/components/v-media-reuse/pages/image/_id/index.js 3.8 kB 0 B
./frontend/.nuxt/dist/client/components/v-copy-license/components/v-license-tab-panel/components/v-media-reuse/pages/image/_id/index.modern.js 3.81 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-dmca-notice.js 795 B 0 B
./frontend/.nuxt/dist/client/components/v-dmca-notice.modern.js 800 B 0 B
./frontend/.nuxt/dist/client/components/v-error-image.js 2.51 kB 0 B
./frontend/.nuxt/dist/client/components/v-error-image.modern.js 2.47 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-error-section.js 5.22 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-error-section.modern.js 4.58 kB 0 B
./frontend/.nuxt/dist/client/components/v-external-search-form.js 4.1 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-external-search-form.modern.js 3.44 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-external-source-list.js 2.63 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-external-source-list.modern.js 1.99 kB 0 B
./frontend/.nuxt/dist/client/components/v-full-layout.js 3.72 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-full-layout.modern.js 3.7 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-get-media-button.js 622 B 0 B
./frontend/.nuxt/dist/client/components/v-get-media-button.modern.js 628 B 0 B
./frontend/.nuxt/dist/client/components/v-grid-skeleton.js 1.54 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-grid-skeleton.modern.js 1.55 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-hide-button.js 594 B 0 B
./frontend/.nuxt/dist/client/components/v-hide-button.modern.js 592 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-home-gallery.js 4.28 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-home-gallery.modern.js 4.26 kB 0 B
./frontend/.nuxt/dist/client/components/v-homepage-content.js 1.82 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-homepage-content.modern.js 1.79 kB 0 B
./frontend/.nuxt/dist/client/components/v-image-cell.js 2.26 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-image-cell.modern.js 2.24 kB 0 B
./frontend/.nuxt/dist/client/components/v-image-grid.js 4.57 kB -5 B (0%)
./frontend/.nuxt/dist/client/components/v-image-grid.modern.js 4.45 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-license-tab-panel.js 641 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-license-tab-panel.modern.js 649 B 0 B
./frontend/.nuxt/dist/client/components/v-load-more.js 1.22 kB 0 B
./frontend/.nuxt/dist/client/components/v-load-more.modern.js 1.11 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-media-info.js 2.52 kB +2 B (0%)
./frontend/.nuxt/dist/client/components/v-media-info.modern.js 2.51 kB +4 B (0%)
./frontend/.nuxt/dist/client/components/v-media-license.js 932 B 0 B
./frontend/.nuxt/dist/client/components/v-media-license.modern.js 939 B 0 B
./frontend/.nuxt/dist/client/components/v-media-reuse.js 2.99 kB -4 B (0%)
./frontend/.nuxt/dist/client/components/v-media-reuse.modern.js 2.97 kB -3 B (0%)
./frontend/.nuxt/dist/client/components/v-media-tag.js 416 B 0 B
./frontend/.nuxt/dist/client/components/v-media-tag.modern.js 420 B 0 B
./frontend/.nuxt/dist/client/components/v-media-tags.js 883 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-media-tags.modern.js 883 B 0 B
./frontend/.nuxt/dist/client/components/v-metadata-value.js 604 B 0 B
./frontend/.nuxt/dist/client/components/v-metadata-value.modern.js 609 B 0 B
./frontend/.nuxt/dist/client/components/v-modal.js 982 B 0 B
./frontend/.nuxt/dist/client/components/v-modal.modern.js 971 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-no-results.js 2.67 kB 0 B
./frontend/.nuxt/dist/client/components/v-no-results.modern.js 2.03 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-old-icon-button.js 853 B 0 B
./frontend/.nuxt/dist/client/components/v-old-icon-button.modern.js 846 B 0 B
./frontend/.nuxt/dist/client/components/v-radio.js 1.02 kB 0 B
./frontend/.nuxt/dist/client/components/v-radio.modern.js 1.02 kB 0 B
./frontend/.nuxt/dist/client/components/v-related-audio.js 4.63 kB +1 B (0%)
./frontend/.nuxt/dist/client/components/v-related-audio.modern.js 4.48 kB +3 B (0%)
./frontend/.nuxt/dist/client/components/v-related-images.js 803 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-related-images.modern.js 717 B -3 B (0%)
./frontend/.nuxt/dist/client/components/v-report-desc-form.js 997 B 0 B
./frontend/.nuxt/dist/client/components/v-report-desc-form.modern.js 999 B 0 B
./frontend/.nuxt/dist/client/components/v-row-layout.js 2.05 kB -2 B (0%)
./frontend/.nuxt/dist/client/components/v-row-layout.modern.js 2.05 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-safety-wall.js 1.46 kB 0 B
./frontend/.nuxt/dist/client/components/v-safety-wall.modern.js 1.46 kB -1 B (0%)
./frontend/.nuxt/dist/client/components/v-scroll-button.js 890 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-scroll-button.modern.js 891 B 0 B
./frontend/.nuxt/dist/client/components/v-scroller.js 595 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-scroller.modern.js 591 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-search-results-title.js 618 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-search-results-title.modern.js 623 B +1 B (0%)
./frontend/.nuxt/dist/client/components/v-single-result-controls.js 1.18 kB 0 B
./frontend/.nuxt/dist/client/components/v-single-result-controls.modern.js 1.18 kB 0 B
./frontend/.nuxt/dist/client/components/v-sketch-fab-viewer.js 1.02 kB 0 B
./frontend/.nuxt/dist/client/components/v-sketch-fab-viewer.modern.js 915 B 0 B
./frontend/.nuxt/dist/client/components/v-snackbar.js 811 B 0 B
./frontend/.nuxt/dist/client/components/v-snackbar.modern.js 816 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-source-creator-button.js 547 B 0 B
./frontend/.nuxt/dist/client/components/v-source-creator-button.modern.js 551 B -1 B (0%)
./frontend/.nuxt/dist/client/components/v-tag.js 412 B 0 B
./frontend/.nuxt/dist/client/components/v-tag.modern.js 415 B 0 B
./frontend/.nuxt/dist/client/components/v-warning-suppressor.js 306 B 0 B
./frontend/.nuxt/dist/client/components/v-warning-suppressor.modern.js 311 B 0 B
./frontend/.nuxt/dist/client/pages/about.js 1.42 kB -2 B (0%)
./frontend/.nuxt/dist/client/pages/about.modern.js 1.42 kB -1 B (0%)
./frontend/.nuxt/dist/client/pages/audio/source/_.js 728 B +2 B (0%)
./frontend/.nuxt/dist/client/pages/audio/source/_.modern.js 644 B +1 B (0%)
./frontend/.nuxt/dist/client/pages/audio/tag/_tag.js 559 B -2 B (0%)
./frontend/.nuxt/dist/client/pages/audio/tag/_tag.modern.js 486 B +1 B (0%)
./frontend/.nuxt/dist/client/pages/feedback.js 1.36 kB 0 B
./frontend/.nuxt/dist/client/pages/feedback.modern.js 1.36 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/report.js 5.01 kB +3 B (0%)
./frontend/.nuxt/dist/client/pages/image/_id/report.modern.js 4.76 kB +4 B (0%)
./frontend/.nuxt/dist/client/pages/image/source/_.js 726 B 0 B
./frontend/.nuxt/dist/client/pages/image/source/_.modern.js 642 B +1 B (0%)
./frontend/.nuxt/dist/client/pages/image/tag/_tag.js 558 B -2 B (0%)
./frontend/.nuxt/dist/client/pages/image/tag/_tag.modern.js 485 B +2 B (0%)
./frontend/.nuxt/dist/client/pages/index.js 6.41 kB +4 B (0%)
./frontend/.nuxt/dist/client/pages/index.modern.js 6.35 kB -2 B (0%)
./frontend/.nuxt/dist/client/pages/preferences.js 1.46 kB 0 B
./frontend/.nuxt/dist/client/pages/preferences.modern.js 1.45 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/privacy.js 1.26 kB 0 B
./frontend/.nuxt/dist/client/pages/privacy.modern.js 1.26 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/search-help.js 1.08 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/search-help.modern.js 1.08 kB 0 B
./frontend/.nuxt/dist/client/pages/search.modern.js 8.13 kB -3 B (0%)
./frontend/.nuxt/dist/client/pages/search/audio.js 4.4 kB 0 B
./frontend/.nuxt/dist/client/pages/search/audio.modern.js 4.28 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/search/image.js 454 B 0 B
./frontend/.nuxt/dist/client/pages/search/image.modern.js 454 B 0 B
./frontend/.nuxt/dist/client/pages/search/index.js 317 B +1 B (0%)
./frontend/.nuxt/dist/client/pages/search/index.modern.js 321 B +1 B (0%)
./frontend/.nuxt/dist/client/pages/search/model-3d.js 243 B 0 B
./frontend/.nuxt/dist/client/pages/search/model-3d.modern.js 246 B -1 B (0%)
./frontend/.nuxt/dist/client/pages/search/video.js 240 B 0 B
./frontend/.nuxt/dist/client/pages/search/video.modern.js 243 B -1 B (0%)
./frontend/.nuxt/dist/client/pages/sensitive-content.js 1.52 kB 0 B
./frontend/.nuxt/dist/client/pages/sensitive-content.modern.js 1.53 kB +1 B (0%)
./frontend/.nuxt/dist/client/pages/sources.js 1.53 kB 0 B
./frontend/.nuxt/dist/client/pages/sources.modern.js 1.54 kB -1 B (0%)
./frontend/.nuxt/dist/client/vendors/app.js 66.9 kB -9 B (0%)

compressed-size-action

@obulat obulat force-pushed the add/source_provider_definitions branch from 11f5aa6 to ca3307b Compare November 28, 2023 14:59
@obulat obulat added 🌟 goal: addition Addition of new feature 🕹 aspect: interface Concerns end-users' experience with the software 🟧 priority: high Stalls work on the project or its dependents and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Nov 28, 2023
@obulat obulat linked an issue Nov 28, 2023 that may be closed by this pull request
@obulat obulat force-pushed the replace-popper-with-floating-ui branch from 0fd143e to e42599b Compare November 29, 2023 13:21
@obulat obulat force-pushed the add/source_provider_definitions branch from ca3307b to cdc5bf4 Compare November 29, 2023 13:22
@obulat obulat self-assigned this Nov 29, 2023
@obulat obulat force-pushed the replace-popper-with-floating-ui branch 4 times, most recently from 66a8fb0 to ba5db45 Compare December 6, 2023 07:05
Base automatically changed from replace-popper-with-floating-ui to main December 7, 2023 04:24
@obulat obulat force-pushed the add/source_provider_definitions branch 2 times, most recently from 697941e to cfbb408 Compare December 11, 2023 11:40
@openverse-bot openverse-bot added the 💻 aspect: code Concerns the software code in the repository label Dec 11, 2023
@obulat obulat changed the title Add source and provider definition popovers Add source and provider definition tooltips Dec 12, 2023
@obulat obulat force-pushed the add/source_provider_definitions branch from cfbb408 to b12da11 Compare December 13, 2023 04:44
@obulat obulat removed the 💻 aspect: code Concerns the software code in the repository label Dec 18, 2023
@obulat obulat force-pushed the add/source_provider_definitions branch from b12da11 to de98800 Compare December 18, 2023 09:11
@openverse-bot openverse-bot added the 💻 aspect: code Concerns the software code in the repository label Dec 18, 2023
@obulat obulat marked this pull request as ready for review December 18, 2023 11:53
@obulat obulat requested a review from a team as a code owner December 18, 2023 11:53
Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

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

Looked over the code and it (mostly) makes sense to me 😄 tool tips show up great when testing locally!

@fcoveram fcoveram self-requested a review December 20, 2023 11:40
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.

I noticed two minor details that polish the layout. All the rest look great 👌

<template>
<dt>
{{ $t(datum.label) }}
<VTooltip placement="top" :describedby="describedby" class="ms-2">
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this class adds a margin-left of 8px instead of 4px. ms-1 should fix it I think.

Comment on lines 2 to 12
<dl v-if="isSm" class="metadata grid gap-8" :style="columnCount">
<div v-for="datum in metadata" :key="`${datum.label}`">
<dt class="label-regular mb-1 ps-1">{{ $t(datum.label) }}</dt>
<div v-for="datum in metadata" :key="datum.label">
<VSourceProviderTooltip
v-if="tooltipId(datum)"
:describedby="tooltipId(datum)"
class="label-regular mb-1 flex flex-row ps-1"
:datum="datum"
/>
<dt v-else class="label-regular mb-1 flex flex-row ps-1">
{{ $t(datum.label) }}
</dt>
Copy link
Contributor

Choose a reason for hiding this comment

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

The info icon is not horizontally centered. I tried the following in Chrome inspector, and it looked good:

  • Added items-center
  • Just in xs, I added a padding of 4px to top, right, and bottom in dt element. For bigger breakpoints, ps-1 works correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, @fcoveram , I didn't mean to re-request your review yet

Copy link
Contributor

Choose a reason for hiding this comment

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

No problem!

@obulat obulat requested a review from fcoveram December 22, 2023 07:54
@obulat obulat force-pushed the add/source_provider_definitions branch from 0e776d2 to f3a88b0 Compare December 29, 2023 17:36
@openverse-bot
Copy link
Collaborator

Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR:

@fcoveram
@dhruvkb
This reminder is being automatically generated due to the urgency configuration.

Excluding weekend1 days, this PR was ready for review 19 day(s) ago. PRs labelled with high urgency are expected to be reviewed within 2 weekday(s)2.

@obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings.

Footnotes

  1. Specifically, Saturday and Sunday.

  2. For the purpose of these reminders we treat Monday - Friday as weekdays. Please note that the operation that generates these reminders runs at midnight UTC on Monday - Friday. This means that depending on your timezone, you may be pinged outside of the expected range.

Copy link
Member

@dhruvkb dhruvkb left a comment

Choose a reason for hiding this comment

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

LGTM, except to small notes. Nothing to block!

Comment on lines +42 to +46
return i18n.t(
props.datum.name === "source"
? "mediaDetails.sourceDescription"
: "mediaDetails.providerDescription"
)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return i18n.t(
props.datum.name === "source"
? "mediaDetails.sourceDescription"
: "mediaDetails.providerDescription"
)
return i18n.t(`mediaDetails.${props.datum.name}Description`)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Static keys can be checked by vue-i18n-extract`. It does not handle dynamic keys like this well.

@obulat obulat force-pushed the add/source_provider_definitions branch from f3a88b0 to cca1c12 Compare February 6, 2024 19:05
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
Signed-off-by: Olga Bulat <obulat@gmail.com>
@obulat obulat force-pushed the add/source_provider_definitions branch from cca1c12 to 3c29195 Compare February 7, 2024 03:11
@obulat obulat dismissed fcoveram’s stale review February 7, 2024 03:48

Changes were implemented

@obulat obulat merged commit 5475c78 into main Feb 7, 2024
40 checks passed
@obulat obulat deleted the add/source_provider_definitions branch February 7, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🕹 aspect: interface Concerns end-users' experience with the software 🌟 goal: addition Addition of new 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.

Source and provider definitions in single result page Update the single result page
5 participants