mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
fix: static data in mocks (#1574)
This commit is contained in:
@ -84,7 +84,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
|
|||||||
<TableCell>
|
<TableCell>
|
||||||
{template.workspace_owner_count} developer{template.workspace_owner_count !== 1 && "s"}
|
{template.workspace_owner_count} developer{template.workspace_owner_count !== 1 && "s"}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>{dayjs().to(dayjs(template.updated_at))}</TableCell>
|
<TableCell data-chromatic="ignore">{dayjs().to(dayjs(template.updated_at))}</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
@ -92,7 +92,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
|
|||||||
|
|
||||||
<TableCell>{Language.developerCount(template.workspace_owner_count)}</TableCell>
|
<TableCell>{Language.developerCount(template.workspace_owner_count)}</TableCell>
|
||||||
|
|
||||||
<TableCell>{dayjs().to(dayjs(template.updated_at))}</TableCell>
|
<TableCell data-chromatic="ignore">{dayjs().to(dayjs(template.updated_at))}</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))}
|
))}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
|
@ -92,7 +92,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
|
|||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<span style={{ color: theme.palette.text.secondary }}>
|
<span data-chromatic="ignore" style={{ color: theme.palette.text.secondary }}>
|
||||||
{dayjs().to(dayjs(workspace.latest_build.created_at))}
|
{dayjs().to(dayjs(workspace.latest_build.created_at))}
|
||||||
</span>
|
</span>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
@ -80,8 +80,8 @@ export const MockRunningProvisionerJob = { ...MockProvisionerJob, status: "runni
|
|||||||
|
|
||||||
export const MockTemplate: TypesGen.Template = {
|
export const MockTemplate: TypesGen.Template = {
|
||||||
id: "test-template",
|
id: "test-template",
|
||||||
created_at: new Date().toString(),
|
created_at: "2022-05-17T17:39:01.382927298Z",
|
||||||
updated_at: new Date().toString(),
|
updated_at: "2022-05-18T17:39:01.382927298Z",
|
||||||
organization_id: MockOrganization.id,
|
organization_id: MockOrganization.id,
|
||||||
name: "Test Template",
|
name: "Test Template",
|
||||||
provisioner: MockProvisioner.id,
|
provisioner: MockProvisioner.id,
|
||||||
@ -111,7 +111,7 @@ export const MockWorkspaceAutostopEnabled: TypesGen.UpdateWorkspaceAutostartRequ
|
|||||||
|
|
||||||
export const MockWorkspaceBuild: TypesGen.WorkspaceBuild = {
|
export const MockWorkspaceBuild: TypesGen.WorkspaceBuild = {
|
||||||
build_number: 1,
|
build_number: 1,
|
||||||
created_at: new Date().toString(),
|
created_at: "2022-05-17T17:39:01.382927298Z",
|
||||||
id: "1",
|
id: "1",
|
||||||
initiator_id: "",
|
initiator_id: "",
|
||||||
job: MockProvisionerJob,
|
job: MockProvisionerJob,
|
||||||
|
Reference in New Issue
Block a user