diff --git a/scripts/cohort-apps-script/Code.gs b/scripts/cohort-apps-script/Code.gs index 4d487c21..32d50341 100644 --- a/scripts/cohort-apps-script/Code.gs +++ b/scripts/cohort-apps-script/Code.gs @@ -154,25 +154,44 @@ var UNDP_RENAMED = { 'Finally, is there anything else we should know about your learning or participation needs?' }; -function migrateUndpColumns() { +// Tech4Dev Sheet only (Nov 2026): the fit check gained Organisation name/website at the top and a +// phone number after the email. Its headers are the question texts (no Q numbers), so run +// migrateShortColumns once to move the new columns into place. Same safety rules as above. +var SHORT_LABELS = [ + 'Organisation name', + 'Organisation website', + 'Where is your AI solution today?', + 'Which domain does your proposed AI use case address?', + 'Can you organise testing with beneficiaries or frontline teams during the cohort?', + 'Can you assign a Tech Lead or Product Owner with approximately 50% availability over six months?', + 'Your email', + 'Phone number with country code' +]; + +function migrateUndpColumns() { migrateColumns(TABS.long, UNDP_LABELS, true, UNDP_RENAMED); } +function migrateShortColumns() { migrateColumns(TABS.short, SHORT_LABELS, false, {}); } + +// Rebuilds a tab's columns in `labels` order, matching existing columns by question text. +// numbered: headers are "Q.