Skip to content

Conversation

@olorin99
Copy link
Contributor

@olorin99 olorin99 commented Apr 7, 2025

Move overflow menu into bottom modal sheet.
Also added notification controls and voting controls with separate upvotes/downvote counts to top of new modal menu.
Closes #140.

Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Thank you, this looks great! Just two things I've noticed:

  • Clicking on the various actions (e.g., upvoting, bookmarking, etc.) does not update the UI in the popup modal (upvoting does not change the number or arrow color). There are two ways to solve this: either update the state, or close the popup when an action is performed. Closing the popup once an action is performed would match it up with the way it worked previously, so that might be the best way to go.
  • Again, I know this means more work, but could you update ContentItemCompactPost, as that's where this sort of popup would really be helpful (as there are no other controls).

olorin99 added 2 commits April 8, 2025 10:23
Move post item inkwell into post item widget.
Add longpress call back to post item widget which shows the content menu.
@olorin99
Copy link
Contributor Author

olorin99 commented Apr 8, 2025

Since they share a lot of functionality I moved the compact content item into a function in the full content item and which widget structure is returned in build is chosen based on isCompact. This should be easier to keep action callbacks consistent between them with just the ui changing.

Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Combining the two content item's into the same class is a good call. I just have three last things:

  • Now that you can long tap over the post to pop up the menu, can you make it so right clicking does the same (long tap and right click are paired in several other places as well)?
  • Opening the full post view still has the ink well there, even though tapping on it doesn't do anything. So, probably make the long tap (and right click) only work if the post is in the feed (not full screen).
  • The ban user dialog no longer works, due to Navigator.pop being used immediately after and closing the dialog. Moving pop to before running the ban action should fix it.

Disable longpress/rightclick post item when not on feed screen.
Pop the content menu before moderateBan callback.
@olorin99 olorin99 requested a review from jwr1 April 8, 2025 02:43
Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jwr1 jwr1 merged commit 51163b6 into main Apr 8, 2025
2 checks passed
@jwr1 jwr1 deleted the content_menu branch April 8, 2025 02:53
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.

Notification controls for PieFed comments take up too much space

3 participants