Skip to content

feat(devex): scene layout (dashboards) #35207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from

Conversation

adamleithp
Copy link
Contributor

Problem

Converting all products to new minimal layout

Changes

Add <SceneLayout> to dashboard header, recreate any buttons in there/ or re-use common components/Scenes/ components. Hide page captions and More dropdowns.

2025-07-17 14 28 24

How did you test this code?

Manually

Did you write or update any docs for this change?

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR implements a new scene layout system for the dashboard header, as part of a larger initiative to convert all products to use a minimal layout pattern. The changes primarily affect the dashboard header component and several supporting scene components, introducing a new panel-based layout to replace traditional dropdown menus. Key changes include:

  • Converting the dashboard header to use <SceneLayout> component
  • Modifying SceneCommonButtons to support pin and fullscreen actions
  • Making SceneNotificationDropdownMenu more flexible to handle both dashboard and insight notifications
  • Adding feature flag NEW_SCENE_LAYOUT for controlled rollout
  • Updating SceneTags to support both editable and read-only states

The PR maintains backward compatibility through feature flags while modernizing the UI structure.

Confidence score: 3/5

  1. Safe to merge with careful monitoring of the feature flag rollout
  2. Score reflects concerns about manual-only testing and potential edge cases in notification handling
  3. The DashboardHeader.tsx and SceneNotificationDropdownMenu.tsx files need particular attention due to type assertions and complex state management

4 files reviewed, 5 comments
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Jul 17, 2025

Size Change: 0 B

Total Size: 2.61 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 2.61 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 8)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 8)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@adamleithp adamleithp force-pushed the devex/scene-layout-dashboards branch from 2d3bb46 to fba315c Compare July 17, 2025 14:21
@adamleithp adamleithp requested a review from mariusandra July 17, 2025 14:26
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

10 snapshot changes in total. 0 added, 10 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

18 snapshot changes in total. 0 added, 18 modified, 0 deleted:

  • chromium: 0 added, 18 modified, 0 deleted (diff for shard 12)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@adamleithp adamleithp force-pushed the devex/scene-layout-dashboards branch from 2a66da7 to 1c36601 Compare July 17, 2025 15:06
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

10 snapshot changes in total. 0 added, 10 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@adamleithp adamleithp removed the request for review from mariusandra July 17, 2025 15:30
@adamleithp adamleithp closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants