feat: add grafana dashboards components#3891
Merged
forestileao merged 39 commits intosuperplanehq:mainfrom Apr 16, 2026
Merged
Conversation
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
|
👋 Commands for maintainers:
|
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Collaborator
Author
Screencast.from.2026-04-03.11-17-54.webm |
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
- Simplified event section creation in `dashboard_shared.ts` by consolidating timestamp handling and ensuring fallback values for event IDs. - Enhanced `search_dashboards.ts` to include payload timestamps in details and refactored subtitle rendering to use React elements for better formatting. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
- Renamed "Panel ID" to "Panel" in various components and documentation for consistency. - Enhanced the `CreateDashboardShareLink` and `RenderPanel` components to utilize the new panel handling. - Updated metadata handling to include panel titles and labels. - Added tests for retrieving dashboard panels and improved related mappers. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
- Changed dashboard URLs in documentation and example output to use absolute paths instead of relative paths. - Added a test to ensure that the client resolves relative URLs to absolute URLs correctly during dashboard searches. - Updated the `SearchDashboards` method to resolve URLs for returned dashboard results. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
- Changed the dashboard URL in the example output to use an absolute path for better accessibility. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
- Updated the logic for determining the received timestamp in the `dashboard_shared.ts` file to ensure correct fallback behavior based on the legacy flag. - This change improves the accuracy of event timestamps in Grafana dashboard mappings. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
… range fields - Modified the `CreateDashboardShareLink`, `QueryDataSource`, and `RenderPanel` components to utilize expression inputs for the "From" and "To" time range fields, enhancing flexibility in time range specification. - Updated documentation to reflect the changes in time range input types and examples. - Added tests to ensure the correct configuration of time range fields as expressions. Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
forestileao
reviewed
Apr 15, 2026
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9b50f51. Configure here.
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
forestileao
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes: #3886
This expands the grafana integration by adding the following dashboard focused actions:
grafana.searchDashboards(Action)grafana.getDashboard(Action)grafana.createDashboardShareLink(Action)grafana.renderPanel(Action)Demo Video
Note
Medium Risk
Adds new Grafana API surface (folders/dashboards/panels) and new workflow components that fetch dashboards and construct render URLs; also changes Query Data Source time inputs to expression-evaluated values, which could affect existing workflows’ time range behavior.
Overview
Adds dashboard-focused Grafana actions: a new
grafana.getDashboardcomponent that fetches dashboard metadata (including panel summaries) and agrafana.renderPanelcomponent that builds Image Renderer URLs with optional time-range expressions.Extends the Grafana client and resource picker support to list
folders, searchdashboards, and enumeratepanelsfrom a selected dashboard (including nested panels), while normalizing returned dashboard URLs to absolute.Updates
grafana.queryDataSourceto use expression-basedtimeFrom/timeToinputs and introduces shared time parsing/evaluation utilities (including handling Go time strings with monotonic suffixes), plus UI mappers/tests and docs to surface the new capabilities.Reviewed by Cursor Bugbot for commit c020b59. Bugbot is set up for automated code reviews on this repo. Configure here.