feat: Support Checkly group variables (ENG-3478) (#4418)

* feat: checkly group sync

* fix: remove scope discriminator

* fix: forms

* fix: queries

* fix: 500 error

* fix: update docs

* lint: fix

* fix: review changes

* fix: PR changes

* fix: resolve group select UI not clearing

---------

Co-authored-by: Scott Wilson <[email protected]>
This commit is contained in:
Sid
2025-08-28 21:55:53 +05:30
committed by GitHub
co-authored by Scott Wilson
parent c7987772e3
commit a0da2f2d4c
15 changed files with 428 additions and 47 deletions
@@ -175,8 +175,8 @@ export const getSecretSyncDestinationColValues = (secretSync: TSecretSync) => {
secondaryText = "Railway Project";
break;
case SecretSync.Checkly:
primaryText = destinationConfig.accountName;
secondaryText = "Checkly Account";
primaryText = destinationConfig.accountName || destinationConfig.accountId;
secondaryText = destinationConfig.groupName || destinationConfig.groupId || "Checkly Account";
break;
case SecretSync.Supabase:
primaryText = destinationConfig.projectName;
@@ -8,5 +8,12 @@ type Props = {
export const ChecklySyncDestinationSection = ({ secretSync }: Props) => {
const { destinationConfig } = secretSync;
return <GenericFieldLabel label="Account">{destinationConfig.accountName}</GenericFieldLabel>;
return (
<>
<GenericFieldLabel label="Account">{destinationConfig.accountName}</GenericFieldLabel>
{destinationConfig.groupId && (
<GenericFieldLabel label="Group">{destinationConfig.groupName}</GenericFieldLabel>
)}
</>
);
};