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(Select, DatePicker): add type to catch unsupported props #6667

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Mar 7, 2024

Описание

В тех местах, где при определённых условиях под капотом используется нативный компонент, мы, бывает, забываем исключать новые свойства необходимые только в кастомных компонентах. В итоге неспользуемые свойства оказываются в DOM. (#6663, #6386).

Добавил тип, как посоветовал @inomdzhon в #6663 (comment), чтобы при добавлении нового свойства линтер ругался если для нативного компонента это свойство не нужно.

@mendrew mendrew added this to the v6.0.2 milestone Mar 7, 2024
@mendrew mendrew added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Mar 7, 2024
@mendrew mendrew self-assigned this Mar 7, 2024
Copy link
Contributor

github-actions bot commented Mar 7, 2024

size-limit report 📦

Path Size
JS 353.13 KB (+0.01% 🔺)
JS (gzip) 107.92 KB (+0.01% 🔺)
JS (brotli) 89.22 KB (-0.02% 🔽)
JS import Div (tree shaking) 1.43 KB (0%)
CSS 257.99 KB (0%)
CSS (gzip) 33.81 KB (0%)
CSS (brotli) 27.44 KB (0%)

Copy link

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

👀 Docs deployed

Commit 681b169

Copy link
Contributor

github-actions bot commented Mar 7, 2024

e2e tests

Playwright Report

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.25%. Comparing base (39192cc) to head (653bf26).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6667   +/-   ##
=======================================
  Coverage   82.24%   82.25%           
=======================================
  Files         331      331           
  Lines       10270    10272    +2     
  Branches     3439     3439           
=======================================
+ Hits         8447     8449    +2     
  Misses       1823     1823           
Flag Coverage Δ
unittests 82.25% <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.

@mendrew mendrew marked this pull request as ready for review March 7, 2024 13:42
@mendrew mendrew requested a review from a team as a code owner March 7, 2024 13:42
SevereCloud
SevereCloud previously approved these changes Mar 7, 2024
inomdzhon
inomdzhon previously approved these changes Mar 7, 2024
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

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

👍

@mendrew mendrew dismissed stale reviews from inomdzhon and SevereCloud via 653bf26 March 11, 2024 08:34
@mendrew mendrew changed the title Feat: add type to catch unsupported props Feat(Select, DatePicker): add type to catch unsupported props Mar 12, 2024
@mendrew mendrew merged commit dab1b75 into master Mar 12, 2024
25 checks passed
@mendrew mendrew deleted the mendrew/feat/add-type-to-catch-extra-props branch March 12, 2024 09:22
vkcom-publisher pushed a commit that referenced this pull request Mar 12, 2024
В тех местах, где при определённых условиях под капотом используется нативный компонент, мы, бывает, забываем исключать новые свойства необходимые только в кастомных компонентах. В итоге неспользуемые свойства оказываются в DOM. (#6663, #6386).

Добавил тип, как посоветовал @inomdzhon в #6663 (comment), чтобы при добавлении нового свойства линтер ругался если для нативного компонента это свойство не нужно.
@vkcom-publisher
Copy link
Contributor

v6.0.2 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants