Rows land in the category and sub-category chosen here, whatever the file's own
subcategory column says. The converter writes clean.csv to
import-out/ — for a whole curriculum load use
Import instead, which counts what it skipped.
Categories and perakim come from curriculum.js and are not edited here.
This adds a sub-category to the questionCategories registry only — use it
for a legacy category that has no curriculum entry.
Re-creates every question in this category with a fresh auto-generated id, for when a
CSV's id column was the question text. All data is preserved, but every
document is rewritten — so the ids in any export you already took stop matching.
Purging is permanent and is the main admin's alone — firestore.rules
allows delete on a question only for isAdmin(), so a reviewer cannot
destroy one even from the console. Restore lives on each archived card.