Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-illustrated-message): support collection based illustration loading #7318

Merged
merged 5 commits into from
Aug 8, 2023

Conversation

dobrinyonkov
Copy link
Contributor

@dobrinyonkov dobrinyonkov commented Jul 12, 2023

Description

This change branches the ui5-illustrated-message assets into collections - v4, v5, v5/hc.
With this we aim to display new illustrations only for the new horizon theme and a simple version of the illustrations for the horizon high contrast themes.

How it works

Consumers of the ui5-illustrated-message component should make no changes to their code in order to display the new illustrations. The new assets will be loaded automatically by the ui5-illustrated-message depending on the current theme.

Technical details

New illustrations are located under the illustration-v5 directory.
The js modules of the illustrations now hold their collection key. The key is provided when an illustration is registered.

The script generate-js-imports/illustrations.js used to generate the dynamic imports for all the sets (base and tnt) at the same time. To reduce complexity caused by introducing collection based structure on top of the sets, the script is changed and called for all different variantions of the collection/sets separately.

Related to: #7195

@dobrinyonkov dobrinyonkov marked this pull request as draft July 12, 2023 07:17
@dobrinyonkov dobrinyonkov changed the title fix(ui5-illustrated-message): support map based illustration loading fix(ui5-illustrated-message): support collection based illustration loading Jul 12, 2023
@dobrinyonkov dobrinyonkov force-pushed the collection-based-illustration-loader branch from 732672a to 9eed62f Compare July 12, 2023 15:42
@dobrinyonkov dobrinyonkov marked this pull request as ready for review July 12, 2023 15:44
Copy link
Contributor

@plamenivanov91 plamenivanov91 left a comment

Choose a reason for hiding this comment

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

Runtime errors on windows machines in regards of directory path in the dist files.

Copy link
Contributor

@nnaydenow nnaydenow left a comment

Choose a reason for hiding this comment

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

Temporary blocking the merge due the release

@dobrinyonkov dobrinyonkov merged commit 6b52dbd into main Aug 8, 2023
5 checks passed
@ilhan007 ilhan007 deleted the collection-based-illustration-loader branch August 8, 2023 12:54
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.

3 participants