Skip to content

Simplify Endpoints row navigation after the SSE NgZone fix - #201

Merged
juliusvonkohout merged 1 commit into
kserve:masterfrom
LogicalGuy77:fix-ui
Aug 12, 2026
Merged

juliusvonkohout merged 1 commit into
kserve:masterfrom
LogicalGuy77:fix-ui

Conversation

@LogicalGuy77

Copy link
Copy Markdown
Contributor

With SSE events running inside the Angular zone (#197), plain router navigation renders the details page correctly, so the Dashboard page load workaround from #194 is removed. The navigation click no longer stops propagation, because the Central Dashboard mirrors the iframe location into the address bar from a click listener on the iframe document. The manual detectChanges calls in the SSE subscriber were compensating for the same out-of-zone condition and are removed.

fixes: #200

Signed-off-by: Harshit Nayan <harshitacademia@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes the previously required Dashboard-mode “full reload” navigation workaround and manual change detection calls now that SSE callbacks run inside Angular’s zone (per #197), restoring straightforward router-based navigation while allowing iframe click events to propagate for Central Dashboard URL mirroring.

Changes:

  • Simplifies Endpoints name-link navigation to always use router.navigate() and stops suppressing event propagation for normal clicks.
  • Removes the Dashboard parent-window URL rewrite / fallback frame reload logic and associated test coverage.
  • Removes manual ChangeDetectorRef.detectChanges() calls in the SSE subscriber.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
frontend/src/app/pages/index/index.component.ts Drops dashboard-specific navigation + manual change detection; keeps click propagation while preventing default anchor load.
frontend/src/app/pages/index/index.component.spec.ts Updates Jest coverage to assert router navigation and no stopPropagation() for normal name-link clicks; removes tests for the deleted reload workaround.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@juliusvonkohout
juliusvonkohout merged commit 6282ce2 into kserve:master Aug 12, 2026
11 checks passed
@LogicalGuy77
LogicalGuy77 deleted the fix-ui branch August 14, 2026 18:34
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.

Simplify Endpoints row navigation now that SSE events run inside the Angular zone

3 participants