Commit 32b8fe0
authored
feat(surveys): customize response columns (#42000)
## Problem
survey users cannot customize the columns when reviewing response data
closes #29844
<!-- Who are we building for, what are their needs, why is this important? -->
<!-- Does this fix an issue? Uncomment the line below with the issue ID to automatically close it when merged -->
<!-- Closes #ISSUE_ID -->
## Changes
prev PR added a new universal column config store. this PR updates the column config component to support the new contextKey param, and implements this functionality for surveys!
[survey-columns-demo.mp4 <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.com/user-attachments/thumbnails/0d82bc87-c362-49ee-8931-9669e170cdb8.mp4" />](https://app.graphite.com/user-attachments/video/0d82bc87-c362-49ee-8931-9669e170cdb8.mp4)
<!-- If there are frontend changes, please include screenshots. -->
<!-- If a reference design was involved, include a link to the relevant Figma frame! -->
## How did you test this code?
manual testing, unit tests on the column config api
<!-- Briefly describe the steps you took. -->
<!-- Include automated tests if possible, otherwise describe the manual testing routine. -->
<!-- Docs reminder: If this change requires updated docs, please do that! Engineers are the primary people responsible for their documentation. 🙌 -->
👉 _Stay up-to-date with_ [_PostHog coding conventions_](https://posthog.com/docs/contribute/coding-conventions) _for a smoother review._
## Changelog: (features only) Is this feature complete?
<!-- Yes if this is okay to go in the changelog. No if it's still hidden behind a feature flag, or part of a feature that's not complete yet, etc. -->
<!-- Removing this section does not mean the changelog bot won't pick it up, because *some people* like to not use the template, so we can't rely on it existing. -->
yes1 parent 71d3428 commit 32b8fe0
File tree
7 files changed
+100
-18
lines changed- frontend/src
- queries
- nodes/DataTable
- ColumnConfigurator
- schema
- scenes/surveys
- posthog
7 files changed
+100
-18
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
Lines changed: 60 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| |||
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
86 | 112 | | |
87 | | - | |
| 113 | + | |
88 | 114 | | |
89 | 115 | | |
90 | 116 | | |
91 | 117 | | |
92 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
93 | 146 | | |
94 | 147 | | |
95 | 148 | | |
| |||
123 | 176 | | |
124 | 177 | | |
125 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
126 | 184 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
199 | 202 | | |
200 | 203 | | |
201 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8338 | 8338 | | |
8339 | 8339 | | |
8340 | 8340 | | |
| 8341 | + | |
| 8342 | + | |
| 8343 | + | |
| 8344 | + | |
8341 | 8345 | | |
8342 | 8346 | | |
8343 | 8347 | | |
| |||
25688 | 25692 | | |
25689 | 25693 | | |
25690 | 25694 | | |
| 25695 | + | |
| 25696 | + | |
| 25697 | + | |
| 25698 | + | |
25691 | 25699 | | |
25692 | 25700 | | |
25693 | 25701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
1072 | 1074 | | |
1073 | 1075 | | |
1074 | 1076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1542 | 1557 | | |
1543 | 1558 | | |
1544 | 1559 | | |
1545 | 1560 | | |
1546 | | - | |
1547 | | - | |
1548 | | - | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | | - | |
1558 | | - | |
1559 | | - | |
1560 | | - | |
| 1561 | + | |
1561 | 1562 | | |
1562 | 1563 | | |
1563 | 1564 | | |
| |||
1572 | 1573 | | |
1573 | 1574 | | |
1574 | 1575 | | |
| 1576 | + | |
1575 | 1577 | | |
1576 | 1578 | | |
1577 | 1579 | | |
1578 | 1580 | | |
1579 | 1581 | | |
1580 | 1582 | | |
1581 | 1583 | | |
| 1584 | + | |
| 1585 | + | |
1582 | 1586 | | |
1583 | 1587 | | |
1584 | 1588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5108 | 5108 | | |
5109 | 5109 | | |
5110 | 5110 | | |
| 5111 | + | |
| 5112 | + | |
| 5113 | + | |
5111 | 5114 | | |
5112 | 5115 | | |
5113 | 5116 | | |
| |||
15898 | 15901 | | |
15899 | 15902 | | |
15900 | 15903 | | |
| 15904 | + | |
| 15905 | + | |
| 15906 | + | |
15901 | 15907 | | |
15902 | 15908 | | |
15903 | 15909 | | |
| |||
0 commit comments