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

fix: permissions sidebar margins and cleanup sidebar stuff a bit #3421

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

bassgeta
Copy link
Contributor

Description

The entire solution was that the UserPopover was wrapped in a div and that increased the height.
But as I was perusing the code I saw a lot of remnants regarding fetching the action in the form, since we used to reuse the form for that, and I cleaned some of it up.
The ActionSidebarContent never rendered if transactionId was defined, since we showed a loader or the CompletedAction component.

Figma link
image

Testing

  1. Create an action using Permissions and assure that the margins and alignment now matches Figma
  2. Verify that creating an advanced payment with Staking as the decision method still works correctly (so that the first modal with the amount and fees opens)
  3. If you think of any case you can try that one too

Diffs

Changes 🏗

  • Fixed permissions sidebar padding
  • PermissionsSidebar now receives the actions as a property since it doesn't ever refetch/poll it

Deletions ⚰️

  • ActionSidebarContent doesn't use isMotion and transactionId anymore, also removed the rendering of the sidebar

Resolves #2959

@bassgeta bassgeta self-assigned this Oct 22, 2024
@bassgeta bassgeta requested review from a team as code owners October 22, 2024 08:37
rdig
rdig previously approved these changes Oct 22, 2024
Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

As far as I can test, all good here. Nicely done!

Screenshot from 2024-10-22 16-08-52
Screenshot from 2024-10-22 16-09-13
Screenshot from 2024-10-22 16-13-54
Screenshot from 2024-10-22 16-14-48
Screenshot from 2024-10-22 16-15-39
Screenshot from 2024-10-22 16-15-52
Screenshot from 2024-10-22 16-16-16

iamsamgibbs
iamsamgibbs previously approved these changes Oct 24, 2024
Copy link
Contributor

@iamsamgibbs iamsamgibbs left a comment

Choose a reason for hiding this comment

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

Nice job tidying this all up. Matches figma perfectly.

Screenshot 2024-10-24 at 10 18 04 Screenshot 2024-10-24 at 10 20 35 Screenshot 2024-10-24 at 10 18 16 Screenshot 2024-10-24 at 10 20 20

@mmioana mmioana self-requested a review October 24, 2024 09:24
mmioana
mmioana previously approved these changes Oct 24, 2024
Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Awesome work on this one @bassgeta 🎉

All good from my side regarding your fixes

Screenshot 2024-10-24 at 11 34 20

Screenshot 2024-10-24 at 11 35 43
Screenshot 2024-10-24 at 11 36 08
Screenshot 2024-10-24 at 11 36 19
Screenshot 2024-10-24 at 11 36 24
Screenshot 2024-10-24 at 11 36 37
Screenshot 2024-10-24 at 11 36 53
Screenshot 2024-10-24 at 11 37 03

@bassgeta unrelated to your changes I noticed the user pill jumping when opening the popover, not sure whether it is worth tackling here or we already have an issue for this

Screen.Recording.2024-10-24.at.11.35.10.mov

@bassgeta bassgeta dismissed stale reviews from mmioana, iamsamgibbs, and rdig via c6aead3 October 24, 2024 11:06
@bassgeta bassgeta force-pushed the fix/2959-permission-widget-ui branch from 594296e to c6aead3 Compare October 24, 2024 11:06
rdig
rdig previously approved these changes Oct 25, 2024
Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

Re-approving

mmioana
mmioana previously approved these changes Oct 25, 2024
Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Awesome work @bassgeta 🎉

Screenshot 2024-10-25 at 10 45 00

Clicking on the user pill no longer makes the row to jump

Screen.Recording.2024-10-25.at.10.45.16.mov

Advanced payment with Staking
Screenshot 2024-10-25 at 10 45 48
Screenshot 2024-10-25 at 10 46 14
Screenshot 2024-10-25 at 10 46 25

All good to merge 👍

@iamsamgibbs
Copy link
Contributor

Looks like there is a merge conflict after the notifications merge, happy to re-review once it is rebased!

@bassgeta bassgeta dismissed stale reviews from mmioana and rdig via 206a05e October 25, 2024 09:27
@bassgeta bassgeta force-pushed the fix/2959-permission-widget-ui branch from c6aead3 to 206a05e Compare October 25, 2024 09:27
Copy link
Contributor

@iamsamgibbs iamsamgibbs left a comment

Choose a reason for hiding this comment

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

Still looks great after the rebase

Screenshot 2024-10-25 at 11 55 54 Screenshot 2024-10-25 at 11 55 59

@bassgeta bassgeta requested review from rdig and mmioana October 25, 2024 12:06
Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

re-approving

Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Awesome @bassgeta! Let's merge this one 🚀

Screenshot 2024-10-28 at 12 18 48

@bassgeta bassgeta merged commit 169ad6b into master Oct 28, 2024
4 of 6 checks passed
@bassgeta bassgeta deleted the fix/2959-permission-widget-ui branch October 28, 2024 11:22
mmioana added a commit that referenced this pull request Oct 29, 2024
Fix: Realign master with changes from #3421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission motion widget UI
4 participants