:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(dashboards): remove ineffective sharing details toggle (#80699)
Matt Pua6b2b5e271222
diff --git a/frontend/src/lib/components/Sharing/SharingModal.test.tsx b/frontend/src/lib/components/Sharing/SharingModal.test.tsxindex 2b1ed22d0fec..f962a5b66f8d 100644--- a/frontend/src/lib/components/Sharing/SharingModal.test.tsx+++ b/frontend/src/lib/components/Sharing/SharingModal.test.tsx@@ -113,6 +113,8 @@ describe('SharingModal (dashboard)', () => {// Dashboard options smoke checksexpect(screen.getByText(/Show PostHog branding/i)).toBeInTheDocument()+ expect(screen.getByText('Theme')).toBeInTheDocument()+ expect(screen.queryByText(/Show insight details/i)).toBeNull()})it('calls onSharingEnabledChange after the dashboard sharing switch update succeeds', async () => {diff --git a/frontend/src/lib/components/Sharing/SharingModal.tsx b/frontend/src/lib/components/Sharing/SharingModal.tsxindex 7ee5ee212900..502b44fda59a 100644--- a/frontend/src/lib/components/Sharing/SharingModal.tsx+++ b/frontend/src/lib/components/Sharing/SharingModal.tsx@@ -402,50 +402,29 @@ export function SharingModalContent({)}{dashboardId && (- <>- <LemonField name="hideExtraDetails">- {({ value, onChange }) => (- <LemonSwitch- fullWidth- bordered- label={- <div className="flex items-center">- <span>Show insight details</span>- <Tooltip title="When disabled, viewers won't see the extra insights details like the who created the insight and the applied filters.">- <IconInfo className="ml-1.5 text-secondary text-lg" />- </Tooltip>- </div>- }- onChange={() => onChange(!value)}- checked={!value}+ <LemonField+ name="theme"+ inline+ className="items-center justify-between col-span-2"+ >+ {({ value, onChange }) => (+ <>+ <LemonLabel htmlFor="sharing-theme-select">+ Theme+ </LemonLabel>+ <LemonSelect+ id="sharing-theme-select"+ value={value ?? 'system'}+ onSelect={(theme) => onChange(theme)}+ options={[+ { value: 'system', label: 'System' },+ { value: 'light', label: 'Light' },+ { value: 'dark', label: 'Dark' },+ ]}/>- )}- </LemonField>-- <LemonField- name="theme"- inline- className="items-center justify-between col-span-2"- >- {({ value, onChange }) => (- <>- <LemonLabel htmlFor="sharing-theme-select">- Theme- </LemonLabel>- <LemonSelect- id="sharing-theme-select"- value={value ?? 'system'}- onSelect={(theme) => onChange(theme)}- options={[- { value: 'system', label: 'System' },- { value: 'light', label: 'Light' },- { value: 'dark', label: 'Dark' },- ]}- />- </>- )}- </LemonField>- </>+ </>+ )}+ </LemonField>)}</div>