Skip to content

Improve Granularity in CodeAstra #10

Closed
@chrisdedman

Description

@chrisdedman

Description

The current implementation of our codebase has some coarse-grained functionality that could benefit from increased granularity for better maintainability, modularity, and overall developer experience. This issue proposes refining key areas of the codebase before it goes too large and out of control.

Example of Improvement

File Operations (MainWindow::openFile, MainWindow::saveFile, MainWindow::saveFileAs)

  • File handling is mixed with UI logic.
  • Proposed Change:
    • Move file reading/writing into a separate FileManager class.
    • Decouple error handling from UI messages.

Proposed Approach

  • Refactor large functions into modular components.
  • Introduce helper classes (e.g., FileManager).
  • Improve separation of concerns between UI, logic, and state management.

Additional Context

This will improve readability, extensibility, and debugging while making it easier to introduce new features.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions