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

Add DM panel to the left side view (rebased #1416) #1532

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Jul 11, 2024

  1. buttons/views: Replace stream view with stream panel on left sidebar.

    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.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    88487e6 View commit details
    Browse the repository at this point in the history
  2. boxes/views: Add context label parameter to PanelSearchBox.

    This commit adds a label parameter to the PanelSearchBox to provide
    context to the user which searching the streams/topics list.
    
    Tests updated.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2c846b6 View commit details
    Browse the repository at this point in the history
  3. helper/views: Add all_streams unread count to the UnreadCounts dict.

    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.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    afd829c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    781962f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a2451af View commit details
    Browse the repository at this point in the history
  6. model: Fetch recent direct messages from the Zulip API.

    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.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    367b6a8 View commit details
    Browse the repository at this point in the history
  7. model: Update recent_dms while handling a message_event.

    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.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    9270537 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    23f28ad View commit details
    Browse the repository at this point in the history
  9. views: Rework direct messages UI.

    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.
    theViz343 authored and neiljp committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    88ff377 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3298cb6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    518e8d2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9167fb3 View commit details
    Browse the repository at this point in the history