rename "widget" and "chart" to "panel" in dashboard UI and analytics#1662
rename "widget" and "chart" to "panel" in dashboard UI and analytics#1662
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates dashboard UI copy and analytics tracking to use “panel” terminology instead of “widget”/“chart”, aligning user-facing language with the dashboard panel concept.
Changes:
- Renamed dashboard empty-states, dialog titles, menu items, and hints from “chart/widget” to “panel”.
- Updated Angulartics2 + PostHog event names for panel create/update/delete/open dialog flows.
- Added
type="button"to several dashboard view buttons to prevent unintended form-submit behavior.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/app/components/dashboards/panel-renderers/text-panel/text-panel.component.html | Updates empty-state hint text from “widget” to “panel”. |
| frontend/src/app/components/dashboards/panel-edit-dialog/panel-edit-dialog.component.ts | Renames analytics events for panel create/update success. |
| frontend/src/app/components/dashboards/panel-edit-dialog/panel-edit-dialog.component.html | Renames dialog/empty-state text from “chart” to “panel”. |
| frontend/src/app/components/dashboards/panel-delete-dialog/panel-delete-dialog.component.ts | Renames analytics events for panel delete success. |
| frontend/src/app/components/dashboards/dashboard-view/dashboard-view.component.ts | Renames analytics events for add/edit/delete panel dialog opened. |
| frontend/src/app/components/dashboards/dashboard-view/dashboard-view.component.html | Renames UI text to “panel” and adds type="button" to buttons. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| this.angulartics2.eventTrack.next({ | ||
| action: 'Dashboards: edit widget dialog opened', | ||
| action: 'Dashboards: edit panel dialog opened', | ||
| }); | ||
| posthog.capture('Dashboards: edit widget dialog opened'); | ||
| posthog.capture('Dashboards: edit panel dialog opened'); |
There was a problem hiding this comment.
Renaming the analytics event names from "widget"/"chart" to "panel" will create new event types in both Angulartics2 and PostHog, which can break existing analytics dashboards/alerts and split historical trends. If you still need continuity, consider emitting the previous event name in parallel for a deprecation window (or adding a stable event key + "entity_type" property) and coordinating an analytics dashboard migration before removing the legacy names.
No description provided.