-
Notifications
You must be signed in to change notification settings - Fork 262
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
Message List from Same User is now Distinguishable via Surface Tint on Long Press #1152
base: main
Are you sure you want to change the base?
Message List from Same User is now Distinguishable via Surface Tint on Long Press #1152
Conversation
Please post screenshots of your changes in the PR description, as videos are hard to review. |
Alya means before/after screenshots of the app's UI. We can read your code easily without screenshots :) |
Also I see there's a failing check; please run tests locally ( |
Are those before/after scheenshots the same? The point is to show the differences from your PR's changes. |
@alya, |
Oh, I see it now. Is it happening in the dark theme screenshot? I don't see a difference, so if the effect is there, it's too subtle. |
It's also best to take screenshots that are identical other than the change your PR makes, to make them easy to compare. |
@alya |
Sure, please be mindful to review your own work carefully next time. Posting screenshots is one of the things that should help you identify any problems yourself, before asking someone else to take a look. |
Here, is the updated PR. Requirements according to Figma FileBefore and After Screenshots
Both |
Hi @Gaurav-Kushwaha-1225! Thanks for the updates. For the PR to be reviewable, we need tests for this: https://github.com/zulip/zulip-flutter?tab=readme-ov-file#submitting-a-pull-request Please also pay attention to the point on commit style guide from that link, and organize the commit history coherently. |
I see you're adding merge commits; Zulip doesn't use those. |
Hi @PIG208, I have added the necessary tests for these changes in |
Looks like this update still hasn't addressed my previous comment on the commit style:
As Chris said, we don't use merge commits. Could you please also review the commit style guide linked in our README? |
1b7e27d
to
4d26607
Compare
I’ve updated the commits, improving the commit style and making other enhancements. Please let me know if any further changes are required. |
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.
Thanks! Comments below. Please also squash these two commits into one, so the tests land in the same commit as the code they're testing.
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.
In addition to Chris's comments above, one other high-level comment. (I've only done an initial skim of this PR, since it's still in maintainer review.)
Done. @Gaurav-Kushwaha-1225 As the first step when you start work on your next revision, be sure to pull down the updated version of this branch — use |
30f20c6
to
a0aba57
Compare
Hi @chrisbobbe, I have updated the commits as per your request.
video_2025-01-21_19-39-25.mp4 |
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.
Thanks! Small comments below.
a0aba57
to
79b68c1
Compare
Hi @chrisbobbe, Please have a look at it and let me know if anything else is required. |
Hi @chrisbobbe, Please take a review and let me know if something else is required. |
Thanks @Gaurav-Kushwaha-1225 and @chrisbobbe for your work on this so far! The issue this addresses is an M6 Post-launch issue, and we're now focusing more strictly on launch issues until the launch is ready. But given that a substantial amount of review work has gone into this and it seems like it's relatively close to reaching a state we're able to merge, this can be one of the exceptions that we continue work on nonetheless. |
Hi @Gaurav-Kushwaha-1225, GitHub is saying there are some merge conflicts; would you resolve those please? |
d4981ee
to
bd7396b
Compare
I've updated the commits, and there are no more merge conflicts. However, the current failing CI checks are due to a separate issue in This CI failure is android specific, we can ignore the |
Thanks! Ah, but I see now there are some new merge conflicts; would you resolve those please? |
We'll soon use this for modal bottom sheets too, aka action sheets. Arguably that could mean it belongs in some other file, not specific to dialogs nor bottom sheets. But there isn't an obvious other file for it, and I think this is as good a home as any.
It allows to see a tint color on the message when it is pressed. Moved `MessageWithPossibleSender` to `StatefulWidget` and used `ModalStatus` return type of `showMessageActionSheet` to check whether BottomSheet is open or not. Added `pressedTint` to `DesignVariables` for using it in `MessageWithPossibleSender`. Added tests too in `message_list_test.dart`. Fixes: zulip#1142
bd7396b
to
92274ad
Compare
I've rebased the commits, and there are no more merge conflicts. |
Changes Made
This issue resolved by:
MessageWithPossibleSender
with aContainer
isMessageActionSheetOpen
istrue
show the surface tint, else remainColors.transparent
.For this,
MessageWithPossibleSender
fromStatelessWidget
toStatefulWidget
.VoidCallback? onDismiss
method in parameters ofshowMessageActionSheet
or BottomSheet for updating the Surface Tint of message.Fixes #1142
Screenshots
video_2024-12-13_13-16-02.mp4
video_2024-12-13_13-16-08.mp4