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(TabsItem): use hasReactNode for status #6125

Merged

Conversation

inomdzhon
Copy link
Contributor


Описание

Чтобы учитывать, что status может быть 0, используем функцию hasReactNode.

Verified

This commit was signed with the committer’s verified signature.
simonrw Simon Walker
@inomdzhon inomdzhon requested a review from a team as a code owner November 20, 2023 08:11
@github-actions github-actions bot added patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча v5 Автоматизация: PR продублируется в ветку v5 labels Nov 20, 2023
@inomdzhon inomdzhon removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Nov 20, 2023
Copy link
Contributor

github-actions bot commented Nov 20, 2023

size-limit report 📦

Path Size
JS 341.23 KB (+0.01% 🔺)
JS (gzip) 104.18 KB (-0.02% 🔽)
JS (brotli) 86.08 KB (+0.02% 🔺)
JS import Div (tree shaking) 2.71 KB (0%)
CSS 255.2 KB (0%)
CSS (gzip) 33.54 KB (0%)
CSS (brotli) 27.24 KB (0%)

Copy link

codesandbox-ci bot commented Nov 20, 2023

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.

Latest deployment of this branch, based on commit 5281e9e:

Sandbox Source
VKUI TypeScript Configuration

Copy link
Contributor

github-actions bot commented Nov 20, 2023

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Nov 20, 2023

👀 Docs deployed

Commit 5281e9e

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fd7cb8d) 79.38% compared to head (5281e9e) 79.55%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6125      +/-   ##
==========================================
+ Coverage   79.38%   79.55%   +0.16%     
==========================================
  Files         306      304       -2     
  Lines        9631     9605      -26     
  Branches     3261     3265       +4     
==========================================
- Hits         7646     7641       -5     
+ Misses       1985     1964      -21     
Flag Coverage Δ
unittests 79.55% <100.00%> (+0.16%) ⬆️

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.

mendrew
mendrew previously approved these changes Nov 20, 2023
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

Может быть простенький тест добавим?

@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Nov 20, 2023
@inomdzhon
Copy link
Contributor Author

Может быть простенький тест добавим?

Сделано ⚡ 27dee94

mendrew
mendrew previously approved these changes Nov 20, 2023
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

Мерси!

BlackySoul
BlackySoul previously approved these changes Nov 20, 2023
Copy link
Contributor

@BlackySoul BlackySoul left a comment

Choose a reason for hiding this comment

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

Мейби надо было 23 на 0 поменять, чтобы лишнего не плодить? :)

@inomdzhon inomdzhon dismissed stale reviews from BlackySoul and mendrew via 5281e9e November 20, 2023 09:23
@inomdzhon inomdzhon force-pushed the imirdzhamolov/issue6119/fix/TabsItem-status-prop-checking branch from 27dee94 to 5281e9e Compare November 20, 2023 09:23
@inomdzhon inomdzhon removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Nov 20, 2023
@inomdzhon inomdzhon merged commit 3ecc3d9 into master Nov 20, 2023
@inomdzhon inomdzhon deleted the imirdzhamolov/issue6119/fix/TabsItem-status-prop-checking branch November 20, 2023 10:26
vkcom-publisher pushed a commit that referenced this pull request Nov 20, 2023
* fix(TabsItem): use hasReactNode for status

* test(TabsItem): extend e2e config with status={0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v5 Автоматизация: PR продублируется в ветку v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: show zero in counter for TabsItem
4 participants