Skip to content

feat(threshold): add useAliasForStepValues input to display alias labels#1728

Open
chintankavathia wants to merge 1 commit intomainfrom
feat/threshold/alias-for-step-value
Open

feat(threshold): add useAliasForStepValues input to display alias labels#1728
chintankavathia wants to merge 1 commit intomainfrom
feat/threshold/alias-for-step-value

Conversation

@chintankavathia
Copy link
Member

@chintankavathia chintankavathia commented Mar 24, 2026

Add a useAliasForStepValues input that replaces numeric step inputs with readonly text fields showing alias labels. When enabled, add/delete step buttons are hidden. Adds aliasLabel property to ThresholdStep.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the useAliasForStepValues input to the threshold component, which is a useful feature. The implementation is solid, with corresponding updates to the API documentation, component logic, template, and tests. The new tests are comprehensive and cover the new functionality well.

I have one suggestion to improve the template's readability and maintainability by extracting a complex, repeated condition into a computed signal, in line with the project's style guide.

@chintankavathia chintankavathia force-pushed the feat/threshold/alias-for-step-value branch 3 times, most recently from e0a5423 to ca12f34 Compare March 24, 2026 11:29
@github-actions
Copy link

⬇️ Download VRTs

@chintankavathia chintankavathia force-pushed the feat/threshold/alias-for-step-value branch from ca12f34 to 74b4a60 Compare March 24, 2026 11:58
Add a `useAliasForStepValues` input that replaces numeric step inputs
with readonly text fields showing alias labels. When enabled, add/delete
step buttons are hidden. Adds `aliasLabel` property to `ThresholdStep`.
@chintankavathia chintankavathia force-pushed the feat/threshold/alias-for-step-value branch from 74b4a60 to 29c8fec Compare March 24, 2026 12:25
@chintankavathia chintankavathia marked this pull request as ready for review March 24, 2026 13:02
@chintankavathia chintankavathia requested review from a team and dr-itz as code owners March 24, 2026 13:02
Copy link
Contributor

@dr-itz dr-itz left a comment

Choose a reason for hiding this comment

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

code looks fine 👍

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