MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

Add collapsible menu for advanced options for Add-On runs #475

Open duckduckgrayduck opened 6 months ago

duckduckgrayduck commented 6 months ago

Some Add-Ons, like Scraper and Klaxon, have few required fields and many other possible advanced options. It would be nice to tuck this under a different collapsible menu to clean up the Add-On run view.

eyeseast commented 6 months ago

I like this idea. What would the config look like?

mitchelljkotler commented 5 months ago

1) example config 2) example addons

duckduckgrayduck commented 5 months ago

1 Add property to a field that says "advanced" 2 Sibling to fields named "Advanced fields" which is a list of advanced fields

duckduckgrayduck commented 5 months ago

I went about route 2 listed above (siblings) similar to how required fields work(where a list of required fields is listed), I enumerated a list of advanced fields: https://github.com/duckduckgrayduck/documentcloud-scraper-addon/commit/59a4e971a00ae170658635a6725656fd6ddbb61c

duckduckgrayduck commented 5 months ago

Add-Ons that could use this thus far: Scraper, Klaxon, GPT 3.5 Turbo