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

Multiline selected facet badge on search page #2675

Merged
merged 6 commits into from
Apr 29, 2024

Conversation

LotteHofstede
Copy link
Contributor

References

Description

This PR fixes an issue where a selected facet badge would overflow the page instead of wrapping around to a new line.

Instructions for Reviewers

Use a long facet filter that would overflow the page and make sure it wraps its text around to a new line. Add multiple facets to make sure everything still works as expected, Eg:
http://localhost:4000/search?query=test&spc.page=1&f.subject=Lorem%20ipsum%20dolor%20sit%20amet.%20Et%20iusto%20omnis%20qui%20reprehenderit%20illo%20ut%20provident%20cumque%20ab%20perspiciatis%20delectus.%20Eos%20nemo%20mollitia%20qui%20omnis%20nihil%20ut%20galisum%20obcaecati.,equals&f.author=test,equals&f.author=test123,equals

Checklist

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using yarn lint
  • My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@LotteHofstede LotteHofstede self-assigned this Nov 30, 2023
@tdonohue tdonohue added bug component: Discovery related to discovery search or browse system 1 APPROVAL pull request only requires a single approval to merge port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release labels Nov 30, 2023
Copy link

github-actions bot commented Dec 6, 2023

Hi @LotteHofstede,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@tdonohue tdonohue self-requested a review February 15, 2024 15:56
Copy link

Hi @LotteHofstede,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

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

👍 Thanks @LotteHofstede ! Finally got around to testing this and I can verify the bug exists & that this fixes it.

@tdonohue tdonohue merged commit 13dbd6b into DSpace:main Apr 29, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Backport failed for dspace-7_x, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin dspace-7_x
git worktree add -d .worktree/backport-2675-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-2675-to-dspace-7_x
git switch --create backport-2675-to-dspace-7_x
git cherry-pick -x f4dc8ca3d222f774b4424b9dae44577386ca1a28 a026c65a3c6970fae8b72c00667f500a0cff813c

@tdonohue
Copy link
Member

Manually ported to 7.x in #2989

@tdonohue tdonohue removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge bug component: Discovery related to discovery search or browse system
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Overflowing of selected facet badge on search page
3 participants