Skip to content

feat: preserve YAML file order for task display#8

Merged
ogrman merged 3 commits intomasterfrom
feature/preserve-yaml-task-order
Jan 6, 2026
Merged

feat: preserve YAML file order for task display#8
ogrman merged 3 commits intomasterfrom
feature/preserve-yaml-task-order

Conversation

@ogrman
Copy link
Owner

@ogrman ogrman commented Jan 6, 2026

Summary

  • 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 for users to arrange tasks in a meaningful order in the config file
  • Uses IndexMap instead of HashMap for Config.tasks to preserve insertion order during YAML parsing

Test plan

  • All existing unit tests pass
  • All existing integration tests pass
  • Verified that the indexmap crate with serde support is added to Cargo.toml

🤖 Generated with Claude Code

ogrman and others added 3 commits January 6, 2026 23:25
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>
@ogrman ogrman merged commit 7266f23 into master Jan 6, 2026
1 check passed
@ogrman ogrman deleted the feature/preserve-yaml-task-order branch January 6, 2026 22:30
@ogrman ogrman mentioned this pull request Jan 6, 2026
3 tasks
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