Conversation
`LinkedService` gains an optional `dashboardUrl`. When it is set, the readonly form of that service displays a link to the service dashboard, next to the description. The smart component for linked add-ons gains an optional `dashboardUrlByAddonId` param to feed those URLs: the linked add-ons endpoint only exposes ids, and the dashboard URL structure is owned by the host app, so it cannot be built here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Contributor
|
🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/feat/env-var-linked-services-dashboard-link/index.html. This preview will be deleted once this PR is closed. |
The description slot of cc-env-var-form is styled with `font-style: italic`, which inherits through the flattened tree into the slotted content. cc-link resets `color` in button mode but never `font-style`, so the "Go to the dashboard" button rendered italic, unlike every other button-mode link. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
What
<cc-env-var-linked-services>lists the variables exposed by each add-on (or app) linked to an application, but offers no way to reach the linked service itself. This adds an optional link to each service dashboard, displayed next to the description of its readonly form.LinkedServicegains an optionaldashboardUrl. No URL, no link — the rendering is unchanged for consumers that do not set it.<cc-link mode="button">, so it stays a real link (middle-click, open in a new tab). Itsa11y-desccarries the service name, since a page lists several of them.dashboardUrlByAddonIdparam (add-on id → URL) to feed those URLs. It cannot build them itself:/applications/{appId}/addons/envonly exposes ids, and turning a provider id into the path segment a dashboard route expects is host-app knowledge (in the Clever Cloud console,es-addon→elasticsearch).The linked-apps smart component is left untouched; the component itself is generic, so wiring it later is a two-line change.
Layout
On wide viewports the link sits at the end of the description row, under the
SIMPLE / EXPERT / JSONtoggle; below ~20em of description width it wraps under the description. See theloadedWithLinkedAddonsanddefaultStorystories.Checks
format:check,lint,stylelint,components:check-i18n,components:check-lit,typecheckandtest:group a11y:cc-env-var-linked-servicesall pass.🤖 Generated with Claude Code