Skip to content

rename "widget" and "chart" to "panel" in dashboard UI and analytics#1662

Open
gugu wants to merge 2 commits intomainfrom
frontend_rename_widget_to_panel
Open

rename "widget" and "chart" to "panel" in dashboard UI and analytics#1662
gugu wants to merge 2 commits intomainfrom
frontend_rename_widget_to_panel

Conversation

@gugu
Copy link
Contributor

@gugu gugu commented Mar 12, 2026

No description provided.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 12, 2026 13:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

Comment on lines 213 to +216
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');
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
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