-
Notifications
You must be signed in to change notification settings - Fork 63
Fix back to search link for pages in other languages #1350
Conversation
483cb32
to
6709400
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your solution of passing the path instead of a boolean makes a lot of sense!
I added some tests in #1351 if you want to consider it, to me seems important to cover at least one more language (covering all sounds unrealistic/not very beneficial). Perhaps you can see more cases.
Thanks for fixing it!
declare module '*.svg?inline' { | ||
const SVG: unknown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice that at least this removes the warning on files using these imports :)
Co-authored-by: Krystle Salazar <krystle.salazar@automattic.com>
# Conflicts: # src/locales/po-files/openverse.pot # tsconfig.json
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/1350 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. |
Size Change: -3.81 kB (0%) Total Size: 1.41 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the additional tests 🚀
Fixes
Fixes #1345 by @AetherUnbound
Description
This PR refactors the
VSearchBarLink
, moving path computation to the parent component.It also enables TS-ifying components that use?inline
SVGs.I tried using
It worked locally, but failed in CI (Could not find module Vue or its types), so I just replaced it with a
VIcon
.Considering that
nuxtjs/svg
does not support Nuxt 3, it is probably better to gradually replace all the?inline
svgs withVIcon
or<svg>
elements.Testing Instructions
Search for something using localized sites (e.g. search-staging.openverse.engineering/ru/search/q=cat) and open one of the results. There should be 'Back to search results' link at the top, and it should go to the previous page. This should work for audio and images, from All Content, Images and Audio search pages.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin