Skip to content

Admin filters for taxonomies in participatory spaces#13278

Merged
alecslupu merged 92 commits intodevelopfrom
feature/taxonomies-filters-for-spaces
Sep 9, 2024
Merged

Admin filters for taxonomies in participatory spaces#13278
alecslupu merged 92 commits intodevelopfrom
feature/taxonomies-filters-for-spaces

Conversation

@microstudi
Copy link
Copy Markdown
Contributor

@microstudi microstudi commented Aug 6, 2024

🎩 What? Why?

This PR introduces the management of filters for participatory spaces based on taxonomies.

The main approach is the creation of the concern Decidim::Admin::HasTaxonomyFilters that needs to be included in the final controller that wants to make use of it. In the controller is necessary to define the manifest name for the participatory space.

📌 Related Issues

Link your PR to an issue

Testing

  1. Open a development app, go to the /admin site
  2. Go to "Processes" or "Assemblies"
  3. Click on "Taxonomy filters" on the breadcrumb menu top-right.
  4. Manage stuff.

📷 Screenshots

image
image
image
image
image

Todo:

  • Given that I am an admin configuring a process or an assembly, when I go to admin/processes or admin/assemblies, then I see a page called 'Taxonomy filters' from the dropdown menu.
  • Given that I want to add a new taxonomy filter, when I click on the button 'Add taxonomy filter', then I should see a page with a dropdown of all available taxonomies, and when I choose one, I can deselect any taxonomies I don't want to use in the filter
  • Given that I want to assign a taxonomy to a process or an assembly based on the filters created, when I go to its configuration form, then I see a field for every filter created.
  • Specs
    • Forms, Commands, Models
    • Models with concern Taxonomizable
    • Create participatory space saves taxonomizations
    • Update participatory space saves taxonomizations
    • Controller with HasTaxonomyFilters
    • System: Admin manages participatory spaces with taxonomy filters

♥️ Thank you!

github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
@microstudi microstudi marked this pull request as ready for review August 21, 2024 09:31
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
carolromero
carolromero previously approved these changes Sep 6, 2024
@alecslupu alecslupu self-assigned this Sep 9, 2024
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.

There are a few small changes that should be performed. Could you have a look ?

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.

👍

@alecslupu alecslupu added this to the 0.30.0 milestone Sep 9, 2024
@alecslupu alecslupu merged commit c926166 into develop Sep 9, 2024
@alecslupu alecslupu deleted the feature/taxonomies-filters-for-spaces branch September 9, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Add taxonomy filters to spaces

6 participants