Skip to content

[OGUI-1924] Fix incorrectly called disableAutoScroll - #3636

Open
isaachilly wants to merge 25 commits into
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttonsfrom
bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll
Open

isaachilly wants to merge 25 commits into
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttonsfrom
bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll

Conversation

@isaachilly

@isaachilly isaachilly commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Ticket:

When clicking live mode after running a query whose results overflow the table, autoscroll is enabled and then immediately disabled.

Code:

  • Only disable autoScroll if scrollTop decreased and the user is not at the bottom of the table.
  • Add tests covering table scroll handlling.

Reviewer:

  • I considered adding wheel/touchpad listeners and tracking an "is interacting" kind of flag but compared to adding another condition to the if I didn't think it was worth it, especially as this will change with the migration.

The table scroll handler treated any decrease in scrollTop as the user scrolling up however this caught also just when the content shrunk which happens on switch from a full query mode to an initially empty live mode.

Check now also if at the bottom of the page and if we still are then don't disableAutoScroll.
@isaachilly isaachilly self-assigned this Sep 24, 2026
@isaachilly isaachilly changed the title Bug/ilg/og UI 1924/fix incorrectly called disable auto scroll [OGUI-1924] Fix incorrectly called disableAutoScroll Sep 24, 2026
Introduces a suite to cover autoscroll behaviour when users scroll, switch modes, and clear logs in both query and live mode.
Refactor the logs table mocha tests to wait for `autoScrollLive` state transitions with a shared helper instead of reading the value immediately.
Comment thread InfoLogger/test/public/logs-table-mocha.js Fixed
@isaachilly
isaachilly marked this pull request as ready for review September 28, 2026 15:35
@isaachilly
isaachilly requested a review from graduta as a code owner September 28, 2026 15:35

@graduta graduta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that auto-scroll should be a feature only for live mode (as it does not make sense for query mode), would the logic not be easier to use that?
For example:

  • entering live mode would not have to be decided based on scroll but instead enabled directly
  • switching to query mode, should disable autoscroll and not use any scroll events at all

What do you think?

@isaachilly

isaachilly commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator Author
  • entering live mode would not have to be decided based on scroll but instead enabled directly

I'm a little confused on what is getting "decided on scroll". If you mean autoscroll then it's already being directly enabled.

  • switching to query mode, should disable autoscroll and not use any scroll events at all

I agree the handling of scroll events in query mode is not needed.

Button style, live icon, browser tab title and auto-scroll were set inside the click handler via module-level state, so any mode change not triggered by a click left the UI stale.

Derive them from log.activeMode in the model/view instead.
…into bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll
@isaachilly
isaachilly changed the base branch from dev to improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons September 29, 2026 16:56
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch from 0b54150 to f62dafb Compare September 30, 2026 15:00
…into bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll
…into bug/ILG/OGUI-1924/Fix-incorrectly-called-disableAutoScroll
The status bar now shows the autoscroll indicator only while live mode is running and the user cannot disable it. They can only enable it by scrolling to the bottom of the page or by clicking the label text.
Adjust tests to match the current autoscroll behaviour in live mode.

The logs table tests now simulate real wheel input and cover re-enabling autoscroll at the bottom and during zoom.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants