ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Feature Request]: Official Support for Rendering both Table tags in same App

Open codefactor opened this issue 5 months ago • 1 comments

Feature Request Description

We need a way to support both Table tags at the same time within the same Webpack bundle and running at the same time. This will enable large applications with several Table-based pages to slowly adopt the new version of the Table of various pages in an SPA (single page application) - creating parallel copies of each of the Components and allowing separate FeatureToggles to enable the new version of individual pages for testing purposes.

There may be an existing way to do this with some creative/hacky solution by modifying the metadata - so far I haven't gotten it to work though.

Proposed Solution

A public function that can be imported to change the tag used by the new or old Table component(s) that will allow both to be used with no name collision.

Proposed Alternatives

Force all applications to use only 1 feature toggle that will activate the new Table behavior for all of the pages at the same time. This will block adoptions of the new Table until all teams are finished and ready to go live with the new upgraded implementation.

Another alternative - release a new "ui5-webcomponents-compat" project that renames the legacy Table tags with a -compat suffix.

Organization

SuccessFactors

Additional Context

In my opinion - I think we should also have another look at the strategy that we followed here in releasing a new version of a webcomponent that has backwards incompatibility. Is it really buying us a lot here to keep both the old and new table tags having exactly the same name? Couldn't the old one get a suffix or the new one?

Priority

Medium

Privacy Policy

  • [x] I’m not disclosing any internal or sensitive information.

codefactor avatar Jun 27 '25 18:06 codefactor

Please note - this issue impacts the ui5 webcomponent react documentation here:

Steps: Go to the following storybooks without refreshing the page

  1. https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/data-display-table--docs
  2. https://sap.github.io/ui5-webcomponents-react/v2/?path=/docs/legacy-components-table--docs

Actual display: Image

Expected display (after refresh): Image

Wouldn't it be nice if this page could not catastrophically fail and you could use both?

codefactor avatar Jun 27 '25 18:06 codefactor

Hello @SAP/ui5-webcomponents-topic-core ,

Can you take a look at this feature request?

Thanks and Regards, Yana

yanaminkova avatar Jun 30 '25 08:06 yanaminkova

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Jul 04 '25 08:07 github-actions[bot]

:tada: This issue has been resolved in version v2.12.0 :tada:

The release is available on v2.12.0

Your semantic-release bot :package::rocket:

ui5-webcomponents-bot avatar Jul 04 '25 09:07 ui5-webcomponents-bot