Skip to content

Conversation

@pan-kot
Copy link
Member

@pan-kot pan-kot commented Jan 27, 2026

This reverts commit 86ce17a.

See detailed description and discussion here: #126

Depends on:

This PR adds changes on top of #126. Specifically, the expandableRows result was updated with its own totalItemsCount and totalSelectedItemsCount - to be de-coupled from collectionProps.totalItemsCount. That is because the collectionProps.totalItemsCount shall return the total number of root items, while expandableRows.totalItemsCount returns the total number of leaf items. The change can be seen in this commit: cb3246a.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (86ce17a) to head (d556781).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main      #130      +/-   ##
===========================================
+ Coverage   98.59%   100.00%   +1.40%     
===========================================
  Files          16        13       -3     
  Lines         498       420      -78     
  Branches      171       159      -12     
===========================================
- Hits          491       420      -71     
+ Misses          5         0       -5     
+ Partials        2         0       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pan-kot pan-kot marked this pull request as ready for review January 29, 2026 14:15
@pan-kot pan-kot requested a review from a team as a code owner January 29, 2026 14:15
@pan-kot pan-kot requested review from jperals and removed request for a team January 29, 2026 14:15
jperals
jperals previously approved these changes Jan 30, 2026
@@ -4,34 +4,15 @@
import { test, expect, describe } from 'vitest';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: typo in the file name ("expadable")

expandableRows: { getId, getParentId },
selection: { defaultSelectedItems: [{ id: 'a' }, { id: 'a.1.1' }], keepSelection: true },
});
expect(expandable.result.collectionProps.expandableRows!.getSelectedItemsCount).toBe(undefined);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: why were these assertions for undefined functions moved out of their dedicated test does not return per-item counts when dataGrouping=undefined that existed in #126? At least for me, that test description helped me understand the reason of these assertions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this way the difference between dataGrouping: undefined and dataGrouping: {} is better clear. I will add code comments to explain the assertions.

@pan-kot pan-kot added this pull request to the merge queue Jan 30, 2026
Merged via the queue into main with commit 2387c40 Jan 30, 2026
43 checks passed
@pan-kot pan-kot deleted the table-grouping-2 branch January 30, 2026 11:51
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.

2 participants