Skip to content

Cleanup previewController#25

Merged
AlexJSully merged 2 commits intomainfrom
alexjsully-251031-clean-up-previewcontroller
Oct 31, 2025
Merged

Cleanup previewController#25
AlexJSully merged 2 commits intomainfrom
alexjsully-251031-clean-up-previewcontroller

Conversation

@AlexJSully
Copy link
Owner

No description provided.

@AlexJSully AlexJSully requested a review from Copilot October 31, 2025 16:11
@AlexJSully AlexJSully self-assigned this Oct 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the previewController module to improve code organization, readability, and maintainability through function extraction and better documentation.

Key changes:

  • Extract configuration and file extension logic into dedicated helper functions
  • Remove complex test environment handling code that was mixing production and test concerns
  • Improve code documentation with comprehensive JSDoc comments

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/controllers/previewController.ts Refactored to extract helper functions, improved documentation, and removed test-specific code from production logic
src/controllers/previewController.test.ts Removed redundant mock setup that was duplicating existing test infrastructure

@AlexJSully AlexJSully merged commit 7821316 into main Oct 31, 2025
1 check passed
@AlexJSully AlexJSully deleted the alexjsully-251031-clean-up-previewcontroller branch October 31, 2025 16:18
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