Skip to content

trunk-merge/pr-108559/92d84ded-9082-4c14-ab81-393b04a42ba5-bisection - #108637

Closed
trunk-io[bot] wants to merge 5 commits into
masterfrom
trunk-merge/pr-108559/92d84ded-9082-4c14-ab81-393b04a42ba5-bisection
Closed

trunk-io[bot] wants to merge 5 commits into
masterfrom
trunk-merge/pr-108559/92d84ded-9082-4c14-ab81-393b04a42ba5-bisection

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Sep 29, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the master branch at SHA 9e8ba77d0cf5d60eec32aa45051949cc4c3972e1.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 108559.

Batch Bisection

This pull request is in a batch bisection. Pull requests successfully tested by this PR will re-enter the main queue.

MattPua and others added 5 commits September 29, 2026 13:18
Generated-By: PostHog Desktop
Task-Id: 3ff2192e-66c7-42e9-afe7-7243817caf04
Generated-By: PostHog Desktop
Task-Id: 3ff2192e-66c7-42e9-afe7-7243817caf04
Generated-By: PostHog Desktop
Task-Id: 3ff2192e-66c7-42e9-afe7-7243817caf04
22 updated
Run: c945716d-7319-4e89-ac36-f88e182c52f6

Co-authored-by: MattPua <3376526+MattPua@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

Dashboard creation now passes a toast-suppression flag to the success action. The success listener skips the creation toast when the flag is true or the route is under /onboarding, while still completing the setup task. The Insights display adds a chevron to the detailed-results export button and updates sample-data chart layout. Snapshot hashes change for several frontend scenes.

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to 00e33

Dashboard toast suppression works as intended. One small typing cleanup is worth doing before merge so callers cannot pass non-boolean values.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 00e33

The changed dashboard-creation paths use the new flag only to control a confirmation toast. The reviewed paths preserve dashboard creation, state updates, and the existing export access check. No security regression was identified, though coverage of the wider application is incomplete.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — In the inspected creation paths, caller control of suppressToast reaches the frontend confirmation toast, not the dashboard creation request, state key, or modal follow-up. This is a scoped conclusion, not an application-wide reachability guarantee.

Trust Boundaries and Controls

  • observed — Dashboard creation remains an API operation preceding success dispatch. The inspected export control retains its editor-access disabled check; neither changed presentation call site supplies a new export action.
🚥 Pre-merge checks | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the Trunk Merge batch-bisection purpose and identifies PR 108559, but it does not follow the repository template. It omits the Problem, Changes, testing details, release statu… Add the required template sections. Describe the user-facing problem and changes from PR 108559, list automated or manual verification and any untested areas, select the release-status option, state changelog and docs decisions, and complet…
Full details: Description check

Explanation

The description explains the Trunk Merge batch-bisection purpose and identifies PR 108559, but it does not follow the repository template. It omits the Problem, Changes, testing details, release status, documentation status, and required agent context.

Resolution

Add the required template sections. Describe the user-facing problem and changes from PR 108559, list automated or manual verification and any untested areas, select the release-status option, state changelog and docs decisions, and complete or remove the agent context section. If this is an automatically generated batch PR, state that explicitly and link the fully described source PR.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 5
  • Waived: $1.25 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial. After your trial, your Enterprise plan’s existing billing terms apply. Manage usage-based reviews.


Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: PostHog/posthog/.coderabbit.yaml

Review profile: QUIET

Plan: Enterprise

Run ID: fd8e6bec-3448-4423-9b01-b372c0f17ed0

📥 Commits

Reviewing files that changed from the base of the PR and between 9e8ba77 and 00e3374.

📒 Files selected for processing (5)
  • frontend/snapshots.yml
  • frontend/src/models/dashboardsModel.tsx
  • frontend/src/queries/nodes/InsightViz/InsightVizDisplay.tsx
  • frontend/src/scenes/dashboard/newDashboardLogic.ts
  • frontend/src/scenes/insights/EmptyStates/SampleDataState.scss

Limit details: You’ve used all 12 included reviews currently available.

addDashboardSuccess: (dashboard: DashboardType) => {
addDashboardSuccess: (
dashboard: DashboardType,
suppressToast?: any

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Type suppressToast as a boolean.

The action creator defaults suppressToast to false, and the listener uses it as a boolean. The new any types let callers pass values that do not express that contract. Use suppressToast?: boolean for the argument and suppressToast: boolean for the payload. As per coding guidelines, “Write TypeScript with proper typing for all new code.”

Also applies to: 112-112

Source: Coding guidelines

@trunk-io trunk-io Bot closed this Sep 29, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-108559/92d84ded-9082-4c14-ab81-393b04a42ba5-bisection branch September 29, 2026 18:57
@trunk-io

trunk-io Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Author

Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

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.

1 participant