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(navigation-bar): добавить проброс пропсов для Closer [DS-9232] #1613

Merged
merged 5 commits into from
Mar 26, 2025

Conversation

dHIM24
Copy link
Contributor

@dHIM24 dHIM24 commented Mar 12, 2025

Обновил снэпшот тесты, написал тест на проброс инлайнового стиля для Closer, установил кастомное значение z-index: 2. Предлагаю обсудить, точно ли необходима правка, а если необходима, то точно ли стоит пробрасывать пропс под z-index?

Чек лист

  • Задача сформулирована и описана в JIRA
  • В названии ветки есть айдишник задачи в JIRA (fix/DS-1234), ссылку прикреплять не надо
  • У реквеста осмысленное название feat(...) или fix(...) по conventional commits (https://www.conventionalcommits.org)
  • Код покрыт тестами и протестирован в различных браузерах
  • Добавленные пропсы добавлены в демки и описаны в документации
  • К реквесту добавлен changeset

Если есть визуальные изменения

  • Прикреплено изображение было/стало

Copy link

changeset-bot bot commented Mar 12, 2025

🦋 Changeset detected

Latest commit: 04c1818

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@alfalab/core-components-navigation-bar-private Minor
@alfalab/core-components-popup-sheet Minor
@alfalab/core-components-bottom-sheet Patch
@alfalab/core-components-modal Patch
@alfalab/core-components-side-panel Patch
@alfalab/core-components-universal-modal Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-select Patch
@alfalab/core-components-tooltip Patch
@alfalab/core-components-calendar Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-table Patch
@alfalab/core-components-gallery Patch
@alfalab/core-components-calendar-input Patch
@alfalab/core-components-calendar-range Patch
@alfalab/core-components-calendar-with-skeleton Patch
@alfalab/core-components-date-range-input Patch
@alfalab/core-components-date-time-input Patch
@alfalab/core-components-tabs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link

coveralls commented Mar 12, 2025

Pull Request Test Coverage Report for Build 14055438296

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • 11 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.006%) to 82.205%

Files with Coverage Reduction New Missed Lines %
packages/filter-tag/src/components/base-filter-tag/Component.tsx 3 83.33%
packages/cdn-icon/src/hooks/use-icon.tsx 8 72.5%
Totals Coverage Status
Change from base Build 13724466777: -0.006%
Covered Lines: 11303
Relevant Lines: 12540

💛 - Coveralls

@core-ds-bot
Copy link
Collaborator

core-ds-bot commented Mar 12, 2025

Собрана новая демка.

@@ -226,6 +232,7 @@ export const PopupSheet = forwardRef<HTMLDivElement, PopupSheetProps>(
className={styles.closer}
Copy link
Collaborator

Choose a reason for hiding this comment

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

className={cn(styles.closer,closerProps?.className)}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

'@alfalab/core-components-popup-sheet': minor
---

добавлена возможность передовать дополнительные props в компонент Closer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
добавлена возможность передовать дополнительные props в компонент Closer
Добавлена возможность передавать дополнительные props в компонент Closer

Copy link
Collaborator

Choose a reason for hiding this comment

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

и чуть подробнее описать

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/**
* Дополнительные пропсы для компонента Closer.
*/
closerProps?: Omit<CloserProps, 'view' | 'onClick'>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Omit<CloserProps, 'view' | 'onClick'> -> Omit<CloserProps, 'view' | 'onClose'>

из самого типа CloserProps исключить onClick

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fulcanellee fulcanellee removed the request for review from reme3d2y March 25, 2025 11:53
@fulcanellee fulcanellee merged commit dfc5378 into master Mar 26, 2025
7 checks passed
@fulcanellee fulcanellee deleted the DS-9232 branch March 26, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants