Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Image reporting view #2090

Merged
merged 9 commits into from
Jan 20, 2023
Merged

Image reporting view #2090

merged 9 commits into from
Jan 20, 2023

Conversation

zackkrida
Copy link
Member

@zackkrida zackkrida commented Jan 9, 2023

Proof-of-concept to create a reporting view for each image. This would allow Openverse integrations to have a simple reporting URL for each image.

Desktop Mobile

Todo

  • Apply white background (did so manually in the screenshot)
  • Add attribution below image
  • Hide "Cancel" button in reporting form
  • Add some basic error handling and edge case support
  • Add a link back to the single result page
  • Clean up styling
  • Make sure pages are unindexed by search engines

@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Storybook and Tailwind configuration previews: Ready

Storybook: https://wordpress.github.io/openverse-frontend/_preview/2090
Tailwind: https://wordpress.github.io/openverse-frontend/_preview/2090/tailwind

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.

@openverse-bot openverse-bot added the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Jan 9, 2023
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

Size Change: +8.05 kB (+1%)

Total Size: 907 kB

Filename Size Change
./.nuxt/dist/client/233.js 0 B -272 B (removed) 🏆
./.nuxt/dist/client/233.modern.js 0 B -277 B (removed) 🏆
./.nuxt/dist/client/234.js 0 B -1.85 kB (removed) 🏆
./.nuxt/dist/client/app.js 148 kB +28 B (0%)
./.nuxt/dist/client/app.modern.js 123 kB +59 B (0%)
./.nuxt/dist/client/components/v-content-report-form.js 6.09 kB +13 B (0%)
./.nuxt/dist/client/components/v-content-report-form.modern.js 3.58 kB +16 B (0%)
./.nuxt/dist/client/components/v-content-report-popover.modern.js 4.23 kB +11 B (0%)
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.js 0 B -9.87 kB (removed) 🏆
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.modern.js 0 B -9.84 kB (removed) 🏆
./.nuxt/dist/client/components/v-sources-table.js 16.6 kB +38 B (0%)
./.nuxt/dist/client/components/v-sources-table.modern.js 16.6 kB +37 B (0%)
./.nuxt/dist/client/pages/audio/_id.js 0 B -7.96 kB (removed) 🏆
./.nuxt/dist/client/pages/audio/_id.modern.js 0 B -4.79 kB (removed) 🏆
./.nuxt/dist/client/pages/image/_id.js 0 B -9.25 kB (removed) 🏆
./.nuxt/dist/client/pages/image/_id.modern.js 0 B -7.33 kB (removed) 🏆
./.nuxt/dist/client/runtime.js 2.68 kB -32 B (-1%)
./.nuxt/dist/client/runtime.modern.js 2.69 kB -31 B (-1%)
./.nuxt/dist/client/227.js 272 B +272 B (new file) 🆕
./.nuxt/dist/client/227.modern.js 277 B +277 B (new file) 🆕
./.nuxt/dist/client/228.js 1.85 kB +1.85 kB (new file) 🆕
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/d219393b.js 9.88 kB +9.88 kB (new file) 🆕
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/d219393b.modern.js 9.86 kB +9.86 kB (new file) 🆕
./.nuxt/dist/client/pages/audio/_id/index.js 7.97 kB +7.97 kB (new file) 🆕
./.nuxt/dist/client/pages/audio/_id/index.modern.js 4.8 kB +4.8 kB (new file) 🆕
./.nuxt/dist/client/pages/image/_id/index.js 9.26 kB +9.26 kB (new file) 🆕
./.nuxt/dist/client/pages/image/_id/index.modern.js 7.34 kB +7.34 kB (new file) 🆕
./.nuxt/dist/client/pages/image/_id/report.js 3.6 kB +3.6 kB (new file) 🆕
./.nuxt/dist/client/pages/image/_id/report.modern.js 4.2 kB +4.2 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size Change
./.nuxt/dist/client/commons/app.js 86.7 kB 0 B
./.nuxt/dist/client/commons/app.modern.js 77.4 kB +1 B (0%)
./.nuxt/dist/client/components/loading-icon.js 747 B 0 B
./.nuxt/dist/client/components/loading-icon.modern.js 751 B +3 B (0%)
./.nuxt/dist/client/components/table-sort-icon.js 508 B 0 B
./.nuxt/dist/client/components/table-sort-icon.modern.js 513 B 0 B
./.nuxt/dist/client/components/v-all-results-grid.js 7.49 kB +1 B (0%)
./.nuxt/dist/client/components/v-all-results-grid.modern.js 5.02 kB +4 B (0%)
./.nuxt/dist/client/components/v-audio-cell.js 357 B 0 B
./.nuxt/dist/client/components/v-audio-cell.modern.js 361 B 0 B
./.nuxt/dist/client/components/v-audio-details.js 2.54 kB +8 B (0%)
./.nuxt/dist/client/components/v-audio-details.modern.js 1.78 kB 0 B
./.nuxt/dist/client/components/v-audio-track-skeleton.js 1.01 kB 0 B
./.nuxt/dist/client/components/v-audio-track-skeleton.modern.js 1.02 kB 0 B
./.nuxt/dist/client/components/v-audio-track.js 5.2 kB 0 B
./.nuxt/dist/client/components/v-audio-track.modern.js 5.14 kB -2 B (0%)
./.nuxt/dist/client/components/v-back-to-search-results-link.js 538 B +1 B (0%)
./.nuxt/dist/client/components/v-back-to-search-results-link.modern.js 543 B 0 B
./.nuxt/dist/client/components/v-bone.js 684 B 0 B
./.nuxt/dist/client/components/v-bone.modern.js 688 B +1 B (0%)
./.nuxt/dist/client/components/v-box-layout.js 1.21 kB 0 B
./.nuxt/dist/client/components/v-box-layout.modern.js 1.2 kB -1 B (0%)
./.nuxt/dist/client/components/v-content-link.js 1.11 kB -1 B (0%)
./.nuxt/dist/client/components/v-content-link.modern.js 1.09 kB -1 B (0%)
./.nuxt/dist/client/components/v-content-page.js 467 B 0 B
./.nuxt/dist/client/components/v-content-page.modern.js 471 B 0 B
./.nuxt/dist/client/components/v-content-report-button.js 776 B 0 B
./.nuxt/dist/client/components/v-content-report-button.modern.js 781 B +2 B (0%)
./.nuxt/dist/client/components/v-content-report-popover.js 1.23 kB +8 B (+1%)
./.nuxt/dist/client/components/v-copy-button.js 3.99 kB 0 B
./.nuxt/dist/client/components/v-copy-button.modern.js 4 kB +1 B (0%)
./.nuxt/dist/client/components/v-copy-license.js 1 kB 0 B
./.nuxt/dist/client/components/v-copy-license.modern.js 1 kB 0 B
./.nuxt/dist/client/components/v-dmca-notice.js 749 B 0 B
./.nuxt/dist/client/components/v-dmca-notice.modern.js 753 B +2 B (0%)
./.nuxt/dist/client/components/v-error-image.js 1.69 kB -3 B (0%)
./.nuxt/dist/client/components/v-error-image.modern.js 1.68 kB +3 B (0%)
./.nuxt/dist/client/components/v-error-section.js 372 B 0 B
./.nuxt/dist/client/components/v-error-section.modern.js 375 B 0 B
./.nuxt/dist/client/components/v-external-search-form.js 3.09 kB 0 B
./.nuxt/dist/client/components/v-external-search-form.modern.js 3.06 kB 0 B
./.nuxt/dist/client/components/v-external-source-list.js 2.55 kB 0 B
./.nuxt/dist/client/components/v-external-source-list.modern.js 2.52 kB -1 B (0%)
./.nuxt/dist/client/components/v-full-layout.js 1.59 kB 0 B
./.nuxt/dist/client/components/v-full-layout.modern.js 1.59 kB -1 B (0%)
./.nuxt/dist/client/components/v-grid-skeleton.js 1.62 kB +3 B (0%)
./.nuxt/dist/client/components/v-grid-skeleton.modern.js 1.62 kB +2 B (0%)
./.nuxt/dist/client/components/v-home-gallery.js 4.8 kB 0 B
./.nuxt/dist/client/components/v-home-gallery.modern.js 4.78 kB -3 B (0%)
./.nuxt/dist/client/components/v-homepage-content.js 1.73 kB 0 B
./.nuxt/dist/client/components/v-homepage-content.modern.js 1.69 kB 0 B
./.nuxt/dist/client/components/v-image-carousel.js 4.76 kB +1 B (0%)
./.nuxt/dist/client/components/v-image-carousel.modern.js 4.74 kB -4 B (0%)
./.nuxt/dist/client/components/v-image-cell-square.js 993 B 0 B
./.nuxt/dist/client/components/v-image-cell-square.modern.js 997 B 0 B
./.nuxt/dist/client/components/v-image-cell.js 1.43 kB 0 B
./.nuxt/dist/client/components/v-image-cell.modern.js 1.42 kB +1 B (0%)
./.nuxt/dist/client/components/v-image-details.js 2.15 kB +7 B (0%)
./.nuxt/dist/client/components/v-image-details.modern.js 1.42 kB 0 B
./.nuxt/dist/client/components/v-image-grid.js 4.88 kB 0 B
./.nuxt/dist/client/components/v-image-grid.modern.js 2.42 kB +1 B (0%)
./.nuxt/dist/client/components/v-license-tab-panel.js 521 B 0 B
./.nuxt/dist/client/components/v-license-tab-panel.modern.js 525 B 0 B
./.nuxt/dist/client/components/v-load-more.js 3.16 kB 0 B
./.nuxt/dist/client/components/v-load-more.modern.js 683 B 0 B
./.nuxt/dist/client/components/v-media-license.js 819 B 0 B
./.nuxt/dist/client/components/v-media-license.modern.js 828 B 0 B
./.nuxt/dist/client/components/v-media-reuse.js 1.62 kB 0 B
./.nuxt/dist/client/components/v-media-reuse.modern.js 1.61 kB 0 B
./.nuxt/dist/client/components/v-media-tag.js 428 B 0 B
./.nuxt/dist/client/components/v-media-tag.modern.js 434 B +1 B (0%)
./.nuxt/dist/client/components/v-no-results.js 2.75 kB 0 B
./.nuxt/dist/client/components/v-no-results.modern.js 2.72 kB -1 B (0%)
./.nuxt/dist/client/components/v-old-homepage-content.js 1.88 kB 0 B
./.nuxt/dist/client/components/v-old-homepage-content.modern.js 1.85 kB 0 B
./.nuxt/dist/client/components/v-radio.js 1.51 kB 0 B
./.nuxt/dist/client/components/v-radio.modern.js 1.47 kB +2 B (0%)
./.nuxt/dist/client/components/v-related-audio.js 1.25 kB 0 B
./.nuxt/dist/client/components/v-related-audio.modern.js 1.25 kB +1 B (0%)
./.nuxt/dist/client/components/v-related-images.js 1.05 kB 0 B
./.nuxt/dist/client/components/v-related-images.modern.js 2.98 kB +2 B (0%)
./.nuxt/dist/client/components/v-report-desc-form.js 965 B 0 B
./.nuxt/dist/client/components/v-report-desc-form.modern.js 969 B 0 B
./.nuxt/dist/client/components/v-row-layout.js 1.7 kB 0 B
./.nuxt/dist/client/components/v-row-layout.modern.js 1.71 kB 0 B
./.nuxt/dist/client/components/v-scroll-button.js 813 B 0 B
./.nuxt/dist/client/components/v-scroll-button.modern.js 819 B 0 B
./.nuxt/dist/client/components/v-search-grid.js 5.43 kB 0 B
./.nuxt/dist/client/components/v-search-grid.modern.js 5.39 kB -1 B (0%)
./.nuxt/dist/client/components/v-search-results-title.js 656 B 0 B
./.nuxt/dist/client/components/v-search-results-title.modern.js 655 B 0 B
./.nuxt/dist/client/components/v-search-type-radio.js 792 B 0 B
./.nuxt/dist/client/components/v-search-type-radio.modern.js 768 B 0 B
./.nuxt/dist/client/components/v-server-timeout.js 299 B 0 B
./.nuxt/dist/client/components/v-server-timeout.modern.js 303 B 0 B
./.nuxt/dist/client/components/v-sketch-fab-viewer.js 3.37 kB 0 B
./.nuxt/dist/client/components/v-sketch-fab-viewer.modern.js 895 B 0 B
./.nuxt/dist/client/components/v-skip-to-content-container.js 888 B 0 B
./.nuxt/dist/client/components/v-skip-to-content-container.modern.js 894 B 0 B
./.nuxt/dist/client/components/v-snackbar.js 1.18 kB 0 B
./.nuxt/dist/client/components/v-snackbar.modern.js 1.19 kB +2 B (0%)
./.nuxt/dist/client/components/v-warning-suppressor.js 299 B 0 B
./.nuxt/dist/client/components/v-warning-suppressor.modern.js 302 B 0 B
./.nuxt/dist/client/pages/about.js 1.52 kB +1 B (0%)
./.nuxt/dist/client/pages/about.modern.js 1.51 kB 0 B
./.nuxt/dist/client/pages/external-sources.js 1.53 kB 0 B
./.nuxt/dist/client/pages/external-sources.modern.js 1.53 kB 0 B
./.nuxt/dist/client/pages/feedback.js 1.31 kB 0 B
./.nuxt/dist/client/pages/feedback.modern.js 1.31 kB 0 B
./.nuxt/dist/client/pages/index.js 8.63 kB -2 B (0%)
./.nuxt/dist/client/pages/index.modern.js 8.52 kB +8 B (0%)
./.nuxt/dist/client/pages/preferences.js 1.22 kB 0 B
./.nuxt/dist/client/pages/preferences.modern.js 1.21 kB 0 B
./.nuxt/dist/client/pages/privacy.js 983 B 0 B
./.nuxt/dist/client/pages/privacy.modern.js 984 B 0 B
./.nuxt/dist/client/pages/search-help.js 1.61 kB 0 B
./.nuxt/dist/client/pages/search-help.modern.js 1.61 kB +1 B (0%)
./.nuxt/dist/client/pages/search.js 5.09 kB -1 B (0%)
./.nuxt/dist/client/pages/search.modern.js 2.6 kB +1 B (0%)
./.nuxt/dist/client/pages/search/audio.js 6.14 kB +2 B (0%)
./.nuxt/dist/client/pages/search/audio.modern.js 3.66 kB +2 B (0%)
./.nuxt/dist/client/pages/search/image.js 659 B -1 B (0%)
./.nuxt/dist/client/pages/search/image.modern.js 2.73 kB +5 B (0%)
./.nuxt/dist/client/pages/search/index.js 542 B 0 B
./.nuxt/dist/client/pages/search/index.modern.js 547 B -1 B (0%)
./.nuxt/dist/client/pages/search/model-3d.js 243 B 0 B
./.nuxt/dist/client/pages/search/model-3d.modern.js 246 B 0 B
./.nuxt/dist/client/pages/search/search-page.types.js 266 B 0 B
./.nuxt/dist/client/pages/search/search-page.types.modern.js 270 B 0 B
./.nuxt/dist/client/pages/search/video.js 240 B 0 B
./.nuxt/dist/client/pages/search/video.modern.js 244 B +1 B (0%)
./.nuxt/dist/client/pages/sources.js 1.55 kB 0 B
./.nuxt/dist/client/pages/sources.modern.js 1.54 kB +1 B (0%)
./.nuxt/dist/client/vendors/app.js 63.7 kB 0 B
./.nuxt/dist/client/vendors/app.modern.js 63.1 kB +1 B (0%)

compressed-size-action

@@ -5,12 +5,14 @@
v-bind="$attrs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rename this component to VBackLink?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this change entirely now, right? The component is no longer used in the new report page.

@zackkrida zackkrida added needs design Needs a designer's touch before implementation can begin 🟧 priority: high Stalls work on the project or its dependents 🌟 goal: addition Addition of new feature 🕹 aspect: interface Concerns end-users' experience with the software and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Jan 10, 2023
@fcoveram
Copy link

I designed this quick idea that taps into existing styles and your approach.

xl breakpoint xs breakpoint
imagen imagen

Description

The page has the Footer content and the header version where switcher and filters are disabled. This version was discussed in a different ticket but is not fully defined yet.

In the result area, the wrapper is 804px width and sets a grid of 2 columns with a gap of 56px, according to Tailwind outline. This width value is consistent with the layout design I am handling for Timeout and No results page that I will share soon. Therefore, reaching consistency early on would be great.

CleanShot 2023-01-11 at 11 46 23@2x

All text styles and buttons are existing components. The mockup lists them better.

What do you think? If we go with this idea, I will polish minor mockup details for its implementation.

Design file

Figma: Full page report

@zackkrida
Copy link
Member Author

Thanks, @panchovm! This looks great. I can implement these suggestions pretty quickly once you've made final tweaks.

