Skip to content

Fix trustees admin menu#7772

Merged
oriolgual merged 5 commits intodevelopfrom
fix/trustees_menu
Mar 30, 2021
Merged

Fix trustees admin menu#7772
oriolgual merged 5 commits intodevelopfrom
fix/trustees_menu

Conversation

@leio10
Copy link
Copy Markdown
Contributor

@leio10 leio10 commented Mar 30, 2021

🎩 What? Why?

The Trustees menu in the admin zone of participatory spaces should be shown on all participatory spaces with an Elections component, but it was only included on the Participatory Processes spaces.

This PR fixes this problem, normalizing first the names of these menus with the format :admin_[participatory_space]_menu (e.g. :admin_voting_menu, :admin_assembly_menu, etc.) and then adding the menu element to that menu of each registered participatory space. Some tests to check this on assemblies and votings are also added (I didn't add for other spaces because they are not loaded during elections tests).

In the future, we could improve this PR creating a new menu with the common items for all participatory spaces and rendering it after the specific space menu, but that would need to refactor all menu presenter classes, as they only support rendering one menu.

This PR also fixes a silly issue with a missing translation on the assemblies submenu.

📌 Related Issues

Link your PR to an issue

  • Related to #?
  • Fixes #?

Testing

Describe the best way to test or validate your PR.

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@slickepinne slickepinne left a comment

Choose a reason for hiding this comment

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

Nice!

@leio10
Copy link
Copy Markdown
Contributor Author

leio10 commented Mar 30, 2021

@decidim/mantainers this is ready to be merged!

@oriolgual oriolgual merged commit c4743d1 into develop Mar 30, 2021
@oriolgual oriolgual deleted the fix/trustees_menu branch March 30, 2021 11:22
entantoencuanto added a commit that referenced this pull request Mar 31, 2021
* develop: (26 commits)
  Fix trustees admin menu (#7772)
  Do not modify the controller class in the controller tests that render views (#7755)
  Add HTML escaping to the expectations as the strings are escaped (#7760)
  Add automated accessibility audit + HTML validation to CI pipeline (#7751)
  fix(elections): js assets manifest (#7759)
  Add admin missing translations (#7702)
  Add Conferences and Admin missing translations (#7653)
  New Crowdin updates (#7735)
  Improve vote flow (#7682)
  Strip the <p> tags from inside the heading elements (#7732)
  Fix the date cell spec failing randomly close to day changes (#7703)
  Change the timeline date color for accessible color contrast against its background (#7750)
  Remove the opacity from process upcoming/past/all filters for accessible contrast (#7749)
  Fix color contrast against the sidebar navigation background (#7748)
  Validate the HTML for the account page (#7747)
  Fix report modal form accessibility (#7746)
  Accessibility fixes for conversations (#7745)
  Add a landmark ARIA role to the cookie banner (#7738)
  Fix HTML validation on standalone content page (#7744)
  Add aria-label to the area filter on participatory space pages (#7743)
  ...
@leio10 leio10 added the type: fix PRs that implement a fix for a bug label Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: elections type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants