Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance KeyValue and Labels shell components to set custom descriptions #13398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

votdev
Copy link
Member

@votdev votdev commented Feb 13, 2025

Summary

Allow to set a custom description for the KeyValue and Labels shell components. Additional add the ability to hide the label description for Labels.

Fixes: #13397

Occurred changes and/or fixed issues

Add the following new properties:

  • Labels: showLabelDescription and labelDescription
  • KeyValue: description

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@votdev votdev added this to the v2.11.0 milestone Feb 13, 2025
@votdev votdev self-assigned this Feb 13, 2025
@votdev votdev requested review from a110605 and torchiaf February 13, 2025 11:47
@votdev votdev force-pushed the issue_13397_custom_desc_label_keyvalue branch from a29a343 to 558f724 Compare February 13, 2025 11:52
Allow to set a custom description for the `KeyValue` and `Labels` shell components. Additional add the ability to hide the label description for `Labels`.

Related to: rancher#13397

Signed-off-by: Volker Theile <[email protected]>
@votdev votdev force-pushed the issue_13397_custom_desc_label_keyvalue branch from 558f724 to 8b8d969 Compare February 13, 2025 11:57
// A custom label description. Defaults to `labels.labels.description` if empty.
labelDescription: {
type: String,
default: '',
Copy link
Member Author

Choose a reason for hiding this comment

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

Would this make sense?

Suggested change
default: '',
default: 'labels.labels.description',

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.

Enhance KeyValue and Labels shell components to set custom descriptions
1 participant