Adrià Vilanova MartÃnez | ac4a644 | 2022-05-15 19:05:13 +0200 | [diff] [blame] | 1 | // Copyright 2022 The Chromium Authors. All rights reserved. |
| 2 | // 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 |
| 6 | import {IssueCategory, IssueWizardPersona, CustomQuestionType} from "./IssueWizardTypes.tsx"; |
| 7 | |
| 8 | // Customer Question convert to related labels |
| 9 | export const LABELS_PREFIX = 'LABELS: '; |
| 10 | |
| 11 | export 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", |
| 325 | "Blink>WebComponents", |
| 326 | "Blink>WebCrypto", |
| 327 | "Blink>WebFonts", |
| 328 | "Blink>WebGL", |
| 329 | "Blink>WebGPU", |
| 330 | "Blink>WebMIDI", |
| 331 | "Blink>WebRTC", |
| 332 | "Blink>WebShare", |
| 333 | "Blink>WebVR", |
| 334 | "Blink>WindowDialog", |
| 335 | "Blink>Workers", |
| 336 | "Blink>XML", |
| 337 | ], |
| 338 | subQuestions: null, |
| 339 | }, |
| 340 | { |
| 341 | type: CustomQuestionType.Select, |
| 342 | question: "Does this feature work correctly in other browsers?", |
| 343 | answerPrefix: "Does this work in other browsers? ", |
| 344 | tip: "Tip: Use <a href='https://www.browserstack.com/' target='_blank'>browserstack.com</a> to compare behavior on different browser versions.", |
| 345 | options: ["Not sure - I don't know", "Yes - This is just a Chrome problem", "No - I can reproduce the problem in another browser"], |
| 346 | subQuestions: [ |
| 347 | null, |
| 348 | null, |
| 349 | { |
| 350 | type:CustomQuestionType.Text, |
| 351 | question: "Details of interop issue", |
| 352 | 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>", |
| 353 | } |
| 354 | ], |
| 355 | }, |
| 356 | ] |
| 357 | }, |
| 358 | { |
| 359 | name: 'JavaScript', |
| 360 | description: 'Problems with the JavaScript interpreter', |
| 361 | persona: IssueWizardPersona.Developer, |
| 362 | enabled: true, |
| 363 | component: 'Cr-Blink', |
| 364 | customQuestions: [], |
| 365 | }, |
| 366 | { |
| 367 | name: 'Developer Tools', |
| 368 | description: 'Problems with the Developer tool chain/inspector', |
| 369 | persona: IssueWizardPersona.Developer, |
| 370 | enabled: true, |
| 371 | component: 'Cr-Platform-DevTools', |
| 372 | customQuestions: [], |
| 373 | }, |
| 374 | ]; |
| 375 | |
| 376 | export const OS_LIST = [ |
| 377 | { |
| 378 | name: 'Android', |
| 379 | description: '', |
| 380 | }, |
| 381 | { |
| 382 | name: 'Chrome OS', |
| 383 | description: '', |
| 384 | }, |
| 385 | { |
| 386 | name: 'iOS', |
| 387 | description: '', |
| 388 | }, |
| 389 | { |
| 390 | name: 'Linux', |
| 391 | description: '', |
| 392 | }, |
| 393 | { |
| 394 | name: 'Mac OS', |
| 395 | description: '', |
| 396 | }, |
| 397 | { |
| 398 | name: 'Windows', |
| 399 | description: '', |
| 400 | }, |
| 401 | { |
| 402 | name: 'Unknown/Other', |
| 403 | description: '', |
| 404 | }, |
| 405 | ] |
| 406 | |
| 407 | // possible user os channel |
| 408 | export const OS_CHANNEL_LIST = [ |
| 409 | { |
| 410 | name: 'Not sure', |
| 411 | description: '', |
| 412 | }, |
| 413 | { |
| 414 | name: 'Stable', |
| 415 | description: '', |
| 416 | }, |
| 417 | { |
| 418 | name: 'Beta', |
| 419 | description: '', |
| 420 | }, |
| 421 | { |
| 422 | name: 'Dev', |
| 423 | description: '', |
| 424 | }, |
| 425 | { |
| 426 | name: 'Canary', |
| 427 | description: '', |
| 428 | }, |
| 429 | ] |
| 430 | |
| 431 | export const BROWSER_LIST = [ |
| 432 | { |
| 433 | name: 'Apple Safari', |
| 434 | description: '', |
| 435 | }, |
| 436 | { |
| 437 | name: 'Google Chrome or Chromium', |
| 438 | description: '', |
| 439 | }, |
| 440 | { |
| 441 | name: 'Mozilla Firefox', |
| 442 | description: '', |
| 443 | }, |
| 444 | { |
| 445 | name: 'Microsoft Edge (Chromium)', |
| 446 | description: '', |
| 447 | }, |
| 448 | { |
| 449 | name: 'Microsoft Edge (Legacy)', |
| 450 | description: '', |
| 451 | }, |
| 452 | { |
| 453 | name: 'Microsoft Internet Explorer', |
| 454 | description: '', |
| 455 | }, |
| 456 | { |
| 457 | name: 'Opera', |
| 458 | description: '', |
| 459 | }, |
| 460 | { |
| 461 | name: 'Samsung Internet', |
| 462 | description: '', |
| 463 | }, |
| 464 | { |
| 465 | name: 'Unknown / Other', |
| 466 | description: '', |
| 467 | }, |
| 468 | ] |
| 469 | |
| 470 | export const ISSUE_REPRODUCE_PLACEHOLDER = '1.\n2.\n3.'; |