-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI v2] feat: Adds Deployment configuration tab
- Loading branch information
1 parent
1fa2b16
commit 6d92c23
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ui-v2/src/components/deployments/deployment-configuration.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Deployment } from "@/api/deployments"; | ||
import { JsonInput } from "@/components/ui/json-input"; | ||
import { Typography } from "@/components/ui/typography"; | ||
|
||
type DeploymentConfigurationProps = { | ||
deployment: Deployment; | ||
}; | ||
|
||
export const DeploymentConfiguration = ({ | ||
deployment, | ||
}: DeploymentConfigurationProps) => { | ||
const jobVariablesDisplay = JSON.stringify( | ||
deployment.job_variables ?? {}, | ||
null, | ||
2, | ||
); | ||
const pullStepsDisplay = JSON.stringify(deployment.pull_steps ?? [], null, 2); | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
<Typography variant="h4">Job Variables</Typography> | ||
<JsonInput copy disabled hideLineNumbers value={jobVariablesDisplay} /> | ||
<Typography variant="h4">Pull Steps </Typography> | ||
<JsonInput copy disabled hideLineNumbers value={pullStepsDisplay} /> | ||
</div> | ||
); | ||
}; |
This file contains 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
This file contains 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
This file contains 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