Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: static data in mocks#1574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
greyscaled merged 3 commits intomainfromvapurrmaid/static-mock-data
May 19, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionsite/src/pages/TemplatePage/TemplatePageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -84,7 +84,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
<TableCell>
{template.workspace_owner_count} developer{template.workspace_owner_count !== 1 && "s"}
</TableCell>
<TableCell>{dayjs().to(dayjs(template.updated_at))}</TableCell>
<TableCell data-chromatic="ignore">{dayjs().to(dayjs(template.updated_at))}</TableCell>
</TableRow>
)
})}
Expand Down
2 changes: 1 addition & 1 deletionsite/src/pages/TemplatesPage/TemplatesPageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -92,7 +92,7 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {

<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>
))}
</TableBody>
Expand Down
2 changes: 1 addition & 1 deletionsite/src/pages/WorkspacesPage/WorkspacesPageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -92,7 +92,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
)}
</TableCell>
<TableCell>
<span style={{ color: theme.palette.text.secondary }}>
<spandata-chromatic="ignore"style={{ color: theme.palette.text.secondary }}>
{dayjs().to(dayjs(workspace.latest_build.created_at))}
</span>
</TableCell>
Expand Down
6 changes: 3 additions & 3 deletionssite/src/testHelpers/entities.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,8 +80,8 @@ export const MockRunningProvisionerJob = { ...MockProvisionerJob, status: "runni

export const MockTemplate: TypesGen.Template = {
id: "test-template",
created_at:new Date().toString(),
updated_at:new Date().toString(),
created_at:"2022-05-17T17:39:01.382927298Z",
updated_at:"2022-05-18T17:39:01.382927298Z",
organization_id: MockOrganization.id,
name: "Test Template",
provisioner: MockProvisioner.id,
Expand DownExpand Up@@ -111,7 +111,7 @@ export const MockWorkspaceAutostopEnabled: TypesGen.UpdateWorkspaceAutostartRequ

export const MockWorkspaceBuild: TypesGen.WorkspaceBuild = {
build_number: 1,
created_at:new Date().toString(),
created_at:"2022-05-17T17:39:01.382927298Z",
id: "1",
initiator_id: "",
job: MockProvisionerJob,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp