Skip to content

Commit

Permalink
[code-infra] Simplify bug reproduction (#40833)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Feb 3, 2024
1 parent bc21246 commit 62f67a3
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body:
description: |
**⚠️ Issues that we can't reproduce can't be fixed.**
Please provide a link to a live example and an unambiguous set of steps to reproduce this bug. As a starting point, we recommend you browse our [documentation](https://mui.com/material-ui/getting-started/installation/), and [select](https://mui.com/static/docs/forking-an-example.png) the closest example to your use case. Or you can use the [official template](https://mui.com/r/issue-template) to build a reproduction case.
Please provide a link to a live example and an unambiguous set of steps to reproduce this bug. See our [documentation](https://mui.com/material-ui/getting-started/support/#bug-reproductions) on how to build a reproduction case.
value: |
Link to live example: (required)
Expand Down
11 changes: 11 additions & 0 deletions docs/data/base/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ If you think you've found a bug, or you have a new feature idea:
- Please don't group multiple topics in one issue.
- Please don't comment "+1" on an issue. It spams the maintainers and doesn't help move the issue forward. Use GitHub reactions instead (👍).

### Bug reproductions

We require bug reports to be accompanied by a minimal reproduction.
It significantly increases the odds of fixing the problem.
You have a few options possible to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
[![Forking an example](/static/docs-infra/forking-an-example.png)](/base-ui/react-button/#introduction)

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

We use Stack Overflow for how-to questions. Answers are crowdsourced from expert developers in the Base UI community as well as Base UI maintainers.
Expand Down
11 changes: 11 additions & 0 deletions docs/data/joy/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ If you think you've found a bug, or you have a new feature idea:
- Please don't group multiple topics in one issue.
- Please don't comment "+1" on an issue. It spams the maintainers and doesn't help move the issue forward. Use GitHub reactions instead (👍).

### Bug reproductions

We require bug reports to be accompanied by a minimal reproduction.
It significantly increases the odds of fixing the problem.
You have a few options possible to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
[![Forking an example](/static/docs-infra/forking-an-example.png)](/joy-ui/react-button/#basics)

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

We use Stack Overflow for how-to questions. Answers are crowdsourced from expert developers in the Joy UI community as well as Joy UI maintainers.
Expand Down
11 changes: 11 additions & 0 deletions docs/data/material/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ If you think you've found a bug, or you have a new feature idea:
- Please don't group multiple topics in one issue.
- Please don't comment "+1" on an issue. It spams the maintainers and doesn't help move the issue forward. Use GitHub reactions instead (👍).

### Bug reproductions

We require bug reports to be accompanied by a minimal reproduction.
It significantly increases the odds of fixing the problem.
You have a few options possible to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
[![Forking an example](/static/docs-infra/forking-an-example.png)](/material-ui/react-button/#basic-button)

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

We use Stack Overflow for how-to questions. Answers are crowdsourced from expert developers in the Material UI community as well as Material UI maintainers.
Expand Down
11 changes: 11 additions & 0 deletions docs/data/system/getting-started/support/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ If you think you've found a bug, or you have a new feature idea:
- Please don't group multiple topics in one issue.
- Please don't comment "+1" on an issue. It spams the maintainers and doesn't help move the issue forward. Use GitHub reactions instead (👍).

### Bug reproductions

We require bug reports to be accompanied by a minimal reproduction.
It significantly increases the odds of fixing the problem.
You have a few options possible to provide it:

- You can browse the documentation, find an example close to your use case, and then open it in a live editor:
[![Forking an example](/static/docs-infra/forking-an-example.png)](/system/borders/#additive)

- You can use a starter React template to build a reproduction case with [JavaScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react) or [TypeScript](https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts).

## Stack Overflow

We use Stack Overflow for how-to questions. Answers are crowdsourced from expert developers in the MUI System community as well as MUI System maintainers.
Expand Down
6 changes: 3 additions & 3 deletions docs/public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
/r/pseudo-classes-guide /material-ui/customization/how-to-customize/#state-classes 302
/r/state-classes-guide /material-ui/customization/how-to-customize/#state-classes 302
/r/input-component-ref-interface /material-ui/react-text-field/#integration-with-3rd-party-input-libraries 302
/r/issue-template https://codesandbox.io/p/sandbox/material-ui-issue-latest-s2dsx 302
/r/issue-template-next https://codesandbox.io/p/sandbox/material-ui-issue-next-o7xkt 302
/r/issue-template-latest https://codesandbox.io/p/sandbox/material-ui-issue-latest-s2dsx 302
/r/issue-template https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts 302
/r/issue-template-next https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts 302
/r/issue-template-latest https://stackblitz.com/fork/github/stackblitz/starters/tree/main/react-ts 302
/r/ts-issue-template https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcA5FDvmQNwBQokscA3nXHAPSdwwAWWOLhKQAdllEx0ATwgBXOHNRYAJnQC+cIiXIABEHOCcQyGFijBkAGzJ06BOaPzAIouABEsICAAoAlKzsXDwAmvJQQhAqWBpAA 302
/r/custom-component-variants /material-ui/customization/how-to-customize/#adding-new-component-variants 302
/r/migration-v4 /material-ui/migration/migration-v4/ 302
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/public/static/docs/forking-an-example.png
Binary file not shown.

0 comments on commit 62f67a3

Please sign in to comment.