found-pixel 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -18
- package/dist/baselines.js +2 -2
- package/dist/baselines.js.map +1 -1
- package/dist/comment.d.ts +15 -7
- package/dist/comment.d.ts.map +1 -1
- package/dist/comment.js +75 -67
- package/dist/comment.js.map +1 -1
- package/dist/config.d.ts +3 -16
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -7
- package/dist/config.js.map +1 -1
- package/dist/diffViewerResults.d.ts +2 -3
- package/dist/diffViewerResults.d.ts.map +1 -1
- package/dist/diffViewerResults.js +0 -2
- package/dist/diffViewerResults.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +104 -69
- package/dist/review.js.map +1 -1
- package/dist/visualRegression.d.ts.map +1 -1
- package/dist/visualRegression.js +9 -13
- package/dist/visualRegression.js.map +1 -1
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
65
65
|
ignoreModules?: string[] | undefined;
|
|
66
66
|
}>>;
|
|
67
67
|
visualRegression: z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
68
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
69
68
|
timeoutMinutes: z.ZodDefault<z.ZodNumber>;
|
|
70
69
|
/**
|
|
71
70
|
* Number of concurrent shots to take
|
|
@@ -94,19 +93,17 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
94
93
|
*/
|
|
95
94
|
pixelThreshold: z.ZodDefault<z.ZodNumber>;
|
|
96
95
|
/**
|
|
97
|
-
* Differences up to this fraction of a shot's pixels are re-shot in isolation before they're reported
|
|
98
|
-
*
|
|
99
|
-
* @default 0.005
|
|
96
|
+
* Differences up to this fraction of a shot's pixels are re-shot in isolation before they're reported.
|
|
97
|
+
* @default 1
|
|
100
98
|
*/
|
|
101
99
|
reshootBelow: z.ZodDefault<z.ZodNumber>;
|
|
102
100
|
/**
|
|
103
|
-
* Skip re-shooting when more stories than this
|
|
101
|
+
* Skip re-shooting when more stories than this differ, and report them all
|
|
104
102
|
* @default 100
|
|
105
103
|
*/
|
|
106
104
|
reshootMaxStories: z.ZodDefault<z.ZodNumber>;
|
|
107
105
|
baselines: z.ZodDefault<z.ZodBoolean>;
|
|
108
106
|
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
enabled: boolean;
|
|
110
107
|
timeoutMinutes: number;
|
|
111
108
|
shotConcurrency: number;
|
|
112
109
|
maxChangedPixels: number;
|
|
@@ -117,7 +114,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
117
114
|
threshold?: number | undefined;
|
|
118
115
|
}, {
|
|
119
116
|
threshold?: number | undefined;
|
|
120
|
-
enabled?: boolean | undefined;
|
|
121
117
|
timeoutMinutes?: number | undefined;
|
|
122
118
|
shotConcurrency?: number | undefined;
|
|
123
119
|
maxChangedPixels?: number | undefined;
|
|
@@ -126,7 +122,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
126
122
|
reshootMaxStories?: number | undefined;
|
|
127
123
|
baselines?: boolean | undefined;
|
|
128
124
|
}>, {
|
|
129
|
-
enabled: boolean;
|
|
130
125
|
timeoutMinutes: number;
|
|
131
126
|
shotConcurrency: number;
|
|
132
127
|
maxChangedPixels: number;
|
|
@@ -137,7 +132,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
137
132
|
threshold?: number | undefined;
|
|
138
133
|
}, {
|
|
139
134
|
threshold?: number | undefined;
|
|
140
|
-
enabled?: boolean | undefined;
|
|
141
135
|
timeoutMinutes?: number | undefined;
|
|
142
136
|
shotConcurrency?: number | undefined;
|
|
143
137
|
maxChangedPixels?: number | undefined;
|
|
@@ -151,19 +145,16 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
151
145
|
marker: z.ZodDefault<z.ZodString>;
|
|
152
146
|
viewerUrl: z.ZodOptional<z.ZodString>;
|
|
153
147
|
maxChars: z.ZodDefault<z.ZodNumber>;
|
|
154
|
-
codeOnlyStoriesLimit: z.ZodDefault<z.ZodNumber>;
|
|
155
148
|
}, "strip", z.ZodTypeAny, {
|
|
156
149
|
heading: string;
|
|
157
150
|
marker: string;
|
|
158
151
|
maxChars: number;
|
|
159
|
-
codeOnlyStoriesLimit: number;
|
|
160
152
|
viewerUrl?: string | undefined;
|
|
161
153
|
}, {
|
|
162
154
|
heading?: string | undefined;
|
|
163
155
|
marker?: string | undefined;
|
|
164
156
|
viewerUrl?: string | undefined;
|
|
165
157
|
maxChars?: number | undefined;
|
|
166
|
-
codeOnlyStoriesLimit?: number | undefined;
|
|
167
158
|
}>>;
|
|
168
159
|
}, "strip", z.ZodTypeAny, {
|
|
169
160
|
buildCommand: string;
|
|
@@ -184,7 +175,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
184
175
|
ignoreModules: string[];
|
|
185
176
|
};
|
|
186
177
|
visualRegression: {
|
|
187
|
-
enabled: boolean;
|
|
188
178
|
timeoutMinutes: number;
|
|
189
179
|
shotConcurrency: number;
|
|
190
180
|
maxChangedPixels: number;
|
|
@@ -198,7 +188,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
198
188
|
heading: string;
|
|
199
189
|
marker: string;
|
|
200
190
|
maxChars: number;
|
|
201
|
-
codeOnlyStoriesLimit: number;
|
|
202
191
|
viewerUrl?: string | undefined;
|
|
203
192
|
};
|
|
204
193
|
screenshots?: {
|
|
@@ -237,7 +226,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
237
226
|
} | undefined;
|
|
238
227
|
visualRegression?: {
|
|
239
228
|
threshold?: number | undefined;
|
|
240
|
-
enabled?: boolean | undefined;
|
|
241
229
|
timeoutMinutes?: number | undefined;
|
|
242
230
|
shotConcurrency?: number | undefined;
|
|
243
231
|
maxChangedPixels?: number | undefined;
|
|
@@ -251,7 +239,6 @@ export declare const ConfigSchema: z.ZodObject<{
|
|
|
251
239
|
marker?: string | undefined;
|
|
252
240
|
viewerUrl?: string | undefined;
|
|
253
241
|
maxChars?: number | undefined;
|
|
254
|
-
codeOnlyStoriesLimit?: number | undefined;
|
|
255
242
|
} | undefined;
|
|
256
243
|
}>;
|
|
257
244
|
export type Config = z.infer<typeof ConfigSchema>;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBvB;;;;OAIG
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBvB;;;;OAIG;;;;;;;;;;;QAWC;;;WAGG;;QAGH;;;;;;;WAOG;;QAGH;;WAEG;;QAGH;;;;;;WAMG;;QAGH;;;WAGG;;QAGH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBP,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AASlD,wBAAgB,UAAU,CAAC,GAAG,GAAE,MAAsB,GAAG,MAAM,CAS9D;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAYhE;AA2BD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D"}
|
package/dist/config.js
CHANGED
|
@@ -39,7 +39,6 @@ export const ConfigSchema = z.object({
|
|
|
39
39
|
.default({}),
|
|
40
40
|
visualRegression: z
|
|
41
41
|
.object({
|
|
42
|
-
enabled: z.boolean().default(true),
|
|
43
42
|
timeoutMinutes: z.number().int().positive().default(120),
|
|
44
43
|
/**
|
|
45
44
|
* Number of concurrent shots to take
|
|
@@ -68,13 +67,12 @@ export const ConfigSchema = z.object({
|
|
|
68
67
|
*/
|
|
69
68
|
pixelThreshold: z.number().min(0).max(1).default(DEFAULT_PIXEL_THRESHOLD),
|
|
70
69
|
/**
|
|
71
|
-
* Differences up to this fraction of a shot's pixels are re-shot in isolation before they're reported
|
|
72
|
-
*
|
|
73
|
-
* @default 0.005
|
|
70
|
+
* Differences up to this fraction of a shot's pixels are re-shot in isolation before they're reported.
|
|
71
|
+
* @default 1
|
|
74
72
|
*/
|
|
75
|
-
reshootBelow: z.number().min(0).max(1).default(
|
|
73
|
+
reshootBelow: z.number().min(0).max(1).default(1),
|
|
76
74
|
/**
|
|
77
|
-
* Skip re-shooting when more stories than this
|
|
75
|
+
* Skip re-shooting when more stories than this differ, and report them all
|
|
78
76
|
* @default 100
|
|
79
77
|
*/
|
|
80
78
|
reshootMaxStories: z.number().int().min(0).default(100),
|
|
@@ -93,7 +91,6 @@ export const ConfigSchema = z.object({
|
|
|
93
91
|
marker: z.string().default("<!-- found-pixel-comment -->"),
|
|
94
92
|
viewerUrl: z.string().url().optional(),
|
|
95
93
|
maxChars: z.number().int().positive().default(62000),
|
|
96
|
-
codeOnlyStoriesLimit: z.number().int().positive().default(50),
|
|
97
94
|
})
|
|
98
95
|
.default({}),
|
|
99
96
|
});
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAC3D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACjD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;IAC7C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;QACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;KACnB,CAAC;IACF,WAAW,EAAE,CAAC;SACX,MAAM,CAAC;QACN,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;YACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;YAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;SACnB,CAAC;QACF,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC1C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,G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AAG,EAAE,EAAE,CACtC,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,CAChG,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW,EAAE,IAAY;IACpD,OAAO,WAAW,GAAG,CAAC,EAAE,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,CAAC,MAAM,kBAAkB,QAAQ,CAAC,GAAG,CAAC,cAAc,IAAI,mBAAmB,CAAC;AAC1H,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,IAAY;IAClD,OAAO,WAAW,GAAG,CAAC,EAAE,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,CAAC,MAAM,kBAAkB,QAAQ,CAAC,GAAG,CAAC,cAAc,IAAI,mBAAmB,CAAC;AAC1H,CAAC"}
|
|
@@ -40,9 +40,8 @@ export interface DiffViewerResults {
|
|
|
40
40
|
}
|
|
41
41
|
export interface BuildDiffViewerResultsArgs {
|
|
42
42
|
diff: StorybookDiff;
|
|
43
|
-
/** Story IDs that produced a pixel-level diff.
|
|
44
|
-
|
|
45
|
-
visualIds?: string[];
|
|
43
|
+
/** Story IDs that produced a pixel-level diff. */
|
|
44
|
+
visualIds: string[];
|
|
46
45
|
base: string;
|
|
47
46
|
head: string;
|
|
48
47
|
repo: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffViewerResults.d.ts","sourceRoot":"","sources":["../src/diffViewerResults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAwB,aAAa,EAAE,MAAM,cAAc,CAAC;AAGxE,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,OAAO,CAAC;AAErD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,gBAAgB,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM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AAgB,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,wGAAwG;IACxG,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,aAAa,CAAC;IACpB,kDAAkD;IAClD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,0BAA0B,GAAG,iBAAiB,CA2C1F"}
|
|
@@ -29,8 +29,6 @@ function coverage(available, compared, changed, failedIds) {
|
|
|
29
29
|
return { available, checked, failed, skipped: available - checked - failed, unchanged: checked - changed.length };
|
|
30
30
|
}
|
|
31
31
|
function filterVisuallyModified(modified, visualIds) {
|
|
32
|
-
if (visualIds === undefined)
|
|
33
|
-
return modified;
|
|
34
32
|
const visualSet = new Set(visualIds);
|
|
35
33
|
// Mirrors the prefix-match in comment.ts so renamed/parameterised IDs
|
|
36
34
|
// (`foo--bar.docs`, etc.) still match against their root story id.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diffViewerResults.js","sourceRoot":"","sources":["../src/diffViewerResults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"diffViewerResults.js","sourceRoot":"","sources":["../src/diffViewerResults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA6DxC,MAAM,UAAU,sBAAsB,CAAC,IAAgC;IACrE,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,GAAG,EAAE,EACb,gBAAgB,GAAG,EAAE,EACrB,KAAK,GAAG,EAAE,EACV,SAAS,GAAG,EAAE,EACd,SAAS,GACV,GAAG,IAAI,CAAC;IAET,MAAM,KAAK,GAAqB,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC7D,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CACtB,CAAC;IACF,MAAM,OAAO,GAAqB,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/D,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,CACxB,CAAC;IACF,MAAM,QAAQ,GAAqB,sBAAsB,CACvD,IAAI,CAAC,QAAQ,IAAI,EAAE,EACnB,SAAS,CACV,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,CAAC,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AmB,CAC1B,IAAoB,EACpB,gBAAwC,EACxC,KAA4B;IAE5B,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,KAAK,IAAI,CAAC,EAAE,IAAI,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACrH,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/F,OAAO,EAAE,GAAG,IAAI,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AACxD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { loadConfig, ConfigSchema, type Config } from "./config.js";
|
|
2
|
-
export { renderComment, type RenderInput, type StorybookDiff, type Story } from "./comment.js";
|
|
2
|
+
export { renderComment, renderFailure, renderInProgress, renderMissingBaseline, type NoticeInput, type RenderInput, type StorybookDiff, type Story, } from "./comment.js";
|
|
3
3
|
export { build } from "./build.js";
|
|
4
4
|
export { review } from "./review.js";
|
|
5
5
|
export { buildDiffViewerResults, type DiffViewerResults, type DiffViewerItem, type DiffViewerChange, } from "./diffViewerResults.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,KAAK,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,sBAAsB,EACtB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { loadConfig, ConfigSchema } from "./config.js";
|
|
2
|
-
export { renderComment } from "./comment.js";
|
|
2
|
+
export { renderComment, renderFailure, renderInProgress, renderMissingBaseline, } from "./comment.js";
|
|
3
3
|
export { build } from "./build.js";
|
|
4
4
|
export { review } from "./review.js";
|
|
5
5
|
export { buildDiffViewerResults, } from "./diffViewerResults.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAe,MAAM,aAAa,CAAC;AACpE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAe,MAAM,aAAa,CAAC;AACpE,OAAO,EACL,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,qBAAqB,GAKtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EACL,sBAAsB,GAIvB,MAAM,wBAAwB,CAAC"}
|
package/dist/review.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,aAAa,CAAC;AA+BxD,MAAM,WAAW,aAAa;IAC5B,gFAAgF;IAChF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAsB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2OpF"}
|
package/dist/review.js
CHANGED
|
@@ -3,7 +3,7 @@ import { execa } from "execa";
|
|
|
3
3
|
import { mkdirSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { annotate, readContext, uploadArtifact, slugify, } from "./buildkite.js";
|
|
6
|
-
import { buildReviewUrl, filterVisuallyModified, renderComment } from "./comment.js";
|
|
6
|
+
import { buildReviewUrl, filterVisuallyModified, renderComment, renderFailure, renderInProgress, renderMissingBaseline, } from "./comment.js";
|
|
7
7
|
import { storybookUrl } from "./config.js";
|
|
8
8
|
import { createCommitStatus, createPlaceholderCommentIfNeeded, getMergeBase, getPullRequestAuthor, upsertComment, } from "./github.js";
|
|
9
9
|
import { archiveKey, createS3, flakyKey, resultsKey, shotKeyPrefix } from "./storage.js";
|
|
@@ -25,6 +25,7 @@ const BASE_ARCHIVE = "/tmp/found-pixel-base.tar.gz";
|
|
|
25
25
|
const BASE_RETRY_ATTEMPTS = 10;
|
|
26
26
|
const BASE_RETRY_DELAY_MS = 30_000;
|
|
27
27
|
const VERY_LARGE_VISREG_STORY_COUNT = 500;
|
|
28
|
+
const FAILURE_TITLE = "Visual regression failed";
|
|
28
29
|
export async function review(cfg, options = {}) {
|
|
29
30
|
const forceFullReview = options.forceFullReview ?? false;
|
|
30
31
|
const ctx = readContext();
|
|
@@ -44,10 +45,9 @@ export async function review(cfg, options = {}) {
|
|
|
44
45
|
? baselineLoader(cfg, { slug: baseSlug, dir: BASE_DIR }, baselinesAbort.signal)
|
|
45
46
|
: undefined;
|
|
46
47
|
let diff;
|
|
48
|
+
let storybookDiffFailed;
|
|
47
49
|
try {
|
|
48
|
-
diff = forceFullReview
|
|
49
|
-
? await buildFullDiff(cfg, artifactsDir)
|
|
50
|
-
: await runStorybookDiff(cfg, artifactsDir);
|
|
50
|
+
({ diff, storybookDiffFailed } = await diffStories(cfg, artifactsDir, forceFullReview));
|
|
51
51
|
}
|
|
52
52
|
catch (err) {
|
|
53
53
|
await reportDiffFailure(cfg, ctx, err);
|
|
@@ -58,7 +58,7 @@ export async function review(cfg, options = {}) {
|
|
|
58
58
|
// enough that reviewers would otherwise see nothing for several minutes.
|
|
59
59
|
// Otherwise skip so GitHub notification comes in when actually ready.
|
|
60
60
|
if (modified.length >= VERY_LARGE_VISREG_STORY_COUNT) {
|
|
61
|
-
await postPlaceholderComment(cfg, ctx);
|
|
61
|
+
await postPlaceholderComment(cfg, ctx, modified.length + (diff.created ?? []).length);
|
|
62
62
|
}
|
|
63
63
|
const modifiedIds = modified.map((s) => s.id);
|
|
64
64
|
const createdIds = (diff.created ?? []).map((s) => s.id);
|
|
@@ -69,16 +69,16 @@ export async function review(cfg, options = {}) {
|
|
|
69
69
|
console.log(`Found ${modifiedIds.length} modified (${renames.length} renamed) + ${createdIds.length} created stories for visual regression`);
|
|
70
70
|
const repoName = cfg.github.repo.split("/")[1] ?? cfg.github.repo;
|
|
71
71
|
const compareSlug = ctx.branchSlug;
|
|
72
|
-
let visualIds;
|
|
72
|
+
let visualIds = [];
|
|
73
73
|
let flakyIds = [];
|
|
74
74
|
let pixelDifferences = {};
|
|
75
75
|
let sizes = {};
|
|
76
76
|
let shotHashes = {};
|
|
77
77
|
let failedIds = [];
|
|
78
78
|
let uploaded;
|
|
79
|
-
let
|
|
79
|
+
let visualRegressionError;
|
|
80
80
|
const changedCount = modifiedIds.length + createdIds.length + deletedIds.length;
|
|
81
|
-
if (
|
|
81
|
+
if (changedCount > 0) {
|
|
82
82
|
try {
|
|
83
83
|
const s3Upload = cfg.screenshots
|
|
84
84
|
? {
|
|
@@ -123,13 +123,18 @@ export async function review(cfg, options = {}) {
|
|
|
123
123
|
await uploadArtifact(`${cfg.artifactsDir}/visual-regression.json`);
|
|
124
124
|
}
|
|
125
125
|
catch (err) {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
visualRegressionError = failureReason(err);
|
|
127
|
+
failedIds = [...createdIds, ...modifiedIds];
|
|
128
|
+
console.warn("+++ :warning: Visual regression failed");
|
|
128
129
|
console.warn(err);
|
|
129
|
-
await annotate(`:storybook: Visual regression skipped: \`${err instanceof Error ? err.message : String(err)}\``, { context: "visual-regression", style: "warning" });
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
baselinesAbort.abort();
|
|
133
|
+
const failure = visualRegressionError !== undefined
|
|
134
|
+
? inlineCode(visualRegressionError)
|
|
135
|
+
: failedIds.length > 0
|
|
136
|
+
? `${failedIds.length} ${failedIds.length === 1 ? "screenshot" : "screenshots"} failed`
|
|
137
|
+
: undefined;
|
|
133
138
|
const shortSha = ctx.commitSha.slice(0, 7);
|
|
134
139
|
const cacheBust = shortSha || ctx.buildNumber;
|
|
135
140
|
const shotUrls = (storyId, kind) => {
|
|
@@ -140,6 +145,7 @@ export async function review(cfg, options = {}) {
|
|
|
140
145
|
.sort(([a], [b]) => a.localeCompare(b))
|
|
141
146
|
.map(([shotId, url]) => ({ shotId, url: `${url}?v=${cacheBust}` }));
|
|
142
147
|
};
|
|
148
|
+
const totalStories = readStoryIndex(cfg.outputDir).length;
|
|
143
149
|
const results = buildDiffViewerResults({
|
|
144
150
|
diff,
|
|
145
151
|
visualIds,
|
|
@@ -152,32 +158,38 @@ export async function review(cfg, options = {}) {
|
|
|
152
158
|
buildUrl: ctx.buildUrl,
|
|
153
159
|
pullUrl: `https://github.com/${cfg.github.repo}/pull/${ctx.pullRequest}`,
|
|
154
160
|
failedIds,
|
|
155
|
-
available:
|
|
161
|
+
available: totalStories,
|
|
156
162
|
});
|
|
157
163
|
results.fingerprint = fingerprintResults(results.diff, shotHashes, { failedIds, unverifiedSalt: ctx.commitSha });
|
|
158
164
|
const requireReview = await resolveRequireReview(cfg, ctx);
|
|
159
165
|
const reviewFingerprint = requireReview ? results.fingerprint : undefined;
|
|
160
|
-
const body =
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
const body = failure !== undefined
|
|
167
|
+
? renderFailure({ reason: failure, buildUrl: ctx.buildUrl, comment: cfg.comment })
|
|
168
|
+
: renderComment({
|
|
169
|
+
diff,
|
|
170
|
+
visualIds,
|
|
171
|
+
baseSlug,
|
|
172
|
+
compareSlug,
|
|
173
|
+
repoName,
|
|
174
|
+
buildUrl: ctx.buildUrl,
|
|
175
|
+
storybookUrl: (slug) => storybookUrl(cfg, slug),
|
|
176
|
+
shotUrls,
|
|
177
|
+
totalStories,
|
|
178
|
+
storybookDiffFailed,
|
|
179
|
+
flakyIds,
|
|
180
|
+
fingerprint: reviewFingerprint,
|
|
181
|
+
comment: cfg.comment,
|
|
182
|
+
});
|
|
175
183
|
await writeStorySummary(cfg, artifactsDir, results, compareSlug);
|
|
176
184
|
await recordFlakyStories(cfg, ctx, diff, flakyIds, resolve(artifactsDir, "flaky"));
|
|
177
|
-
const { summary,
|
|
178
|
-
|
|
179
|
-
?
|
|
180
|
-
:
|
|
185
|
+
const { summary, changes } = summarize(diff, visualIds);
|
|
186
|
+
const mode = forceFullReview
|
|
187
|
+
? " (full review)"
|
|
188
|
+
: storybookDiffFailed
|
|
189
|
+
? " (storybook-diff failed, all stories checked)"
|
|
190
|
+
: "";
|
|
191
|
+
const outcome = failure !== undefined ? `${FAILURE_TITLE}: ${failure}` : summary;
|
|
192
|
+
let annotationBody = `:storybook: Storybook Diff${mode}: ${outcome} (base: \`${baseSlug}\`)`;
|
|
181
193
|
const token = process.env.GITHUB_PR_TOKEN ?? process.env.GITHUB_TOKEN;
|
|
182
194
|
if (token) {
|
|
183
195
|
try {
|
|
@@ -195,31 +207,27 @@ export async function review(cfg, options = {}) {
|
|
|
195
207
|
console.warn("PR comment upsert failed:", err);
|
|
196
208
|
}
|
|
197
209
|
const reviewCommitStatus = "UI Review";
|
|
198
|
-
const unverified = requireReview && failedIds.length > 0;
|
|
199
210
|
const reviewUrl = buildReviewUrl({
|
|
200
211
|
viewerUrl: cfg.comment.viewerUrl,
|
|
201
212
|
repoName,
|
|
202
213
|
compareSlug,
|
|
203
|
-
fingerprint:
|
|
214
|
+
fingerprint: changes > 0 ? reviewFingerprint : undefined,
|
|
204
215
|
});
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
?
|
|
209
|
-
:
|
|
210
|
-
|
|
211
|
-
: "No changes";
|
|
216
|
+
const status = !reviewUrl
|
|
217
|
+
? undefined
|
|
218
|
+
: failure !== undefined
|
|
219
|
+
? { state: "error", description: FAILURE_TITLE, targetUrl: ctx.buildUrl }
|
|
220
|
+
: { state: changes > 0 && requireReview ? "pending" : "success", description: summary, targetUrl: reviewUrl };
|
|
221
|
+
if (status && ctx.commitSha) {
|
|
212
222
|
try {
|
|
213
223
|
await createCommitStatus({
|
|
214
224
|
repo: cfg.github.repo,
|
|
215
225
|
sha: ctx.commitSha,
|
|
216
|
-
state,
|
|
217
226
|
context: reviewCommitStatus,
|
|
218
|
-
description,
|
|
219
|
-
targetUrl: reviewUrl,
|
|
220
227
|
token,
|
|
228
|
+
...status,
|
|
221
229
|
});
|
|
222
|
-
console.log(`Posted "${reviewCommitStatus}" commit status (${state}): ${description}`);
|
|
230
|
+
console.log(`Posted "${reviewCommitStatus}" commit status (${status.state}): ${status.description}`);
|
|
223
231
|
}
|
|
224
232
|
catch (err) {
|
|
225
233
|
console.warn(`"${reviewCommitStatus}" commit status failed:`, err);
|
|
@@ -232,7 +240,10 @@ export async function review(cfg, options = {}) {
|
|
|
232
240
|
else {
|
|
233
241
|
console.log("Skipping PR comment (no GITHUB_PR_TOKEN or GITHUB_TOKEN)");
|
|
234
242
|
}
|
|
235
|
-
await annotate(annotationBody, {
|
|
243
|
+
await annotate(annotationBody, {
|
|
244
|
+
context: "storybook-diff",
|
|
245
|
+
style: failure !== undefined ? "error" : storybookDiffFailed ? "warning" : "info",
|
|
246
|
+
});
|
|
236
247
|
}
|
|
237
248
|
async function resolveRequireReview(cfg, ctx) {
|
|
238
249
|
const setting = cfg.requireReview;
|
|
@@ -344,8 +355,20 @@ async function resolveMergeBase(cfg, ctx) {
|
|
|
344
355
|
return null;
|
|
345
356
|
}
|
|
346
357
|
}
|
|
358
|
+
async function diffStories(cfg, artifactsDir, forceFullReview) {
|
|
359
|
+
if (forceFullReview) {
|
|
360
|
+
console.log("--- :mag: Full review label present — reviewing every story");
|
|
361
|
+
return { diff: await buildFullDiff(cfg, artifactsDir), storybookDiffFailed: false };
|
|
362
|
+
}
|
|
363
|
+
try {
|
|
364
|
+
return { diff: await runStorybookDiff(cfg, artifactsDir), storybookDiffFailed: false };
|
|
365
|
+
}
|
|
366
|
+
catch (err) {
|
|
367
|
+
console.warn(`+++ :warning: storybook-diff failed — reviewing every story: ${failureReason(err)}`);
|
|
368
|
+
return { diff: await buildFullDiff(cfg, artifactsDir), storybookDiffFailed: true };
|
|
369
|
+
}
|
|
370
|
+
}
|
|
347
371
|
async function buildFullDiff(cfg, artifactsDir) {
|
|
348
|
-
console.log("--- :mag: Full review label present — reviewing every story");
|
|
349
372
|
const diff = fullStorybookDiff(BASE_DIR, cfg.outputDir);
|
|
350
373
|
writeFileSync(resolve(artifactsDir, "storybook-diff-output.json"), JSON.stringify(diff));
|
|
351
374
|
await uploadArtifact(`${cfg.artifactsDir}/storybook-diff-output.json`);
|
|
@@ -359,13 +382,11 @@ async function runStorybookDiff(cfg, artifactsDir) {
|
|
|
359
382
|
await uploadArtifact(`${cfg.artifactsDir}/storybook-diff-output.json`);
|
|
360
383
|
return JSON.parse(stdout);
|
|
361
384
|
}
|
|
362
|
-
async function postPlaceholderComment(cfg, ctx) {
|
|
385
|
+
async function postPlaceholderComment(cfg, ctx, storyCount) {
|
|
363
386
|
const token = process.env.GITHUB_PR_TOKEN ?? process.env.GITHUB_TOKEN;
|
|
364
387
|
if (!token || !ctx.pullRequest)
|
|
365
388
|
return;
|
|
366
|
-
const body =
|
|
367
|
-
`### ${cfg.comment.heading}\n\n` +
|
|
368
|
-
`⏳ _Generating..._ ([build](${ctx.buildUrl}))`;
|
|
389
|
+
const body = renderInProgress({ storyCount, buildUrl: ctx.buildUrl, comment: cfg.comment });
|
|
369
390
|
try {
|
|
370
391
|
const result = await createPlaceholderCommentIfNeeded({
|
|
371
392
|
repo: cfg.github.repo,
|
|
@@ -382,23 +403,31 @@ async function postPlaceholderComment(cfg, ctx) {
|
|
|
382
403
|
}
|
|
383
404
|
}
|
|
384
405
|
async function reportMissingBaseline(cfg, ctx) {
|
|
385
|
-
|
|
386
|
-
|
|
406
|
+
console.warn(`No base storybook found in S3 for ${cfg.defaultBranch}`);
|
|
407
|
+
await reportNotice(cfg, ctx, {
|
|
408
|
+
body: renderMissingBaseline({ buildUrl: ctx.buildUrl, comment: cfg.comment }),
|
|
409
|
+
annotation: ":storybook: Storybook Diff: Nothing to compare: No base Storybook exists. " +
|
|
410
|
+
"Get results once baseline is uploaded.",
|
|
411
|
+
style: "warning",
|
|
412
|
+
});
|
|
387
413
|
}
|
|
388
414
|
async function reportDiffFailure(cfg, ctx, err) {
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
await reportNotice(cfg, ctx,
|
|
392
|
-
|
|
415
|
+
const reason = inlineCode(failureReason(err));
|
|
416
|
+
console.warn(`${FAILURE_TITLE}: ${reason}`);
|
|
417
|
+
await reportNotice(cfg, ctx, {
|
|
418
|
+
body: renderFailure({ reason, buildUrl: ctx.buildUrl, comment: cfg.comment }),
|
|
419
|
+
annotation: `:storybook: Storybook Diff: ${FAILURE_TITLE}: ${reason}`,
|
|
420
|
+
style: "error",
|
|
421
|
+
});
|
|
393
422
|
const token = process.env.GITHUB_PR_TOKEN ?? process.env.GITHUB_TOKEN;
|
|
394
|
-
if (token && ctx.commitSha) {
|
|
423
|
+
if (token && ctx.commitSha && cfg.comment.viewerUrl) {
|
|
395
424
|
try {
|
|
396
425
|
await createCommitStatus({
|
|
397
426
|
repo: cfg.github.repo,
|
|
398
427
|
sha: ctx.commitSha,
|
|
399
428
|
state: "error",
|
|
400
429
|
context: "UI Review",
|
|
401
|
-
description:
|
|
430
|
+
description: FAILURE_TITLE,
|
|
402
431
|
targetUrl: ctx.buildUrl,
|
|
403
432
|
token,
|
|
404
433
|
});
|
|
@@ -408,8 +437,7 @@ async function reportDiffFailure(cfg, ctx, err) {
|
|
|
408
437
|
}
|
|
409
438
|
}
|
|
410
439
|
}
|
|
411
|
-
async function reportNotice(cfg, ctx,
|
|
412
|
-
console.warn(msg);
|
|
440
|
+
async function reportNotice(cfg, ctx, notice) {
|
|
413
441
|
const token = process.env.GITHUB_PR_TOKEN ?? process.env.GITHUB_TOKEN;
|
|
414
442
|
if (token && ctx.pullRequest) {
|
|
415
443
|
try {
|
|
@@ -417,7 +445,7 @@ async function reportNotice(cfg, ctx, msg, style) {
|
|
|
417
445
|
repo: cfg.github.repo,
|
|
418
446
|
issue: ctx.pullRequest,
|
|
419
447
|
marker: cfg.comment.marker,
|
|
420
|
-
body:
|
|
448
|
+
body: notice.body,
|
|
421
449
|
token,
|
|
422
450
|
});
|
|
423
451
|
console.log(`PR comment ${result.action}: ${result.url}`);
|
|
@@ -426,11 +454,18 @@ async function reportNotice(cfg, ctx, msg, style) {
|
|
|
426
454
|
console.warn("PR comment upsert failed:", err);
|
|
427
455
|
}
|
|
428
456
|
}
|
|
429
|
-
await annotate(
|
|
457
|
+
await annotate(notice.annotation, {
|
|
430
458
|
context: "storybook-diff",
|
|
431
|
-
style,
|
|
459
|
+
style: notice.style,
|
|
432
460
|
});
|
|
433
461
|
}
|
|
462
|
+
function failureReason(err) {
|
|
463
|
+
const stderr = err.stderr?.trim();
|
|
464
|
+
return stderr?.split("\n").at(-1) || (err instanceof Error ? err.message : String(err));
|
|
465
|
+
}
|
|
466
|
+
function inlineCode(text) {
|
|
467
|
+
return `\`${text.replaceAll("`", "'")}\``;
|
|
468
|
+
}
|
|
434
469
|
async function writeStorySummary(cfg, artifactsDir, summary, compareSlug) {
|
|
435
470
|
const localPath = resolve(artifactsDir, "results.json");
|
|
436
471
|
writeFileSync(localPath, JSON.stringify(summary, null, 2));
|
|
@@ -494,21 +529,21 @@ function summarize(diff, visuallyModifiedIds) {
|
|
|
494
529
|
const s = diff.summary ?? {};
|
|
495
530
|
const modified = filterVisuallyModified(diff.modified ?? [], visuallyModifiedIds).length;
|
|
496
531
|
const parts = [];
|
|
497
|
-
let
|
|
532
|
+
let changes = 0;
|
|
498
533
|
if (s.created) {
|
|
499
534
|
parts.push(`${s.created} added`);
|
|
500
|
-
|
|
535
|
+
changes += s.created;
|
|
501
536
|
}
|
|
502
537
|
if (modified) {
|
|
503
538
|
parts.push(`${modified} modified`);
|
|
504
|
-
|
|
539
|
+
changes += modified;
|
|
505
540
|
}
|
|
506
541
|
if (s.deleted) {
|
|
507
542
|
parts.push(`${s.deleted} deleted`);
|
|
508
|
-
|
|
543
|
+
changes += s.deleted;
|
|
509
544
|
}
|
|
510
545
|
return parts.length
|
|
511
|
-
? { summary: parts.join(", "),
|
|
512
|
-
: { summary: "No
|
|
546
|
+
? { summary: parts.join(", "), changes }
|
|
547
|
+
: { summary: "No changes detected", changes };
|
|
513
548
|
}
|
|
514
549
|
//# sourceMappingURL=review.js.map
|