feat(dashboard): add layout guidance and widget type reference for agents#521
Merged
feat(dashboard): add layout guidance and widget type reference for agents#521
Conversation
…gents Agents creating dashboards don't know about the 6-column grid or available display types. This adds a `sentry dashboard widget types` command that outputs display types with default sizes, datasets, aggregate functions, and aliases. Also surfaces layout info in `widget --help` and expands the `--display` flag brief to show more types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a "Dashboard Layout" section to agent-guidance.md explaining the 6-column grid, display type categories, default sizes, and row-filling patterns. Also documents the new `widget types` command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers grid columns, display type sizes and categories, datasets, aggregate functions, aliases, and human output rendering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Dashboard
Telemetry
Other
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Contributor
|
Contributor
Codecov Results 📊✅ 126 passed | Total: 126 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
✨ No test changes detected All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 1075 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 95.79% 95.79% —%
==========================================
Files 185 185 —
Lines 25524 25534 +10
Branches 0 0 —
==========================================
+ Hits 24449 24459 +10
- Misses 1075 1075 —
- Partials 0 0 —Generated by Codecov Action |
Previously only 5 common types were in the table with the rest mentioned in text. Now all display types are listed with their sizes and categories. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… types command The widget --help and widget types --help now show all 14 display types with their default grid dimensions, matching the agent guidance table. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Move formatWidgetTypes from human.ts into the types.ts command file, matching the pattern used by dashboard list. Removes the unusual command→formatter cross-import from human.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…get --help Removes the standalone `sentry dashboard widget types` command. All the info (display types, sizes, datasets, aggregates, aliases, row-filling examples) now lives directly in `sentry dashboard widget --help` so agents get it immediately without running a separate command. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lipsis Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Agents creating dashboards don't know about the 6-column grid layout, available display types, or their default sizes. This surfaces all that info where agents naturally look:
sentry dashboard widget --helpnow includes display types with default grid sizes, datasets, aggregate functions, aliases, and row-filling examples--displayflag brief expanded to show 8 types instead of 4Test plan
bun test test/commands/dashboard/— all dashboard tests passbun run typecheck && bun run lint— cleanbun src/bin.ts dashboard widget --help— shows full layout/types/aggregates infobun run check:skill— skill files up to date🤖 Generated with Claude Code