feat: preserve YAML file order for task display#8
Merged
Conversation
Tasks in the status panel and process panels are now displayed in the order they appear in the YAML configuration file, rather than being sorted alphabetically. This makes it easier to arrange tasks in a meaningful order in the config file. Changes: - Replace HashMap with IndexMap for Config.tasks to preserve insertion order during YAML parsing - Remove alphabetical sorting of task names in app.rs - Add indexmap dependency with serde support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add two tests to verify that task order from the YAML file is preserved: - test_task_order_preserved_from_yaml: tests with inline YAML - test_example_yaml_task_order: tests with the example.yaml fixture 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Verify that panels are created in YAML file order, not alphabetical. The test uses intentionally non-alphabetical task names (third, first, second) to confirm insertion order is preserved. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
IndexMapinstead ofHashMapforConfig.tasksto preserve insertion order during YAML parsingTest plan
indexmapcrate with serde support is added to Cargo.toml🤖 Generated with Claude Code