8000 Project Migration: From Kotlin JS to TypeScript & Svelte by tuanchauict · Pull Request #584 · tuanchauict/MonoSketch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Project Migration: From Kotlin JS to TypeScript & Svelte #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 478 commits into from
May 13, 2025
Merged

Conversation

tuanchauict
Copy link
Owner
@tuanchauict tuanchauict commented Dec 29, 2023

Project Migration: From Kotlin JS to TypeScript & Svelte

Background and Current Challenges

While Kotlin JS is excellent for development the business logic and non UI functions, the UI has become a significant bottleneck as I aim to support more tools.

The current shape format tool suffers from two major issues:

  • Limited functionality that constrains what users can accomplish
  • A visually unappealing interface that impacts the overall user experience

Current UI Approach

Although MonoSketch has already adopted Compose HTML for UI development, I still feel that writing UI in code isn't the ideal approach. Perhaps it's just my preference for traditional methods, but in my opinion, XML remains the best language for designing UIs.

Migration Decision

After carefully weighing several factors:

  • Trade-offs between frameworks
  • Technical challenges involved
  • Required development effort

I decided to migrate the project to TypeScript and use Svelte for the UI.

Integration Challenges

Initially, I attempted to integrate Kotlin JS and Svelte within the same project. However, this approach proved problematic for two key reasons:

  1. Build Process Conflicts: Both frameworks require being the final step in the build process, making them incompatible in this context.
  2. Bridge Complexity: Creating and maintaining a bridge between the two introduced further complexity, which I decided was not feasible.

Current Status & Request for Feedback

I want to acknowledge that my knowledge of TypeScript and the FrontEnd ecosystem is limited. I've done my best, but there may be areas that could be improved or optimized.

How You Can Help

  • If you notice any issues or have suggestions, I'd greatly appreciate your feedback
  • Feel free to point out problems in the code or approach
  • Better yet, create a PR to the port-to-js branch with fixes or enhancements
  • Test the alpha version: https://alpha.monosketch.io/

@tuanchauict tuanchauict marked this pull request as ready for review May 12, 2025 21:41
@tuanchauict tuanchauict changed the title [WIP] Project Migration: From Kotlin JS to TypeScript & Svelte Project Migration: From Kotlin JS to TypeScript & Svelte May 12, 2025
@tuanchauict tuanchauict merged commit 6ae28ff into main May 13, 2025
11 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.

2 participants
0