VKUI icon indicating copy to clipboard operation
VKUI copied to clipboard

feat(UsersStack): add possibility to render custom wrapper to photo and add example to doc

Open EldarMuhamethanov opened this issue 1 year ago • 3 comments

  • close #6907

  • [x] Unit-тесты
  • [x] Документация фичи

Описание

Необходимо добавить возможность рендеринга обертки для каждого аватара в компоненте UsersStack

Изменения

  • Добавил возможность прокидывания функции рендеринга обертки renderWrapper
  • Добавил тест проверяющий новый функционал
  • Добавил описание новой возможность в документацию, а также добавил новый пример

EldarMuhamethanov avatar Jul 02 '24 08:07 EldarMuhamethanov

size-limit report 📦

Path Size
JS 372.64 KB (+0.07% 🔺)
JS (gzip) 114.04 KB (+0.07% 🔺)
JS (brotli) 93.89 KB (-0.01% 🔽)
JS import Div (tree shaking) 1.42 KB (0%)
CSS 300.04 KB (+0.02% 🔺)
CSS (gzip) 38.28 KB (+0.04% 🔺)
CSS (brotli) 30.83 KB (+0.13% 🔺)

github-actions[bot] avatar Jul 02 '24 08:07 github-actions[bot]

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.

codesandbox-ci[bot] avatar Jul 02 '24 08:07 codesandbox-ci[bot]

Codecov Report

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

Project coverage is 84.09%. Comparing base (e728d24) to head (e486b2b). Report is 4 commits behind head on master.

Files Patch % Lines
...ages/vkui/src/components/UsersStack/UsersStack.tsx 83.33% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7116      +/-   ##
==========================================
+ Coverage   83.98%   84.09%   +0.11%     
==========================================
  Files         358      358              
  Lines       10882    10895      +13     
  Branches     3589     3591       +2     
==========================================
+ Hits         9139     9162      +23     
+ Misses       1743     1733      -10     
Flag Coverage Δ
unittests 84.09% <83.33%> (+0.11%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jul 02 '24 08:07 codecov[bot]

e2e tests

Playwright Report

github-actions[bot] avatar Jul 02 '24 17:07 github-actions[bot]

👀 Docs deployed

Commit e486b2b7f596027972df80276b4fe4582295beb1

github-actions[bot] avatar Jul 02 '24 17:07 github-actions[bot]