Skip to content

refactor(tray): extract About window logic to dedicated module#60

Merged
flexiondotorg merged 1 commit intomainfrom
about
Mar 27, 2026
Merged

refactor(tray): extract About window logic to dedicated module#60
flexiondotorg merged 1 commit intomainfrom
about

Conversation

@flexiondotorg
Copy link
Copy Markdown
Member

  • Move showAboutWindow() function and related constants from tray.ts to new aboutWindow.ts module
  • Update imports in main.ts and tray.ts to use showAboutWindow from aboutWindow module
  • Add dedicated test suite (6 tests) covering window creation, zoom scaling, event handling, and focus behaviour
  • Removes ~59 lines of unrelated window logic from tray module to improve separation of concerns

Checklist

  • I have performed a self-review of my code
  • I have tested my changes and confirmed there are no regressions

- Move showAboutWindow() function and related constants from tray.ts to
  new aboutWindow.ts module
- Update imports in main.ts and tray.ts to use showAboutWindow from
  aboutWindow module
- Add dedicated test suite (6 tests) covering window creation, zoom
  scaling, event handling, and focus behaviour
- Removes ~59 lines of unrelated window logic from tray module to
  improve separation of concerns

Signed-off-by: Martin Wimpress <code@wimpress.io>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Requires human review: This is a code refactor involving moving logic between modules, which is classified as high-impact and requires human review according to the provided guidelines.

@flexiondotorg flexiondotorg merged commit 7d2b36c into main Mar 27, 2026
12 checks passed
@flexiondotorg flexiondotorg deleted the about branch March 27, 2026 16:09
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.

1 participant