From dc34143c7d1c6baafd08f61d22e5d46364e53c9b Mon Sep 17 00:00:00 2001 From: Saqib Date: Fri, 20 Nov 2026 18:25:09 +0530 Subject: [PATCH 1/2] Tech4Dev fit check: organisation name and website first, phone after email; migrateShortColumns for the Short tab --- scripts/cohort-apps-script/Code.gs | 35 +++++++++--- src/components/cohort/ApplyForm.js | 2 +- src/components/cohort/FitCheck.js | 85 +++++++++++++++++++++++------- src/components/cohort/ui.js | 1 + 4 files changed, 94 insertions(+), 29 deletions(-) diff --git a/scripts/cohort-apps-script/Code.gs b/scripts/cohort-apps-script/Code.gs index 4d487c21f..32d503411 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.