[ 
https://issues.apache.org/jira/browse/CAMEL-26348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-26348:
--------------------------------
    Description: 
The PNG of a route diagram (camel cmd route-diagram, the MCP tool 
camel_render_route_diagram, the route-diagram dev console with format=png, 
RouteDiagramDumper) drew each step as a filled rounded box with one line of 
code, such as setBody[groovy{body.items}].

It now draws each step as a card with a soft border and shadow, a colored 
circle with an icon for the kind of step, and two lines: the kind in bold 
(setBody) and its detail below (groovy: body.items). The icons are the Lucide 
icons the camel-route-diagram web component already bundles. The dark, light 
and transparent themes all draw cards; the old box style is removed.

camel cmd route-diagram --output=x.png without --theme now saves the PNG (light 
theme) instead of a text file, and the MCP tool, which failed with a 
NullPointerException without a theme, uses the light theme.

_Filed by Claude Code on behalf of davsclaus_

  was:
The PNG of a route diagram (camel cmd route-diagram, the MCP tool 
camel_render_route_diagram) draws each step as a filled rounded box with one 
line of code, such as setBody[groovy{body.items}].

Add an opt-in card style: each step is a white card with a soft border and 
shadow, a colored circle with an icon for the kind of step, and two lines: the 
kind in bold (setBody) and its detail below (groovy: body.items). The icons are 
the Lucide icons the camel-route-diagram web component already bundles.

The current style stays the default, so existing diagrams do not change.

_Filed by Claude Code on behalf of davsclaus_

        Summary: camel-diagram - a route diagram image draws the steps as 
cards: an icon, the step kind and its detail  (was: camel-diagram - a card 
style for route diagrams: white cards with an icon, the step kind and its 
detail)

> camel-diagram - a route diagram image draws the steps as cards: an icon, the 
> step kind and its detail
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26348
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26348
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-diagram
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> The PNG of a route diagram (camel cmd route-diagram, the MCP tool 
> camel_render_route_diagram, the route-diagram dev console with format=png, 
> RouteDiagramDumper) drew each step as a filled rounded box with one line of 
> code, such as setBody[groovy{body.items}].
> It now draws each step as a card with a soft border and shadow, a colored 
> circle with an icon for the kind of step, and two lines: the kind in bold 
> (setBody) and its detail below (groovy: body.items). The icons are the Lucide 
> icons the camel-route-diagram web component already bundles. The dark, light 
> and transparent themes all draw cards; the old box style is removed.
> camel cmd route-diagram --output=x.png without --theme now saves the PNG 
> (light theme) instead of a text file, and the MCP tool, which failed with a 
> NullPointerException without a theme, uses the light theme.
> _Filed by Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to