Autocomplete hook token/ID/URL fields from existing config - #1324
Conversation
da4b9fd to
a279592
Compare
9870081 to
f3a145d
Compare
|
Hi, thanks for the interest in contributing! Afraid for this one I'm concerned about the maintenance cost of serverside autocomplete for these fields. I think a client side only solution would be more interesting-- but I'm also wondering if this is broadly the wrong way of approaching the problem. I think I'd like to tackle this more comprehensively at some point with a template / inheritance system allowing users to either copy and inherit configuration from other plans-- but some real thinking about the semantics of this are needed. |
|
Thanks for the feedback! I am not sure what you mean with " template / inheritance system". Could you elaborate a bit more, then I can give it a try. As for the client side focus, how would you want to do this? At least once we would have to read the config file to extract the current values. |
|
@garethgeorge ping :) |
Adds autocomplete for hook credential fields (bot tokens, chat IDs, webhook URLs, etc.) based on values already present in the saved config. When a user focuses a supported hook field, a dropdown appears with existing values from other hooks identical to the ones for the
paths. The dropdown also includes values from other hooks in the same form that have not yet been saved, making it easier to configure multiple similar hooks in one session.This PR is an approach to solve the following issues:
Notes