Skip to content

Redesign: search results#10380

Merged
ferblape merged 17 commits intofeature/redesignfrom
feature/redesign-search
Mar 17, 2023
Merged

Redesign: search results#10380
ferblape merged 17 commits intofeature/redesignfrom
feature/redesign-search

Conversation

@Crashillo
Copy link
Copy Markdown
Contributor

@Crashillo Crashillo commented Feb 13, 2023

🎩 What? Why?

Implements the search page, but only the scaffolding around, i.e. the layout and the result block wrapper (not the content, since these are individual Card-L items)

Caveats

The search results list a set of Card-L elements. Some of them are not yet integrated, therefore the current view looks like buggy, but that's not the PR purpose. The things to test here are:

  • The filter sidebar
  • The search input
  • The headings
  • The decorator between blocks
Pending
  • That the search query is correctly passed from the search box in the header
  • Include the areas/scope filters

📷 Screenshots

https://decidim-redesign.populate.tools/search

♥️ Thank you!

@alecslupu alecslupu added the project: redesign Barcelona City Council contract label Feb 14, 2023
@Crashillo Crashillo marked this pull request as ready for review February 23, 2023 12:50
@Crashillo Crashillo requested review from ferblape and furilo February 23, 2023 13:01
@furilo
Copy link
Copy Markdown
Contributor

furilo commented Feb 23, 2023

@decidim/product there are some technical details and integrations pending (the will be done in other PRs), but you can review the part that is integrated

@furilo furilo requested a review from a team February 27, 2023 12:45
@ferblape
Copy link
Copy Markdown
Contributor

@entantoencuanto could you review the specs also?

@carolromero
Copy link
Copy Markdown
Member

There are some missing icons in the filter bar, should we tackle it in this PR? These are the missing ones, some of them are also not in the design prototype:

  • Participants: <i class="ri-user-line"></i>
  • Groups: <i class="ri-group-line"></i>
  • Conferences: <i class="ri-mic-line"></i>
  • Budgets: <i class="ri-coin-line"></i>

@Crashillo
Copy link
Copy Markdown
Contributor Author

should we tackle it in this PR?

Sure, we're defining the resource icons in the following file, so it's about updating/appending the missing ones

DEFAULT_RESOURCE_TYPE_ICONS = {
"all" => "apps-2-line",
"Decidim::Proposals::CollaborativeDraft" => "draft-line",
"Decidim::Comments::Comment" => "chat-1-line",
"Decidim::Debates::Debate" => "discuss-line",
"Decidim::Initiative" => "lightbulb-flash-line",
"Decidim::Meetings::Meeting" => "map-pin-line",
"Decidim::Blogs::Post" => "pen-nib-line",
"Decidim::Proposals::Proposal" => "chat-new-line",
"Decidim::Consultations::Question" => "question-mark",
"Decidim::Budgets::Order" => "check-double-line",
"Decidim::Assembly" => "government-line",
"Decidim::ParticipatoryProcess" => "treasure-map-line",
"Decidim::Category" => "price-tag-3-line",
"Decidim::Scope" => "scan-line",
"Decidim::Conference" => "question-mark", # REDESIGN_PENDING: icon unknown
"Decidim::Consultation" => "question-mark", # REDESIGN_PENDING: icon unknown
"Decidim::Votings::Voting" => "check-double-fill",
"Decidim::Accountability::Result" => "treasure-map-line",
"comments_count" => "wechat-line",
"upcoming" => "calendar-2-line",
"past" => "calendar-check-line",
"in_person" => "community-line",
"online" => "webcam-line",
"hybrid" => "home-wifi-line",
"official" => "star-line",
"participants" => "open-arm-line",
"user_group" => "team-line",
"user_groups" => "team-line",
"images" => "image-line",
"documents" => "file-text-line",
"like" => "heart-add-line",
"dislike" => "dislike-line",
"follow" => "notification-3-line",
"unfollow" => "notification-3-fill",
"share" => "share-line",
"other" => "question-line"
}.freeze

@NilHomedes
Copy link
Copy Markdown
Member

Everything looks good to me. Just two things I've detected:

View all button

I just notice that you are implementing this "View all" button at the end of the resource/space list.
Screenshot 2023-02-28 at 11-07-13 Search - Rediseño decidim

Is this definitive? Just to let you know, the solution should be:

  • When you search and it shows you different components/spaces results, it should appear the "View all" button at the end of each block.
  • When you select a component/space in the filter bar, at the end of the result list an index pagination should appear.

Maybe I'm reviewing something out of the scope of this issue, but I just want to point it for the record.

Card items

Another thing, for future reviews of the search result page:
We would review how the Card-L items of each component/space looks like, and what we display in each case.

Tell me if these things are being tackle in this PR or not. If not we can approve this PR and discus it further or on another issue

@Crashillo
Copy link
Copy Markdown
Contributor Author

View all button

I noticing such feature is still missing. I'll move the PR back and let you know once ready again

Tell me if these things are being tackle in this PR or not.

Nope, the respective L-cards are out of the scope, since it would cause tons of modified files. That will be faced in separate PRs. In the description I've pointed what elements should be tested for this PR

@Crashillo
Copy link
Copy Markdown
Contributor Author

@NilHomedes pagination is back (> 10 items) when the results are filtered by resource

Copy link
Copy Markdown
Member

@NilHomedes NilHomedes left a comment

Choose a reason for hiding this comment

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

LGTM!

@entantoencuanto entantoencuanto force-pushed the feature/redesign-search branch from 08810f2 to f705013 Compare March 3, 2023 15:49
@Crashillo Crashillo requested review from entantoencuanto and removed request for entantoencuanto March 7, 2023 10:51
@entantoencuanto entantoencuanto force-pushed the feature/redesign-search branch from 5610cae to fc4cb9f Compare March 8, 2023 20:54
@entantoencuanto
Copy link
Copy Markdown
Contributor

Test fixed. The remaining failing tests will be fixed in other branches

@entantoencuanto entantoencuanto requested a review from ferblape March 8, 2023 21:35
@ferblape ferblape requested a review from a team March 9, 2023 04:15
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

image

@ferblape ferblape merged commit 8b986a9 into feature/redesign Mar 17, 2023
@ferblape ferblape deleted the feature/redesign-search branch March 17, 2023 05:39
entantoencuanto added a commit that referenced this pull request Mar 17, 2023
…versions

* feature/redesign:
  Redesign: search results (#10380)
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
entantoencuanto added a commit that referenced this pull request Mar 21, 2023
…le-card

* feature/redesign:
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
…ent-blocks

* feature/redesign: (97 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  Fix destroying scope types that have been associated with processes (#10496)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
* feature/redesign: (99 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
* feature/redesign: (98 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Redesign: layout item (#10376)
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
* feature/redesign: (97 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  Fix destroying scope types that have been associated with processes (#10496)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
…-l-g

* feature/redesign: (99 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
…content-blocks

* feature/redesign: (99 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
…s-l-g

* feature/redesign: (97 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  Fix destroying scope types that have been associated with processes (#10496)
  ...
entantoencuanto added a commit that referenced this pull request Mar 23, 2023
* feature/redesign: (97 commits)
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Fix test
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  Fix destroying scope types that have been associated with processes (#10496)
  ...
entantoencuanto added a commit that referenced this pull request Mar 24, 2023
…dcrumb

* feature/redesign: (282 commits)
  include a clause to change a data-attr on the fly
  Update tests
  Restore specs
  Feature/redesign accountability versions (#10517)
  set different modals foreach comment
  Redesign: add image to blog item (#10458)
  unify report button for futher uses
  Redesign: search results (#10380)
  Fix test
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: redesign Barcelona City Council contract

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants