LearnNewsExamplesServices
Frontmatter
id8939
titleFeat: Country Flag Column
stateClosed
labels
enhancementdesign
assigneestobiu
createdAtFeb 1, 2026, 5:44 PM
updatedAtFeb 1, 2026, 6:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/8939
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 1, 2026, 6:53 PM

Feat: Country Flag Column

Closed v12.0.0 enhancementdesign
tobiu
tobiu commented on Feb 1, 2026, 5:44 PM

This task focuses on adding a column to display the contributor's country flag.

Requirements

  1. Shared Utility: Create src/util/CountryFlags.mjs to handle fuzzy matching of location strings to country codes/icon paths.
  2. Icon Library: Use 'circle-flags' (SVG) for the icons.
  3. Grid Column: Implement a column in DevRank.view.GridContainer that uses this utility.
  4. Renderer: Render the SVG icon.

Acceptance Criteria

  • The grid displays a round flag icon for users with resolvable locations.
tobiu added the enhancement label on Feb 1, 2026, 5:44 PM
tobiu added the design label on Feb 1, 2026, 5:44 PM
tobiu added parent issue #8930 on Feb 1, 2026, 5:44 PM
tobiu assigned to @tobiu on Feb 1, 2026, 5:44 PM
tobiu referenced in commit 7bfc76c - "feat: Implement Country Flag Utility & Grid Integration (#8939)" on Feb 1, 2026, 6:50 PM
tobiu
tobiu Feb 1, 2026, 6:52 PM

Input from Gemini 3 Pro:

✦ I have implemented the Country Flag enhancements.

Changes:

  1. Shared Utility (src/util/CountryFlags.mjs): Created a new utility class to map country names and location strings to ISO codes and flag URLs (using the 'circle-flags' library).
  2. Country Field Refactor (src/form/field/Country.mjs):
    • Added a showFlags_ config.
    • Refactored the icon implementation to use removeDom for cleaner DOM manipulation.
    • Updated the field to inject the flag icon into the input wrapper.
  3. Country List (src/list/Country.mjs): Created a new list class that renders flag icons next to country names.
  4. Grid Integration (apps/devrank/view/GridContainer.mjs):
    • Updated the 'Location' column to use CountryFlags for fuzzy matching.
    • Added a renderer that shows the flag icon (or a placeholder) next to the location text.
    • Removed the duplicate 'Country' column.

The grid now displays round flag icons for contributors with resolvable locations, and the text aligns correctly even when no flag is found.

tobiu closed this issue on Feb 1, 2026, 6:53 PM