Skip to content

Show affected villages in form review location section - #276

Draft
ericboucher with Copilot wants to merge 2 commits into
mainfrom
copilot/add-village-list-to-review-page
Draft

ericboucher with Copilot wants to merge 2 commits into
mainfrom
copilot/add-village-list-to-review-page

Conversation

Copilot AI commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Kobo submissions can contain multiple affected villages, but the DMP form review page only displayed province, district, and commune. Reviewers could not inspect or update the selected village list.

  • Location UI

    • Add a village multi-select to the review page.
    • Filter available villages by the selected commune.
    • Clear invalid village selections when parent locations change.
    • Preserve multi-select behavior while province, district, and commune remain single-select.
  • Kobo data mapping

    • Parse Kobo space-separated village values into frontend arrays.
    • Serialize edited village arrays back to Kobo format.
// Frontend → Kobo select_multiple format
value.join(' ');

// Kobo → frontend selection format
value.split(/\s+/).filter(Boolean);
  • Translations and coverage
    • Add village labels and “All villages” translations.
    • Add focused conversion tests.

Co-authored-by: ericboucher <16843267+ericboucher@users.noreply.github.com>
Copilot AI changed the title [WIP] Add list of villages affected to form review page Show affected villages in form review location section Sep 6, 2026
Copilot AI requested a review from ericboucher September 6, 2026 21:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List of villages affected does not appear in the form review page

2 participants