feat(dashboards): show widget placeholders on shared dashboards (2/4)#61416
feat(dashboards): show widget placeholders on shared dashboards (2/4)#61416MattPua wants to merge 3 commits into
Conversation
|
Size Change: 0 B Total Size: 81.9 MB ℹ️ View Unchanged
|
|
👋 Visual changes detected for this PR. Review and approve in PostHog Visual Review If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix. |
MCP UI Apps size report
|
Query snapshots: Backend query snapshots updatedChanges: 1 snapshots (1 modified, 0 added, 0 deleted) What this means:
Next steps:
|
21793db to
d2240b2
Compare
76f8ee7 to
a1c1dd4
Compare
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
b137596 to
ca59292
Compare
d3bef03 to
8366665
Compare
b4873e0 to
468a466
Compare
8366665 to
0085ca4
Compare
828da32 to
347310e
Compare
806c910 to
43d7f27
Compare
43d7f27 to
aef4ae0
Compare
347310e to
0cd448c
Compare
aef4ae0 to
f2fd850
Compare
0cd448c to
14747b7
Compare
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
|
🎭 Playwright report ❌ 1 failed test:
These issues are not necessarily caused by your changes. |
14747b7 to
7487807
Compare
f2fd850 to
5db6283
Compare
5db6283 to
c135069
Compare
0c6503e to
7487807
Compare
c135069 to
48f528e
Compare
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
48f528e to
016ac59
Compare
d0d0028 to
8fd6c0b
Compare
016ac59 to
9a6603f
Compare
8fd6c0b to
508fec9
Compare
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
Query snapshots: Backend query snapshots updatedChanges: 1 snapshots (1 modified, 0 added, 0 deleted) What this means:
Next steps:
|
vdekrijger
left a comment
There was a problem hiding this comment.
LGTM! I think you got hit by the same "stack issues" I had with some of my branches where it somehow includes previous changes (skills / .md files in this case).
I ignored all those .md files (those are from the earlier PR either way) and just reviewed the rest which looks good to me :D
Co-authored-by: Cursor <cursoragent@cursor.com>
c46fb2e to
e0624ac
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>

Problem
Shared dashboards previously hid widget tiles entirely or showed empty space. Viewers couldn't see that a dashboard includes error tracking or session replay widgets, and the frontend still attempted widget data fetches that shared pages cannot satisfy.
Changes
id,widget_type,name,description,config) — no user fields or query resultsrun_widgetsfetches on Public/Export placements; enable widget rendering on shared pages when tile metadata is present (shared pages don't receive team feature flags)How did you test this code?
Automated tests (agent-authored; no manual browser verification in this session):
dashboardLogic.test.ts— public placement skips widget fetch; widgets enabled when tile metadata presentDashboardWidgetItem.test.tsx— shared placeholder renders per-widget copytest_dashboard_widgets.py::test_shared_dashboard_tile_serializer_omits_widget_payloadtest_sharing.py::TestSharedCohortInlining::test_shared_dashboard_includes_widget_metadata_only👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
No docs changes in this PR — behavior is additive for shared dashboard rendering.
🤖 Agent context
Agent-assisted PR (Cursor). Builds on the dashboard widget stack (error tracking + session replay widgets).
Key decisions:
SharingViewSetwithis_shared=True; removed dead share-token guards onDashboardsViewSetthat could never firedashboard-widgetsfeature flag when exported tile metadata exists, since shared exports don't include team feature flagsKnown follow-up (not in this PR): widget/insight tiles with overlapping grid coordinates may render in a different visual order on shared dashboards vs the private editor.