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(Banner): rename prop asideMode to after and add prop tappable #7793

Merged
merged 10 commits into from
Oct 22, 2024

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Oct 18, 2024


  • Unit-тесты
  • e2e-тесты
  • Release notes
  • Codemod

Описание

В компоненте Banner переименовал свойство asideMode на after. Также сделал корневой элемент через Tappable.

Release notes

BREAKING CHANGE

  • Banner: свойство asideMode переименовано на after

    Пример миграции
    <Banner
      before={<Avatar size={48} src={'user_lihachyov'} />}
      title="Сегодня день рождения Михаила Лихачёва"
      subtitle={"Подарите подарок"}
      extraSubtitle={"Дополнительный текст"}
    - asideMode="dismiss"
    + after="dismiss"
    />

Улучшения

  • Banner:
    • в свойство after (в бывшем asideMode) теперь можно прокинуть любое значение;
    • корневой элемент компонента теперь сделан через Tappable, соответственно, в компонент теперь можно прокидывать соответствующие Tappable параметры.

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner October 18, 2024 12:19
Copy link
Contributor

github-actions bot commented Oct 18, 2024

size-limit report 📦

Path Size
JS 380.46 KB (-0.02% 🔽)
JS (gzip) 115.37 KB (+0.03% 🔺)
JS (brotli) 94.94 KB (-0.06% 🔽)
JS import Div (tree shaking) 1.46 KB (0%)
CSS 332.12 KB (+0.06% 🔺)
CSS (gzip) 42.08 KB (+0.05% 🔺)
CSS (brotli) 33.19 KB (+0.1% 🔺)

Copy link

codesandbox-ci bot commented Oct 18, 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 Oct 18, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Oct 18, 2024

👀 Docs deployed

Commit 8f45609

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.10%. Comparing base (43a6605) to head (8f45609).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
packages/vkui/src/components/Banner/Banner.tsx 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7793      +/-   ##
==========================================
+ Coverage   95.08%   95.10%   +0.01%     
==========================================
  Files         376      376              
  Lines       11074    11076       +2     
  Branches     3677     3679       +2     
==========================================
+ Hits        10530    10534       +4     
+ Misses        544      542       -2     
Flag Coverage Δ
unittests 95.10% <88.88%> (+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.

inomdzhon
inomdzhon previously approved these changes Oct 22, 2024
# Conflicts:
#	packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-chromium-light-1-snap.png
#	packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-firefox-light-1-snap.png
#	packages/vkui/src/components/Banner/__image_snapshots__/banner-vkcom-webkit-light-1-snap.png
inomdzhon
inomdzhon previously approved these changes Oct 22, 2024
@EldarMuhamethanov EldarMuhamethanov merged commit 1d4b706 into master Oct 22, 2024
27 of 28 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/7755/banner-rename-aside-mode branch October 22, 2024 14:52
@BlackySoul BlackySoul mentioned this pull request Oct 23, 2024
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.

[BREAKING CHANGE] Banner: переименовать asideMode -> after
4 participants