Skip to content

Conversation

@GeoffCoxMSFT
Copy link
Member

@GeoffCoxMSFT GeoffCoxMSFT commented Oct 2, 2023

Previous Behavior

ProgressBarState.bar slot was optional causing callers to have to null/undefined check it before use.
useProgressBar ensured it was never null or undefined.

New Behavior

ProgressBarState slots are required.

Related Issue(s)

Testing

  • ad-hoc tested creating a custom style hook for progress bar
  • ad-doc tested with and without specifying the bar slot

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 2, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.227 kB
19.584 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
206.783 kB
59.085 kB
react-components
react-components: FluentProvider & webLightTheme
40.793 kB
13.521 kB
react-portal-compat
PortalCompatProvider
6.503 kB
2.22 kB
react-progress
ProgressBar
16.448 kB
6.545 kB
🤖 This report was generated against b93332889af6fc14d25bcfe50ed0c56d988c10f8

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 2, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 601 612 5000
Button mount 314 311 5000
Field mount 1137 1106 5000
FluentProvider mount 699 699 5000
FluentProviderWithTheme mount 72 81 10
FluentProviderWithTheme virtual-rerender 66 62 10
FluentProviderWithTheme virtual-rerender-with-unmount 77 74 10
InfoButton mount 15 17 5000
MakeStyles mount 847 865 50000
Persona mount 1724 1740 5000
SpinButton mount 1336 1361 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 2, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 3, 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 c51ce62:

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

@size-auditor
Copy link

size-auditor bot commented Oct 3, 2023

Asset size changes

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

Baseline commit: b93332889af6fc14d25bcfe50ed0c56d988c10f8 (build)

@GeoffCoxMSFT GeoffCoxMSFT enabled auto-merge (squash) October 3, 2023 18:50
Copy link
Contributor

@tomi-msft tomi-msft left a comment

Choose a reason for hiding this comment

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

thanks for updating the typing!

@GeoffCoxMSFT GeoffCoxMSFT merged commit e0d871e into microsoft:master Oct 3, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 4, 2023
* master: (35 commits)
  bugfix(react-dialog): removes context hooks invocations from styles hook (microsoft#29396)
  chore(react-dialog): exports DialogSurface context types and hooks (microsoft#29397)
  Minimum height feature for bar chart (microsoft#29359)
  (feat) Breadcrumb - register items via context (microsoft#29393)
  fix: Consider all parents as scroll parents (microsoft#29378)
  Changes to enable charting on fluent docsite (microsoft#29210)
  bugfix: ensure TreeItem emits events properly (microsoft#29390)
  chore(deps): bump get-func-name from 2.0.0 to 2.0.2 (microsoft#29320)
  chore: migrate from getNativeElementProps to getIntrinsicElementProps (microsoft#29387)
  applying package updates
  applying package updates
  fix: Icon in disabled Button shouldn't change color on hover or pressed (microsoft#29342)
  Squish changes for rebase (microsoft#28705)
  fix: GroupedListV2 scrollToIndex now works correctly (microsoft#29332)
  Fix 27482: ProgressBar has an optional state variable  (microsoft#29366)
  remove a11y test ux from theme designer (microsoft#29379)
  feat: preview release (microsoft#29377)
  Fixed divider in the tooltip (microsoft#29357)
  fix (microsoft#29376)
  docs: Initial documentation pass (microsoft#29372)
  ...
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.

[Bug]: ProgressBar has an optional state variable

3 participants