Skip to content

[web-console] Fix content in Change Stream tab resets when opening Interaction panel - #6748

Merged
Karakatiza666 merged 1 commit into
mainfrom
fix-ui
Jul 29, 2026
Merged

[web-console] Fix content in Change Stream tab resets when opening Interaction panel#6748
Karakatiza666 merged 1 commit into
mainfrom
fix-ui

Conversation

@Karakatiza666

Copy link
Copy Markdown
Contributor

Prevent an error toast when clicking on an already existing demo

Testing: -manual:
First issue - start a demo, subscribe and receive any rows in Change Stream, then open or close the Interaction panel.
Second issue - click on any demo that has already been created, observe that there is no error toast notification on bottom right

…teraction tab

Prevent an error toast when clicking on an already existing demo

Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
@Karakatiza666
Karakatiza666 requested a review from mihaibudiu July 29, 2026 06:22

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Two small, correct fixes:

  • Keying the TabsPanel {#each} on id stops Svelte from destroying and rebuilding the wrong tab component when the tabs array is reshaped (e.g. showing/hiding the Interaction panel), which is exactly why the Change Stream content was resetting. Standard {#each ... (key)} remedy for keyed identity — right fix, not a workaround.
  • Gating the demo postPipeline on !already_created avoids the redundant POST (and its 4xx toast) when the pipeline already exists. The empty catch {} remains, which is fine given goto still runs either way.

Two nits, worth fixing but not blocking:

  • The title has a typo: CHangeChange. GitHub keeps the PR title in the squash-merge commit subject, so this ends up in git log unless you rename before merge.
  • Title says "Interaction panel" but the commit subject says "Interaction tab" — pick one; the linked panel in your description is the Interaction panel.

Approving.

@Karakatiza666 Karakatiza666 changed the title [web-console] Fix content in CHange Stream tab resets when opening Interaction panel [web-console] Fix content in Change Stream tab resets when opening Interaction panel Jul 29, 2026
@Karakatiza666
Karakatiza666 added this pull request to the merge queue Jul 29, 2026
Merged via the queue into main with commit a47b6ee Jul 29, 2026
1 check passed
@Karakatiza666
Karakatiza666 deleted the fix-ui branch July 29, 2026 18:45
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.

3 participants