Skip to content

fix(foundation): pass only the status fields PhaseStatus renders - #565

Merged
Yuyz0112 merged 2 commits into
mainfrom
fix/phase-status-props
Nov 26, 2026
Merged

Yuyz0112 merged 2 commits into
mainfrom
fix/phase-status-props

Conversation

@Yuyz0112

Copy link
Copy Markdown
Contributor

Summary

PhaseStatus (introduced in #559) spread the whole status object into BaseStatus. An external endpoint's status.upstream_status[] entries carry ref (the internal endpoint name or the sanitized upstream URL), which React treats as a string ref on a function component and throws on. The external endpoint show page therefore renders blank for any endpoint whose upstream statuses have been reported.

PhaseStatus now passes phase, error_message and last_transition_time explicitly.

User-visible changes

  • external-endpoint-show-renders: the external endpoint detail page renders again for endpoints with reported upstream statuses (it was blank).

Tests

  • src/foundation/role/PhaseStatus.test.tsx: renders a status carrying ref and models; fails without the fix with "Function components cannot have string refs".

PhaseStatus spread the whole status object into BaseStatus. An external
endpoint's upstream status carries a `ref` (the endpoint name or URL), which
React read as a string ref and threw on, so the show page of every reconciled
external endpoint went blank. Pass phase, error_message and
last_transition_time explicitly.
@github-actions

Copy link
Copy Markdown

DDU layer metrics

type role scene description override override share
33 92 (+2) 9 1063 313 20.7% (-0.0 pp)

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Yuyz0112
Yuyz0112 merged commit 9add050 into main Nov 26, 2026
1 check passed
@Yuyz0112
Yuyz0112 deleted the fix/phase-status-props branch November 26, 2026 07:12
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