Skip to content

Release 3.0.11#40

Merged
bytedreamer merged 92 commits into
mainfrom
develop
Jun 29, 2025
Merged

Release 3.0.11#40
bytedreamer merged 92 commits into
mainfrom
develop

Conversation

@bytedreamer
Copy link
Copy Markdown
Collaborator

No description provided.

bytedreamer and others added 30 commits April 6, 2025 20:46
- Test connection functionality with various configurations
- Test device discovery process
- Test event handling and subscription
- Test helper methods via reflection
- Include proper teardown for test cleanup

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Removed the DeviceManagementService refactoring item since it has been completed.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…nt-service-tests

Feature/device management service tests
- Extract large switch statement in DiscoverDevice method
- Split ScanSerialPorts method into smaller focused methods
- Simplify nested logic in ConnectDevice
- Add unit tests for event handling
- Fix BitArray ambiguity in DeviceManagementServiceTests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…t-viewmodel

Feature/refactor connect viewmodel
- Extract special handling for ResetCypressDeviceAction into separate method
- Extract SetCommunicationAction handling into separate method
- Add unit tests for ManageViewModel
- Make IdentityLookup properties virtual for better testability
- Improve code organization and error handling
- Create proper test implementation of IdentityLookup
- Fix DeviceIdentification constructor issues using ParseData factory method
- Update CLAUDE.md to mark improved test coverage as completed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Create MonitoringAction class to replace MonitorCardReads and MonitorKeypadReads
- Add MonitoringType enum to distinguish between different monitoring types
- Update ManageViewModel to use the new consolidated class
- Add extension methods for easier type checking
- Add comprehensive unit tests
- Update CLAUDE.md to mark this refactoring as completed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…itoring-actions

Consolidate monitoring actions into a unified class
- Remove duplicated setup code in ConnectViewModelTests.cs
- Add helper methods for common test operations
- Add unit tests for MonitorViewModel
- Update CLAUDE.md to mark test improvements as complete

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
1. Standardize error handling approach:
   - Added ShowExceptionDialog method to IDialogService
   - Implemented WindowsDialogService.ShowExceptionDialog
   - Created ExceptionHelper utility class with standardized try/catch patterns
   - Updated ManageViewModel to use the new error handling utilities

2. Reduce ViewModels coupling to DeviceManagementService:
   - Added IDeviceStateService interface as an abstraction layer
   - Implemented DeviceStateService that forwards events from DeviceManagementService

3. Fixed naming inconsistencies in MonitoringAction

4. Updated tests to work with the new error handling approach

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
…oring

Complete remaining refactoring opportunities
Default to Not Ready status when no USB Serial Port is detected
@bytedreamer bytedreamer merged commit b6eed0d into main Jun 29, 2025
4 checks passed
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