-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
deactivated_user: Show deactivated status for deactivated users. #32732
base: main
Are you sure you want to change the base?
Conversation
Hello @zulip/server-sidebars members, this pull request was labeled with the "area: right-sidebar" label, so you may want to check it out! |
79ceb17
to
c297663
Compare
Hey @alya, could you please provide an initial review pass on the UI changes in this PR? I have a few questions:
Thanks, and I look forward to hearing from you! |
Thanks! Take a closer look at the design in the issue. We don't want to allow transparency behind the icon when super-imposing it on the user's avatar. |
In addition, it shouldn't be sticking out of the overall pill. |
No, why would we do that? |
The color should match the inactive user circle. |
c297663
to
90972e2
Compare
d18b292
to
e175f14
Compare
Hi @alya , I have adressed all the design suggestions you told above which includes:
Please take another look whenever you have time and apologies for my misunderstanding in implementing the design. |
e175f14
to
ea483c9
Compare
ea483c9
to
67f4674
Compare
Hey @alya , I tried to best accompany the placement of circle again. I have updated the screenshots in the PR description. |
I think we also need a more detailed spec on the colors. I'll post on the design thread. |
459ead5
to
94ed973
Compare
Hey @alya , I have updated the same to reflect this. |
It's looking pretty good in the current UI, but we're working on #32616 , so it also needs to work at font sizes ranging from 12px to 20px. It currently looks like this at 20px (which you can configure in personal settings > preferences in dev): If you are stuck on how to fix this, you can post a question in #frontend. |
b65b12b
to
22d5127
Compare
Hi @alya , I have updated the code to reflect the same UI at font sizes ranging from 12px to 20px. |
Cool, the deactivated marker in those screenshots looks good to me. |
@evykassirer would you be up for reviewing this one? |
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.
Overall looks great! Clean and easy to review, and I like the way it looks in the app. I left a few comments -- let me know if you have any questions :)
web/src/presence.ts
Outdated
@@ -60,8 +60,15 @@ export function get_status(user_id: number): PresenceStatus["status"] { | |||
return "offline"; | |||
} | |||
if (presence_info.has(user_id)) { | |||
if (presence_info.get(user_id)!.status === undefined) { | |||
return "offline"; | |||
} |
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.
Are these three lines relevant for adding deactivated users? It doesn't seem like it would change that behavior. Was it an existing bug?
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.
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.
Yeah the first bug was worse because it would show up somewhere (compose box) but didn't in the sidebar.
But the thing you're sharing (not updating live when a user is deactivated) isn't great. This seems fine to fix as a followup, though let's check with @alya in case she wants it as part of this PR.
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 fine by me, @timabbott can review and decide what makes sense.
22d5127
to
08d2b4d
Compare
d8a7113
to
fa5d1fd
Compare
Hi @evykassirer , thanks for the review. |
fa5d1fd
to
0bee188
Compare
Responded to two remaining open threads, but otherwise looks great! Thanks again for working on this :) |
0bee188
to
4ce2f82
Compare
Hi @evykassirer, thanks for the review. I have updated the one open thread and am waiting for @alya's thoughts on the other to determine how to proceed further. |
@timabbott I think this is ready for you to take a look after @evykassirer 's review; let me know if you'd like me to re-test. Nice to have, but not specifically a release goal. |
This pull request introduces the "deactivated" status for users and updates various parts of the codebase to support this new status.
Fixes: #26833 .
Screenshots and screen captures:
Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: