Skip to content

refactor: migrate burg module#1288

Merged
Azgaar merged 4 commits into
Azgaar:masterfrom
SheepFromHeaven:refactor/migrate-burgs
Jan 27, 2026
Merged

refactor: migrate burg module#1288
Azgaar merged 4 commits into
Azgaar:masterfrom
SheepFromHeaven:refactor/migrate-burgs

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

@netlify

netlify Bot commented Jan 27, 2026

Copy link
Copy Markdown

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 76a68f0
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/6979324a20e44200081754e3
😎 Deploy Preview https://deploy-preview-1288--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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the burgs-generator module from JavaScript to TypeScript as part of the ongoing codebase modernization effort. The migration removes the old public/modules/burgs-generator.js file, creates a new TypeScript version at src/modules/burgs-generator.ts, and updates related type definitions.

Changes:

  • Migrated burgs-generator module from JavaScript to TypeScript with proper type definitions
  • Added Burg interface export and updated PackedGraph type definitions
  • Extended global type declarations for burgs-related functionality
  • Removed legacy JavaScript script tag from index.html

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/modules/burgs-generator.ts New TypeScript implementation of the burgs generator module with BurgModule class and Burg interface
src/types/global.ts Added global declarations for burgs-related variables and functions (options, Routes, population settings, drawing functions, etc.)
src/types/PackedGraph.ts Added Burg type import and extended cells interface with burg, religion, state properties; added burgs and states arrays
src/modules/index.ts Added import for new burgs-generator module
src/index.html Removed legacy script tag for old JavaScript burgs-generator module
public/modules/burgs-generator.js Deleted old JavaScript implementation (complete file removal)

Comment thread src/modules/burgs-generator.ts Outdated
Comment thread src/modules/burgs-generator.ts
Comment thread src/modules/burgs-generator.ts
Comment thread src/modules/burgs-generator.ts
Comment thread src/modules/burgs-generator.ts
Comment thread src/modules/burgs-generator.ts
Comment thread src/modules/burgs-generator.ts
Comment thread src/index.html
@SheepFromHeaven

Copy link
Copy Markdown
Collaborator Author

ready

@Azgaar Azgaar merged commit e938bc7 into Azgaar:master Jan 27, 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