Skip to content

RFC: Group v9 packages to common folder#22460

Merged
TristanWatanabe merged 4 commits into
microsoft:masterfrom
TristanWatanabe:rfc-move-v9-components-to-common-folder
Apr 21, 2022
Merged

RFC: Group v9 packages to common folder#22460
TristanWatanabe merged 4 commits into
microsoft:masterfrom
TristanWatanabe:rfc-move-v9-components-to-common-folder

Conversation

@TristanWatanabe

@TristanWatanabe TristanWatanabe commented Apr 11, 2022

Copy link
Copy Markdown
Member

Currently, all v9 packages live in the /packages directory of the repo alongside v0, v8 and web-components and it can be confusing to figure out which packages are a part of v9 especially for contributors. While all v9 packages contain the react- prefix, we can't assume that contributors will know that right off the bat and it's also not always the case as some v8 packages are also prefixed with that (such as react-charting or react-focus). This RFC proposes to move all v9 related components and packages to a common react-components folder to make it easier for contributors to find all the v9 info they need.

Preview

Part of #22427


## Detailed Design or Proposal

1. Within the packages folder, we should create a new subfolder called `react-components` and move all `@fluentui/react-components` packages to it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Decided to go with the react-components subfolder name just to keep it aligned with how the rfcs folder refers to v9 stuff. Open for suggestions though as I don't particularly like how it's a duplicate of the react-components package name

@fabricteam

fabricteam commented Apr 11, 2022

Copy link
Copy Markdown
Collaborator

📊 Bundle size report

🤖 This report was generated against d07a94aa25cf00c471a17883bd53f71fc1dc4d25

@TristanWatanabe TristanWatanabe self-assigned this Apr 11, 2022
@codesandbox-ci

codesandbox-ci Bot commented Apr 11, 2022

Copy link
Copy Markdown

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 115086c:

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

@TristanWatanabe TristanWatanabe marked this pull request as ready for review April 11, 2022 22:01
@TristanWatanabe TristanWatanabe requested review from a team April 11, 2022 22:05
@size-auditor

size-auditor Bot commented Apr 11, 2022

Copy link
Copy Markdown

Asset size changes

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

Baseline commit: d07a94aa25cf00c471a17883bd53f71fc1dc4d25 (build)

Comment thread rfcs/shared/build-system/05.1-react-components-folder-organization.md Outdated

## Detailed Design or Proposal

1. Within the packages folder, we should create a new subfolder called `react-components` and move all `@fluentui/react-components` packages to it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens to the react-components package itself? Does it stay there? Or does it get moved to some sub-folder. And if so, what do we call it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

As currently laid out in the RFC proposal, the react-components package itself would go into the new react-components subfolder since this new folder is supposed to contain all v9 related packages.

@TristanWatanabe TristanWatanabe merged commit 5108147 into microsoft:master Apr 21, 2022
@TristanWatanabe TristanWatanabe deleted the rfc-move-v9-components-to-common-folder branch April 21, 2022 20:56
marwan38 pushed a commit to marwan38/fluentui that referenced this pull request Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: RFC Request for Feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants