Skip to content

fix: stop mapping Public Domain ROMs to Poland#3671

Merged
gantoine merged 2 commits into
rommapp:masterfrom
chiyi-creator:fix/public-domain-rom-tag
Jul 4, 2026
Merged

fix: stop mapping Public Domain ROMs to Poland#3671
gantoine merged 2 commits into
rommapp:masterfrom
chiyi-creator:fix/public-domain-rom-tag

Conversation

@chiyi-creator

Copy link
Copy Markdown
Contributor

Summary

Fixes the display of ROMs tagged as PD / Public Domain.

The backend already parses the PD filename tag correctly as Public Domain, but regionToEmoji() incorrectly mapped both PD and Public Domain to the Poland flag. On platforms that render regional indicator emojis as flags, this caused Public Domain ROMs to appear as Polish.

Changes

  • Remove the incorrect Poland flag mapping for PD and Public Domain
  • Allow the existing fallback to display the original region text
  • Add regression tests for PD and Public Domain
  • Verify that the Polish language flag mapping remains unchanged

Testing

  • npm test -- test/utils.test.ts
  • npm test — 454 tests passed
  • npm run typecheck
  • npm run build

Fixes #3630

AI assistance disclosure

I used ChatGPT to assist with codebase navigation, debugging, test planning, and drafting parts of the regression test. I manually reviewed the changes and ran the complete test, type-check, and build commands locally.

@chiyi-creator
chiyi-creator force-pushed the fix/public-domain-rom-tag branch from ac12419 to 8fed0be Compare July 4, 2026 16:17
@chiyi-creator
chiyi-creator force-pushed the fix/public-domain-rom-tag branch from 8fed0be to e1a9c0b Compare July 4, 2026 16:35
@gantoine
gantoine merged commit bd4b70d into rommapp:master Jul 4, 2026
6 checks passed
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.

[UI/UX] Public Domain roms are tagged as PL

2 participants