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

feat: introducing collapsable rows for dashboards #4806

Merged
merged 22 commits into from
Apr 30, 2024

Conversation

vikrantgupta25
Copy link
Collaborator

@vikrantgupta25 vikrantgupta25 commented Apr 3, 2024

Summary

  • added collapsable rows for dashboards

Related Issues / PR's

Fixes - #3571

Screenshots

Screen.Recording.2024-04-15.at.2.38.21.PM.mov

Affected Areas and Manually Tested Areas

Copy link

github-actions bot commented Apr 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the enhancement New feature or request label Apr 3, 2024
@vikrantgupta25 vikrantgupta25 changed the title feat: dashboard panel grouping initial setup feat: introducing collapsable rows for dashboards Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@vikrantgupta25 vikrantgupta25 force-pushed the panel-grouping branch 2 times, most recently from 9aed0f4 to 9ba0502 Compare April 4, 2024 07:17
Copy link

github-actions bot commented Apr 4, 2024

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@vikrantgupta25 vikrantgupta25 force-pushed the panel-grouping branch 4 times, most recently from d7de3be to 13c9acf Compare April 10, 2024 06:56
@vikrantgupta25 vikrantgupta25 marked this pull request as ready for review April 10, 2024 08:17
@srikanthccv srikanthccv self-assigned this Apr 10, 2024
@srikanthccv
Copy link
Member

@vikrantgupta25
Copy link
Collaborator Author

@srikanthccv thanks for the feedback, will check why the rearrangement is happening. For the delete and the rearrange thing we have two conscious decisions:-

  1. We do not allow for re-arrangement of rows in a non-collapsed state as it contains the widgets tied to the row and we cannot move all of them together with the row so only a collapsed row can be moved.
  2. We do not allow deletion in the case of a collapsed state as it causes two scenarios whether we delete the panels inside the row as well or we just delete the row. So to avoid this we just delete the row when the row is not collapsed and user is aware of what panels are inside the row and they will maintain their positions. Else we would cause a massive layout shift when the user deletes just the row in collapsed state and out of sudden a lot of panels will appear out.

@srikanthccv
Copy link
Member

We do not allow for re-arrangement of rows in a non-collapsed state as it contains the widgets tied to the row and we cannot move all of them together with the row so only a collapsed row can be moved.

This makes sense

We do not allow deletion in the case of a collapsed state as it causes two scenarios whether we delete the panels inside the row as well or we just delete the row. So to avoid this we just delete the row when the row is not collapsed and user is aware of what panels are inside the row and they will maintain their positions. Else we would cause a massive layout shift when the user deletes just the row in collapsed state and out of sudden a lot of panels will appear out.

You could ask me(the user) whether to delete the row & panels or just delete the row in the confirmation step.

@vikrantgupta25
Copy link
Collaborator Author

vikrantgupta25 commented Apr 11, 2024

You could ask me(the user) whether to delete the row & panels or just delete the row in the confirmation step.

This would be covered in phase2 of changes, had this in roadmap :)

@srikanthccv
Copy link
Member

Ok, thanks for letting me know. It's fine as long as we plan to do it.

SagarRajput-7
SagarRajput-7 previously approved these changes Apr 29, 2024
Copy link
Member

@srikanthccv srikanthccv left a comment

Choose a reason for hiding this comment

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

LGTM. Please work with Prashant to plan for the rollout. We should make sure when this out the migration is also run.

@vikrantgupta25 vikrantgupta25 merged commit 191d9b0 into develop Apr 30, 2024
11 of 12 checks passed
@vikrantgupta25 vikrantgupta25 deleted the panel-grouping branch April 30, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants