Skip to content

PoC UX improvments#2160

Draft
jpinsonneau wants to merge 3 commits into
openshift:mainfrom
jpinsonneau:ux-poc
Draft

PoC UX improvments#2160
jpinsonneau wants to merge 3 commits into
openshift:mainfrom
jpinsonneau:ux-poc

Conversation

@jpinsonneau

@jpinsonneau jpinsonneau commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Console-only PoC that adds two complementary UX features to the Lightspeed sidebar: living responses (live cluster widgets in chat) and Guide me (a guided evidence tour). No OLS backend changes required.

Living responses

  • Parse resource refs from MCP tool output (list tables, YAML/JSON, events_list involved objects, LLM prose) and render live resource cards in the sources pager via useK8sWatchResource and Prometheus sparklines.
  • Generic status/details for any kind in the console model catalog; per-kind PromQL metrics for pods, workloads, nodes, namespaces, PVCs, etc.
  • Responsive field layout (label above value) with pager CSS fixes so cards are not clipped by chatbot line-clamp.
  • Smart response compaction: when live widgets replace static data, strip duplicate vertical listings and markdown tables only — keep troubleshooting narrative (Pod Status, Logs, Events, recommendations).
  • Prioritize resources mentioned in the answer; cap widgets (3 default, up to 12 for pod-list responses) with overflow messaging.

Guide me (evidence tour)

  • Guide me action after troubleshooting answers builds a step-by-step tour from MCP tool calls and navigates the console to each resource while Lightspeed stays open.
  • Clickable resource names in tour titles; navigation only advances on explicit prev/next (not when the user clicks other console links).
  • Console paths derived from k8s models, so custom operator pages on standard routes work automatically.

Test plan

  • Ask a pod troubleshooting question (pods_list / pods_log / events_list) — live widgets appear with full explanation text retained
  • Ask a namespace pod list — vertical listing removed from text, live pager shows pods
  • Click Guide me — tour steps navigate to correct console pages
  • npm run test:unit (217 tests)

⚠️ Generated-by: claude opus 4.6 this PR will need to be refactored before anything 😸

@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 23a0fe90-3ea2-4b43-963d-350750279dbe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 30, 2026
@openshift-ci

openshift-ci Bot commented Jun 30, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign syedriko for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant