Commit 8d1fb22
authored
feat(settings): gate TelemetryField on isEnterprise prop (#2298)
Today GeneralTabWrapper accepts an `isEnterprise` prop that hides
ExperimentalFeatures. Extend the same gate to also hide the Sentry
"Error reporting" toggle when set.
Rebranded / enterprise builds typically ship without a Sentry DSN
(`enabled: !!import.meta.env.VITE_SENTRY_DSN` is false in those builds),
so the toggle is a confusing no-op for end users. Letting downstream
consumers hide it via the existing prop avoids overlay-copying the whole
wrapper component.
OSS behavior is unchanged: `isEnterprise` defaults to `false`, so the
toggle still renders in the OSS GeneralTab.1 parent ad184c4 commit 8d1fb22
2 files changed
Lines changed: 20 additions & 2 deletions
File tree
- renderer/src/common/components/settings/tabs
- __tests__
- components
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
230 | 244 | | |
231 | 245 | | |
232 | 246 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments