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

WRQ-25915: Added custom site icon for sampler app #3246

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

daniel-stoian-lgp
Copy link
Contributor

@daniel-stoian-lgp daniel-stoian-lgp commented Jun 18, 2024

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

In storybook 8, the favicon.ico file available on the server is not loaded. the storybook default icon is rendered.
This is caused by an API change in storybook8

Resolution

Storybook 8 loads a "favicon.svg" after build:

image

In storybook 6, this explicit use was not generated, but it would use any available favicon.ico from the server.

the server where we deploy storybook has a favicon.ico available at the root level.
My solution was to add the enact icon in the storybook public folder and adapt storybook configuration to use the custom icon.

According to the communitty, in order to work, the custom file must be named exactly favicon.ico https://github.com/storybookjs/storybook/issues/20487 

Additional Considerations

Links

WRQ-25915

Comments

Enact-DCO-1.0-Signed-off-by: Daniel Stoian (daniel.stoian@lgepartner.com)

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.48%. Comparing base (7035ab0) to head (3d21811).
Report is 5 commits behind head on feature/enact_v5.

Additional details and impacted files
@@                Coverage Diff                @@
##           feature/enact_v5    #3246   +/-   ##
=================================================
  Coverage             82.48%   82.48%           
=================================================
  Files                   157      157           
  Lines                  7247     7247           
  Branches               1919     1919           
=================================================
  Hits                   5978     5978           
  Misses                  998      998           
  Partials                271      271           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@stanca-pop-lgp stanca-pop-lgp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@MikyungKim MikyungKim left a comment

Choose a reason for hiding this comment

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

LGTM

MikyungKim

This comment was marked as duplicate.

@MikyungKim MikyungKim merged commit a442418 into feature/enact_v5 Jun 21, 2024
5 checks passed
@MikyungKim MikyungKim deleted the feature/WRQ-25915 branch June 21, 2024 04:36
0x64 added a commit that referenced this pull request Jul 25, 2024
* WRQ-22937: Updated storybook to version 8 (#3224)

* Updated storybook to version 8

* upgraded storybook to 8.1.5

* minor fix for changelog

* merged with enact_v5

* Update CHANGELOG.md

* code review fixes

* revert of commented properties

* code review fix

* eslint fixes

* eslint fixes

* removed unneeded storybook ui properties

* updated storybook to 8.1.6 and storybook-utils branch to enact_v5

* removed docs configuration in preview.js
removed docs information in About story

* removed @storybook/addon-docs

* added back storybook/addon-docs

* WRQ-25915: Added custom site icon for sampler app (#3246)

* added custom site icon for storybook

* Update packages/sampler/.storybook/manager-head.html

* removed manager-head

* WRQ-17541: Changed `ui/Marquee.MarqueeDecorator` to use `@enact/i18n` utils for `marqueeDirection` (#3237)

* update marqueeDirection to use @enact/i18n API

* update CHANGELOG.md

* Update MarqueeDecorator.js

* update CHANGELOG.md

* update packages/ui/CHANGELOG.md

* remove unused module and sort modules alphabetically

* fix changelog

* WRQ-10629: Removed deprecated APIs (#3244)

* Removed deprecated APIs from core/platform

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Removed deprecated APIs from webos/platform

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* WRQ-228: Removed Moonstone related modules (#3207)

* Removed deprecated components from enact/ui:
IconButton, RadioDecorator, Scroller.ScrollerBase, SlotItem, ToggleItem, VirtualList.UiVirtualListBase, VirtualList.VirtualListBase

* Removed reference to ui/SlotItem from ui/Slottable.

* Updated changelog

* Update CHANGELOG.md

---------

Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Seungcheon Baek <5037955+SeungcheonBaek@users.noreply.github.com>

* Removed ui/Marquee.MarqueeDecorator config className

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Refined CHANGELOG files

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Fixed Sampler not to use a removed component

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Updated changelogs and missing changes

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Updated docs

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Fix changelogs broken by merging

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Refined warning message and removed code for unsupported legacy webOS

Enact-DCO-1.0-Signed-off-by: Seungcheon Baek (sc.baek@lge.com)

* Update deprecation message

Enact-DCO-1.0-Signed-off-by: Seungho Park <seunghoh.park@lge.com>

---------

Co-authored-by: Seungcheon Baek <5037955+SeungcheonBaek@users.noreply.github.com>
Co-authored-by: alexandru-morariu-lgp <84004128+alexandrumorariu@users.noreply.github.com>
Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Seungho Park <seunghoh.park@lge.com>

* Update change logs for 5.0.0-rc.1

* unpinning ilib peerDependencies

* applying storybook-utils 6.0.0-rc.1

* applying storybook-utils 6.0.0-rc.1 in lockfile

* Update release version & date

* Version value updating

* WRQ-29126: Updated storybook to 8.2 and fixed enact/ui interlink script (#3256)

* fixed missing depedency, updated storybook to 8.2 and changed package.json dependencies to patch version

* updated storybook dependencies to use latest minor version

* fixed merge conflicts

* fixed interlink script and added ilib dependency for enact/ui

* WRQ-28801: Fix `marqueeController` to marquee properly when `marqueeOnFocus` is true and content is changed  (#3255)

* WRQ-28801: Rollback handleComplete function in useMarqueeController to not decide whether to start by checking contentFits

Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)

* Add changelog

Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)

* Fix typo

Enact-DCO-1.0-Signed-off-by: Juwon Jeong (juwon.jeong@lge.com)

* WRQ-30274: Merge `feature/enact_v5` to `develop` branch (#3261)

* change travis dist from focal to jammy
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* modify npm-shrinkwrap.json

* add changelog
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

* add changelog
Enact-DCO-1.0-Signed-off-by: Jiye Kim (jiye.kim@lge.com)

---------

Co-authored-by: Daniel Stoian <63335068+daniel-stoian-lgp@users.noreply.github.com>
Co-authored-by: Juwon Jeong <juwon.jeong@lge.com>
Co-authored-by: taeyoung.hong <taeyoung.hong@lge.com>
Co-authored-by: taeyoung.hong <35059065+hong6316@users.noreply.github.com>
Co-authored-by: Seungcheon Baek <5037955+0x64@users.noreply.github.com>
Co-authored-by: Seungcheon Baek <5037955+SeungcheonBaek@users.noreply.github.com>
Co-authored-by: alexandru-morariu-lgp <84004128+alexandrumorariu@users.noreply.github.com>
Co-authored-by: Seungho Park <seunghoh.park@lge.com>
Co-authored-by: Jenkins <accounts@enactjs.com>
Co-authored-by: Jiye Kim <128779942+vJIYEv@users.noreply.github.com>
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