Sort visual tags, audio tags, and audio channels by user preference just like languages#722
Conversation
Refactor language sorting into a reusable generic sortByUserPreference function and apply the same preference-based ordering to visualTags, audioTags, and audioChannels. Build deduplicated user-specified lists (preferred/required/included) for each category and use them when sorting parsedFile values, falling back to original order or null when appropriate. This ensures user-preferred items are prioritized in formatted output without changing null handling semantics.
WalkthroughThe formatter base module is refactored to introduce a reusable Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
|
@coderabbitai help |
ChatThere are 3 ways to chat with CodeRabbit:
CodeRabbit commands
Other keywords and placeholders
CodeRabbit configuration file (
|
|
Tip For best results, initiate chat on the files or code changes.
🎯 Review Commands
💻 Code Generation & Analysis
🔍 Codebase Navigation
📝 Issue & PR Management
🧠 Learning & Memory
💡 Usage Tips
Example interactions:
Feel free to ask me anything about this PR or the codebase! 🐰 |
|
@coderabbitai generate docstrings |
✅ Actions performedInitiated docstring generation; will generate only if new commits exist. |
|
Caution Docstrings generation - FAILED No docstrings were generated. |
|
I also contemplated adding a usort modifier instead, but I felt this was the right way of going about it since languages are already sorted this way. I have a local branch mostly finished that I can fix up, push, and PR if you think usort is a better way of going about this. |
Refactor language sorting into a reusable generic sortByUserPreference function and apply the same preference-based ordering to visualTags, audioTags, and audioChannels. Build deduplicated user-specified lists (preferred/required/included) for each category and use them when sorting parsedFile values, falling back to original order or null when appropriate. This ensures user-preferred items are prioritized in formatted output without changing null handling semantics.
Summary by CodeRabbit
Release Notes