-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add hold_action to Tile card's visual config editor #22042
Add hold_action to Tile card's visual config editor #22042
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
WalkthroughWalkthroughThe changes introduce a new optional property, Changes
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
I agree that hold is a frequently used action but then maybe it makes sense to add |
@MindFreeze if wanted, I can update the PR to add @bramkragten I notice you added the Needs UX tag - is this something I need to add to the PR before merging? Are there docs/a list of requirements for this? Or is it for something/someone else? |
Need UX means that we have to discuss it with the team. Apparently hold_action in a somewhat controversial topic. |
I agree, as it's a choice of the dashboard creator. The UX discussion we had was that the tap and hold interaction is something you need to learn. |
Proposed change
This change adds the
hold_action
config option to the visual editor for the tile card.As someone who uses a lot of tiles, I almost always set both
tap_action
andicon_tap_action
totoggle
, so it makes a lot of sense to usehold_action
formore-info
.Since there is only visual editor support for
tap_action
andicon_tap_action
, it becomes fairly cumbersome and annoying to have to drop an element into YAML mode just to add ahold_action
, since it removes the very capable dynamic configuration of the tile card.As I'm fairly certain that I'm not the only one who makes extensive use of the
hold_action
, I feel it would make sense to include the it in the visual editor.Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
Summary by CodeRabbit
hold_action
property in the tile card editor, allowing users to define actions triggered by holding a tile.hold_action
, enhancing the user interface for action configuration.