Skip to content

feat(PanelHeader,PanelHeaderContext): remove FixedLayout using#9765

Open
EldarMuhamethanov wants to merge 10 commits into
masterfrom
e.muhamethanov/9357/remove-fixed-layout-using
Open

feat(PanelHeader,PanelHeaderContext): remove FixedLayout using#9765
EldarMuhamethanov wants to merge 10 commits into
masterfrom
e.muhamethanov/9357/remove-fixed-layout-using

Conversation

@EldarMuhamethanov

@EldarMuhamethanov EldarMuhamethanov commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

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

Описание

Избавился от FixedLayout в PanelHeader и PanelHeaderContext. В PanelHeaderContext использовал Popover

Также в Box доработал свойство Component, чтобы можно было прокидывать несколько декораторов

Release notes

Улучшения

  • PanelHeader: удалили использование устаревшего FixedLayout в реализации компонента
  • PanelHeaderContext: удалили использование устаревшего FixedLayout в реализации компонента

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner April 27, 2026 14:54
@github-actions

github-actions Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
JS 426.37 KB (+0.15% 🔺)
JS (gzip) 131.43 KB (+0.12% 🔺)
JS (brotli) 108.38 KB (-0.01% 🔽)
JS import Div (tree shaking) 811 B (0%)
CSS 382.82 KB (+0.05% 🔺)
CSS (gzip) 46.89 KB (+0.08% 🔺)
CSS (brotli) 36.97 KB (-0.03% 🔽)

@github-actions

github-actions Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

e2e tests

Playwright Report

@github-actions

github-actions Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

📊 Найдены изменения в собранных файлах: Отчет

Commit 1ac8b56

@github-actions

github-actions Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

👀 Docs deployed

📦 Package ✅

yarn add @vkontakte/vkui@https://development.s3.prodcloud.vk.team/pull/9765/1ac8b5686c9f4e9eae7af43ed36212555a877b4d/pkg/@vkontakte/vkui/_pkg.tgz

Commit 1ac8b56

@codecov

codecov Bot commented Apr 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.21%. Comparing base (07025fb) to head (1ac8b56).

Files with missing lines Patch % Lines
...rc/components/FixedLayout/SplitColWidthWrapper.tsx 84.21% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9765      +/-   ##
==========================================
- Coverage   95.23%   95.21%   -0.02%     
==========================================
  Files         462      464       +2     
  Lines       12518    12544      +26     
  Branches     4479     4485       +6     
==========================================
+ Hits        11921    11944      +23     
- Misses        597      600       +3     
Flag Coverage Δ
unittests 95.21% <88.88%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/vkui/src/components/Box/Box.tsx Outdated
Comment thread packages/vkui/src/components/PanelHeaderContext/PanelHeaderContext.tsx Outdated
@vkcom-publisher vkcom-publisher added pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности and removed pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности labels May 7, 2026
@vkcom-publisher vkcom-publisher added pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности and removed pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности labels May 15, 2026
@vkcom-publisher vkcom-publisher added the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jun 1, 2026
@vkcom-publisher

Copy link
Copy Markdown
Contributor

PR закрыт из-за отсутствия активности в течение последних 14 дней. Если это произошло по ошибке или изменения все ещё актуальны, откройте PR повторно.

@inomdzhon inomdzhon reopened this Jun 22, 2026
@vkcom-publisher vkcom-publisher removed the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jun 22, 2026
@@ -43,6 +45,8 @@ export interface PanelHeaderContextProps extends HTMLAttributesWithRootRef<HTMLD
onClose: VoidFunction;
}

const ComponentDecorators = [SplitColWidthWrapper, OnboardingTooltipFixedContainer];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Есть кейсы когда для PanelHeaderContext нужен OnboardingTooltipFixedContainer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Сложно сказать. Я в целом не особо вижу смысл в компоненте OnboardingTooltipContainer. Так сделал скорее, чтобы старое поведение сохранить и ничего не сломать

export interface BoxProps extends RootComponentProps<HTMLElement>, LayoutProps {
type BoxComponent = RootComponentProps<HTMLElement>['Component'] | React.ElementType[];

function composeComponents(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Кажется слишком мощная затея + пересекается #9918

@vkcom-publisher vkcom-publisher added the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jul 2, 2026
@EldarMuhamethanov EldarMuhamethanov force-pushed the e.muhamethanov/9357/remove-fixed-layout-using branch from db53aef to 1ac8b56 Compare July 7, 2026 10:38
@vkcom-publisher vkcom-publisher removed the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jul 7, 2026
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.

[Feature][PanelHeaderContext]: избавиться от использования FixedLayout

4 participants