Skip to content

Issue 542: Add utility type badge for meter groups#2203

Merged
rmroot merged 1 commit intodevelopfrom
issue-542
Jan 15, 2026
Merged

Issue 542: Add utility type badge for meter groups#2203
rmroot merged 1 commit intodevelopfrom
issue-542

Conversation

@rmroot
Copy link
Copy Markdown
Member

@rmroot rmroot commented Jan 15, 2026

connects #542

This pull request adds functionality to display the source type of each meter group in the meter grouping UI, including support for groups with mixed sources. The main changes include the creation and integration of a new pipe to determine the group source, UI updates to show the source as a colored badge, and updates to styles and tests.

Feature: Meter Group Source Display

  • Added a new pipe, MeterGroupSourcePipe, which determines the source type for a meter group (returns a specific source or 'Mixed' if the group contains meters with different sources). (src/app/shared/helper-pipes/meter-group-source-pipe.ts)
  • Registered MeterGroupSourcePipe in the HelperPipesModule and updated module declarations, imports, and exports. (src/app/shared/helper-pipes/_helper-pipes.module.ts) [1] [2] [3]
  • Added a unit test for MeterGroupSourcePipe. (src/app/shared/helper-pipes/meter-group-source-pipe.spec.ts)

UI Enhancements

  • Updated the meter grouping component template to display each group's source as a colored badge using the new pipe and existing MeterSourceColorPipe. The badge shows 'Mixed' if the group contains meters from multiple sources. (src/app/shared/shared-meter-content/set-meter-grouping/set-meter-grouping.component.html) [1] [2] [3] [4] [5] [6]
  • Added a .large CSS class to adjust the badge font size. (src/app/shared/shared-meter-content/set-meter-grouping/set-meter-grouping.component.css)

Pipe Enhancement

  • Updated MeterSourceColorPipe to handle the new 'Mixed' source type, assigning it a specific color. (src/app/shared/helper-pipes/meter-source-color.pipe.ts)

@rmroot rmroot merged commit 57acb5d into develop Jan 15, 2026
3 checks passed
@rmroot rmroot deleted the issue-542 branch January 16, 2026 16:10
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.

1 participant