Skip to content
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/aris/threads post release improvements #5959

Merged

Conversation

ariskotsomitopoulos
Copy link
Contributor

This PR contains some threads improvements. Reference link here

  • Clicking on room search root message summary now navigates user within the thread
  • Enhance thread list filtering (threads that the user is participating) icon
  • Open keyboard when user taps reply in thread
  • Fix thread room display name
  • Other small ui improvements

Light

Before After
Screenshot 2022-05-06 at 11 47 04 Screenshot 2022-05-06 at 11 46 52

Dark

Before After
Screenshot 2022-05-06 at 11 49 53 Screenshot 2022-05-06 at 11 47 29

@ariskotsomitopoulos ariskotsomitopoulos requested review from a team, bmarty and Florian14 and removed request for a team May 6, 2022 09:20
@github-actions
Copy link

github-actions bot commented May 6, 2022

Unit Test Results

122 files  ±0  122 suites  ±0   2m 26s ⏱️ +6s
205 tests ±0  205 ✔️ ±0  0 💤 ±0  0 ±0 
690 runs  ±0  690 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 324856d. ± Comparison against base commit 3674ae7.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@Florian14 Florian14 left a comment

Choose a reason for hiding this comment

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

Code seems good to me, just some small "bugs":

  • if I select "reply in thread" on a message which already has a thread, it will open the thread but the keyboard is not opened
  • I don't have the green dot upon the filter button of the threads list:

image

@ariskotsomitopoulos
Copy link
Contributor Author

ariskotsomitopoulos commented May 9, 2022

@Florian14

  1. If you long press -> and select reply in thread the keyboard should be opened. I have tested it again and it works in both emulator & device. Can you check it again, and if the problem exists maybe tell me what device you use. (if you simply press thread summary instead of long press -> reply in thread keyboard will/should not be opened)

  2. The green dot will appear when you select Filter -> My Threads. The purpose of that dot is to make visible to the user that this option is selected.

@Florian14
Copy link
Contributor

Florian14 commented May 9, 2022

@ariskotsomitopoulos

  1. Did you try on a message which already has a thread? In that case, it only displays the thread timeline without the keyboard. I confirm that I did a long press -> reply in thread on the original message. If I do it on a single message (without an existing thread yet), there is no pb, the keyboard is correctly opened.

  2. I succeed to have the dot on the second device by filtering on "My threads", but not on the first device (the user who had posted the first message and created the thread), I don't understand why.

@ariskotsomitopoulos
Copy link
Contributor Author

ariskotsomitopoulos commented May 9, 2022

@Florian14

Are you sure you have the correct feature version installed?

In my builds everything is working as expected, I cannot replicate it. Check the video below:

Screen_Recording_20220509-184704_Element.dbg_20220509185530.1.mp4

@Florian14
Copy link
Contributor

Florian14 commented May 10, 2022

@ariskotsomitopoulos

I just tested on a fresh install and it worked fine... so it's good for me!

…ovements

# Conflicts:
#	vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt
#	vector/src/main/java/im/vector/app/features/home/room/detail/search/SearchResultController.kt
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks for hte PR.
Only small remarks, nothing blocking for me (static review only)

library/ui-styles/src/main/res/values/colors.xml Outdated Show resolved Hide resolved
@@ -136,4 +136,9 @@
<color name="shield_color_black">#17191C</color>
<color name="shield_color_warning">#FF4B55</color>

<!-- Badge Colors -->
<attr name="vctr_badge_color_border" format="color" />
<color name="vctr_badge_color_border_light">#FFFFFF</color>
Copy link
Member

Choose a reason for hiding this comment

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

Use palette_white instead of hard-coded color?

@@ -2443,7 +2443,7 @@ class TimelineFragment @Inject constructor(

private fun onReplyInThreadClicked(action: EventSharedAction.ReplyInThread) {
if (vectorPreferences.areThreadMessagesEnabled()) {
navigateToThreadTimeline(action.eventId, action.startsThread)
navigateToThreadTimeline(action.eventId, action.startsThread, true)
Copy link
Member

Choose a reason for hiding this comment

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

Add named parameter? Useful when reviewing on GH.

@@ -66,6 +67,7 @@ abstract class SearchResultItem : VectorEpoxyModel<SearchResultItem.Holder>() {
val displayName = it.threadSummarySenderInfo?.displayName
val avatarUrl = it.threadSummarySenderInfo?.avatarUrl
avatarRenderer.render(MatrixItem.UserItem(userId, displayName, avatarUrl), holder.threadSummaryAvatarImageView)
holder.threadSummaryConstraintLayout.onClick(threadSummaryListener)
Copy link
Member

Choose a reason for hiding this comment

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

This is not new, but the id threadSummaryConstraintLayout should be renamed to something more generic like threadSummaryLayout or threadSummaryContainer. Applicable to some other view ids, and not a blocker.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated searchThreadSummaryConstraintLayout to searchThreadSummaryContainer, here might be good to have something generic for future changes. However, sometimes it is useful to have the exact type (ConstraintLayout, TextView, ImageView, etc ) in the id while the developer knows at once the type.

…ovements

# Conflicts:
#	vector/src/main/java/im/vector/app/features/home/room/detail/TimelineFragment.kt
@ariskotsomitopoulos ariskotsomitopoulos merged commit 424fb55 into develop May 17, 2022
@ariskotsomitopoulos ariskotsomitopoulos deleted the feature/aris/threads_post_release_ui_improvements branch May 17, 2022 10:24
@github-actions
Copy link

Matrix SDK

Integration Tests Results:

  • [org.matrix.android.sdk.session]
    = passed=7 failures=13 errors=0 skipped=3
  • [org.matrix.android.sdk.account]
    = passed=1 failures=2 errors=0 skipped=2
  • [org.matrix.android.sdk.internal]
    = passed=88 failures=59 errors=0 skipped=13
  • [org.matrix.android.sdk.ordering]
    = passed=16 failures=0 errors=0 skipped=0
  • [org.matrix.android.sdk.PermalinkParserTest]
    = passed=2 failures=0 errors=0 skipped=0

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.

3 participants