Skip to content

Display only once resource type in search#12041

Merged
andreslucena merged 3 commits intodevelopfrom
fix/multiple-resources
Nov 28, 2023
Merged

Display only once resource type in search#12041
andreslucena merged 3 commits intodevelopfrom
fix/multiple-resources

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR ensures that the search page is displaying only once the resources that are being filterable in the search page.

It will convert :
image

To something smaller like:
image

Testing

Make sure the pipeline is green on the relevant actions.

  1. Visit the frontend application
  2. Search for an empty string : http://localhost:3000/search?term=
  3. See the list
  4. Apply patch
  5. See the new list ( you may need to restart the application )

📷 Screenshots

Please add screenshots of the changes you are proposing
try.decidim.org
image

nightly.decidim.org
image

Patched version;
image

♥️ Thank you!

@alecslupu alecslupu added type: fix PRs that implement a fix for a bug project: redesign Barcelona City Council contract labels Nov 21, 2023
github-actions[bot]
github-actions bot previously approved these changes Nov 21, 2023
@alecslupu alecslupu requested a review from a team November 21, 2023 09:26
@alecslupu alecslupu added the no-backport Pull Requests that should not be backported label Nov 21, 2023
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Can you add a spec for the list of spaces/components in this page please? Thanks

@alecslupu
Copy link
Copy Markdown
Contributor Author

Can you add a spec for the list of spaces/components in this page please? Thanks

Added a spec to make sure content is present once in 46e8462

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I didn't know about the once matcher. Nice trick!

LGTM 👍🏽

@andreslucena andreslucena merged commit 76d51be into develop Nov 28, 2023
@andreslucena andreslucena deleted the fix/multiple-resources branch November 28, 2023 08:13
entantoencuanto added a commit that referenced this pull request Nov 29, 2023
…/redesign-staging

* fix/control-comments-replies-polymorphism:
  Add a polymorphic option to restrict acts_as_tree lookup
  Add tests to check the 'Hide replies' message error
  Fix pipeline after translations were updated (#12084)
  Remove the duplicate reference of icons (#12083)
  Fix modal forms for editor (#12077)
  New Crowdin updates (#12003)
  Display only once resource type in search (#12041)
  Redesign: fix responsiveness on nav-bar admin (#12045)
  Apply flash styles to Announcements (part 2) (#12039)
  Remove legacy design support from WYSIWYG editor (TipTap) (#12015)
  Extract methods from meetings seeds (#12053)
  Show message when there are no content in the page (#12056)
  Show message when there are no sortitions (#12057)
  Fix icons on flash alerts (#12069)
  Update numbering in RELEASE_NOTES.md (#12066)
  Add prerequirements to the manual installation tutorial (#12068)
  Differentiate non-clickable elements in admin menu (#12000)
  Remove official logo header image (#12064)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-backport Pull Requests that should not be backported project: redesign Barcelona City Council contract type: fix PRs that implement a fix for a bug

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants