CCG Assignments migration pending
For each Google Doc URL pasted in, finds or creates a "Checklists" tab and writes the standard "Refresh Checklist" H2 section into it (sourced from a template doc).
Original Google AppScript: [Draft] CCG Assignments / Code.gs + Index.html
This tool has been scaffolded in the toolkit but its logic has not yet been ported from the original Google AppScript.
Migration TODO
- Read source doc — locate "Refresh Checklist" H2 in body, collect paragraphs + list items until next H2
- Preserve run-level formatting (bold/italic/strikethrough) into element descriptors
- For each target doc: GET /v1/documents/{id} to read tabs, look for an existing "Checklist"/"Checklists" tab
- If not found, batchUpdate with `createTab` to add one — capture the returned tabId
- batchUpdate to clear tab body + insert text + apply paragraph styles + apply text styles run-by-run
- Bonus: support docs with no tabs feature enabled (write at top of body with an H2 marker?)