The process of adding a new preset to the Generate page is cumbersome at the moment. It looks like this:
- Add an entry to
presets.ts with each setting defined based on params.ts
- Add a
mode in GenerateFormParams
- Add an entry to the
MODES object with each setting defined in form.tsx
- Add code to
onSubmit() to map the preset name to the mode name
- Add an entry to the Mode
<Select>
For a preset that should be the default:
- Update all other
<Select> elements so that there first option matches the option used in the default preset
The code looks up the mode based on the default settings when the page is first loaded to pick the default Preset. This is much to complicated.
The process of adding a new preset to the Generate page is cumbersome at the moment. It looks like this:
presets.tswith each setting defined based onparams.tsmodeinGenerateFormParamsMODESobject with each setting defined inform.tsxonSubmit()to map the preset name to the mode name<Select>For a preset that should be the default:
<Select>elements so that there first option matches the option used in the default presetThe code looks up the
modebased on the default settings when the page is first loaded to pick the default Preset. This is much to complicated.