-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Issue/21180-fixed incorrect working state of 'Three-dots' icon #21352
Conversation
fix some problems
delete empty line
delete something wrong
delete something useless
delete empty line
delete empty lines
@Agoni-0 This is really nice work but I'm wondering if there's a better solution than changing the More menu to an undo icon? I'm thinking instead we should change the "Block this blog" menu item to "Unblock this blog." |
The current solution is not a perfect solution. However, I think that change the "Block this blog" menu item to "Unblock this blog" is not a good idea. Because if the blog is blocked, I believe the menu items like "Report this post", "Report this user", "Block this user" and "Subscribe" are unnecessary. And the menu items like "Reading References", "Visit site" and "Share" can be find in the top toolbar. |
How about just change the 'undo' icon to a new icon which means 'unblock the blog'? |
To me changing the More icon to something else just seems odd, and it's nothing we do elsewhere in the app (we don't even do it for the "Block user" feature on that same screen). I could imagine scenarios where the user blocks the blog and then wants to report it, but my guess is that's an edge case. I would think a better solution would be to either hide or disable the More menu. |
I want to use a icon like this. Although it looks a little odd. hhh SVID_20241025_215533_1.mp4I think the undo button is necessary because the dialog to undo the blocking action only lasts a short time. Maybe I can just make the menu items unable to use while blocking the post. Either hiding or disable the More menu is also a good idea. I want to know what you think is the best. |
I think hiding it would be better, but either is fine. |
I finished the hiding change. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Agoni-0 Thanks for working on this!
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Fixes #
Description:
This PR is related to issue#21180.
This issue shows a problem that
After blocking the blog, clicking the 'Three-dot' icon has a click effect but does not open the menu
.1.mp4
The issue also mentioned that the spacing between
Reading References
button and other buttons is incorrect.Solution:
Three-dots
iconIn my opinion, after blocking the current blog, the icon is supposed not to work as it used to. I think it is either disabled or change to another icon, which used to undo the blocking action. That's because if the blog is blocked, the buttons in the drop-down menu are not suitable.
I choose to change the icon to
undo
when current blog is blocked. If the display time of the undo pop-up is exceeded, there will be no way to undo the blocking action, which I think is inconvenient. Maybe I eventually fall in love with a blog despite I block it at first.And my modification works well.
2.mp4
I found that the reason of
Clicking the 'Three-dot' icon after blocking a blog does not open the menu, despite the click effect
is that the result of functionfindPost
isnull
.I created a state variable in
ReaderPostDetailViewModel
and an observer inReaderPostDetailFragment
. I created a function in the file that makes it possible to modify the value of_postBlocked
in the file. This will update_postBlocked
when theBlock the blog
button is clicked, triggering changes in the UI interface. Also, I created variablessource
andblockedBlogResult
to undo the blocking action.To Test:
Regression Notes
I made some changes to the program to ensure testing successfully. It leads to a bad result that even if the blocking action is revoked, the current blog will still disappear after exiting current blog. I have no way to test this. So, I want to know if this is caused by my changes to ensure testing successfully.
What I did to test those areas of impact (or what existing automated tests I relied on)
None.
What automated tests I added (or what prevented me from doing so)
PR Submission Checklist:
RELEASE-NOTES.txt
if necessary.Testing Checklist (strike-out the not-applying and unnecessary ones):