← Back to Pull requests

[ZEPPELIN-6738] Upgrade React to 19 and fix shared host integration #5558

Closed
unknown closed this pull request without merging on Oct 15, 2026 13:55 UTC
View on GitHub
unknown unknown commented on Oct 07, 2026 16:35 UTC
Author

What is this PR for?

Upgrade the React remote to React 19 and fix shared integration behavior between the Angular host and React surfaces.

These changes were identified during the notebook Assistant frontend work and are separated from that feature so they can be merged without its server changes.

Upgrade React, ReactDOM and their type definitions, with Ant Design compatibility updates.
Preserve host callback return values and stable wrapper identity so subscriptions can clean up correctly and avoid unnecessary restarts.
Extract the existing 401 redirect and 405 logout policy into TicketService.handleAuthFailure, preserving logout guards. This prepares a shared entry point for later remote integrations; connecting Assistant requests is outside this PR.
Commit React theme updates before the next paint and temporarily suppress document-wide CSS transitions during theme switching.

The callback, authentication and theme fixes do not inherently require React 19.

What type of PR is it?

Improvement

Todos

[x] Complete automated verification on the PR branch.
[x] Check existing Ant Design surfaces and rapid theme switching in a browser.

What is the Jira issue?

ZEPPELIN-6738

How should this be tested?

Run the React unit tests, typecheck and lint.
Run the Angular shell tests and SDK contract typecheck.
Build the React remote and Angular application.

Production builds passed on the prerequisite branch. Chrome checks passed for repository form editing and cancellation, Select interaction, configuration table rendering and 18 rapid theme toggles, with no page errors.

Repository and configuration responses used browser-local fixtures because the QA repository list was empty. No server settings were saved.

Screenshots (if appropriate)

N/A

Questions:

Does the license files need to update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

Diff: 245 lines (+183 / -62) across 3 files Reviewer: tbonelee Review duration: 11359m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 245 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.329
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5558"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 38.9% (MEDIUM) · Higher = larger blast radius
38.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.3% · Safe to merge
15.3%