Repository navigation
feat: enhance command management and UI for remote and serial commands - #27
Merged
Merged
Conversation
- Updated command handling to support individual command forms for editing and importing JSON arrays. - Improved UI elements in CONTEXT.md and README.md to reflect new command management features. - Added new translations and error handling for command-related operations. - Refactored command utility functions for better clarity and functionality. - Enhanced tests to cover new command features and ensure robust validation. This update streamlines the user experience for managing infrared commands and serial presets, making it easier to add, edit, and import commands.
- Revised the description for the serial command import feature in both strings.json and en.json to enhance clarity. The updated text specifies that the JSON array contains objects with name and payload, and clarifies the use of an empty array for no presets.
- Introduced a new utility function `stored_int` to streamline the conversion of command parameters to integers, enhancing error handling for invalid inputs. - Updated the `ir_send_repeat` function to utilize `stored_int`, ensuring consistent behavior when processing command overrides. - Adjusted the `ItachRemoteCommandButton` class to leverage the new utility for command parameters, improving code clarity and maintainability. - Enhanced tests to validate the new functionality and ensure robustness in command handling.
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.
This update streamlines the user experience for managing infrared commands and serial presets, making it easier to add, edit, and import commands.