Skip to content

Conversation

@LuD1161
Copy link
Contributor

@LuD1161 LuD1161 commented Feb 12, 2026

Summary

  • Disable the View Analytics button in the top bar when the workflow doesn't have an analytics sink node (core.analytics.sink / analytics-sink)
  • Add a tooltip explaining why the button is disabled ("Connect analytics sink to view analytics")
  • Pass hasAnalyticsSink prop from WorkflowBuilder to TopBar using a useMemo check on design nodes

Screenshots

Without sink :
image
image

When added analytics sink :

image

Test plan

  • Open a workflow without an analytics sink node — verify the View Analytics button is disabled with an explanatory tooltip
  • Open a workflow with an analytics sink node — verify the button is enabled and opens OpenSearch Dashboards
  • Add/remove an analytics sink node and verify the button state updates reactively

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4af9836f81

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…connected

- Disable the View Analytics button when the workflow design doesn't
  contain an analytics sink node (core.analytics.sink)
- Add a tooltip explaining why the button is disabled
- Bypass the check when viewing a specific run, since historical runs
  may have indexed results even if the current design removed the sink

Signed-off-by: Aseem Shrey <[email protected]>
@LuD1161 LuD1161 force-pushed the aseem/eng-187-view-analytics-button-clean branch from 4cd3b7e to 237be43 Compare February 12, 2026 22:23
@LuD1161 LuD1161 merged commit c221da3 into main Feb 12, 2026
3 checks passed
@LuD1161 LuD1161 deleted the aseem/eng-187-view-analytics-button-clean branch February 12, 2026 22:25
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