-
Notifications
You must be signed in to change notification settings - Fork 211
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
Display generated tags separately #4291
Conversation
720dbc2
to
a4a043a
Compare
@obulat this looks great with the exception of an (existing) spacing issue that becomes more apparent when we add a text label above the tags. Observe that the "Source" and "Source Tags" text labels are not in alignment. "Source" is 0.25rem to the right of "Source Tags". I think we just need to remove horizontal padding from the |
I think an IP would still be good, even just as a decision log for some of the questions/points that were made in the project proposal. It would not have to be a big document IMO! |
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.
This looks good when I run it locally! One question about some other information we have available for the generated tags.
c8b39e0
to
f262ee9
Compare
To @zackkrida's point
If I recall correctly, we intentionally added this spacing to avoid cropping links' focus ring. In this case, the We can add the same spacing in this section to make it look align. Or perhaps, and correct me if I'm wrong, investigate how to fix this site-wise issue and stop us from adding empty spacings that could break the layout. |
cc4dabd
to
12bdfa4
Compare
I added a negative margin to the "Source" or "Provider" (whichever comes first) to fix this. You can see in the snapshots that they are aligned now. Now, I looked at the snapshots again, and I feel like the tags headings are fine when there are both source and generated tags. However, when there are only source tags, the "Source tags" heading is not very clear. Why are they called "source" tags? And since the "What it is?" link is only available on the Generated tags, it is not possible to navigate to the explanation page. What do you think, @fcoveram? |
I think we can safely remove the "Source tags" heading when there are no machine-generated tags. The pill set in the media details area is common content in stock and other similar services and does not need further explanation. |
97fd532
to
15cb517
Compare
Updated in 15cb517. I also added a screen-reader-only "Tags" heading. |
ad2eb8b
to
2e40317
Compare
@obulat I think the classic "Learn more" would be appropriate here. |
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. I'll write the copy for the page next week. I made sure to test that collapsible tags are still working properly; no issues there.
6b64053
to
2de2e9e
Compare
dc6dd3f
to
d0c23c3
Compare
Hey @fcoveram could you look at this again and let us know what you think? Thanks 😄 |
I will take a look at this tomorrow morning 🙏 sorry for the delay |
Based on the medium urgency of this PR, the following reviewers are being gently reminded to review this PR: @fcoveram Excluding weekend1 days, this PR was ready for review 16 day(s) ago. PRs labelled with medium urgency are expected to be reviewed within 4 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
|
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.
All looks good 🚀 🌟
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
Signed-off-by: Olga Bulat <[email protected]>
d0c23c3
to
26cdcc8
Compare
Fixes
Fixes #4192 by @fcoveram
Description
This PR adds a separate display of machine-generated tags and tags provided by sources on the single result page following the Figma mockups.
Based on @fcoveram's suggestion, if the item only has source tags, the tags section doesn't have a visible heading.
I started to write the implementation plan for the frontend feature, but realized that this can be done in a single PR. As the project lead, do you think we need a frontend IP, @AetherUnbound?This PR is blocked on #4379 because it has a link to the "About tags" page, but the page is not ready.
Another blocker is the text for this link. Currently, the link says "What is this?"; suggestions for the text are welcome.
The PR can be reviewed but should not be merged before #4379 is done.#4379 was merged into this PR. Please also review the wording here.
Testing instructions
Run the app using
just frontend/run dev
(runningdev:only
would not update the English strings, so you would need to rundev
at least once)Go to http://localhost:8443/image/a487f4eb-ce05-43e1-acae-73c4ab090cc9 to see how machine-generated and source tags are displayed.