Add `getLeafHeaders()` method to skip group headers #6579
Opensarathkumarsasi(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/6579/headopened sarathkumarsasi(GitHub profile, opens in a new tab) changed the title
sarathkumarsasi(GitHub profile, opens in a new tab) changed the title
sarathkumarsasi(GitHub profile, opens in a new tab) linked this to fix #6573
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID:
2ddbc731-b9f9-40dd-94f9-11bcf1a67651📥 Commits
Reviewing files that changed from the base of the PR and between 3bfc1bf60b3f00218394b744939eda4699e9ca2b and cf84ef9bbeb11f9b5700f468933cf662c772e512.
📒 Files selected for processing (3)
docs/guide/headers.mdpackages/table-core/src/core/headers/coreHeadersFeature.utils.tspackages/table-core/tests/unit/core/headers/coreHeadersFeature.utils.test.tsIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The header utilities now return only real leaf headers in left-to-right order. Documentation describes the behavior, and unit tests cover nested, group, intermediate, and placeholder headers.
Changes#
Leaf header collection
packages/table-core/src/core/headers/coreHeadersFeature.utils.ts,docs/guide/headers.mdcollectLeafHeadersnow returns only leaf headers. The guide documents the leaf-only behavior and ordering.packages/table-core/tests/unit/core/headers/coreHeadersFeature.utils.test.tsEstimated code review effort: 2 (Simple) | ~10 minutes
Merge Risk: ⚪ Minimal · up to
cf84eThis change makes leaf-header collection return only real leaf headers, with matching tests and documentation updates. No actionable merge-blocking risk remains beyond normal checks and review.
Suggested reviewers:
kevinvandy🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)#
#6573, but it omits the required Checklist and Release Impact sections.✅ Passed checks (3 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (1 skipped: 1 unsupported.)
✨ 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.
❤️ Share