gravity-ui / uikit

https://gravity-ui.com
MIT License
555 stars 87 forks source link

fix(withTableSettings): isSelected -> selected, isRequired -> required #1478

Closed GermanVor closed 4 months ago

gravity-ui-bot commented 5 months ago

Playwright Test Component is ready.

gravity-ui-bot commented 5 months ago

Preview is ready.

GermanVor commented 5 months ago

The problem is real

I rewrote TableColumnSetup but I did not think that it was public component. Interfaces TableColumnSetupItem also is public, but it is not connected with the TableSetting.

So, the best solution now to save backward compatibility in my opinion

teleginzhenya commented 5 months ago

@amje @korvin89 @Raubzeug @ValeraS we've discussed it and decided to return backward compatibility of public api of TableColumnSetup component for now. Then we'll discuss next steps about this component, should it be exported as separate component or not.

GermanVor commented 5 months ago

@amje @korvin89 @Raubzeug @ValeraS

I begin rewrite new TableColumnSetup with the props of old one and I have new thoughts:

The best way to save backward compatibility in my opinion will be create TableColumnSetup with old code (code before i rewrote TableColumnSetup with TreeSelect) and export it instead of TableColumnSetup from withTableSettings.

In this case we 100% sure that new component will not be broken, users that use TableColumnSetup will get back component that they expected, old component 100% will not be broken.

And after that we will think what to do with TableColumnSetup.