Skip to content

Commit 4e182ec

Browse files
authoredJan 15, 2024
chore: svelte types workaround and simplify bug report template (#5280)
1 parent a9a7668 commit 4e182ec

File tree

6 files changed

+47
-78
lines changed

6 files changed

+47
-78
lines changed
 

‎.github/ISSUE_TEMPLATE/bug_report.yml

+42-68
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,46 @@ body:
1111
inside of react-table's [Discussions tab](https://github.com/tanstack/table/discussions) instead of filing an issue.
1212
1313
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
14-
- react-table's [Discussions tab](https://github.com/tanstack/table/discussions)
15-
- react-table's [Open Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16-
- react-table's [Closed Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
14+
- TanStack Table's [Discussions tab](https://github.com/tanstack/table/discussions)
15+
- TanStack Table's [Open Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)
16+
- TanStack Table's [Closed Issues](https://github.com/tanstack/table/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
1717
1818
The more information you fill in, the better the community can help you.
1919
20+
- type: input
21+
id: tanstack-table-version
22+
attributes:
23+
label: TanStack Table version
24+
description: |
25+
- Please let us know the exact version of the TanStack Table framework adapter that you were using when the issue occurred. If you are using an older version, check to see if your bug has already been solved in the latest version. Please don't just put in "latest", as this is subject to change.
26+
- The latest "table-core" version is <img alt="" src="https://badgen.net/npm/v/@tanstack/react-table" />
27+
placeholder: |
28+
e.g. v8.11.6
29+
validations:
30+
required: true
31+
32+
- type: input
33+
id: framework-library-version
34+
attributes:
35+
label: Framework/Library version
36+
description: Which framework and what version of that framework are you using?
37+
placeholder: |
38+
e.g. React v17.0.2
39+
validations:
40+
required: true
41+
2042
- type: textarea
2143
id: description
2244
attributes:
23-
label: Describe the bug
24-
description: Provide a clear and concise description of the challenge you are running into.
45+
label: Describe the bug and the steps to reproduce it
46+
description: Provide a clear and concise description of the challenge you are running into, and the steps we should take to try to reproduce your bug.
2547
validations:
2648
required: true
49+
2750
- type: input
2851
id: link
2952
attributes:
30-
label: Your minimal, reproducible example
53+
label: Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
3154
description: |
3255
Please add a link to a minimal reproduction.
3356
Note:
@@ -39,81 +62,32 @@ body:
3962
- For TypeScript related issues only, a TypeScript Playground link might be sufficient: https://www.typescriptlang.org/play
4063
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
4164
placeholder: |
42-
e.g. Code Sandbox, Stackblitz, Expo Snack or TypeScript playground
43-
validations:
44-
required: true
45-
- type: textarea
46-
id: steps
47-
attributes:
48-
label: Steps to reproduce
49-
description: Describe the steps we have to take to reproduce the behavior.
50-
placeholder: |
51-
1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error
52-
validations:
53-
required: true
54-
- type: textarea
55-
id: expected
56-
attributes:
57-
label: Expected behavior
58-
description: Provide a clear and concise description of what you expected to happen.
59-
placeholder: |
60-
As a user, I expected **_ behavior but i am seeing _**
65+
e.g. Code Sandbox, Stackblitz, TypeScript Playground, etc.
6166
validations:
6267
required: true
63-
- type: dropdown
64-
attributes:
65-
options:
66-
- Every time
67-
- Often
68-
- Sometimes
69-
- Only once
70-
label: How often does this bug happen?
71-
description: |
72-
Following the repro steps above, how easily are you able to reproduce this bug?
73-
options: - Every time - Often - Sometimes - Only once
68+
7469
- type: textarea
7570
id: screenshots_or_videos
7671
attributes:
77-
label: Screenshots or Videos
72+
label: Screenshots or Videos (Optional)
7873
description: |
7974
If applicable, add screenshots or a video to help explain your problem.
8075
For more information on the supported file image/file types and the file size limits, please refer
8176
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
8277
placeholder: |
8378
You can drag your video or image files inside of this editor ↓
84-
- type: textarea
85-
id: platform
86-
attributes:
87-
label: Platform
88-
description: |
89-
Please let us know which Operting System, Browser and Browser version you were using when the issue occurred.
90-
placeholder: |
91-
- OS: [e.g. macOS, Windows, Linux, iOS, Android] - Browser: [e.g. Chrome, Safari, Firefox, React Native] - Version: [e.g. 91.1]
92-
validations:
93-
required: true
94-
- type: input
95-
id: library-version
96-
attributes:
97-
label: react-table version
98-
description: |
99-
Please let us know the exact version of react-table you were using when the issue occurred. Please don't just put in "latest", as this is subject to change.
100-
placeholder: |
101-
e.g. v3.30.1
102-
validations:
103-
required: true
104-
- type: input
105-
id: ts-version
79+
80+
- type: dropdown
10681
attributes:
107-
label: TypeScript version
82+
options:
83+
- No, because I do not know how
84+
- No, because I do not have time to dig into it
85+
- Maybe, I'll investigate and start debugging
86+
- Yes, I think I know how to fix it and will discuss it in the comments of this issue
87+
- Yes, I am also opening a PR that solves the problem along side this issue
88+
label: Do you intend to try to help solve this bug with your own PR?
10889
description: |
109-
If you are using TypeScript, please let us know the exact version of TypeScript you were using when the issue occurred.
110-
placeholder: |
111-
e.g. v4.5.4
112-
- type: textarea
113-
id: additional
114-
attributes:
115-
label: Additional context
116-
description: Add any other context about the problem here.
90+
If you think you know the cause of the problem, the fastest way to get it fixed is to suggest a fix, or fix it yourself! However, it is ok if you cannot solve this yourself and are just wanting help.
11791
- type: checkboxes
11892
id: agrees-to-terms
11993
attributes:

‎examples/svelte/column-groups/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<script lang="ts">
22
import { writable } from 'svelte/store'
33
import {
4-
ColumnDef,
54
createSvelteTable,
65
flexRender,
76
getCoreRowModel,
8-
TableOptions,
97
} from '@tanstack/svelte-table'
8+
import type { ColumnDef, TableOptions } from '@tanstack/table-core/src/types'
109
import './index.css'
1110
1211
type Person = {

‎examples/svelte/column-ordering/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
getCoreRowModel,
55
createSvelteTable,
66
getSortedRowModel,
7-
TableOptions,
87
flexRender,
9-
ColumnDef,
108
} from '@tanstack/svelte-table'
9+
import type { ColumnDef, TableOptions } from '@tanstack/table-core/src/types'
1110
import { makeData, Person } from './makeData'
1211
import { faker } from '@faker-js/faker'
1312
import './index.css'

‎examples/svelte/column-pinning/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
createSvelteTable,
55
getCoreRowModel,
66
getSortedRowModel,
7-
TableOptions,
87
flexRender,
9-
ColumnDef,
108
} from '@tanstack/svelte-table'
9+
import type { ColumnDef, TableOptions } from '@tanstack/table-core/src/types'
1110
import { makeData, Person } from './makeData'
1211
import { faker } from '@faker-js/faker'
1312
import './index.css'

‎examples/svelte/column-visibility/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
createSvelteTable,
55
getCoreRowModel,
66
getSortedRowModel,
7-
TableOptions,
87
flexRender,
9-
ColumnDef,
108
} from '@tanstack/svelte-table'
9+
import type { ColumnDef, TableOptions } from '@tanstack/table-core/src/types'
1110
import './index.css'
1211
1312
type Person = {

‎examples/svelte/sorting/src/App.svelte

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
createSvelteTable,
55
getCoreRowModel,
66
getSortedRowModel,
7-
ColumnDef,
8-
TableOptions,
97
flexRender,
108
} from '@tanstack/svelte-table'
9+
import type { ColumnDef, TableOptions } from '@tanstack/table-core/src/types'
1110
import { makeData, Person } from './makeData'
1211
import './index.css'
1312

0 commit comments

Comments
 (0)
Please sign in to comment.