External link button to link to a component #223
Merged
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.
Discussion previously occurred in #214
This PR adds a new optional field to components in config.yml for an external url. The intent of this change is to allow cstate administrators to directly link to services/components that have web frontends.
Based on conversation with @mistermantas, the
🔗
unicode character was chosen to represent the link as the only candidate that consistently rendered across all browsers.Alternatives previously considered:
Test plan
The change can be enabled or disabled by specifying or omitting the newly added field
link
. I have enabled it by default for a new component in exampleSite/config.yml to demonstrate its existence to new users.I have tested the change on Linux and verified the chosen character is easily visible in both light and dark mode on the browser I have available. I am requesting a reviewer with a machine with IE please verify the IE8 compatibility, thank you. It also renders correctly in a mobile browser.
Documentation changes
Since I cannot include the wiki update as part of the PR, I have included the edited section in this gist.
Closes #214