Problem/Motivation

The Countries page lists twelve countries and the Home page shows five, but every card is a hand-placed Canvas component. Adding, renaming or unpublishing a country means editing each page by hand, the cards cannot follow the content, and only five of the twelve countries exist as content.

Steps to reproduce

  1. Install the Horizon Aid site template.
  2. Open /countries: twelve static cards, no view.
  3. Open /admin/content: only five countries exist as content.
  4. Unpublish a country: the cards on the Countries and Home pages do not change.

Proposed resolution

  • Add the seven missing countries as content, each with its own image from the design, summary, our role, on the ground text, key figures and partners: Bangladesh, Colombia, Myanmar, Somalia, South Sudan, Syria and Yemen.
  • Replace the static cards with the countries view, rendered through the overlay_card_medium view mode: twelve alphabetical rows with a pager on the Countries page, four on the Home page.
  • Add "See Other Countries" to the country full template from the same view, excluding the country being viewed.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • Twelve countries are published at /countries/[node:title].
  • The Countries and Home listings and the country page follow the content instead of hand-placed cards.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Added the seven missing countries and moved the country listings onto the countries view with the card view mode.

Issue fork horizonaid-3613658

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 6492dbb7 on 1.0.x
    feat: #3613658 Ship all twelve countries and render the country listings...
rajab natshah’s picture

Assigned: Unassigned » josebc
Status: Active » Needs review
Issue tags: +horizonaid-1.0.0-alpha1
rajab natshah’s picture

Assigned: josebc » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.