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

feat(DisplayTitle): Add adaptivity to DisplayTitle #7553

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

andrey-medvedev-vk
Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk commented Sep 10, 2024


  • Unit-тесты
  • e2e-тесты
  • Дизайн-ревью
  • Документация фичи
  • Release notes

Описание

Добавили compact режим для DisplayTitle, чтобы в теме, где указаты токены compact режима, они применялись.

Падение e2e-тестов

Тесты упали на платформе vkcom, потом что там применяются разные режимы адаптивности, в том числе sizeY: compact. В этом режиме теперь используются compact токены. Раньше такого не было, потому что мы compact режим не обрабатывали.

const adaptivityProviderProps: AdaptivityProps = Object.assign(
isVKCOM ? { sizeX: 'regular', sizeY: 'compact' } : {},

Release notes

Улучшения

  • DisplayTitle: добавлена поддержка compact режима

@andrey-medvedev-vk andrey-medvedev-vk added this to the v6.7.0 milestone Sep 10, 2024
@andrey-medvedev-vk andrey-medvedev-vk self-assigned this Sep 10, 2024
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Sep 10, 2024
Copy link
Contributor

github-actions bot commented Sep 10, 2024

size-limit report 📦

Path Size
JS 382.5 KB (+0.04% 🔺)
JS (gzip) 115.79 KB (+0.02% 🔺)
JS (brotli) 95.06 KB (+0.05% 🔺)
JS import Div (tree shaking) 1.45 KB (0%)
CSS 314.9 KB (+1.55% 🔺)
CSS (gzip) 40.05 KB (+0.72% 🔺)
CSS (brotli) 32.11 KB (+0.66% 🔺)

Copy link

codesandbox-ci bot commented Sep 10, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Sep 10, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Sep 10, 2024

👀 Docs deployed

Commit fd06bd7

Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.15%. Comparing base (ad82c81) to head (fd06bd7).
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7553      +/-   ##
==========================================
+ Coverage   95.14%   95.15%   +0.01%     
==========================================
  Files         384      384              
  Lines       11224    11273      +49     
  Branches     3686     3697      +11     
==========================================
+ Hits        10679    10727      +48     
- Misses        545      546       +1     
Flag Coverage Δ
unittests 95.15% <100.00%> (+0.01%) ⬆️

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

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

@andrey-medvedev-vk andrey-medvedev-vk removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Sep 10, 2024
@andrey-medvedev-vk andrey-medvedev-vk changed the title fix(DisplayTitle): Add adaptivity to DisplayTitle feat(DisplayTitle): Add adaptivity to DisplayTitle Sep 10, 2024
@andrey-medvedev-vk andrey-medvedev-vk marked this pull request as ready for review September 10, 2024 14:56
@andrey-medvedev-vk andrey-medvedev-vk requested a review from a team as a code owner September 10, 2024 14:56
…tle.tsx


no-useless-computed-key

Co-authored-by: Inomdzhon Mirdzhamolov <i.mirdzhamolov@vk.team>
@andrey-medvedev-vk andrey-medvedev-vk merged commit d8b9446 into master Sep 11, 2024
28 checks passed
@andrey-medvedev-vk andrey-medvedev-vk deleted the mendrew/DisplayTitle/adaptivity branch September 11, 2024 13:09
@vkcom-publisher
Copy link
Contributor

v6.7.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants