Skip to content

fix(ui): keep session results with the active search - #6007

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/keep-session-results-with-current-search
Nov 28, 2026
Merged

SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/keep-session-results-with-current-search

Conversation

@Aminark

@Aminark Aminark commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

The sessions page could show Alice's sessions after a search for Bob had already finished. Both requests wrote to the same list on completion. Those rows include delete buttons, so showing results for the previous query is particularly confusing. Pressing Enter in session ID mode also sent a separate username request and discarded its result.

Invalidate the previous lookup as soon as the filter changes and clear its rows. Only the current lookup can update results, errors, or loading state. Enter submits the selected search mode immediately and cancels the pending debounce.

One test holds Alice's response until Bob's sessions are visible, then releases it and checks that Bob's rows stay on screen. Another submits an ID with Enter and checks which endpoint is called.

@Aminark
Aminark requested a review from a team as a code owner November 27, 2026 17:04
@SteKoe
SteKoe merged commit 10bb2d7 into codecentric:master Nov 28, 2026
2 checks passed
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