Link connector docs in the Add Source dialog
The access review Add Source dialog listed each connector with no path to its setup documentation. Connectors that have a published docs page on probo.com now surface a "Documentation" link on the card, opening the page in a new tab; connectors without a page show nothing extra. The link is data-driven from the connector registry: a new DocumentationURL on the provider Registration, populated for the 12 documented providers via a single accessReviewDocsURL helper, is surfaced as a nullable documentationUrl on ConnectorProviderInfo and rendered by the console only when present. This keeps the registry the single source of truth and adds no client-side provider map. The links resolve once the probo.com access-review docs pages are deployed; until then they 404, so deploy the docs alongside this change. Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
DropdownItem,
|
||||
IconArrowLink,
|
||||
Input,
|
||||
ThirdPartyLogo,
|
||||
useDialogRef,
|
||||
@@ -51,6 +52,7 @@ export const addAccessReviewSourceDialogConnectorProviderInfoFragment = graphql`
|
||||
fragment AddAccessReviewSourceDialogConnectorProviderInfoFragment on ConnectorProviderInfo @relay(plural: true) {
|
||||
provider
|
||||
displayName
|
||||
documentationUrl
|
||||
oauthConfigured
|
||||
apiKeySupported
|
||||
apiKeyManaged
|
||||
@@ -160,6 +162,17 @@ export function AddAccessReviewSourceDialog({
|
||||
<ThirdPartyLogo thirdParty={info.provider} tint className="size-6 shrink-0" />
|
||||
<div className="mr-auto">
|
||||
<h3 className="font-medium">{info.displayName}</h3>
|
||||
{info.documentationUrl && (
|
||||
<a
|
||||
href={info.documentationUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline-flex items-center gap-1 text-xs text-txt-tertiary underline hover:no-underline"
|
||||
>
|
||||
{__("Documentation")}
|
||||
<IconArrowLink size={12} />
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
{isConnected
|
||||
? (
|
||||
|
||||
Reference in New Issue
Block a user