show dominant culture in provinces editor - #1777
Conversation
✅ Deploy Preview for afmg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Welcome, and thanks for the PR! I checked it out locally: tsc, vitest and biome are clean, and a headless run recomputing the dominant culture independently for every province matched your column exactly, so the core logic is right. A few things to line up with the rest of the codebase before merge. I've ordered them so each builds on the last. 1. Count burg population under the cell's culture. Right now line 88 uses 2. Store the value on the Province. The 3. Make the name dialog agree. The province name dialog already shows "Dominant culture:" from the centre cell ( 4. CSV export. 5. Small polish: width Push the fixes as new commits on the same branch and I'll re-check. Running |
|
@barrulus I believe it made the changes |
|
Request to rework: dominant culture with percentage display. As it's introduced in Provinces, the same change should be done for States. Columns name must be still simply "Culture", but tooltip can provide more details. The main calculation code should probably live in cultures-generator module. |
This was moved to draft yesterday because it is currently being reworked. |
Adds dominant culture as a displayable column in the provinces editor