Skip to content

Conversation

@bsunderhus
Copy link
Contributor

@bsunderhus bsunderhus commented Feb 17, 2023

Previous Behavior

UseTableSelectionOptions selectedItems was based on receiving a Set from the user

New Behavior

  1. selectedItems and defaultSelectedItems now accepts a Iterable instead of a Set, which internally will be converted to a Set
  2. exports UseTableSelectionOptions type.

@bsunderhus bsunderhus self-assigned this Feb 17, 2023
@bsunderhus bsunderhus force-pushed the react-table--chore---exports-UseTableSelectionOptions-type branch from c481621 to 161105d Compare February 17, 2023 14:44
@size-auditor
Copy link

size-auditor bot commented Feb 17, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 103b8977f8d5f8dd8c430bab46ff5308a2c76371 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 17, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1301 1290 5000
Button mount 924 916 5000
Field mount 1941 1898 5000
FluentProvider mount 1571 1521 5000
FluentProviderWithTheme mount 581 580 10
FluentProviderWithTheme virtual-rerender 540 547 10
FluentProviderWithTheme virtual-rerender-with-unmount 585 575 10
InfoButton mount 517 517 5000
MakeStyles mount 1959 1945 50000
Persona mount 2833 2822 5000
SpinButton mount 2293 2270 5000

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 17, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b93dca8:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@bsunderhus bsunderhus marked this pull request as ready for review February 17, 2023 15:00
@bsunderhus bsunderhus requested a review from a team as a code owner February 17, 2023 15:00
@bsunderhus bsunderhus force-pushed the react-table--chore---exports-UseTableSelectionOptions-type branch from 161105d to 3b1513a Compare February 17, 2023 15:00
@fabricteam
Copy link
Collaborator

fabricteam commented Feb 17, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-table
DataGrid
143.529 kB
39.134 kB
143.646 kB
39.157 kB
117 B
23 B
react-table
Table as DataGrid
134.29 kB
34.471 kB
134.4 kB
34.514 kB
110 B
43 B
react-table
Table (Selection only)
82.208 kB
20.536 kB
82.316 kB
20.576 kB
108 B
40 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
64.09 kB
17.544 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
201.998 kB
56.27 kB
react-components
react-components: FluentProvider & webLightTheme
35.049 kB
11.533 kB
react-portal-compat
PortalCompatProvider
6.324 kB
2.129 kB
react-table
Table (Primitives only)
43.776 kB
12.063 kB
react-table
Table (Sort only)
81.637 kB
20.386 kB
🤖 This report was generated against 103b8977f8d5f8dd8c430bab46ff5308a2c76371

Copy link
Contributor

@ling1726 ling1726 left a comment

Choose a reason for hiding this comment

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

Let's use the Iterable change as the PR title and changefile message

@bsunderhus bsunderhus enabled auto-merge (squash) February 22, 2023 20:37
@bsunderhus bsunderhus force-pushed the react-table--chore---exports-UseTableSelectionOptions-type branch from 8dce0be to 0593d60 Compare February 22, 2023 20:37
 - Converts types to allow Iterable instead of Set
@bsunderhus bsunderhus force-pushed the react-table--chore---exports-UseTableSelectionOptions-type branch from 0593d60 to 6bb6ba1 Compare February 23, 2023 02:14
@bsunderhus bsunderhus force-pushed the react-table--chore---exports-UseTableSelectionOptions-type branch from 6bb6ba1 to 0b43add Compare February 23, 2023 16:23
@bsunderhus bsunderhus changed the title chore(react-table): exports UseTableSelectionOptions chore(react-table): use Iterable instead of a Set for table selection API surface Feb 24, 2023
@fabricteam
Copy link
Collaborator

🕵 fluentuiv9 No visual regressions between this PR and main

@bsunderhus bsunderhus merged commit d858041 into microsoft:master Feb 24, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Feb 24, 2023
* master: (93 commits)
  chore: migrate to jest 27 (microsoft#26835)
  chore: make lint task run without need of build (microsoft#26872)
  chore(react-table): exports UseTableSelectionOptions (microsoft#26892)
  applying package updates
  fix(react-card): allow elements to grow to fill the available space (microsoft#26616)
  fix: Popover without focus trap should not be aria-hidden (microsoft#26932)
  applying package updates
  applying package updates
  fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574)
  fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905)
  fix: Removing possible recursive loop in Coachmark (microsoft#26934)
  Combobox: Fix cursor jumping to the end of input (microsoft#26931)
  Fix missing icons on website (microsoft#26797)
  fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881)
  chore: Clean up Input's interactive styles (microsoft#26865)
  Remove codeowners from change files (microsoft#26935)
  chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904)
  docs: Remove testing code from MenuList example (microsoft#26929)
  chore: refactor SpinButton to use makeResetStyles (microsoft#26867)
  feat: Set overflow on positioned element when `autosize` is applied (microsoft#26868)
  ...
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Mar 15, 2023
…r-component

* feat/drawer-base-component: (141 commits)
  remove DrawerContainer
  feat: WIP add initial draft for Drawer and DrawerContainer
  chore: migrate to jest 27 (microsoft#26835)
  chore: make lint task run without need of build (microsoft#26872)
  chore(react-table): exports UseTableSelectionOptions (microsoft#26892)
  applying package updates
  fix(react-card): allow elements to grow to fill the available space (microsoft#26616)
  fix: Popover without focus trap should not be aria-hidden (microsoft#26932)
  applying package updates
  applying package updates
  fix(react-combobox): Remove _getAriaActiveDescendantValue, compute aria-activedescendantvalue in state, and update currentPendingValue when the options change (microsoft#26574)
  fix: v8 Combobox role and accname for non-hidden icon button (microsoft#26905)
  fix: Removing possible recursive loop in Coachmark (microsoft#26934)
  Combobox: Fix cursor jumping to the end of input (microsoft#26931)
  Fix missing icons on website (microsoft#26797)
  fix: Fix the width of Input's focus border with appearance=underline (microsoft#26881)
  chore: Clean up Input's interactive styles (microsoft#26865)
  Remove codeowners from change files (microsoft#26935)
  chore: add splitbutton error warning to docs, remove button ariaDescription example (microsoft#26904)
  docs: Remove testing code from MenuList example (microsoft#26929)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants