You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "rkdfx (via GitHub)" <gi...@apache.org> on 2026/06/21 08:32:19 UTC

[PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

rkdfx opened a new pull request, #24160:
URL: https://github.com/apache/camel/pull/24160

   # Description
   
   <!--
   - Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
   -->
   
   Follow-up after the merge (https://github.com/apache/camel/pull/24156): the diagram wasn't actually rendering when running with `--console`.
   
   The page pulled the web component from `/camel/diagram/camel-route-diagram.js`, but that path isn't served when only the developer console is up, so it 404'd and nothing showed. It's now embedded straight into the console's HTML response, so there's no separate file to fetch.
   
   # Target
   
   - [ ] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch)
   
   # Tracking
   - [ ] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it).
   
   <!--
   # *Note*: trivial changes like, typos, minor documentation fixes and other small items do not require a JIRA issue. In this case your pull request should address just this issue, without pulling in other changes.
   -->
   
   # Apache Camel coding standards and style
   
   - [ ] I checked that each commit in the pull request has a meaningful subject line and body.
   
   <!--
   If you're unsure, you can format the pull request title like `[CAMEL-XXX] Fixes bug in camel-file component`, where you replace `CAMEL-XXX` with the appropriate JIRA issue.
   -->
   
   - [ ] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes.
   
   <!--
   You can run the aforementioned command in your module so that the build auto-formats your code. This will also be verified as part of the checks and your PR may be rejected if if there are uncommited changes after running `mvn clean install -DskipTests`.
   
   You can learn more about the contribution guidelines at https://github.com/apache/camel/blob/main/CONTRIBUTING.md
   -->
   
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24160:
URL: https://github.com/apache/camel/pull/24160


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24160:
URL: https://github.com/apache/camel/pull/24160#issuecomment-4762591613

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "rkdfx (via GitHub)" <gi...@apache.org>.
rkdfx commented on PR #24160:
URL: https://github.com/apache/camel/pull/24160#issuecomment-4762323546

   Tested locally in browser:
   
   <img width="634" height="397" alt="Screenshot 2026-06-21 at 8 09 36 PM" src="https://github.com/user-attachments/assets/2cf87a59-71ac-421d-8f4b-4b22dcfb06d1" />
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #24160:
URL: https://github.com/apache/camel/pull/24160#issuecomment-4762633873

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `components/camel-diagram`
   
   <details><summary>All tested modules (8 modules)</summary>
   
   - Camel :: Diagram
   - Camel :: JBang :: MCP
   - Camel :: JBang :: Plugin :: Route Parser
   - Camel :: JBang :: Plugin :: TUI
   - Camel :: JBang :: Plugin :: Validate
   - Camel :: Launcher :: Container
   - Camel :: YAML DSL :: Validator
   - Camel :: YAML DSL :: Validator Maven Plugin
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/27898761659)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on PR #24160:
URL: https://github.com/apache/camel/pull/24160#issuecomment-4762915762

   yeah @rkdfx we have seen the / problem before - you are welcome to look into camel-platform-http-main if you want to hunt it down and improve it


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23807: make the route-diagram web component render in the dev console (follow-up) [camel]

Posted by "rkdfx (via GitHub)" <gi...@apache.org>.
rkdfx commented on PR #24160:
URL: https://github.com/apache/camel/pull/24160#issuecomment-4762330698

   Separate from this PR, but I hit a dev-console bug while testing and couldn't find a ticket for it, so flagging it here in case you want to file one.
   
   If you open the console index with a trailing slash (`http://localhost:8080/q/dev/`) and click any console, you land on `/q/dev/dev/<id>` (eg `/q/dev/dev/route-diagram`) and get "Developer console not found: dev". Without the trailing slash (`/q/dev`) it works. It's every console link, not just the diagram.
   
   The index renders the links as relative `href="dev/<id>"` (ManagementHttpServer, around line 1060), so from `/q/dev` they resolve to `/q/dev/<id>`, but from `/q/dev/` they double up to `/q/dev/dev/<id>`.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org