Open
Description
We need to implement the ability to create configuration presets that can be reused easily.
This is especially useful when using the same parameters across multiple collections instead of configuring everything from scratch each time, users can simply select a previously saved preset.
for example in modal have select
with options:
- preset "Get event"
- preset "Find user"
- Custom... (p.s. current modal view)

module.exports = {
'remote-select': {
enabled: true,
presets: {
'find-user': {
fetchUrl: 'https://api.example.com/users',
fetchMethod: 'GET',
fetchBody: '',
fetchHeaders: `Authorization: Bearer <token>\nContent-Type: application/json`,
optionsPath: '$.users',
labelPath: '$.name',
valuePath: '$.id',
},
// more presets
},
},
};
Maybe that would solve #4 like:
export default ({ env }) => ({
'remote-select': {
enabled: true,
presets: {
'find-user': {
fetchUrl: `https://${env('API_URL')}/users`,
// ...
},
},
},
};