Open Janpot opened 2 years ago
I would personally add the waiting for upvotes
label to wait. My assumption would be that this feature would target developers that are not yet completely willing to make the speed vs. maintainability tradeoff of low-code. They might be the audience the hardest to convert to Toolpad (the late adopters), so why I doubt we should start there.
Yes, for multiple environments I agree. I do think there is some value to split application definition from configuration early on. It could be helpful in implementing arbitrary secrets, and also in solving some of the issues we talked about around having secrets readable in the editor or not
Problem
In pro-code I split my application from its execution environment. For example, my application can be defined as a docker image, and then can be configured in runtime by providing environment variables. Can we create a similar paradigm for Toolpad applications? More specifically:
Solution
We need a way to decouple application definition from runtime environment. Essentially making applications parametrizable. In the context of Toolpad we can distinguish the following types of parameters in an environment:
params
(?). e.g. binding a text to`Details for "${params.customerName}":`
secrets
(?). e.g. binding a HTTP header to`Basic ${btoa(`user:${secrets.password}`)}`
How it should work
Future work
Benchmark