Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor Progress to remove label and description slots #25067

Merged
merged 9 commits into from
Oct 5, 2022

Conversation

tomi-msft
Copy link
Contributor

This PR is a followup to #24023. As per comments in #24418, Progress will be changed to more match the api surface of the html element, and a ProgressField component will be added to replace the label and description slots

@github-actions github-actions bot added this to the October Project Cycle Q4 2022 milestone Oct 4, 2022
@fabricteam
Copy link
Collaborator

fabricteam commented Oct 4, 2022

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-progress
Progress
13.44 kB
5.247 kB
11.25 kB
4.514 kB
-2.19 kB
-733 B

🤖 This report was generated against 1c8b241a322ca3d2ddb5dbe78154bb7bab1271df

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 4, 2022

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 69898d9:

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

@size-auditor
Copy link

size-auditor bot commented Oct 4, 2022

Asset size changes

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

Baseline commit: 1c8b241a322ca3d2ddb5dbe78154bb7bab1271df (build)

Comment on lines 5 to 11
return <Progress {...props} percentComplete={50} />;
return <Progress {...props} />;
};

Default.parameters = {
docs: {
description: {
story: `Default determinate Progress bar`,
story: `Default indeterminate Progress bar`,
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit of a style choice, but I'd actually recommend leaving the default story showing the determinate case (i.e. with value={0.5}), and have a separate story for the indeterminate case. Even though indeterminate is the "default" with no props, the determinate case seems like a more typical scenario.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I follow that, I'll make the default determinate and change the determinate story to indeterminate

tomi-msft and others added 2 commits October 4, 2022 13:43
@tomi-msft tomi-msft enabled auto-merge (squash) October 5, 2022 04:09
@tomi-msft tomi-msft merged commit 5a3ac20 into microsoft:master Oct 5, 2022
@tomi-msft tomi-msft mentioned this pull request Oct 5, 2022
21 tasks
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 5, 2022
* master: (62 commits)
  chore(migrate-converged): add functionality to execute various v9 package file restructuring tasks (microsoft#24458)
  chore(react-dialog): updates stories (microsoft#25070)
  refactor Progress to remove label and description slots (microsoft#25067)
  fix(SplitButton): Remove borders from hover and pressed state in primary split buttons (microsoft#25059)
  chore(react-persona): Add vr, conformance, and unit tests (microsoft#25007)
  (docs): update Icon docs with examples (microsoft#24768)
  Split button/primary hc fix (microsoft#25066)
  chore(react-utilities): restricts trigger API types (microsoft#25044)
  Add utilities export @fluentui/style-utilities v8 (microsoft#25065)
  chore: migrate whole repo to webpack 5 (microsoft#24542)
  applying package updates
  BREAKING: refactor `useTable` to be composable (microsoft#24947)
  Added shims to shim packages (microsoft#25048)
  Add Progress SPEC (microsoft#24418)
  applying package updates
  chore(react-persona): Add bundle-size command for bundle-size fixtures (microsoft#25055)
  fix(Button): Remove margin added to buttons by Safari (microsoft#25052)
  fix: Menu triggers no longer take focus when they are mounted (microsoft#25016)
  chore: deletes react-trigger package (microsoft#25042)
  Fixed a minor typo: immmediately => immediately (microsoft#25036)
  ...
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
)

* refactor Progress to remove label and description slots

* api and snapshot update

* Apply suggestions from code review

Co-authored-by: Makoto Morimoto <[email protected]>

* Apply suggestions from code review

Co-authored-by: Ben Howell <[email protected]>

* api and stories update

* Update packages/react-components/react-progress/src/stories/Progress/ProgressIndeterminate.stories.tsx

Co-authored-by: Ben Howell <[email protected]>

* update stories

* Update packages/react-components/react-progress/src/components/Progress/Progress.types.ts

Co-authored-by: Ben Howell <[email protected]>

Co-authored-by: Makoto Morimoto <[email protected]>
Co-authored-by: Ben Howell <[email protected]>
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.

5 participants