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, 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.

Expected outcome

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

  • Spotify actions/polling
  • Fire TV actions
  • Bindings/hotkeys
  • Layout/sidebar/render helpers

Constraints

  • Preserve current behavior
  • Prefer small, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendTypeScript frontend workgood first issueWell-scoped task suitable for first-time contributorsrefactorInternal cleanup or modularization work

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions