Skip to content

refactor: migrate markers#1324

Merged
Azgaar merged 9 commits into
Azgaar:masterfrom
SheepFromHeaven:refactor/migrate-markers
Feb 18, 2026
Merged

refactor: migrate markers#1324
Azgaar merged 9 commits into
Azgaar:masterfrom
SheepFromHeaven:refactor/migrate-markers

Conversation

@SheepFromHeaven
Copy link
Copy Markdown
Collaborator

Description

Type of change

  • Bug fix
  • New feature
  • Refactoring / style
  • Documentation update / chore
  • Other (please describe)

Versioning

  • Version is updated
  • Changed files hash is updated

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request migrates the markers generator module from vanilla JavaScript to TypeScript. The markers generator is responsible for creating various point-of-interest markers on the fantasy map (volcanoes, hot springs, inns, dungeons, etc.).

Changes:

  • Migrated public/modules/markers-generator.js to src/modules/markers-generator.ts with proper TypeScript types
  • Removed the old JavaScript file and its script tag from index.html
  • Added the new TypeScript module to the module index at src/modules/index.ts
  • Updated global type declarations in src/types/global.ts to include heightUnit, changeFont, and getFriendlyHeight

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/modules/markers-generator.ts New TypeScript version of markers generator with class-based structure, proper type definitions (MarkerConfig, Marker), and improved type safety
src/modules/index.ts Added import for the new markers-generator module
src/index.html Removed script tag for old JavaScript markers-generator module
src/types/global.ts Added global type declarations for heightUnit, changeFont, and getFriendlyHeight functions used by the markers module
public/modules/markers-generator.js Deleted - replaced by TypeScript version

Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
Comment thread src/modules/markers-generator.ts Outdated
@Azgaar Azgaar self-requested a review February 16, 2026 22:21
@Azgaar
Copy link
Copy Markdown
Owner

Azgaar commented Feb 16, 2026

I see a log of spelling issue, please fix them as well :)

SheepFromHeaven and others added 6 commits February 17, 2026 08:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SheepFromHeaven SheepFromHeaven marked this pull request as ready for review February 17, 2026 08:03
@SheepFromHeaven
Copy link
Copy Markdown
Collaborator Author

All done @Azgaar

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 17, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 258e70d
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/699619475a497e000809e5ea
😎 Deploy Preview https://deploy-preview-1324--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 da9e915 into Azgaar:master Feb 18, 2026
7 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.

3 participants