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

Use html as scroll container for recent view. #30134

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

Conversation

amanagr
Copy link
Member

@amanagr amanagr commented May 19, 2024

discussion: https://chat.zulip.org/#narrow/stream/9-issues/topic/recent.20conversations.20loses.20filter.20checkboxes

Things I tested:

  • No topics
  • only 1 topic
  • Filters work as expected.
  • Compose reply works
  • Page up / down works
  • focus changes correctly when navigating rows at the edge of visible area.
  • load more works correctly.
  • Recent view -> messages narrow -> recent view correctly preserves row focus
  • Loading to Combined feed -> recent view correctly sets focus to first row.
  • Initial loading indicator when no messages are fetched is displayed correctly.
Screenshot 2024-05-20 at 4 48 14 PM

@amanagr amanagr changed the title [WIP] Use html as scroll container from recent view. [WIP] Use html as scroll container for recent view. May 19, 2024
@zulip zulip deleted a comment from sentry-io bot May 19, 2024
@amanagr amanagr force-pushed the rt_scroll_html branch 2 times, most recently from 42bf7aa to 6de22ad Compare May 20, 2024 11:10
@amanagr amanagr changed the title [WIP] Use html as scroll container for recent view. Use html as scroll container for recent view. May 20, 2024
@alya
Copy link
Contributor

alya commented May 20, 2024

Works for me in light manual testing!

amanagr added a commit to amanagr/zulip that referenced this pull request May 22, 2024
The bug is hard to reproduce, but I was able to reproduce with zulip#30134
and used the same strategy to fix it here.
amanagr added a commit to amanagr/zulip that referenced this pull request May 23, 2024
The bug is hard to reproduce, but I was able to reproduce with zulip#30134
and used the same strategy to fix it here.
timabbott pushed a commit to amanagr/zulip that referenced this pull request May 23, 2024
The bug is hard to reproduce, but I was able to reproduce with zulip#30134
and used the same strategy to fix it here.
timabbott pushed a commit that referenced this pull request May 23, 2024
The bug is hard to reproduce, but I was able to reproduce with #30134
and used the same strategy to fix it here.
@amanagr
Copy link
Member Author

amanagr commented May 30, 2024

Pushed to resolve conflicts.

Since we moved to use standard empty view handlebars everywhere,
this became stale.
Instead of `recent_view_table`, we make `html` as our scroll container.
This fixes an important bug for us where filters sometimes disappear
due to them scrolling under navbar which is unexpected. Since we are
now using separate containers to display rows and
filter (while includes table headers), where filters use sticky
positioning, this bug will be fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants