feat(c-generative-ui): airline operations KPI dashboard (PR 3 of 4)#355
Merged
Conversation
PR 3 of 4 in c-* aviation theme rollout. Converts the c-generative-ui demo from SaaS metrics to airline operations KPIs. Graph topology and Angular view components stay untouched; only dataset, 4 tools, prompt, and emit_state mapping change. Standalone copy gets parity rewrite plus the stale prompt-path fix. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11 tasks: extend aviation_data.py with analytics fixtures, rewrite dashboard_tools.py with 4 aviation @tool functions, update emit_state state-path mapping, rewrite dashboard.md prompt, mirror into standalone backend (with prompt-path bug fix), build verification, REQUIRED chrome MCP smoke against real LLM, PR open. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Stale module docstrings in dashboard_graph.py and the standalone graph.py still read "SaaS metrics dashboard". Updated to "airline operations KPI dashboard" to match the actual functionality post-PR-3. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
41ae9dc to
5a1cf20
Compare
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
c-generative-uicockpit demo from a SaaS metrics dashboard to an airline operations KPI dashboard.emit_stateper-tool branches. Graph topology and Angular view components are unchanged.graph.pyreferencedprompts/dashboard.mdwhile the file was misnamedgenerative-ui.md. The standalone'sindex.tspromptAssetPathsentry was updated to match.KPI mapping
query_airline_kpisquery_on_time_trendquery_flights_by_airlinequery_recent_disruptionsTest plan
pnpm nx run cockpit-langgraph-streaming-python:build— greenpnpm nx run cockpit-chat-generative-ui-angular:build— greenpnpm nx test cockpit-chat-generative-ui-angular— 6 test files, 21 tests passing$statepaths, all 4 aviation tools invokedquery_airline_kpis,query_on_time_trend,query_flights_by_airline,query_recent_disruptions), conversational summary correctly cites On-time %, Flights Today, Avg Delay, Load Factor + 12-month trendON_TIME_TREND), no JSON, no tools, no spec regenstat_card/line_chart/bar_chart/data_grid) currently render the chat-librender-default-fallback("Building UI…") instead of populated values.dashboard_gridandcontainerrender. This pattern is independent of this PR (no frontend code changed) and tracks with the chat-lib's state-event propagation for$stateprops — to be addressed in a follow-up that's orthogonal to the aviation conversion.Files
cockpit/langgraph/streaming/python/src/aviation_data.py— appendedKPI_SNAPSHOT,ON_TIME_TREND,FLIGHTS_BY_AIRLINE,RECENT_DISRUPTIONScockpit/langgraph/streaming/python/src/dashboard_tools.py— rewrite (4 aviation tools)cockpit/langgraph/streaming/python/src/dashboard_graph.py—emit_stateper-tool branchescockpit/langgraph/streaming/python/prompts/dashboard.md— aviation framing, state paths, example speccockpit/chat/generative-ui/python/src/dashboard_tools.py— mirror (analytics inlined)cockpit/chat/generative-ui/python/src/graph.py— mirroremit_statecockpit/chat/generative-ui/python/prompts/dashboard.md— created (mirrors umbrella)cockpit/chat/generative-ui/python/prompts/generative-ui.md— deletedcockpit/chat/generative-ui/python/src/index.ts—promptAssetPathsupdated todashboard.mddocs/superpowers/{specs,plans}/🤖 Generated with Claude Code