-
Notifications
You must be signed in to change notification settings - Fork 398
Issue 1320 #2076
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
base: main
Are you sure you want to change the base?
Issue 1320 #2076
Conversation
|
@Mannatgupta666, refer https://zulip.readthedocs.io/en/latest/contributing/contributing.html |
|
Hi, thanks for the feedback. I’ve gone through the contributing guide and fixed the issues you pointed out. I’ve removed the unintended formatting changes and reverted the (you) label from the message list so that all widget tests pass now. I’ve also removed the unnecessary files from the PR and re-ran CI locally to ensure everything is passing. Please let me know if there’s anything else I should adjust. Thanks for the review! |
|
What does the contributing guide say about commits and commit messages? |
991e460 to
b09a4fc
Compare
|
Thanks for pointing that out! This is my first PR, and I missed the commit guide earlier. I’ve cleaned up my commits using git rebase -i so each is clear and coherent, and pushed an updated history. Commits should be minimal, self-contained, have clear messages, and pass tests (so any test updates needed by a change should be in the same commit as the original change). CI is currently reporting analyzer warnings in lib/api/model/submessage.dart, which I didn’t modify in this PR. Could you please advise if this is a known issue on main, or how you’d like me to proceed in order to resolve the CL? |
b09a4fc to
c0779a7
Compare
|
The analyzer issue should be resolved by rebasing, now that #2091 is merged. Before we can review this PR in detail, you will need to write tests for it:
I also see the formatting of the code is fairly messy. Please edit so that the new code matches the format of the existing code around it. |
|
Thanks for the detailed feedback. I’m working on the tests and code formatting now and will update the PR shortly. |
7eb9ef3 to
3089187
Compare
|
I’ve added the tests and fixed the formatting. The PR is ready for review whenever convenient. |
gnprice
left a comment
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. This is still very messy, though, for example in the code highlighted below. That makes the code difficult to read.
Please look closely at where existing code does and doesn't use spaces to separate things, and at how it uses indentation, and then go carefully through your code and edit it to match.
lib/widgets/new_dm_sheet.dart
Outdated
| TextSpan(text: store.userDisplayName(userId), children: [ | ||
| TextSpan(text: store.userDisplayName(userId),children: [ | ||
| if (userId == selfUserId)WidgetSpan ( | ||
| alignment: PlaceholderAlignment.middle, | ||
| child:ExcludeSemantics(child: Text(' (you)', | ||
| style: TextStyle( | ||
| color: labelColor.withValues(alpha: 0.6))))), |
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.
.
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.
Fixed the spacing and indentation. Please let me know if it looks better now or if there’s anything else I should adjust.
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.
That's improved. There's still ",children" missing a space, and the argument to Text needs indentation.
There's also the changes in the rest of the PR. This particular diff hunk was an example (and is the part you've edited in the current revision), but there are similar issues elsewhere.
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.
Fixed! Please check once.
a832956 to
b090754
Compare
add '(you)' label for self-1:1 conversations Add test for 'you' label in recent DMs tests Add test for 'you' label in recent DMs tests
b090754 to
2ee8657
Compare
Wrap in WidgetSpan with ExcludeSemantics so screen readers ignore it.
2ee8657 to
14c18cc
Compare
|
This revision fixed about half of the remaining spacing problems. You need to do this:
Read through your entire PR that way, line by line. It's not a good use of maintainers' time to review your work before you've carefully reviewed it yourself. Meanwhile, zooming out: this doesn't handle all the changes requested in the issue. It also uses the old |
Label current user as username"(you)" across DM-related views.
Here are screenshots showing the changes:

