blob: 3c5a3f5ca1070aa236aba9e84c7c7992ffa04652 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2022 The Chromium Authors
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +02002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// TODO: create a `monorail/frontend/config/` folder to store all the feature config file
6import {IssueCategory, IssueWizardPersona, CustomQuestionType} from "./IssueWizardTypes.tsx";
7
8// Customer Question convert to related labels
9export const LABELS_PREFIX = 'LABELS: ';
10
11export const ISSUE_WIZARD_QUESTIONS: IssueCategory[] = [
12 {
13 name: 'UI',
14 description: 'Problems with the user interface (e.g. tabs, context menus, etc...)',
15 persona: IssueWizardPersona.EndUser,
16 enabled: true,
17 component: 'Cr-UI',
18 customQuestions: [],
19 },
20 {
21 name: 'Network / Downloading',
22 description: 'Problems with accessing remote content',
23 persona: IssueWizardPersona.EndUser,
24 enabled: true,
25 component: 'Cr-Internals-Network',
26 customQuestions: [
27 {
28 type: CustomQuestionType.Input,
29 question: "What specific URL can reproduce the problem?",
30 answerPrefix: "Example URL: ",
31 },
32 ],
33 },
34 {
35 name: 'Audio / Video',
36 description: 'Problems playing back sound or movies',
37 persona: IssueWizardPersona.EndUser,
38 enabled: true,
39 component: 'Cr-Internals-Media',
40 customQuestions: [
41 {
42 type: CustomQuestionType.Input,
43 question: "What specific URL can reproduce the problem?",
44 answerPrefix: "Example URL: ",
45 },
46 {
47 type: CustomQuestionType.Select,
48 question: "Does this feature work correctly in other browsers?",
49 answerPrefix: "Does this work in other browsers?\n",
50 options: ["Not sure - I don't know", "Yes - This is just a Chromium problem", "No - I can reproduce the problem in another browser"],
51 subQuestions: [
52 null,
53 null,
54 {
55 type:CustomQuestionType.Input,
56 question: "Which other browsers (including versions) also have the problem?",
57 }],
58 },
59 {
60 type: CustomQuestionType.Text,
61 question: "Please open chrome://gpu in a new Chrome tab and paste the report here.",
62 answerPrefix: "Contents of chrome://gpu: \n",
63 }
64 ],
65 },
66 {
67 name: 'Content',
68 description: "Problems with webpages not working correctly",
69 persona: IssueWizardPersona.EndUser,
70 enabled: true,
71 component: '',
72 customQuestions: [
73 {
74 type: CustomQuestionType.Input,
75 question: "What specific URL has a problem?",
76 answerPrefix: "Example URL: ",
77 },
78 {
79 type: CustomQuestionType.Select,
80 question: "Does the problem occur on multiple sites?",
81 answerPrefix: LABELS_PREFIX,
82 options: ["Not sure - I don't know", "Yes - Please describe below", "No - Just that one URL"],
83 subQuestions: [null,null,null],
84 },
85 {
86 type: CustomQuestionType.Select,
87 question: "Is it a problem with a plugin?",
88 answerPrefix: "Is it a problem with a plugin? ",
89 options: ["Not sure - I don't know", "Yes - Those darn plugins", "No - It's the browser itself"],
90 subQuestions: [
91 null,
92 {
93 type:CustomQuestionType.Input,
94 question: "Which plugin?",
95 },
96 null],
97 },
98 {
99 type: CustomQuestionType.Select,
100 question: "Does this feature work correctly in other browsers?",
101 answerPrefix: "Does this work in other browsers? ",
102 options: ["Not sure - I don't know", "Yes - This is just a Chromium problem", "No - I can reproduce the problem in another browser"],
103 subQuestions: [
104 null,
105 null,
106 {
107 type:CustomQuestionType.Input,
108 question: "Which other browsers (including versions) also have the problem?",
109 }],
110 },
111 ],
112 },
113 {
114 name: 'Apps',
115 description: 'Issues with Webstore apps',
116 persona: IssueWizardPersona.EndUser,
117 enabled: true,
118 component: 'Cr-Platform-Apps',
119 customQuestions: [
120 {
121 type: CustomQuestionType.Input,
122 question: "What is the link to that software in <a href='https://chrome.google.com/webstore' target='_blank'>the Chrome Webstore </a>?",
123 answerPrefix: "Webstore page: ",
124 }
125 ],
126 },
127 {
128 name: 'Extensions / Themes',
129 description: 'Issues with Webstore extensions and themes',
130 persona: IssueWizardPersona.EndUser,
131 enabled: true,
132 component: 'Cr-Platform-Extensions',
133 customQuestions: [
134 {
135 type: CustomQuestionType.Select,
136 question: "What kind of software had the problem?",
137 answerPrefix: LABELS_PREFIX,
138 options: ["Chrome Extension - Adds new browser functionality", "Chrome Theme - Makes Chrome look awesome"],
139 subQuestions: [
140 null,
141 {
142 type:CustomQuestionType.Input,
143 question: "Do you know the latest version where it worked?",
144 },
145 null],
146 },
147 {
148 type: CustomQuestionType.Input,
149 question: "What is the link to that software in <a href='https://chrome.google.com/webstore' target='_blank'>the Chrome Webstore</a>?",
150 answerPrefix: "WebStore page: ",
151 },
152 ],
153 },
154 {
155 name: 'Webstore',
156 description: 'Problems with the Chrome Webstore itself',
157 persona: IssueWizardPersona.EndUser,
158 enabled: true,
159 component: 'Cr-Webstore',
160 customQuestions: [
161 {
162 type: CustomQuestionType.Input,
163 question: "What is the URL of the Chrome WesStore page that had the problem?",
164 answerPrefix: "Webstore page: ",
165 },
166 ],
167 },
168 {
169 name: 'Sync',
170 description: 'Problems syncing data to a Google account',
171 persona: IssueWizardPersona.EndUser,
172 enabled: true,
173 component: 'Cr-Services-Sync',
174 customQuestions: [],
175 },
176 {
177 name: 'Enterprise',
178 description: 'Policy configuration and deployment issues',
179 persona: IssueWizardPersona.EndUser,
180 enabled: true,
181 component: 'Cr-Enterprise',
182 customQuestions: [],
183 },
184 {
185 name: 'Installation',
186 description: 'Problem installing Chrome',
187 persona: IssueWizardPersona.EndUser,
188 enabled: true,
189 component: 'Cr-Internals-Installer',
190 customQuestions: [],
191 },
192 {
193 name: 'Crashes',
194 description: 'The browser closes abruptly or I see "Aw, Snap!" pages',
195 persona: IssueWizardPersona.EndUser,
196 enabled: true,
197 tip: 'Please read the instructions on <a href="https://sites.google.com/a/chromium.org/dev/for-testers/bug-reporting-guidelines/reporting-crash-bug" target="_blank">reporting a crash issue</a>',
198 component: '',
199 customQuestions: [
200 {
201 type: CustomQuestionType.Input,
202 question: "Do you have a Report ID from chrome://crashes?",
203 answerPrefix: "Crashed report ID: ",
204 },
205 {
206 type: CustomQuestionType.Select,
207 question: "How severe is the crash?",
208 options: ["Just one tab", "Just one plugin", "The whole browser"],
209 answerPrefix: "How much crashed? ",
210 subQuestions: null,
211 },
212 {
213 type: CustomQuestionType.Select,
214 question: "Is it a problem with a plugin?",
215 answerPrefix: "Is it a problem with a plugin? ",
216 options: ["Not sure - I don't know", "Yes - Those darn plugins", "No - It's the browser itself"],
217 subQuestions: [
218 null,
219 {
220 type:CustomQuestionType.Input,
221 question: "Which plugin?",
222 },
223 null],
224 },
225 ],
226 labels: ['Stability-Crash'],
227 },
228 {
229 name: 'Security',
230 description: 'Problems with the browser security',
231 persona: IssueWizardPersona.EndUser,
232 enabled: true,
233 tip: 'Please follow the instructions for <a href="https://www.chromium.org/Home/chromium-security/reporting-security-bugs" target="_blank">reporting security issues</a>.',
234 component: '',
235 customQuestions: [],
236 labels: ['Restrict-View-SecurityTeam'],
237 },
238 {
239 name: 'Other',
240 description: 'Something not listed here',
241 persona: IssueWizardPersona.EndUser,
242 enabled: true,
243 component: '',
244 customQuestions: [
245 {
246 type: CustomQuestionType.Select,
247 question: "Please select a label to classify your issue:",
248 answerPrefix: LABELS_PREFIX,
249 options: [
250 "Not sure - I don't know",
251 "Type-Feature - Request for new or improved features",
252 "Type-Bug-Regression - Used to work, now broken",
253 "Type-Bug - Software not working correctly",
254 "Cr-UI-I18N - Issue in translating UI to other languages"
255 ],
256 subQuestions: null,
257 },
258 ],
259 },
260 {
261 name: 'API',
262 description: 'Problems with a browser API',
263 persona: IssueWizardPersona.Developer,
264 enabled: true,
265 component: '',
266 customQuestions: [
267 {
268 type:CustomQuestionType.Select,
269 question:"Which <a href='https://bugs.chromium.org/p/chromium/adminComponents' target='_blank'>component</a> does this fall under?",
270 answerPrefix: LABELS_PREFIX,
271 options: [
272 "Not sure - I don't know",
273 "Blink>Animation",
274 "Blink>BackgroundSync",
275 "Blink>Bindings",
276 "Blink>Bluetooth",
277 "Blink>Canvas",
278 "Blink>Compositing",
279 "Blink>CSS",
280 "Blink>DataTransfer",
281 "Blink>DOM",
282 "Blink>Editing",
283 "Blink>FileAPI",
284 "Blink>Focus",
285 "Blink>Fonts",
286 "Blink>Forms",
287 "Blink>Fullscreen",
288 "Blink>GamepadAPI",
289 "Blink>GetUserMedia",
290 "Blink>HitTesting",
291 "Blink>HTML",
292 "Blink>Image",
293 "Blink>Input",
294 "Blink>Internals",
295 "Blink>Javascript",
296 "Blink>Layout",
297 "Blink>Loader",
298 "Blink>Location",
299 "Blink>Media",
300 "Blink>MediaStream",
301 "Blink>MemoryAllocator",
302 "Blink>Messaging",
303 "Blink>Network",
304 "Blink>Paint",
305 "Blink>Payments",
306 "Blink>PerformanceAPIs",
307 "Blink>PermissionsAPI",
308 "Blink>PresentationAPI",
309 "Blink>PushAPI",
310 "Blink>SavePage",
311 "Blink>Scheduling",
312 "Blink>Scroll",
313 "Blink>SecurityFeature",
314 "Blink>ServiceWorker",
315 "Blink>Speech",
316 "Blink>Storage",
317 "Blink>SVG",
318 "Blink>TextAutosize",
319 "Blink>TextEncoding",
320 "Blink>TextSelection",
321 "Blink>USB",
322 "Blink>Vibration",
323 "Blink>ViewSource",
324 "Blink>WebAudio",
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +0100325 "Blink>WebAuthentication",
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200326 "Blink>WebComponents",
327 "Blink>WebCrypto",
328 "Blink>WebFonts",
329 "Blink>WebGL",
330 "Blink>WebGPU",
331 "Blink>WebMIDI",
332 "Blink>WebRTC",
333 "Blink>WebShare",
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +0100334 "Blink>WebXR",
Adrià Vilanova Martínezac4a6442022-05-15 19:05:13 +0200335 "Blink>WindowDialog",
336 "Blink>Workers",
337 "Blink>XML",
338 ],
339 subQuestions: null,
340 },
341 {
342 type: CustomQuestionType.Select,
343 question: "Does this feature work correctly in other browsers?",
344 answerPrefix: "Does this work in other browsers? ",
345 tip: "Tip: Use <a href='https://www.browserstack.com/' target='_blank'>browserstack.com</a> to compare behavior on different browser versions.",
346 options: ["Not sure - I don't know", "Yes - This is just a Chrome problem", "No - I can reproduce the problem in another browser"],
347 subQuestions: [
348 null,
349 null,
350 {
351 type:CustomQuestionType.Text,
352 question: "Details of interop issue",
353 tip: "Please describe what the behavior is on other browsers and link to any <a href='https://browser-issue-tracker-search.appspot.com/' target='_blank'>existing bugs.</a>",
354 }
355 ],
356 },
357 ]
358 },
359 {
360 name: 'JavaScript',
361 description: 'Problems with the JavaScript interpreter',
362 persona: IssueWizardPersona.Developer,
363 enabled: true,
364 component: 'Cr-Blink',
365 customQuestions: [],
366 },
367 {
368 name: 'Developer Tools',
369 description: 'Problems with the Developer tool chain/inspector',
370 persona: IssueWizardPersona.Developer,
371 enabled: true,
372 component: 'Cr-Platform-DevTools',
373 customQuestions: [],
374 },
375];
376
377export const OS_LIST = [
378 {
379 name: 'Android',
380 description: '',
381 },
382 {
383 name: 'Chrome OS',
384 description: '',
385 },
386 {
387 name: 'iOS',
388 description: '',
389 },
390 {
391 name: 'Linux',
392 description: '',
393 },
394 {
395 name: 'Mac OS',
396 description: '',
397 },
398 {
399 name: 'Windows',
400 description: '',
401 },
402 {
403 name: 'Unknown/Other',
404 description: '',
405 },
406]
407
408// possible user os channel
409export const OS_CHANNEL_LIST = [
410 {
411 name: 'Not sure',
412 description: '',
413 },
414 {
415 name: 'Stable',
416 description: '',
417 },
418 {
419 name: 'Beta',
420 description: '',
421 },
422 {
423 name: 'Dev',
424 description: '',
425 },
426 {
427 name: 'Canary',
428 description: '',
429 },
430]
431
432export const BROWSER_LIST = [
433 {
434 name: 'Apple Safari',
435 description: '',
436 },
437 {
438 name: 'Google Chrome or Chromium',
439 description: '',
440 },
441 {
442 name: 'Mozilla Firefox',
443 description: '',
444 },
445 {
446 name: 'Microsoft Edge (Chromium)',
447 description: '',
448 },
449 {
450 name: 'Microsoft Edge (Legacy)',
451 description: '',
452 },
453 {
454 name: 'Microsoft Internet Explorer',
455 description: '',
456 },
457 {
458 name: 'Opera',
459 description: '',
460 },
461 {
462 name: 'Samsung Internet',
463 description: '',
464 },
465 {
466 name: 'Unknown / Other',
467 description: '',
468 },
469]
470
471export const ISSUE_REPRODUCE_PLACEHOLDER = '1.\n2.\n3.';