No objections on the overall design.

@fcoveram
Copy link

Done. The file has been updated.

Here are the mockups and a wireframe. Select View > Layout Grids to see the grid settings of all mockups.

@zackkrida zackkrida marked this pull request as ready for review January 17, 2023 14:42
@zackkrida zackkrida requested a review from a team as a code owner January 17, 2023 14:42
@zackkrida
Copy link
Member Author

@panchovm and @obulat I think this PR is in a good place to merge. The only change that wasn't made, which could be in a subsequent PR, is to update the type sizes of headings and move the button to the left. I think those changes require a bit more work to add props and more configuration to the VContentReportForm component.

What do you think?

@zackkrida zackkrida changed the title [WIP] Image reporting view Image reporting view Jan 17, 2023
@zackkrida zackkrida added 🟥 priority: critical Must be addressed ASAP and removed 🟧 priority: high Stalls work on the project or its dependents labels Jan 18, 2023
Copy link

@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.

Given the priority this ticket has, the outcome meets the functional requirement. We can improve the styles later.

Copy link
Contributor

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

LGTM, the button needs to be fixed to be a link, rather than a button.

src/pages/image/_id/report.vue Show resolved Hide resolved
Copy link
Contributor

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

Just leaving a suggested change to fix the link issue. I've tested it out locally and the page works fine aside from this issue.

