Skip to content

feat(dashboards): add optional title and label icons#868

Open
Kern1124 wants to merge 12 commits into
mainfrom
feature/title-label-icons-main-20260611
Open

feat(dashboards): add optional title and label icons#868
Kern1124 wants to merge 12 commits into
mainfrom
feature/title-label-icons-main-20260611

Conversation

@Kern1124

Copy link
Copy Markdown
Contributor

Summary

  • add optional icon inputs and tooltip support for widget titles
  • add optional icon inputs and tooltip support for KPI labels
  • register the clock_off icon and cover the new behavior with unit tests

Validation

  • editor diagnostics on the changed dashboard templates/components across main, release/v20.0.x, and release/v19.0.x
  • git diff --check

Copilot AI review requested due to automatic review settings June 11, 2026 09:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds optional icon + tooltip metadata to dashboard widget titles and KPI labels, and registers a new clock_off icon to support the UI additions.

Changes:

  • Added optional titleIcon, titleIconSize, and titleIconTooltip inputs to the widget header and rendered the icon next to the title.
  • Extended KPI widget data (IKpiData) with optional label icon fields and rendered the icon in the KPI description row.
  • Registered the clock_off icon in @nova-ui/bits and added unit tests covering the new rendering/attributes.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/dashboards/src/lib/components/widget/widget-header/widget-header.component.ts Adds new @Input()s and helper getters for title icon support.
packages/dashboards/src/lib/components/widget/widget-header/widget-header.component.html Renders an optional title icon with tooltip/ARIA attributes.
packages/dashboards/src/lib/components/widget/widget-header/widget-header.component.less Adds layout/styles for the title row and title icon.
packages/dashboards/src/lib/components/widget/widget-header/widget-header.component.spec.ts Adds unit tests validating title icon rendering and tooltip/ARIA attrs.
packages/dashboards/src/lib/components/kpi-widget/types.ts Extends IKpiData with optional label icon fields (name/size/tooltip).
packages/dashboards/src/lib/components/kpi-widget/kpi.component.html Conditionally renders KPI label text and optional label icon with tooltip/ARIA attrs.
packages/dashboards/src/lib/components/kpi-widget/kpi.component.less Adds description-row spacing and dedicated styles for label text/icon.
packages/dashboards/src/lib/components/kpi-widget/kpi.component.spec.ts Adds unit tests for KPI label icon rendering (including empty label case).
packages/bits/src/lib/icon/icons.ts Registers the new clock_off icon in the shared icon set.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 83 to 90
&-icon {
align-items: center;
display: inline-flex;
flex: 0 0 auto;
justify-content: center;
min-height: 24px;
min-width: 24px;
}
@Kern1124 Kern1124 force-pushed the feature/title-label-icons-main-20260611 branch from 4d56ef0 to afb2956 Compare June 11, 2026 11:29
@Kern1124 Kern1124 force-pushed the feature/title-label-icons-main-20260611 branch from afb2956 to d1374a2 Compare June 11, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants