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

user [nfc]: Clean up naming and organization of new-PM screens #5540

Merged
merged 4 commits into from
Nov 10, 2022

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Nov 7, 2022

Inspired by #5506 (comment) .


user [nfc]: Inline "card" into trivial "screen" wrapper UsersScreen

user [nfc]: Rename NewGroupPmScreen from CreateGroupScreen

The old name was highly misleading about what this does.

Not to mention the directory it was in -- Zulip user groups are
completely unrelated to group-PM threads, which is what this screen
is actually about.

user [nfc]: Rename New1to1PmScreen from UsersScreen

There are lots of screens in the app that show users, or even
all users. This screen in reality has a very specific role.
Name it accordingly.

Also move it next to the parallel NewGroupPmScreen component.

user [nfc]: Have UserList get presence data, not callers

The old name was highly misleading about what this does.

Not to mention the directory it was in -- Zulip user groups are
completely unrelated to group-PM threads, which is what this screen
is actually about.
There are lots of screens in the app that show users, or even
all users.  This screen in reality has a very specific role.
Name it accordingly.

Also move it next to the parallel NewGroupPmScreen component.
@chrisbobbe chrisbobbe merged commit b8e24c1 into zulip:main Nov 10, 2022
@chrisbobbe
Copy link
Contributor

Thanks, LGTM! Merged.

@gnprice gnprice deleted the pr-new-pm-screens-cleanup branch November 10, 2022 04:13
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.

None yet

2 participants