-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Add DM panel to the left side view (rebased #1416) #1532
base: main
Are you sure you want to change the base?
Add DM panel to the left side view (rebased #1416) #1532
Conversation
This commit reworks the stream view section in the left sidebar by replacing it with the new Stream Panel widget. The stream panel consists of the newly added stream messages button (StreamPanelButton), and the existing stream/topic view section. Test added, updated and renamed.
This commit adds a label parameter to the PanelSearchBox to provide context to the user which searching the streams/topics list. Tests updated.
This commit adds an all_streams key to the UnreadCounts dict to store the unread stream messages count. This is subsequently used by the StreamPanelButton in the stream panel. Test case added and tests updated.
This commit adds a list of recent direct messages for the user to the ZT model (recent_dms). It also adds a _sort_recent_dms function to keep the list in sorted order according to the max_message_id of the dm. Fixture added and test updated.
This commit adds an _update_recent_dms method which updates the recent_dms list when a message event is received. It keeps the list in sorted order as well. Tests modified.
This commit reworks the direct messages button by moving it to a different section between the menu and the streams panel. It also adds a direct messages panel which shows all DM recipients.
I don't see why we'd need to retain the feed.
Yep, I agree, that's a required feature.
I am not sure that's intuitive.
Well, re-focusing could help.
By status, do you mean the presence status? Is that not currently in sync? Next Steps:These are just my thoughts and opinions, please share feedback on whether these are good next steps.
Entries picked from the "outstanding aspects" list in the PR description by @neiljp,
Optionally, after discussion:
The empty space in the DM Panel can be dominating, when there aren't enough DMs, as suggested by @neiljp, previously on a call. The Stream Panel being folded to the bottom can be easy to miss until one gets used to the UI. |
What does this PR do, and why?
This is an update on the current work in #1416.
Currently this only includes a few small fixups over #1416, that may be included or not:
>
prefix for the new Stream messages button asSTREAM_MESSAGE_MARKER
The way this is currently structured, this could be merged in two chunks (note that the summary of each chunk is not on a commit-wise basis):
symbols/buttons
commit---Streams---
or---Topics---
titleS
shows the view after the first PR chunk (above), withP
switching to a view with theP
view fully expandedP
view shows conversations with unreads, and user status(group conversations are included, unlike in the user list)
An additional UI 'chunk' could be to do the first bullet of the last chunk distinct from the data and view changes, but this change is currently combined with one of the later commits in the second chunk. That last chunk could also be split into data and UI updates, potentially.
Feedback sought
Manual testing and feedback on:
git rebase -i
and 'edit' on the 'symbols/buttons' commit)main
for you?Outstanding aspect(s)
P
for DM feed functionality is currently removed, even from message context; it would be useful to retain this feature generally? [discuss]P
DM feed button is not usable right now, for simplicityP
changes the left panel view, but doesn't re-focus; that's clearly buggy, but should it do something like that? [discuss]S
now works differently in left panel (new view-change) vs message context (zoom-in); is that OK?t
-> topics -P
-> DMs -S
-> streams)Note that not all of these are necessary for a full merge and could belong in follow-ups, but some relate to what seems like buggy, inconsistent or reduced behavior.
External discussion & connections
Private messages sidepanel #T1416
andDM Side Panel
How did you test this?
Self-review checklist for each commit
Visual changes