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

CWVのCLS対応のために商品一覧画像のwidth、height追加 #5022

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

tao-s
Copy link
Contributor

@tao-s tao-s commented Apr 21, 2021

概要(Overview・Refs Issue)

ref: #4807 #4901
Core Web VitalでCumulative Layout Shiftのスコアが悪くなるので、ブラウザがアスペクト比を計算するためにデフォルトの縦横サイズを入れとく。

方針(Policy)

1行目の商品画像はLagest Contentとみなされる場合があるので、lazy loadしない。

実装に関する補足(Appendix)

https://web.dev/cls/

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更
  • フックポイントの呼び出しタイミングの変更
  • フックポイントのパラメータの削除・データ型の変更
  • twigファイルに渡しているパラメータの削除・データ型の変更
  • Serviceクラスの公開関数の、引数の削除・データ型の変更
  • 入出力ファイル(CSVなど)のフォーマット変更

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか

1行目の商品画像はLagest Contentとみなされる場合があるので、lazy loadしない。
@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2021

Codecov Report

Merging #5022 (f398d92) into 4.1 (530906d) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                4.1    #5022      +/-   ##
============================================
- Coverage     68.34%   68.33%   -0.01%     
  Complexity     6070     6070              
============================================
  Files           456      456              
  Lines         24946    24946              
============================================
- Hits          17050    17048       -2     
- Misses         7896     7898       +2     
Flag Coverage Δ
E2E 57.22% <ø> (-0.01%) ⬇️
Unit 76.08% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...orage/Handler/SameSiteNoneCompatSessionHandler.php 88.05% <0.00%> (-2.99%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 530906d...f398d92. Read the comment docs.

@okazy okazy added the improvement 機能改善 label Aug 25, 2021
@okazy okazy added this to the 4.1 milestone Aug 25, 2021
@chihiro-adachi chihiro-adachi modified the milestones: 4.1, 4.1.x Sep 3, 2021
@chihiro-adachi chihiro-adachi changed the base branch from 4.1-feature to 4.1 September 6, 2021 05:18
@matsuoshi matsuoshi modified the milestones: 4.1.x, 4.1.1 Nov 15, 2021
@nanasess
Copy link
Contributor

@tao-s コンフリクト解消お願いいたします

@carkn
Copy link
Contributor

carkn commented Nov 29, 2021

@tao-s @nanasess
コンフリクト解消しました。

@chihiro-adachi chihiro-adachi modified the milestones: 4.1.1, 4.1.x Dec 1, 2021
@chihiro-adachi chihiro-adachi modified the milestones: 4.1.x, 4.x Jan 10, 2022
@chihiro-adachi chihiro-adachi modified the milestones: 4.x, 4.2.0 May 30, 2022
@chihiro-adachi chihiro-adachi changed the base branch from 4.1 to 4.2 June 3, 2022 00:25
@chihiro-adachi chihiro-adachi merged commit 0c486e2 into EC-CUBE:4.2 Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants