Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement nested assemblies navigation #13662

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open

Conversation

mllocs
Copy link
Contributor

@mllocs mllocs commented Nov 14, 2024

🎩 What? Why?

Improve navigation through nested assemblies by implementing an accordion list UI.

📌 Related Issues

Resolves #13618

Testing

Navigating through the Admin Assemblies list: https://decidim-lot2.populate.tools/admin/assemblies

📷 Screenshots

Screenshot 2024-11-15 at 10 41 57 Screenshot 2024-11-15 at 10 41 11

♥️ Thank you!

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

@mllocs mllocs self-assigned this Nov 14, 2024
@mllocs mllocs added type: feature PRs or issues that implement a new feature contract: 2024-developments Barcelona City Council contract labels Nov 14, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 14, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 15, 2024
@furilo
Copy link

furilo commented Nov 15, 2024

I think all the ACs are met. Passing the review to @decidim/product

furilo
furilo previously approved these changes Nov 15, 2024
@furilo
Copy link

furilo commented Nov 15, 2024

@NilHomedes when you are defining the parent in an assembly, you are shown this:

12788

Maybe we want to replicate the hierarchy in the select, adding --

ie.

15512

@andreslucena
Copy link
Member

Can you fix the git conflicts 🙏🏽 ?

@NilHomedes this is on your plate, right?

github-actions[bot]
github-actions bot previously approved these changes Nov 21, 2024
Copy link
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.

Thanks @mllocs
Awesome nesting! 🪺

Here is my review:

  • As an admin, when I duplicate a child assembly, it is being promoted to the first level. 
My expected behaviour would be that it is copied at the same level.
    
So, once I duplicate a child assembly (i.e. level 2), I should see the nested assemblies until level 2 expanded.
 Then I can easily see the assembly I just copied.

  • In that sense. We have seen that the behavior of creating a new assembly should be retrieved:

    1/ Create new assembly
    
2/ Being redirect to the list of assemblies with the assembly you have created visible

    
3/ if it’s a child assembly, I should see the nested assemblies until the new assembly level expanded


  • When duplicating assemblies, we are showing as a heading the breadcrumb of nested assemblies. This should be shown as normal text. 

    Screenshot 2024-11-20 at 12-45-28 Assemblies - Admin - Test Site for Lot2

  • As an assembly admin of Level 2 Assembly, I also have permissions in the Level 3 (and even I can duplicate Level 4). What’s the logic behind this? I’m not sure what has been the behaviour since now. From my point of view, if I’m an admin of the Level 2 Assembly, I should have permissions on all their child assemblies.
    Screenshot 2024-11-20 at 12-52-18 Assemblies - Admin - Test Site for Lot2

  • As an admin, when I expand and, after, collapse again a child assembly, then the other first level assemblies disappear from the table. This is happening from a certain level of depth. See video: https://www.awesomescreenshot.com/video/33811933?key=0208c4f431910ee0ab1b5f50ed1e3ff9

  • In the admin panel>Visibility when chosing the parent space I am not seeing the hierachy levels. We shoould do something similar to what we are doing with taxonomies selector.

Captura de pantalla 2024-11-21 a les 16 16 45

Taxonomies:

Pasted Graphic 1

@furilo
Copy link

furilo commented Nov 25, 2024

Hi @NilHomedes - We have been reviewing with @mllocs and some things seem to be new ACs, that need considerable effort (they are not just fixes), so maybe they need new issues that are sized and planned, because if not we are accumulating extra work and delays (this adds up to the BCN new issues that have been tackled that were out of the sprints, and extra/unexpected things in the Ephemeral development).

These are what we see as new ACs and that are not quick to fix:

As an admin, when I duplicate a child assembly, it is being promoted to the first level. 
My expected behaviour would be that it is copied at the same level. So, once I duplicate a child assembly (i.e. level 2), I should see the nested assemblies until level 2 expanded.
 Then I can easily see the assembly I just copied.

As an assembly admin of Level 2 Assembly, I also have permissions in the Level 3 (and even I can duplicate Level 4). What’s the logic behind this? I’m not sure what has been the behaviour since now.

@mllocs will work on the rest of the things for the time being.

github-actions[bot]
github-actions bot previously approved these changes Nov 26, 2024
@mllocs
Copy link
Contributor Author

mllocs commented Nov 26, 2024

@NilHomedes I fixed two issues, already deployed in staging:

  • Parent assembly selector includes hierarchy
  • Weird issue collapsing a child assembly removes first level assemblies

A part from the issues @furilo mentioned, for example, I think the first and the third issues are not directly related to this issue and could be tackled as bug fixes or improvements later.

github-actions[bot]
github-actions bot previously approved these changes Nov 27, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 27, 2024
@NilHomedes
Copy link
Member

Hi @mllocs and @furilo

Okey, let's get rid of this two new ACs for the moment.

As an admin, when I duplicate a child assembly, it is being promoted to the first level. 
My expected behaviour would be that it is copied at the same level. So, once I duplicate a child assembly (i.e. level 2), I should see the nested assemblies until level 2 expanded.
 Then I can easily see the assembly I just copied.

As an assembly admin of Level 2 Assembly, I also have permissions in the Level 3 (and even I can duplicate Level 4). What’s the logic behind this? I’m not sure what has been the behaviour since now.

We will tackle them in the future.

NilHomedes
NilHomedes previously approved these changes Nov 28, 2024
Copy link
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.

@mllocs great job!
Now everything working as expected! 🚀

Copy link
Contributor

@entantoencuanto entantoencuanto left a comment

Choose a reason for hiding this comment

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

Excellent! Only 2 small things:

  • The redirection when an assembly is duplicated includes a parent_id parameter and it seems to break the indentation between root level and nested assemblies
  • Add some system tests to check the navigation

@mllocs
Copy link
Contributor Author

mllocs commented Nov 29, 2024

Excellent! Only 2 small things:

  • The redirection when an assembly is duplicated includes a parent_id parameter and it seems to break the indentation between root level and nested assemblies
  • Add some system tests to check the navigation

Fixed, thanks!

Moving this to maintainers review cc @andreslucena @alecslupu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contract: 2024-developments Barcelona City Council contract type: feature PRs or issues that implement a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nesting child assemblies in admin panel
5 participants