@@ -5,12 +5,14 @@
v-bind="$attrs"
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this change entirely now, right? The component is no longer used in the new report page.

Comment on lines 22 to 25
variant="secondary-bordered"
:href="`/image/${image.id}`"
size="disabled"
class="p-2 text-sr"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
variant="secondary-bordered"
:href="`/image/${image.id}`"
size="disabled"
class="p-2 text-sr"
as="VLink"
variant="secondary-bordered"
:href="`/image/${image.id}`"
size="disabled"
class="p-2 text-sr text-black"

The additional class is required to prevent the button text from switching to the pink used for links (not sure if this is intentional or a bug in the component).

@zackkrida zackkrida removed the needs design Needs a designer's touch before implementation can begin label Jan 19, 2023
Copy link
Contributor

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

LGTM, strange about the test failures though 😕

@anton202 anton202 mentioned this pull request Jan 19, 2023
7 tasks
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.

I think rebasing onto main will fix the testing problems.

@zackkrida zackkrida merged commit 5cc64a0 into main Jan 20, 2023
@zackkrida zackkrida deleted the report-links branch January 20, 2023 07:28
github-actions bot pushed a commit that referenced this pull request Jan 20, 2023
@github-actions
Copy link

Playwright Failure Test Results

It looks like some of the Playwright tests failed. You can download the Playwright trace
output for both Storybook and Nuxt Playwright tests that have failed at the bottom of this
page, under the "Artifacts" section:

https://github.com/WordPress/openverse-frontend/actions/runs/3965536056

Read more about how to use this artifact here: https://github.com/WordPress/openverse-frontend/blob/main/test/playwright/README.md#debugging

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕹 aspect: interface Concerns end-users' experience with the software 🌟 goal: addition Addition of new feature 🟥 priority: critical Must be addressed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants