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

inbox [nfc]: Cut superfluous StickyHeaderItems on individual conversations #510

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Feb 8, 2024

These were never getting consulted, because these aren't entire items of the enclosing list view; rather the items are the whole sections, i.e. either a whole stream or all DMs. Because they weren't doing anything, they're confusing for understanding how this code works and making changes to it.

I think this happened because in an early draft of #381, the list-view items were individual conversations. That's the arrangement that would be better for performance/smoothness reasons anyway, but it won't work until we make some changes to the sticky_header library; see #389. When we go to do #389, we can always add these StickyHeaderItem widgets back.

…tions

These were never getting consulted, because these aren't entire items
of the enclosing list view; rather the items are the whole sections,
i.e. either a whole stream or all DMs.  Because they weren't doing
anything, they're confusing for understanding how this code works
and making changes to it.

I think this happened because in an early draft of zulip#381, the list-view
items were individual conversations.  That's the arrangement that
would be better for performance/smoothness reasons anyway, but it
won't work until we make some changes to the sticky_header library;
see zulip#389.  When we go to do zulip#389, we can always add these
StickyHeaderItem widgets back.
@gnprice gnprice mentioned this pull request Feb 8, 2024
@chrisbobbe chrisbobbe merged commit ebff35f into zulip:main Feb 12, 2024
1 check passed
@chrisbobbe
Copy link
Collaborator

Ah interesting, thanks for noticing this and cleaning it up! Merged.

@gnprice gnprice deleted the pr-inbox-sticky branch February 12, 2024 19:53
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.

2 participants