Skip to content

Comments

Regression: Toolbox render item#23862

Merged
ggazzo merged 5 commits intodevelopfrom
fix/toolbox-render-item
Dec 7, 2021
Merged

Regression: Toolbox render item#23862
ggazzo merged 5 commits intodevelopfrom
fix/toolbox-render-item

Conversation

@dougfabris
Copy link
Member

@dougfabris dougfabris commented Dec 4, 2021

Proposed changes (including videos or screenshots)

Issue(s)

Closes #23883

Steps to test or reproduce

Further comments

@dougfabris dougfabris requested a review from tassoevan December 4, 2021 00:20
ggazzo
ggazzo previously approved these changes Dec 6, 2021
@ggazzo ggazzo dismissed their stale review December 6, 2021 00:07

Missed something

Copy link
Member

@ggazzo ggazzo left a comment

Choose a reason for hiding this comment

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

try to update fuselage to the last version before ant then check the resulto

@ggazzo ggazzo changed the title [FIX] Toolbox render item Regression: Toolbox render item Dec 6, 2021
@dougfabris
Copy link
Member Author

try to update fuselage to the last version before ant then check the resulto

@ggazzo Even using the latest version we need this fix

@dougfabris dougfabris requested a review from ggazzo December 6, 2021 13:27
Copy link
Contributor

@tassoevan tassoevan left a comment

Choose a reason for hiding this comment

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

@ggazzo @dougfabris

I'm mad. This component has a insane amount of crappy code at first glance:

  • code commented out without, ironically, any remarks why is deactivated;
  • atrociously large render props;
  • memo for two properties;
  • useMutableCallback for a value that may be used as default value;
  • Enough logic to be put in a separate hook;
  • any, too much any, even an any assertion.

And above it all, I don't know what id and value mean to even review it. Please folks, fix it.

@ggazzo
Copy link
Member

ggazzo commented Dec 6, 2021

@ggazzo @dougfabris

I'm mad. This component has a insane amount of crappy code at first glance:

  • code commented out without, ironically, any remarks why is deactivated;
  • atrociously large render props;
  • memo for two properties;
  • useMutableCallback for a value that may be used as default value;
  • Enough logic to be put in a separate hook;
  • any, too much any, even an any assertion.

And above it all, I don't know what id and value mean to even review it. Please folks, fix it.

I'm pretty sure you are aware this component was created based on the Menu (and that component is a mess as well), and the intention for this pull request is only "fit" the type introduced on fuselage

but you are 100% right there are a lot of space to improvements

@ggazzo ggazzo merged commit 028ede9 into develop Dec 7, 2021
@ggazzo ggazzo deleted the fix/toolbox-render-item branch December 7, 2021 22:50
@sampaiodiego sampaiodiego mentioned this pull request Dec 29, 2021
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.

[BUG] Clicking on the options icon in the Toolbar of a room crashes the UI

3 participants