Skip to content

refactor: migrate cultures generator#1287

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

refactor: migrate cultures generator#1287
Azgaar merged 6 commits into
Azgaar:masterfrom
SheepFromHeaven:refactor/migrate-cultures

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
Copy link
Copy Markdown

netlify Bot commented Jan 26, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 3cbe9bc
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/697914e6465cf7000780f372
😎 Deploy Preview https://deploy-preview-1287--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.

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 PR migrates the cultures generator module from JavaScript to TypeScript, continuing the gradual migration of the codebase to TypeScript. The migration involves converting the module from a traditional JavaScript file loaded via script tag to a TypeScript module that's bundled by Vite during the build process.

Changes:

  • Migrated public/modules/cultures-generator.js to src/modules/cultures-generator.ts with TypeScript types and interfaces
  • Added Culture interface export and proper type annotations throughout the module
  • Updated global type definitions and PackedGraph interface to support the new TypeScript module
  • Removed the script tag from index.html as the module is now bundled by Vite

Reviewed changes

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

Show a summary per file
File Description
src/modules/cultures-generator.ts New TypeScript module with culture generation, expansion, and management logic
public/modules/cultures-generator.js Deleted - replaced by TypeScript version
src/index.html Removed script tag for cultures-generator.js (now bundled)
src/modules/index.ts Added import for new cultures-generator module
src/types/global.ts Added global type declarations for DOM elements and libraries used by cultures module
src/types/PackedGraph.ts Added Culture interface import and cultures array to PackedGraph type

Comment thread src/modules/cultures-generator.ts Outdated
Comment thread src/modules/cultures-generator.ts
Comment thread src/modules/cultures-generator.ts
@SheepFromHeaven
Copy link
Copy Markdown
Collaborator Author

it's ready now

@Azgaar
Copy link
Copy Markdown
Owner

Azgaar commented Jan 27, 2026

Please solve the conflicts and I will merge :)

@SheepFromHeaven
Copy link
Copy Markdown
Collaborator Author

done

@Azgaar Azgaar merged commit 3807903 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