Fixed label select ordering with infinite scroll#26702
Conversation
ref https://linear.app/ghost/issue/BER-3402/ The client-side sort used `ignorePunctuation: true` which treated `#` as punctuation, sorting `#label` as `label`. The server's `name asc` ordering puts `#` before alphabetical characters, so newly loaded pages appeared in the wrong position instead of being appended to the list.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe change modifies the label sorting logic by removing the 🚥 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)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ignorePunctuation: truefrom label client-side sort to match server orderingignorePunctuationcaused#-prefixed labels to sort as if the#didn't exist, but the server'sname ascputs#before alphabetical charactersref https://linear.app/ghost/issue/BER-3402/