Skip to content

Split apps/tauri/src/main.ts into smaller controller modules #5

Description

@postigodev

Summary

apps/tauri/src/main.ts still owns too much wiring: event binding, async actions, polling, drag-and-drop, hotkey registration, Fire TV actions, and page-specific orchestration.

Why this matters

The file is workable, but it raises the entry cost for contributors and makes small behavior changes harder to reason about. This should remain an umbrella refactor rather than a single large rewrite.

Expected outcome

Split the file incrementally into smaller modules by concern, for example:

Constraints

  • Preserve current behavior
  • Prefer small, reviewable PRs over one large architectural rewrite
  • Prefer readable modules over introducing a large abstraction layer
  • Keep the app biased toward explicit control flow

Likely files

  • apps/tauri/src/main.ts
  • apps/tauri/src/features/*
  • apps/tauri/src/pages/*
  • new controller/helper modules under apps/tauri/src

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendTypeScript frontend workrefactorInternal cleanup or modularization work

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions