feat: generative UI phase 2 — SaaS metrics dashboard#127
Merged
Conversation
Add CustomStreamEvent type and wire custom$ BehaviorSubject through the agent library so LangGraph adispatch_custom_event() payloads are captured and exposed as an Angular Signal on AgentRef.customEvents. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…provided Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds delta indicator and skeleton loading state to StatCardComponent. Also adds test infrastructure (tsconfig.spec.json, test target) and fixes pre-existing build errors in libs/chat (missing customEvents on MockAgentRef, noUnusedLocals violation on customEventEffect). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 task
3 tasks
blove
added a commit
that referenced
this pull request
May 1, 2026
* docs(superpowers): plan for genui phase 2 test gap closure Adds unit-test specs for ContainerComponent and DashboardGridComponent — the two views shipped in PR #127 (9b62152) without specs. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com> * docs(superpowers): fix genui test plan to stub <render-element> The original spec code imported ContainerComponent / DashboardGridComponent directly into TestBed without addressing that <render-element> is itself a standalone component which calls `inject(RENDER_CONTEXT)`. With non-empty childKeys, Angular instantiated the real RenderElementComponent and threw NG0201. Plan now uses TestBed.overrideComponent to swap in a local StubRenderElementComponent that matches the selector and public inputs. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com> * test(cockpit): cover ContainerComponent layout and child rendering Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * test(cockpit): cover DashboardGridComponent layout and child rendering --------- Co-authored-by: Claude Opus 4 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
customEventssignal onAgentRef) to route LangGraphstate_updateevents to the render storesignalStateStoreinChatComponent, with auto-created internal store when views are registereddashboard_grid,container(with direction),stat_card(with delta/skeleton),line_chart(SVG),bar_chart(SVG),data_grid(HTML table) — all with skeleton shimmer states via$statebinding progressive hydrationTest Plan
npx nx test cockpit-chat-generative-ui-angular)npx nx test agent)npx nx test chat)npx nx build cockpit)CompiledStateGraph🤖 Generated with Claude Code