Skip to content

feat(cockpit): update generative-ui example for streaming auto-detection#75

Merged
blove merged 8 commits into
mainfrom
generative-ui-spike
Apr 9, 2026
Merged

feat(cockpit): update generative-ui example for streaming auto-detection#75
blove merged 8 commits into
mainfrom
generative-ui-spike

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented Apr 8, 2026

Summary

  • Update existing cockpit/chat/generative-ui/ example to use the new streaming auto-detection pipeline
  • Replace old ChatGenerativeUiComponent usage with views() + [views] input on ChatComponent
  • Add 3 view components: WeatherCard, StatCard, Container
  • Update system prompt to instruct LLM to return raw JSON-render Specs (no code fences)
  • Remove duplicate cockpit/langgraph/generative-ui/ and its manifest entry
  • Clean up: remove provideRender from app config, update environment assistant IDs

What it proves

Tokens stream in → ContentClassifier auto-detects JSON → PartialJsonParser builds tree → ParseTreeStore materializes Spec → render-spec renders WeatherCard/StatCard components that update live as tokens arrive. Zero manual wiring.

Test plan

  • Angular production build succeeds
  • Manual: run langgraph dev + nx serve, ask about weather

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment Apr 9, 2026 4:59am

Request Review

blove and others added 6 commits April 8, 2026 21:39
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove duplicate cockpit/langgraph/generative-ui/ (already exists under chat)
- Remove 'generative-ui' from langgraph manifest topics
- Replace old ChatGenerativeUiComponent usage with views() + [views] input
- Add WeatherCard, StatCard, Container view components
- Update system prompt to instruct LLM to return raw JSON specs
- Update docs guide to describe streaming pipeline
@blove blove force-pushed the generative-ui-spike branch from d40905b to aeaa204 Compare April 9, 2026 04:43
@blove blove changed the title feat(cockpit): add generative UI streaming spike example feat(cockpit): update generative-ui example for streaming auto-detection Apr 9, 2026
@blove blove merged commit dd8daad into main Apr 9, 2026
14 of 15 checks passed
@blove blove deleted the generative-ui-spike branch May 7, 2026 16:30
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.

1 participant