Skip to content

Migrate modules#1538

Merged
Azgaar merged 7 commits into
masterfrom
migrate-modules-6
Jul 17, 2026
Merged

Migrate modules#1538
Azgaar merged 7 commits into
masterfrom
migrate-modules-6

Conversation

@Azgaar

@Azgaar Azgaar commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Description

Azgaar and others added 5 commits July 17, 2026 01:27
Migrate ai-generator, temperature-graph, submap-tool, transform-tool and
world-configurator from public/modules/ui/*.js to src/controllers/*.ts.
Move world parameters (mapSize, latitude, longitude, prec) into the
structured options object; .map files store them only in the options
JSON, with legacy settings slots read as fallback for old maps.
World configurator now owns its dialog markup; locked() is
DOM-independent (stored == locked).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ty and maintainability

- Simplified the open function in Transform Tool by extracting event listeners and cleanup logic.
- Consolidated input handling functions in Transform Tool for better organization.
- Enhanced the World Configurator by creating a dedicated function for dialog HTML generation.
- Removed redundant code and improved the structure of event listeners in World Configurator.
- Updated input value handling to streamline temperature and map size adjustments.
@Azgaar Azgaar self-assigned this Jul 17, 2026
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 9114462
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/6a5aa45c18d4430008b9b62f
😎 Deploy Preview https://deploy-preview-1538--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Azgaar
Azgaar merged commit d51e097 into master Jul 17, 2026
3 checks passed
@Azgaar
Azgaar deleted the migrate-modules-6 branch July 17, 2026 21:53
barrulus added a commit to barrulus/Fantasy-Map-Generator that referenced this pull request Jul 21, 2026
Syncs the fork onto Azgaar upstream master (tip 73e43d2), pulling in three
large refactors — UI-editor migration (Azgaar#1520), pointer/d3.v5 selection
replacement (Azgaar#1537), and module migration (Azgaar#1538) — plus market relocation,
temperature-unit and dropbox fixes, and the Europe North preset restore.

16 conflicts resolved. Key decisions:
- Editor pagination (fork) reconciled with upstream's renderDialog() migration
  across rivers/routes/cultures/religions/burgs/states overviews; page state
  kept module-scoped, reset on open/search/sort.
- WebGL burg icon/label guards preserved over upstream's select("#id") switch.
- Fork CSV exports kept (read pack.* not the DOM) to avoid paginated truncation.
- States editor: fork dropdown/demote-picker brush kept over upstream's
  div.selected mechanism; dropped upstream's in-loop footer accumulators to
  avoid double-counting the visible page.
- Seam-wrapping getWrappedLength kept in routes-generator.
- Legacy heightmap/provinces editor JS deleted upstream; fork's Uint32Array
  burg-array widening and GPU-label capital-zoom fallback ported to the new
  TS controllers.
- Burg-editor trade-role/flying/skyport/altitude and burgs-overview
  pagination/skyburg markup re-homed from index.html into controller templates.

tsc clean, 308 tests pass (1 skipped), production build succeeds.
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.

1 participant