File tree 6 files changed +20
-19
lines changed
WorkspaceSettingsPage/WorkspaceSchedulePage
6 files changed +20
-19
lines changed Original file line number Diff line number Diff line change
1
+ import type { Meta , StoryObj } from "@storybook/react" ;
2
+ import { chromatic } from "testHelpers/chromatic" ;
1
3
import {
2
4
MockPrimaryWorkspaceProxy ,
3
5
MockWorkspaceProxies ,
@@ -21,7 +23,6 @@ import {
21
23
} from "testHelpers/entities" ;
22
24
import { AgentRow , LineWithID } from "./AgentRow" ;
23
25
import { ProxyContext , getPreferredProxy } from "contexts/ProxyContext" ;
24
- import type { Meta , StoryObj } from "@storybook/react" ;
25
26
26
27
const defaultAgentMetadata = [
27
28
{
@@ -102,6 +103,7 @@ const storybookLogs: LineWithID[] = [
102
103
103
104
const meta : Meta < typeof AgentRow > = {
104
105
title : "components/AgentRow" ,
106
+ parameters : { chromatic } ,
105
107
component : AgentRow ,
106
108
args : {
107
109
storybookLogs,
Original file line number Diff line number Diff line change 1
- import { TemplateVersionParameter } from "api/typesGenerated" ;
2
- import { RichParameterInput } from "./RichParameterInput" ;
3
1
import type { Meta , StoryObj } from "@storybook/react" ;
2
+ import type { TemplateVersionParameter } from "api/typesGenerated" ;
3
+ import { chromatic } from "testHelpers/chromatic" ;
4
+ import { RichParameterInput } from "./RichParameterInput" ;
4
5
5
6
const meta : Meta < typeof RichParameterInput > = {
6
7
title : "components/RichParameterInput" ,
8
+ parameters : { chromatic } ,
7
9
component : RichParameterInput ,
8
10
} ;
9
11
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import TableCell from "@mui/material/TableCell";
4
4
import TableContainer from "@mui/material/TableContainer" ;
5
5
import TableHead from "@mui/material/TableHead" ;
6
6
import TableRow from "@mui/material/TableRow" ;
7
+ import type { Meta , StoryObj } from "@storybook/react" ;
8
+ import { chromatic } from "testHelpers/chromatic" ;
7
9
import {
8
10
MockAuditLog ,
9
11
MockAuditLog2 ,
@@ -12,7 +14,6 @@ import {
12
14
MockAuditLogGitSSH ,
13
15
} from "testHelpers/entities" ;
14
16
import { AuditLogRow } from "./AuditLogRow" ;
15
- import type { Meta , StoryObj } from "@storybook/react" ;
16
17
17
18
const meta : Meta < typeof AuditLogRow > = {
18
19
title : "pages/AuditPage/AuditLogRow" ,
@@ -48,13 +49,15 @@ export const NoDiff: Story = {
48
49
} ;
49
50
50
51
export const WithDiff : Story = {
52
+ parameters : { chromatic } ,
51
53
args : {
52
54
auditLog : MockAuditLog2 ,
53
55
defaultIsDiffOpen : true ,
54
56
} ,
55
57
} ;
56
58
57
59
export const WithLongDiffRow : Story = {
60
+ parameters : { chromatic } ,
58
61
args : {
59
62
auditLog : {
60
63
...MockAuditLog2 ,
Original file line number Diff line number Diff line change 1
1
import { Meta , StoryObj } from "@storybook/react" ;
2
+ import { type ComponentProps } from "react" ;
3
+ import { chromaticWithTablet } from "testHelpers/chromatic" ;
2
4
import { MockAuditLog , MockAuditLog2 , MockUser } from "testHelpers/entities" ;
3
- import { AuditPageView } from "./AuditPageView" ;
4
- import { ComponentProps } from "react" ;
5
5
import {
6
6
mockInitialRenderResult ,
7
7
mockSuccessResult ,
8
8
} from "components/PaginationWidget/PaginationContainer.mocks" ;
9
9
import { type UsePaginatedQueryResult } from "hooks/usePaginatedQuery" ;
10
+ import { AuditPageView } from "./AuditPageView" ;
10
11
11
12
import {
12
13
MockMenu ,
@@ -43,6 +44,7 @@ export default meta;
43
44
type Story = StoryObj < typeof AuditPageView > ;
44
45
45
46
export const AuditPage : Story = {
47
+ parameters : { chromatic : chromaticWithTablet } ,
46
48
args : {
47
49
auditsQuery : mockSuccessResult ,
48
50
} ,
@@ -84,12 +86,3 @@ export const NotVisible: Story = {
84
86
auditsQuery : mockInitialRenderResult ,
85
87
} ,
86
88
} ;
87
-
88
- export const AuditPageSmallViewport : Story = {
89
- args : {
90
- auditsQuery : mockSuccessResult ,
91
- } ,
92
- parameters : {
93
- chromatic : { viewports : [ 600 ] } ,
94
- } ,
95
- } ;
Original file line number Diff line number Diff line change @@ -25,13 +25,14 @@ import {
25
25
defaultSchedule ,
26
26
emptySchedule ,
27
27
} from "pages/WorkspaceSettingsPage/WorkspaceSchedulePage/schedule" ;
28
- import { ChangeEvent , FC } from "react" ;
28
+ import { type ChangeEvent , type FC } from "react" ;
29
29
import * as Yup from "yup" ;
30
30
import { getFormHelpers } from "utils/formUtils" ;
31
31
import { timeZones } from "utils/timeZones" ;
32
32
import { Pill } from "components/Pill/Pill" ;
33
33
import Tooltip from "@mui/material/Tooltip" ;
34
34
import { formatDuration , intervalToDuration } from "date-fns" ;
35
+ import { DisabledBadge } from "components/Badges/Badges" ;
35
36
36
37
// REMARK: some plugins depend on utc, so it's listed first. Otherwise they're
37
38
// sorted alphabetically.
@@ -290,7 +291,7 @@ export const WorkspaceScheduleForm: FC<
290
291
</ div >
291
292
{ ! enableAutoStart && (
292
293
< Tooltip title = "This option can be enabled in the template settings" >
293
- < Pill text = "Disabled" />
294
+ < DisabledBadge />
294
295
</ Tooltip >
295
296
) }
296
297
</ >
@@ -378,7 +379,7 @@ export const WorkspaceScheduleForm: FC<
378
379
</ div >
379
380
{ ! enableAutoStop && (
380
381
< Tooltip title = "This option can be enabled in the template settings" >
381
- < Pill text = "Disabled" />
382
+ < DisabledBadge />
382
383
</ Tooltip >
383
384
) }
384
385
</ >
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export default {
69
69
error : {
70
70
background : colors . red [ 950 ] ,
71
71
outline : colors . red [ 500 ] ,
72
- fill : colors . red [ 600 ] ,
72
+ fill : colors . red [ 400 ] ,
73
73
text : colors . red [ 50 ] ,
74
74
} ,
75
75
warning : {
You can’t perform that action at this time.
0 commit comments