davsclaus opened a new pull request, #27241: URL: https://github.com/apache/camel/pull/27241
Fixes [CAMEL-25244](https://issues.apache.org/jira/browse/CAMEL-25244), a follow-up of CAMEL-25240 (XML completion, #27236) and CAMEL-25219 (quick doc of the simple function at the cursor, #27234). In an XML route the quick doc panel showed the documentation of the line (the EIP, the endpoint). On a line like `<log message="..." loggingLevel="WARN" logName="orders"/>` the attribute under the cursor is the one worth explaining. Now, in edit mode, before the doc of the line: - **on an attribute name or in its value**: the attribute's documentation (XML schema, completed by the catalog model, as the completion), its values (enums, true/false) and default, unless its documentation says them already (the panel has three lines); - **on an element name**: the element and its required attributes (`Required: message`); - the `uri` attribute keeps the endpoint doc of the line; a simple function under the cursor (`${body}` in `message`) goes first.  ### Changes - `XmlQuickDoc`: extends the cursor to the end of the name it is on and asks `XmlCompletionContext` (the XML completion's scanner) what is there; the docs from `XmlSchemaModel` + `XmlCompletions.attributes` / `option`. - `SourceTab`: for XML route files the cursor quick doc is the simple one, else the XML one. - Help, doc page and a screenshot. ### Testing - `XmlQuickDocTest`: an attribute by its name and by its value, no repeated values/default, a boolean option, an element with its required attribute, nothing for `uri`, text or the view. - The `camel-jbang-plugin-tui` suite passes (1581 tests). - Tried live in the TUI; the screenshot is from that run. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
