Skip to content

[OGUI-1926] Derive further UI state from models - #3644

Open
isaachilly wants to merge 2 commits into
devfrom
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons
Open

isaachilly wants to merge 2 commits into
devfrom
improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons

Conversation

@isaachilly

@isaachilly isaachilly commented Sep 29, 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:

Move model logic from view back into a model after noticing a lot in commandLogs.

Code:

  • Button style/icon and tab title now are derived from a constant using activeMode.
  • New Log helpers remove logic from the commandLogs view
  • query liveStart etc now hide the download dropdown and set auto-scroll themselves. Logic that used to be in the view.
  • In tests frameworkInfo mocks now have to include infoLogger-gui as otherwise the tab title building will crash.

Reviewer:

@isaachilly isaachilly self-assigned this Sep 29, 2026
@isaachilly
isaachilly added this pull request to stack #3645 September 29, 2026 12:35
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch 2 times, most recently from af5afb2 to aaad543 Compare September 29, 2026 12:55
@isaachilly isaachilly changed the title [OGUI-1926] Derive UI state from models [OGUI-1926] Derive further UI state from models to help ease implementing Sep 29, 2026
@isaachilly isaachilly changed the title [OGUI-1926] Derive further UI state from models to help ease implementing [OGUI-1926] Derive further UI state from models Sep 29, 2026
@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
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.
@isaachilly
isaachilly force-pushed the improv/ILG/OGUI-1926/Clean-up-logic-for-query-buttons branch from a01f7e4 to 353a963 Compare October 13, 2026 13:23
@isaachilly
isaachilly marked this pull request as ready for review October 13, 2026 13:25
@isaachilly
isaachilly requested a review from graduta as a code owner October 13, 2026 13:25

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.

1 participant