Open youknowriad opened 4 years ago
👋 I'm working on TabPanel component.
I'm working on DatePicker component ;)
I'm working on Dashicon component :-)
I'm working on ImageSizeControl component.
@c4rl0sbr4v0 Actually the Dashicon component is a bit special, it's one that is generated on a separate repository and injected here as is (not edited manually), I'd recommend working on another component if possible.
Question about refactoring components: should we use function Name () {}
or an arrow function -> const Name = () => {}
?
In order to have all more or less the same structure :-)
Question about refactoring components: should we use
function Name () {}
or an arrow function ->const Name = () => {}
?In order to have all more or less the same structure :-)
I use function Name() {}
for components and arrow function inside. I don't know if I do well.
@c4rl0sbr4v0 I think both are fine to use.
We don't have a defined guideline, I think we prefer function Name
in general but @truchot's way is a good middle ground too.
I took Dropdown, this is not an easy one 😆
Question about refactoring components: should we use
function Name () {}
or an arrow function ->const Name = () => {}
?In order to have all more or less the same structure :-)
@c4rl0sbr4v0 : It seems named functions are more appreciated than arrow functions 😄 I understand it's more convenient to debug.
It's especially good to refactor the blocks since that code is the most looked at and copied.
If I work on refactoring the ColorPicker
component, should I include its sub-components Alpha, Hue, Inputs, and Saturation?
@pkvillanueva not necessarily, you can do one by one.
I'm working on the PanelBody
component
PR ready for Media & Text ~https://github.com/WordPress/gutenberg/pull/23062~ https://github.com/WordPress/gutenberg/pull/23102
PR for CalendarEdit #23072.
I'm working on Tag Cloud block.
I'm going to tackle Latest Comments block next. 👍
I'm tackling the Disabled component
I am working on the URLPopover component
MediaPlaceholder
here: https://github.com/WordPress/gutenberg/pull/23671
I'll tackle <BlockInvalidWarning>
💪
I'll tackle <TimePicker>
next 🕐
I'm working on <BlockMover>
!
I will be working on the GalleryImage component
I'm working on the ColorPicker component.
Tooltip done here https://github.com/WordPress/gutenberg/pull/27353
I'm working on URLInput
component.
I'm working on the Inserter
component.
I've done ServerSideRender
in #28297. And as it turns out, @fabiankaegy was working on their own PR (#28289) simultaneously, which does the same thing, while also addressing #24519.
I'm working on FullscreenMode component.
@youknowriad I've done FullscreenMode
in #32925 :)
It looks like there is still a lot of components to update:
@gziolo If I exclude native code, tests, documentation, error boundaries... I find 38 instances. It's a bit better :)
I would like to refactor SlotComponent
but not sure how to test it validate it to make sure if things are working correctly after refactoring! Can anyone please help with that?
:wave: I'm working on SuggestionsList
component.
Linked PR for ImportForm
reusable component.
I have a PR open to convert the EmbedPreview
component -> https://github.com/WordPress/gutenberg/pull/51325
I'm working on the Media Upload Progress component
The official recommendation for writing React components is as follows.
If you're a new/junior contributor looking to help with this refactoring, follow these steps:
extends Component
Note This is a tracking issue for the React components guidelines. This issue is tailored specifically for junior and new contributors. Experienced contributors shouldn't do big refactorings unless they update the code for another reason (bug fix, feature).