Skip to content

Adding Puerto Rico Map#3383

Open
RaptorJesus67 wants to merge 14 commits intoopenfrontio:mainfrom
RaptorJesus67:main
Open

Adding Puerto Rico Map#3383
RaptorJesus67 wants to merge 14 commits intoopenfrontio:mainfrom
RaptorJesus67:main

Conversation

@RaptorJesus67
Copy link

Description:

Adding the Map of Puerto Rico and the appropriate flags for each nation. There should be 28 nations with "pr-xxx.svg" nomenclature.

Please complete the following:

  • [ X] I have added screenshots for all UI updates
  • [ X] I process any text displayed to the user through translateText() and I've added it to the en.json file
  • [ X] I have added relevant tests to the test directory
  • [ X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced
image

Feel free to delete any files that might conflict (i.e. .gitignore). I've tested the map and it works well and the nations seem appropriately spaced and not to crammed or placed too sparse.

Please put your Discord username so you can be contacted if a bug or regression is found:

DISCORD_USERNAME -> KCMitch

@CLAassistant
Copy link

CLAassistant commented Mar 8, 2026

CLA assistant check
All committers have signed the CLA.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 8, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

Adds Panama and Puerto Rico maps: new static map assets and manifests, registry and playlist entries, enum and category updates, many country and translation additions, and a test-localStorage mock change.

Changes

Cohort / File(s) Summary
Panama map assets & manifest
map-generator/assets/maps/panama/info.json, resources/maps/panama/manifest.json
New Panama map data and manifest: localized nation names, coordinates, flag IDs, map dimensions, and land tile counts.
Puerto Rico map assets & manifest
map-generator/assets/maps/puertorico/info.json, resources/maps/puertorico/manifest.json
New Puerto Rico map data and manifest: 28 nations with coordinates, flags, names, and map metadata (sizes and tile counts).
Map registry
map-generator/main.go
Registered new maps (Panama, Puerto Rico) in the map registry.
Server playlist
src/server/MapPlaylist.ts
Added PuertoRico to map frequency distribution with frequency 4.
Game type integration
src/core/game/Game.ts
Added PuertoRico to GameMapType enum and included it in regional mapCategories.
Localization & country data
resources/lang/en.json, resources/lang/es.json, resources/countries.json
Added map.puertorico (en) and many Spanish translation keys/updates; appended numerous additive country/region entries to countries.json.
Tests
tests/InputHandler.test.ts
Replaced direct localStorage removal with an in-test localStorageMock assigned to globalThis.localStorage and cleared in setup.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🌴 New charts unfold in pixel light,
Panama and Borinquen take flight,
Little flags in tidy rows,
Names and coords where ocean flows,
A map refreshed — the atlas grows.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Adding Puerto Rico Map' directly and clearly summarizes the main change: adding a new Puerto Rico map with supporting assets and configuration.
Description check ✅ Passed The description is clearly related to the changeset, explaining the Puerto Rico map addition, the 28 nations with proper naming convention, and confirming tests and translations were completed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/core/game/Game.ts (1)

83-140: ⚠️ Potential issue | 🟠 Major

Panama still needs the enum hook.

This PR also adds Panama assets and registers panama in map-generator/main.go, but GameMapType only gets PuertoRico. BinaryLoaderGameMapLoader.ts:20-30 builds the file name from this enum, so resources/maps/panama cannot be selected or loaded yet. Please add GameMapType.Panama (and its UI text), or leave Panama out of this PR.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/core/game/Game.ts` around lines 83 - 140, The GameMapType enum is missing
a Panama entry causing BinaryLoaderGameMapLoader (which builds filenames from
GameMapType) to be unable to load resources/maps/panama; add a new member to the
GameMapType enum (e.g., Panama = "Panama") with the appropriate UI label so the
map name matches the assets, or alternatively remove the Panama registration
added in map-generator/main.go so the new assets aren't selectable until the
enum/UI hook is added; update any place that enumerates GameMapType strings if
necessary to include the new Panama value.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.gitignore:
- Around line 17-30: Remove the personal ignore block labeled "#Personally Added
-- KCMitch" from the shared .gitignore and add those rules to your local Git
exclude or your global gitignore instead; also remove any ignore rule that
targets a file that is already tracked (so it has no effect) and commit the
cleaned .gitignore without the personal lines.

In `@resources/countries.json`:
- Around line 1815-1819: The JSON contains a duplicate country entry with
"code": "do" and "name": "República Dominicana" which conflicts with the
existing entry for the Dominican Republic; either remove this duplicate object
or assign it a unique "code" if it was intended to represent a different
country/flag, and ensure only one object uses the "code": "do" (verify against
the original Dominican Republic entry to keep the correct name/continent
fields).

In `@resources/lang/es.json`:
- Around line 418-420: The translation for the key "attitude" in
resources/lang/es.json is incorrect for the player_info_overlay context — it
should reflect diplomacy/stanced meaning, not physical orientation; update the
value for "attitude" from "Orientación" to "Actitud" (or another
diplomacy-focused term like "Diplomacia") and verify that any usages in
player_info_overlay reference the same key so the label reads correctly next to
hostile/friendly values.

In `@resources/maps/puertorico/manifest.json`:
- Around line 104-107: The Vieques nation entry has coordinates [3000, 480]
which exceed the declared map width (2392); update the "coordinates" array for
the object with "flag": "pr-vieques" and "name": "Vieques" in manifest.json so
the x value is <=2392 (or regenerate/clamp both x and y to the declared map
width/height), ensuring the spawn point lies inside the map bounds and keeping
the coordinates key as the array of two numbers.
- Line 17: The manifest currently sets the map fallback label incorrectly:
replace the value of manifest.name (the "name" property in manifest.json) from
"Pangaea" to the actual map name "Puerto Rico" so untranslated locales and
accessibility labels use the correct runtime fallback; update the "name" string
in the manifest.json object accordingly.

In `@src/server/MapPlaylist.ts`:
- Line 37: The frequency map contains an invalid key "Caribbean" which is not
part of GameMapName (derived from GameMapType); remove the "Caribbean: 3" entry
or add "Caribbean" to the GameMapType enum if it truly belongs there, and to
catch similar mistakes enable stricter typing by removing Partial from the
frequency declaration (change Partial<Record<GameMapName, number>> to
Record<GameMapName, number>) so TypeScript will surface missing/invalid keys;
locate the frequency object, the GameMapName type, and the GameMapType enum to
apply the change.

In `@tests/setup.ts`:
- Around line 2-5: The shared test setup currently defines
globalThis.localStorage but removed the canvas mock, causing failures where
tests call getContext("2d"); restore a canvas mock by defining
HTMLCanvasElement.prototype.getContext (or re-adding the previous canvas mock)
in the same setup file so that calls like canvas.getContext("2d") succeed;
specifically add a short shim on HTMLCanvasElement.prototype.getContext (and any
other methods used by tests, e.g., toDataURL) alongside the existing
Object.defineProperty(globalThis, "localStorage", ...) so tests like those
calling getContext("2d") no longer fail.

---

Outside diff comments:
In `@src/core/game/Game.ts`:
- Around line 83-140: The GameMapType enum is missing a Panama entry causing
BinaryLoaderGameMapLoader (which builds filenames from GameMapType) to be unable
to load resources/maps/panama; add a new member to the GameMapType enum (e.g.,
Panama = "Panama") with the appropriate UI label so the map name matches the
assets, or alternatively remove the Panama registration added in
map-generator/main.go so the new assets aren't selectable until the enum/UI hook
is added; update any place that enumerates GameMapType strings if necessary to
include the new Panama value.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b8daa236-6d33-4b51-b083-948fe1ecef2b

📥 Commits

Reviewing files that changed from the base of the PR and between df62251 and a27ef8e.

⛔ Files ignored due to path filters (51)
  • map-generator/assets/maps/panama/image.png is excluded by !**/*.png
  • map-generator/assets/maps/puertorico/image.png is excluded by !**/*.png
  • package-lock.json is excluded by !**/package-lock.json
  • resources/flags/co-cho.svg is excluded by !**/*.svg
  • resources/flags/co-cor.svg is excluded by !**/*.svg
  • resources/flags/cr-h.svg is excluded by !**/*.svg
  • resources/flags/cr-p.svg is excluded by !**/*.svg
  • resources/flags/custom/frame.svg is excluded by !**/*.svg
  • resources/flags/pa-10.svg is excluded by !**/*.svg
  • resources/flags/pa-2.svg is excluded by !**/*.svg
  • resources/flags/pa-3.svg is excluded by !**/*.svg
  • resources/flags/pa-4.svg is excluded by !**/*.svg
  • resources/flags/pa-5.svg is excluded by !**/*.svg
  • resources/flags/pa-7.svg is excluded by !**/*.svg
  • resources/flags/pa-ky.svg is excluded by !**/*.svg
  • resources/flags/pa-nb.svg is excluded by !**/*.svg
  • resources/flags/pr-ab.svg is excluded by !**/*.svg
  • resources/flags/pr-adjuntas.svg is excluded by !**/*.svg
  • resources/flags/pr-aibonito.svg is excluded by !**/*.svg
  • resources/flags/pr-arecibo.svg is excluded by !**/*.svg
  • resources/flags/pr-barceloneta.svg is excluded by !**/*.svg
  • resources/flags/pr-barranquitas.svg is excluded by !**/*.svg
  • resources/flags/pr-bayamon.svg is excluded by !**/*.svg
  • resources/flags/pr-caguas.svg is excluded by !**/*.svg
  • resources/flags/pr-carolina.svg is excluded by !**/*.svg
  • resources/flags/pr-cr.svg is excluded by !**/*.svg
  • resources/flags/pr-culebra.svg is excluded by !**/*.svg
  • resources/flags/pr-dorado.svg is excluded by !**/*.svg
  • resources/flags/pr-fajardo.svg is excluded by !**/*.svg
  • resources/flags/pr-guaynabo.svg is excluded by !**/*.svg
  • resources/flags/pr-humacao.svg is excluded by !**/*.svg
  • resources/flags/pr-jayuya.svg is excluded by !**/*.svg
  • resources/flags/pr-lares.svg is excluded by !**/*.svg
  • resources/flags/pr-luquillo.svg is excluded by !**/*.svg
  • resources/flags/pr-maricao.svg is excluded by !**/*.svg
  • resources/flags/pr-maunabo.svg is excluded by !**/*.svg
  • resources/flags/pr-mayaguez.svg is excluded by !**/*.svg
  • resources/flags/pr-ponce.svg is excluded by !**/*.svg
  • resources/flags/pr-salinas.svg is excluded by !**/*.svg
  • resources/flags/pr-sg.svg is excluded by !**/*.svg
  • resources/flags/pr-sj.svg is excluded by !**/*.svg
  • resources/flags/pr-ss.svg is excluded by !**/*.svg
  • resources/flags/pr-utuado.svg is excluded by !**/*.svg
  • resources/flags/pr-vieques.svg is excluded by !**/*.svg
  • resources/flags/rd.svg is excluded by !**/*.svg
  • resources/maps/panama/map.bin is excluded by !**/*.bin
  • resources/maps/panama/map16x.bin is excluded by !**/*.bin
  • resources/maps/panama/map4x.bin is excluded by !**/*.bin
  • resources/maps/puertorico/map.bin is excluded by !**/*.bin
  • resources/maps/puertorico/map16x.bin is excluded by !**/*.bin
  • resources/maps/puertorico/map4x.bin is excluded by !**/*.bin
📒 Files selected for processing (16)
  • .gitignore
  • map-generator/assets/maps/panama/info.json
  • map-generator/assets/maps/puertorico/info.json
  • map-generator/main.go
  • map-generator/map-generator
  • resources/countries.json
  • resources/lang/en.json
  • resources/lang/es.json
  • resources/maps/panama/manifest.json
  • resources/maps/panama/thumbnail.webp
  • resources/maps/puertorico/manifest.json
  • resources/maps/puertorico/thumbnail.webp
  • src/core/game/Game.ts
  • src/server/MapPlaylist.ts
  • tests/InputHandler.test.ts
  • tests/setup.ts

tests/setup.ts Outdated
Comment on lines +2 to +5
Object.defineProperty(globalThis, "localStorage", {
value: window.localStorage,
configurable: true,
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e
echo "Current shared test setup:"
sed -n '1,20p' tests/setup.ts
echo
echo "Canvas-dependent tests:"
rg -n 'getContext\("2d"\)|createElement\("canvas"\)' tests/client

Repository: openfrontio/OpenFrontIO

Length of output: 450


🏁 Script executed:

cat -n tests/client/graphics/UILayer.test.ts | sed -n '40,60p'

Repository: openfrontio/OpenFrontIO

Length of output: 874


🏁 Script executed:

rg -n "canvas|getContext" tests/client/graphics/UILayer.test.ts

Repository: openfrontio/OpenFrontIO

Length of output: 212


🏁 Script executed:

# Check if vitest-canvas-mock is available in package.json or node_modules
rg "vitest-canvas-mock" . --type json --type js

Repository: openfrontio/OpenFrontIO

Length of output: 354


🏁 Script executed:

# Check what's currently in the full setup.ts
cat -n tests/setup.ts

Repository: openfrontio/OpenFrontIO

Length of output: 261


Restore the canvas mock in the shared test setup.

This adds localStorage, but drops the shared canvas setup. Tests like tests/client/graphics/ProgressBar.test.ts:8-11 and tests/client/graphics/UILayer.test.ts:32-36 use canvas methods like getContext("2d"), so they will fail without the mock in the jsdom environment.

Suggested fix
+import "vitest-canvas-mock";
+
 // Add global mocks or configuration here if needed
 Object.defineProperty(globalThis, "localStorage", {
   value: window.localStorage,
   configurable: true,
 });
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tests/setup.ts` around lines 2 - 5, The shared test setup currently defines
globalThis.localStorage but removed the canvas mock, causing failures where
tests call getContext("2d"); restore a canvas mock by defining
HTMLCanvasElement.prototype.getContext (or re-adding the previous canvas mock)
in the same setup file so that calls like canvas.getContext("2d") succeed;
specifically add a short shim on HTMLCanvasElement.prototype.getContext (and any
other methods used by tests, e.g., toDataURL) alongside the existing
Object.defineProperty(globalThis, "localStorage", ...) so tests like those
calling getContext("2d") no longer fail.

@github-project-automation github-project-automation bot moved this from Triage to Development in OpenFront Release Management Mar 8, 2026
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (2)
src/server/MapPlaylist.ts (1)

40-40: ⚠️ Potential issue | 🔴 Critical

Remove or rename the Caribbean frequency entry.

Line 40 uses a key that is not in GameMapType, so this object does not type-check and CI is already failing. Use a valid GameMapName here, or drop this entry until that map exists.

Possible minimal fix
-  Caribbean: 3,
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/server/MapPlaylist.ts` at line 40, The object in MapPlaylist contains an
invalid key "Caribbean" which is not part of GameMapType/GameMapName and breaks
type-checking; remove the "Caribbean" entry or rename it to a valid GameMapName
used by your types, and ensure the map key aligns with the GameMapType type
(update the MapPlaylist mapping where "Caribbean" appears so the key matches an
existing GameMapName or delete the key if the map doesn't exist yet).
resources/countries.json (1)

1816-1820: ⚠️ Potential issue | 🟠 Major

Do not add a second do country code.

Line 1817 reuses the code that already exists at Line 635. That makes the flag list ambiguous, and both rows point to the same /flags/do.svg asset, so this new entry cannot behave like a separate option.

Possible fix
-  {
-    "code": "do",
-    "continent": "North America",
-    "name": "República Dominicana"
-  },
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@resources/countries.json` around lines 1816 - 1820, The JSON entry duplicates
the existing country code "do" (code field) — remove or correct this duplicate:
either delete this object with name "República Dominicana" and code "do" so only
the original entry remains, or if this entry was meant to represent a different
country, change the "code" value to a unique ISO code and update the "name"
accordingly; locate the duplicate by searching for the object with "code": "do"
and "name": "República Dominicana".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@resources/countries.json`:
- Around line 1816-1820: The JSON entry duplicates the existing country code
"do" (code field) — remove or correct this duplicate: either delete this object
with name "República Dominicana" and code "do" so only the original entry
remains, or if this entry was meant to represent a different country, change the
"code" value to a unique ISO code and update the "name" accordingly; locate the
duplicate by searching for the object with "code": "do" and "name": "República
Dominicana".

In `@src/server/MapPlaylist.ts`:
- Line 40: The object in MapPlaylist contains an invalid key "Caribbean" which
is not part of GameMapType/GameMapName and breaks type-checking; remove the
"Caribbean" entry or rename it to a valid GameMapName used by your types, and
ensure the map key aligns with the GameMapType type (update the MapPlaylist
mapping where "Caribbean" appears so the key matches an existing GameMapName or
delete the key if the map doesn't exist yet).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 42a572ec-a26d-4e08-9363-5c5d03b2fd67

📥 Commits

Reviewing files that changed from the base of the PR and between a27ef8e and 5f68b71.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • map-generator/main.go
  • resources/countries.json
  • resources/lang/en.json
  • src/core/game/Game.ts
  • src/server/MapPlaylist.ts
  • tests/InputHandler.test.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/core/game/Game.ts
  • map-generator/main.go
  • resources/lang/en.json
  • tests/InputHandler.test.ts

Changed the Coordinates to Vieques to within the Map range
Removed personal .gitignore lines that leaked through
Fixed the name from a carried over manifest.json file.
Removed duplicate country code
Removed Non-Existent Map Name
Copy link
Author

@RaptorJesus67 RaptorJesus67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed all the Critical Errors holding it up.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@resources/maps/puertorico/manifest.json`:
- Around line 18-159: The manifest references 28 Puerto Rico municipality flags
(pr-*) but only pr-sj exists in countries.json, causing FlagSchema validation
failures because countryCodes is built from countries.json; add the missing 27
entries to countries.json matching the existing pattern used for other
territories (e.g., es-ct, gb-eng, pa-*) so each code (pr-ab, pr-adjuntas,
pr-aibonito, pr-arecibo, pr-barceloneta, pr-barranquitas, pr-bayamon, pr-caguas,
pr-carolina, pr-cr, pr-culebra, pr-dorado, pr-fajardo, pr-guaynabo, pr-humacao,
pr-jayuya, pr-lares, pr-luquillo, pr-maricao, pr-maunabo, pr-mayaguez, pr-ponce,
pr-salinas, pr-sg, pr-ss, pr-utuado, pr-vieques) is present with a matching flag
code and display name; follow the same object shape and metadata used by
existing entries so FlagSchema and countryCodes include these flags (SVG assets
already in resources/flags/).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1fd73f22-3bf9-41b0-9f3f-8a01aad6b413

📥 Commits

Reviewing files that changed from the base of the PR and between 5f68b71 and 5d73dd7.

📒 Files selected for processing (4)
  • resources/countries.json
  • resources/lang/es.json
  • resources/maps/puertorico/manifest.json
  • src/server/MapPlaylist.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/server/MapPlaylist.ts
  • resources/lang/es.json

Added missing Puerto Rico countries
Added more missing Puerto Rican nations to countries.json
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
resources/countries.json (1)

16-2564: ⚠️ Potential issue | 🟠 Major

Nine new country codes are missing corresponding SVG flag files, which will silently fall back to xx.svg.

The integrity check found these code values in resources/countries.json have no matching file in resources/flags/:

  • pr-ag
  • Jatibonicu
  • gb-hn
  • fl-cr
  • Empire of Haiti
  • fr-gp
  • cu-lh
  • cu-or
  • mx-yuc

The UI code in src/client/FlagInputModal.ts and src/client/graphics/layers/PlayerPanel.ts builds paths like /flags/${country.code}.svg and silently hides the image on load failure. Without the matching SVG files, these entries will degrade to the fallback flag (xx.svg) with no error logged.

Either add the missing flag SVG files to resources/flags/ or remove the entries from resources/countries.json before merging.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@resources/countries.json` around lines 16 - 2564, The countries.json contains
nine entries whose flag SVGs are missing (codes: pr-ag, Jatibonicu, gb-hn,
fl-cr, Empire of Haiti, fr-gp, cu-lh, cu-or, mx-yuc) which causes silent
fallback to xx.svg when FlagInputModal.ts and PlayerPanel.ts request
/flags/${country.code}.svg; fix by either adding the corresponding SVG files
named exactly as the codes into resources/flags/ or removing those code objects
from resources/countries.json, and ensure filenames match the code strings used
by the UI (/flags/{code}.svg).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@resources/countries.json`:
- Around line 16-2564: The countries.json contains nine entries whose flag SVGs
are missing (codes: pr-ag, Jatibonicu, gb-hn, fl-cr, Empire of Haiti, fr-gp,
cu-lh, cu-or, mx-yuc) which causes silent fallback to xx.svg when
FlagInputModal.ts and PlayerPanel.ts request /flags/${country.code}.svg; fix by
either adding the corresponding SVG files named exactly as the codes into
resources/flags/ or removing those code objects from resources/countries.json,
and ensure filenames match the code strings used by the UI (/flags/{code}.svg).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b258e110-4383-42d7-9445-a32156a431f5

📥 Commits

Reviewing files that changed from the base of the PR and between 8cd9c75 and fbe4e7d.

📒 Files selected for processing (1)
  • resources/countries.json

@RaptorJesus67
Copy link
Author

I'm trying to get the map added to the game, but am I missing something? Is there any other code I need to fix to satisfy a merge?

@FloPinguin
Copy link
Contributor

Hi, there are some issues:

You are editing files which need no edit:
frame.svg
map-generator/map-generator
package-lock.json
tests/InputHandler.test.ts
es.json (Will be replaced by our translation system, please join our translation discord to improve non-english translations)

There are also several panama files you added, but this PR is about puerto rico?
Please check the "Files changed" tab on GitHub.

And sorry, but I dont really like this map because it doesn't really offer "new gameplay"? Its an "one main island map" similar to iceland or australia (and others). The only difference are the rivers. But thats just my opinion :)

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

Labels

None yet

Projects

Status: Development

Development

Successfully merging this pull request may close these issues.

3 participants