feat(bulma-ui): export Portal #861
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.37) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 223 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.324
Real PR Conversation Timeline
1 comments
"Review active on #861"
general
weight: 0.35
claude[bot]
Part of #772.
An app building its own overlay had to wire
createPortalitself, plus a guard for the server render, which has nothing to put in it.Portalrenders its children intodocument.body, or into an element or selector passed ascontainer, through theresolvePortalContainerthat Modal and Toast already use. It renders nothing on the server and during hydration, so the first client render matches.disabledrenders in place, for a component that portals only sometimes.helpers/portal.tsxbeside the resolver, renamed fromportal.ts: aPortal.tsxnext toportal.tsresolved to the wrong file on a case-insensitive filesystem. Modal's and Toast's imports are unchanged.containeris looked up on each render, so content follows a target that changes. Moving to another target remounts the children, and the TSDoc, the props table and the page all say so.Theme) doesn't, and that a focus trap doesn't cover what aPortalinside it renders.Tests cover each kind of target,
disabled, unmounting, context and event bubbling, a real server render and hydration without a mismatch warning. There's a story and a helper page. The matrix now credits the Portal row, and the custom-component skill says to reach forPortalrather thancreatePortal.Modal, Dialog, Toast, Notification, Sidebar and the pickers keep their own portal code here and move onto
Portalone at a time later.This is one of three PRs split out of #851, alongside
ClientOnlyanduseFocusTrap. They share theindex.tsexport block,PUBLIC_EXPORTS, the comparison data and the generated files.pnpm allpasses locally.