-
Notifications
You must be signed in to change notification settings - Fork 1
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
Improvement
: Redesign & restructure chat textfield
#320
Improvement
: Redesign & restructure chat textfield
#320
Conversation
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.
Omg, I can't tell you how much of an improvement this change is 😍 It's looking sooo much better now, thank you for addressing this!
On the functional side everything works as expected, I just have some minor points of discussion:
- In dark mode, the contrast for the Upload button in the unfocussedReplyField (with the + sign) is quite low, can we change this? (see screenshot)
- Very minor: when clicking the Upload button (+ sign), the DropdownMenu is a little bit too far to the top of the button imo. (see screenshot)
The code comments are mostly just opportunities for refactorings btw :D
...informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/MarkdownTextField.kt
Show resolved
Hide resolved
...informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/MarkdownTextField.kt
Outdated
Show resolved
Hide resolved
...informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/MarkdownTextField.kt
Outdated
Show resolved
Hide resolved
...informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/MarkdownTextField.kt
Outdated
Show resolved
Hide resolved
...informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/MarkdownTextField.kt
Outdated
Show resolved
Hide resolved
...um/informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/ReplyTextField.kt
Outdated
Show resolved
Hide resolved
...um/informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/ReplyTextField.kt
Outdated
Show resolved
Hide resolved
...um/informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/ReplyTextField.kt
Outdated
Show resolved
Hide resolved
...um/informatics/www1/artemis/native_app/feature/metis/conversation/ui/reply/ReplyTextField.kt
Outdated
Show resolved
Hide resolved
...in/de/tum/informatics/www1/artemis/native_app/feature/metis/ui/SinglePageConversationBody.kt
Show resolved
Hide resolved
Regarding the ProfilePictures not displaying in the Autocompletion hint dialog, I also just had a quick look, but it's very mysterious that it does not work. I think we should create a followup for this then 🤔 |
Thanks a lot for the great feedback :) I implemented the requested changes. I tried various approaches to reduce the space between the dropdown menu and the button you mentioned in your 2. point, however I did not find a working solution. I think creating a follow up to show ProfilePictures in the AutocompletionPopup for users is a really good idea. I couldn't find a working solution yet, either. |
Okay, I think its fine, not a major issue :)
Sounds and looks awesome 👍 |
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.
Thank you for incorporating my change requests, the code looks very readable now :D
Regarding the two remaining open conversations, I found a solution after some debugging:
- Remove
.consumeWindowInsets(WindowInsets.systemBars)
fromSinglePageConversationBody
- Remove
navigationBarsPadding()
fromConversationThreadScreen:88
andConversationChatListScreen:131
- Replace
padding(bottom = WindowInsets.systemBars.asPaddingValues().calculateBottomPadding())
withnavigationBarsPadding()
inReplyTextField
. This did previously not work as expected because of the misused.consumeWindowInsets(WindowInsets.systemBars)
call further up the UI tree
With these changes the padding of the ReplyTextField should work properly :D
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.
This is looking really good and modern!
I have one point about the formating features:
Listing is not working properly when we go back and continue to add items.
Screen.Recording.2025-01-25.at.12.47.17.mov
Okay thats weird. Then let's merge this PR with these paddings, and I will try to have deeper look into it next week |
I just observed this behavior on |
Really interesting, when I compare it with a different branch I did not see a problem, but sure we can check it out later. |
Check this issue I just created. |
Can confirm that this issue also happens on |
Problem Description
The Textfield used to create messages in the chat is currently not quite structured and looks rather outdated. Over time more and more buttons have been placed onto the textfield, which now makes it look quite overwhelming to the users. Formatting options placed below the OutlinedTextfield are not intuitive and inconsistent.
Changes
This PR applies the following changes to both, the UnfocusedPreviewReplyTextField and the CreateReplyUi:
Steps for testing
Screenshots