I imagined printing the entire info.json file in a textfield as the primary feature (using blank strings for the mandatory fields, and player.name for the author). A button to call write_file would be a secondary convenience.
This is just a personal thing though, I can see why some users would prefer to just have the dependencies information.
Additionally, it would be nice to have line breaks between the mod entries (so the textfield would be the same height as the one you use for standard "Copy Modlist") - I still want these files to be human-readable for editing.
Some example output might look like this (you could have a prompt that asks for a title, but it doesn't really matter what goes in there):
{
"name": "my-modpack",
"title": "My Modpack",
"author": "Shemp",
"description": "Shemp's custom mods",
"version": "0.1.0",
"factorio_version": "2.1",
"dependencies": [
"base >= 2.1.12",
"quality >= 2.1.12",
"Krastorio2 >= 2.1.2"
]
}
Also, a related feature which some other mods use and would be helpful for this one: calling select_all when you click on any of the text elements, i.e. the URLs and the mod lists, because you're only ever copying them and never editing.
EDIT: Having a toggle to make everything Recommended ("+ quality", new feature in 2.1) could be useful too. Depends how complex you want to get with this feature. :P