Skip to content

Replace old encoder with new and delete#29

Closed
GlebkaF wants to merge 2 commits intomainfrom
cursor/replace-old-encoder-with-new-and-delete-4c91
Closed

Replace old encoder with new and delete#29
GlebkaF wants to merge 2 commits intomainfrom
cursor/replace-old-encoder-with-new-and-delete-4c91

Conversation

@GlebkaF
Copy link
Owner

@GlebkaF GlebkaF commented Aug 12, 2025

Migrate to new Chain-based preset encoder/decoder, removing the old encoder.js and its adapter from the main application logic.

This PR refactors the preset handling by replacing the legacy encoder.js with a new lib/core/chain-converter.ts. The chain-converter.ts introduces a more structured Chain format for presets, enabling direct manipulation and conversion to/from QR strings and visualization data. The main application logic in pages/index.js now directly uses this new API, eliminating the need for the lib/core/adapter.ts (which has been deleted). A minimal encoder.js and a temporary adapter-for-tests.ts are retained for test compatibility.


Open in Cursor Open in Web

cursoragent and others added 2 commits August 12, 2025 06:11
Co-authored-by: g.fokin <g.fokin@learningtechit.com>
Co-authored-by: g.fokin <g.fokin@learningtechit.com>
@cursor
Copy link

cursor bot commented Aug 12, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@GlebkaF GlebkaF closed this Aug 12, 2025
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.

2 participants