-
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
Feature
: Save messages for later
#259
Feature
: Save messages for later
#259
Conversation
…returned by getSavedPosts API
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.
Looks really nice and works as expected.
Regarding the flickering of the PostActionBar: I also noticed that after the reload the isSaved Button is sometimes not correctly updated, but I wa not able to constantly reproduce this.
I also noticed some padding issues, see below:
...de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/SavedPostsScreen.kt
Outdated
Show resolved
Hide resolved
...de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/SavedPostsScreen.kt
Outdated
Show resolved
Hide resolved
...de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/SavedPostsScreen.kt
Show resolved
Hide resolved
I added the paddings as requested. While debugging the padding I found that there are some issues with the padding propagated by the CourseScreenUI, but I will create a follow up PR about this, this PR is already way to huge :D Regarding the inconsistent icon in the PostActionBar I was not able to reproduce it. In case you find out how, let me know :) |
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.
Looking really nice! One point for discussion: what do you think about placing the button in 'In Progress' inside the text area (I dont know if its possible though😅), aligned to the right, or using icon buttons like on the web? Just a thought to improve UI but not a must 😅
It is somehow possible, we can not directly put the button inside the textarea, but next to or below it. That's what it would look like with the button inside the card: Let me know what you think @eylulnc :D |
I really like the new one, I think it looks more appealing 😊 |
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.
Code lgtm now,
I agree with @eylulnc. The new design with the button inside the list item looks better.
I also tested the changes once again in detail and couldn't find any issues. This branch can be merged imo.
…ion/save-messages-for-later # Conflicts: # app/src/main/java/de/tum/informatics/www1/artemis/native_app/android/db/AppDatabase.kt # feature/core-modules-test/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/coremodulestest/AppModuleTest.kt # feature/course-view/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/courseview/ui/course_overview/CourseUiScreen.kt # feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/BaseChatUITest.kt # feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/ConversationProfilePictureUiTest.kt # feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/post/ConversationBottomSheetUiTest.kt # feature/metis/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/ConversationConfiguration.kt # feature/metis/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/ui/SinglePageConversationBody.kt # feature/metis/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/communication_moduleTest.kt
…ater # Conflicts: # core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/Spacings.kt # feature/metis/conversation/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/ui/post/PostItem.kt # feature/metis/conversation/src/test/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/conversation/BaseChatUITest.kt # feature/metis/manage-conversations/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/metis/manageconversations/ui/conversation/create_personal_conversation/PotentialRecipientsUi.kt
Problem Description
The Android app did not yet support the "Saved Messages" feature recently introduced in the webapp. This PR introduces the related use cases.
Changes
SavedPostService
BasePost
with newSavedPost
SavedPostsScreen
for displaying the list of saved postsMetisModificationTaskHandler
for sharing MetisModification functionalityPostItem
to be re-used bySavedPostItem
Steps for testing
isSaved
via the ActionTabBarScreenshots
20250110-1626-45.7874155.mp4
Known Issues
Bugfix
: Chats not loading on tablet layout #280isSaved
state in the ThreadUi via the ActionTabBar, the action icons flicker -> Reload leads to flickering in UI #268Further Input needed : Sometimes I could observe that when navigating to a post via the SavedPostScreen that the thread failed to load. Even after multiple retries the thread only very shortly showed up but then disappeared again. I could not consistently reproduce this issue, so if you find a scenario where this occurs regularly, please let me know