feat: add payload copy, centralize UI theme, and extract UseCase interface - #8
Merged
Merged
Conversation
xvlet
commented
Aug 24, 2026
Owner
…rface
- UI: Created theme.go to centralize lipgloss color definitions into an AppTheme struct.
- UI: Replaced hardcoded hex colors with AppTheme references across all TUI views and components.
- UI: Added c and y keybindings in the message detail view to copy the raw payload directly to the OS clipboard.
- UI: Updated the footer hints to display the new copy shortcut.
- UI: Implemented a success notification for clipboard actions and prevented these notifications from falsely triggering the disconnected status.
- UI: Updated AppModel to depend on the UseCase interface instead of a concrete struct pointer, strictly adhering to Clean Architecture principles.
- Usecase: Extracted UseCase interface to decouple the UI layer from concrete business logic implementations.
- Usecase: Renamed ActiveMQUseCase struct to activeMQInteractor to encapsulate the implementation details.
- Usecase: Fixed a potential resource leak in GetFullMessageBody by catching and bubbling up temporary queue deletion errors using named return variables.
- Build: Resolved ST1005 golangci-lint warning by removing trailing punctuation from error strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.