OpenGenerativeUI icon indicating copy to clipboard operation
OpenGenerativeUI copied to clipboard

Improve labels and descriptions on hover for mechanical diagrams

Open jerelvelarde opened this issue 8 months ago • 1 comments

Problem

When generating mechanical/engineering diagrams (e.g. car axle visualizations), the labels and descriptions are static and can clutter the diagram. Hover interactions would make the diagrams cleaner while keeping information accessible.

Image

Current behavior

  • All labels (e.g. "axle shaft", "splits torque", "vehicle load") are always visible
  • Legend items at the bottom take up space
  • Descriptive text is static

Proposed improvement

  • Show concise labels by default, reveal detailed descriptions on hover
  • Add hover tooltips to diagram components (wheels, differential, axle shafts)
  • Consider collapsible legend or hover-triggered legend highlights
  • Improve label positioning and readability for complex diagrams

Context

This came up when testing mechanical/engineering diagram generation — the widget renderer produces good visualizations but the information density could be better managed with interactive hover states.

jerelvelarde avatar Mar 24 '26 15:03 jerelvelarde

Hi, I'd like to work on this issue. I checked the current SVG diagram guidance in apps/agent/skills/svg-diagrams/SKILL.md and its MCP counterpart; both currently favor static side annotations.

I propose a focused update to those guides: keep short part labels visible, reveal longer explanations on hover and keyboard focus, and provide a tap/click path for touch devices. I would include a small working diagram pattern and check it in a browser for pointer, keyboard, and narrow-screen use. This should improve generated mechanical diagrams without changing the sandbox renderer.

Does that match the direction you want for #41?

ArianMoeini avatar Oct 03 '26 16:10 ArianMoeini