Skip to content

Conversation

andehen
Copy link
Contributor

@andehen andehen commented Oct 16, 2025

Problem

Nothing happens when you click "Add metric".

The button always triggers the legacy modal state, but when using the new query runner, only the new modal is rendered (which listens to a completely different state/logic). Result: nothing happens.

Changes

The fix: PreLaunchChecklist needs to check usesNewQueryRunner and call the appropriate action:

  • If new runner: call openMetricSourceModal(METRIC_CONTEXTS.primary) from metricSourceModalLogic
  • If legacy: call openPrimaryMetricSourceModal() from modalsLogic

How did you test this code?

  • tested locally, modal opens fine now

@andehen andehen requested a review from a team October 16, 2025 14:57
@andehen andehen enabled auto-merge (squash) October 16, 2025 14:57
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.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

Size Change: 0 B

Total Size: 3.05 MB

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

compressed-size-action

Copy link
Contributor

@jurajmajerik jurajmajerik left a comment

Choose a reason for hiding this comment

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

Nice 👍

@andehen andehen merged commit c8fe67d into master Oct 16, 2025
129 of 130 checks passed
@andehen andehen deleted the experiments/fix-add-metric-checklist-button branch October 16, 2025 15:05
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