feat(tui): Add human-facing process URLs.#2739
Open
hencjo wants to merge 20 commits into
Open
Conversation
Contributor
Author
|
I realize this feature is unsolicited and I'm happy to take any directions on how to adapt it or simply skip it. If it's found to be helpful I'll add the URLs of existing services in next PR. |
e0044f7 to
407321f
Compare
ec104e1 to
fcd0542
Compare
fcd0542 to
e28cb5f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add first-class human-facing process URLs.
This adds:
processes.<name>.urls.<label>devenv processes endpointsdevenv upTUIDescription
Overview
This PR adds a first-class way to describe and surface browser-facing process endpoints.
It builds on existing process and port support by letting processes declare human-facing URLs that can reference dynamically allocated ports, and then exposing those URLs consistently in the CLI and TUI.
What changed
Process URLs
Processes can now declare human-facing URLs:
These URLs can reference dynamically allocated ports, so the displayed URL matches the resolved runtime port.
CLI
Added:
Example output:
This is useful both for user-defined processes and for services started with
devenv up -d.TUI
devenv upnow shows process URLs inline as clickable links.Built-in services
Added human-facing URLs for:
admin)ui)ui)console)ui)Wildcard bind addresses such as
0.0.0.0and::are normalized to127.0.0.1for display.Tests
Added coverage for:
Docs
Updated
docs/src/processes.mdwith:processes.<name>.urls