-
Notifications
You must be signed in to change notification settings - Fork 68
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
Create comment page refactor #1165
Conversation
Just an FYI, I want to work on a "comment as other user" feature as some point. Let me know if you think I should wait for this PR or go ahead now. |
I think it might be good to hold off on that until this is complete! I'll probably get back on this soon |
Sounds good! |
35e2e56
to
a90f2ff
Compare
…ent actions on search page
@micahmo this should be more or less ready now (with the exception of the standing issues). I've updated the description to provide some more information/context. This is a relatively large change, so up to you if you want to do a code review on this! @machinaeZER0 since I've updated the overall UI/UX, please let me know your thoughts on this! |
Hey all, I'm still reviewing this PR, but I wanted to respond to @machinaeZER0's comments real quick.
Given that the Lemmy UI does not, we probably wouldn't either.
As long as it's obviously a language selector, I'm totally up for UI suggestions. Just keep in mind that this currently matches the Create Post page, so we'd have to change both. Also keep in mind that this page will also eventually have the "comment as other user..." feature, so there will be a chevron to the right of the username (where you circled) indicating you can pick a different user.
I also agree with this! A while back I did back I tried a mockup where the send button integrated with the preview button. I'll have to dig that up. Again, that would be a common change between this and the Create Post page, so probably a different PR as you mentioned. |
Made issue #1309 as a place to discuss the send/post button idea, also :) |
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.
Awesome work, I know this was a huge effort! I did review the code but haven't tested yet (I'm ok with getting this merged in to test).
I've disabled the comment action on the search page, and on the user feed page.
Does this also need to be done for inbox replies and mentions (the latter of which uses a totally different UI, not swipe gestures)?
Thanks for the feedback @machinaeZER0!
As @micahmo mentioned, we're mostly following what Lemmy UI does. I do believe we can make slight improvements to the language selector in future PRs (such as limiting the language options based on what is enabled on the instance/community). Selecting a default language would be difficult because instances/communities can have more than one language. However, if the instance/community only has one language enabled, I can see making that the default!
As @micahmo mentioned, the only issue here is that we'll be implementing ways to choose a different user to post the comment as (in the future). This would likely follow similar UI patterns to how the create post page looks like (with the chevron icon)
I can try to adjust that a bit more - it could be because of the spacing of the title text which causes an optical illusion |
It doesn't apply to the inbox/mentions. The reasoning here is that if you get a reply or a mention, you might already have the general context of what the original discussion was about, unlike the user feed page or the search page. Additionally, sometimes you might want to just quickly reply to a reply/mention to acknowledge that you've seen it! I'm not sure that I've tested all the edge cases everywhere, but I'm hoping that most of it gets caught during testing/nightlies. |
I'll go ahead and merge this in as is, and we'll address any outstanding issues with future PRs! |
@machinaeZER0 does this seem to be a bit better? |
If it's possible to split the difference I might do that, but if that's literally one pixel's worth of difference then the original spacing is probably fine to keep as-is - probably better to not overly pad, anyway :) thank you for mocking it up, either way! |
Pull Request Description
This PR refactors the existing create comment page and attempts to solve the following issues:
onCommentSuccess
. The parent widget can use this callback function to update the state of the parent (e.g., add comment to list, update comment content for edits)PostSubview
widget, so any changes to thePostSubview
will reflect on this page!CommentContent
to display the comment, so any changes there will also reflect on this page!Most of the logic is now in place, and should be more or less functional! Some standing issues to be fixed:
Additional notes:
Issue Being Fixed
Issue Number: #1012, #738
Screenshots / Recordings
Checklist
semanticLabel
s where applicable for accessibility?