Bus UI Assistant
AIReviewStatus shows review-before-apply state.
Use it for a compact status card that makes the review state, title, summary, and request identity visible before the host applies a change.
Public API
AIReviewStatus(p AIReviewStatusProps) gx.Node
When to use it
Use AIReviewStatus when the assistant needs a public-safe status
surface for waiting, reviewing, approved, rejected, or error states.
Key props
State, Title, Summary,
RequestID, and Attrs.
Example
Go API
import (
gx "github.com/busdk/bus-gx/pkg/gx"
assistantui "github.com/busdk/bus-ui/pkg/assistantui"
)
node := assistantui.AIReviewStatus(assistantui.AIReviewStatusProps{
State: assistantui.AIReviewStateWaiting,
Title: "Awaiting review",
Summary: "Supervisor approval is required.",
})
html, err := gx.RenderHTML(node)
.gx source
In .gx source, author the visible component state as GX markup.
Keep the Go API block above for the package helper or render-boundary call.
package busuiexamples
import gx "github.com/busdk/bus-gx/pkg/gx"
func AIReviewStatusExample() gx.Node {
return <section class="ai-review-status" aria-live="polite">
<p><Text value={"Review ready"}></Text></p>
</section>
}
Related
Return to Assistant or the Bus UI reference.