-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Generate random webhook_id and add copy button #11568
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ec83e84
Generate random webhook_id and add copy button
esev cf26038
Move the copy button beside the input field
esev 6451c84
Copy URL for webhook
esev d174846
Use lowerMixedCase names
esev 6721694
Keep paper-input import
esev b051256
Decrease the size of the copy button
esev eecdf03
Simplify inputElement assigment.
esev d6170d4
paper-input.id no longer needed after eecdf03
esev 1ba271a
Include automation name in webhook id
esev 3b5ec48
Avoid sequences of multiple - characers in alias
esev d646d2a
Fix type lint issue
esev d1bd24f
Prefix the id with the name of the automation
esev 6cc090b
Use slugify to generate urlSafeAlias
esev ae2a58f
Use a string for the default webhook_id
esev edf5645
Use helper text to describe the webhook_id
esev 4eaafd2
slugify handles toLowerCase
esev 43d6c49
Use willUpdate to generate the initial webhook_id
esev 8be1e85
Switch to ha-textfield for webhook_id
esev d8c861a
Inline AutomationConfig callback
esev 0079652
Remove _automationUpdated method
esev 19068ae
Nit: Properly type HaTextField
esev 1143c7b
Fix handleChangeEvent instead of reimplementing
esev 8411052
Use material standards
esev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 104 additions & 10 deletions
114
src/panels/config/automation/trigger/types/ha-automation-trigger-webhook.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.