Skip to content

[OGUI-1929] Replace auto scroll checkbox - #3674

Merged
isaachilly merged 8 commits into
devfrom
improv/ILG/OGUI-1929/Replace-autoScroll-checkbox
Oct 15, 2026
Merged

isaachilly merged 8 commits into
devfrom
improv/ILG/OGUI-1929/Replace-autoScroll-checkbox

Conversation

@isaachilly

@isaachilly isaachilly commented Oct 9, 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:

Replace auto-scroll checkbox with a more obvious way that reflected the fact the disabled is not the safe state.

Code:

Display a success-style button when enabled, clicking disables and shows warning button.
Display a warning-style button when disabled, clicking enables and shows again the success button.

When disabled and autoscrollManager runs, force it to delete the lastLogID it stored as otherwise when it becomes enabled again and no new logs have been received it won't scroll to the bottom as this is only done when the current log's ID and the last log's ID differ. When we re-enable auto-scroll we want it to jump to the bottom regardless if a new log has been received or not.

Add tests to check the correct text is shown and that the clicking to enable functionality works.

Reviewer:

@isaachilly isaachilly self-assigned this Oct 9, 2026
@isaachilly
isaachilly added this pull request to stack #3676 October 9, 2026 15:34
@isaachilly
isaachilly marked this pull request as ready for review October 13, 2026 13:23
@isaachilly
isaachilly requested a review from graduta as a code owner October 13, 2026 13:23
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1929/Replace-autoScroll-checkbox branch from 1106d9c to e9f1154 Compare October 13, 2026 13:24
graduta
graduta previously approved these changes Oct 14, 2026
Comment thread InfoLogger/public/log/statusBar.js Outdated
@isaachilly
isaachilly dismissed graduta’s stale review October 15, 2026 07:34

The merge-base changed after approval.

Base automatically changed from improv/ILG/OGUI-1928/Only-show-autoscroll-in-running-live-mode to dev October 15, 2026 08:04
Replace the autoscroll checkbox with a clearer UI.

Show a success label when enabled and a warning button when disabled, which when clicked re-enables it.
Delete the table's last scrolled log marker when autoscroll is off so re-enabling immediately jumps to the newest logs.
Update and add status bar tests to cover the new enabled/disabled states and re-enable behaviour.
Plain span is 1.5em. .btn-sm is 1.6em.

Give both states the same div box sized to 1.5em.
Adds new setter for autoScrollLive.
Shows a success/warning button in each state.
Drops unneeded CSS.
Rewrites test names and add one for disabling via the button.
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1929/Replace-autoScroll-checkbox branch from e9f1154 to 68afae8 Compare October 15, 2026 08:04
@isaachilly
isaachilly merged commit dc8fa4c into dev Oct 15, 2026
9 checks passed
@isaachilly
isaachilly deleted the improv/ILG/OGUI-1929/Replace-autoScroll-checkbox branch October 15, 2026 09:33
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.

2 participants