Add filter options to Timeline and Activity tabs#5845
Conversation
…'es', 'es-MX' and 'en' translations to the dropdown.
|
Just a quick change, can we add a message for the cases where there isn't any content? For instance if I go to admin@example.org user profile and filter by Inititative I see this: I don't know if there is any content or there was an error or what's really happening there. I suggest that we show somekind of message here so it's clearer: I don't remember if we already do something like that when a participant has just been registered and doesn't have any content. |
|
Hello @andreslucena, All right, I'm adding a message when the result is empty. But shouldn't the word "contents" be in singular? ("We couldn't find any content with this criteria") |
tramuntanal
left a comment
There was a problem hiding this comment.
Great job @jesusdb , I've left some suggestions 😄
…nto feature/filter-options
Leusev
left a comment
There was a problem hiding this comment.
I've seen you fixed form_builder issue, well done @jesusdb :)
In other hand, I've seen you changed the way to get resources in filter as Oliver asked you.
Only one question more, I've seen you made the query with you put .last.underscore to obtain the texts in that way:

but in spec test, only with option .last:

Is that correct?
Thanks!
|
Hi @Leusev, it says you requested changes and it doesn't let me answer your comment directly. Yes that's correct; the spec doesn't have the |
tramuntanal
left a comment
There was a problem hiding this comment.
I think resource_types spec variables are not useful, and can be removed.
| create(:dummy_resource, component: component, published_at: Time.current) | ||
| end | ||
|
|
||
| let!(:resource_types) do |
There was a problem hiding this comment.
I changed it so now uses a specific array with the resource_types requested. The spec uses that variable
| create(:action_log, action: "publish", visibility: "all", resource: resource3, organization: organization) | ||
| end | ||
|
|
||
| let!(:resource_types) do |
There was a problem hiding this comment.
I changed it so now uses a specific array with the resource_types requested. The spec uses that variable
* feature/initiatives_search_fo_new_design: Updates changelog Harmonizes the design of initiatives search in FO New question type "Matrix" in questionnaires (decidim#5948) Add filter options to Timeline and Activity tabs (decidim#5845) Remove relations between user and spaces on destroy account command (decidim#6041) Explain how to initialize a custom oauth2 client provider (decidim#6055) Reenable main tests on Crowdin PRs (decidim#6076) Enum and readonly component settings (decidim#6001) New Crowdin translations (decidim#6066) Add missing notifications (decidim#5906)


🎩 What? Why?
This feature adds a filter on the user's timeline and activity tabs from their public profile. It allows the user to filter the activities depending on the resource type selected.
📌 Related Issues
📋 Subtasks
CHANGELOGentry📷 Screenshots
Timeline:



Activity:
Working with pagination: