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(RichCell): revert fix with after overflow #8199

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Jan 28, 2025


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

Описание

В #7730 был поправлен баг с переполнение аfter в компоненте RichCell. Но данное изменение оказалось слишком критическим и сломало много кейсов. Нужно откатить эти изменения

Изменения

  • Откатил изменения pr fix(RichCell): fix after overflow #7730
  • Нашел баг, что при afterAlign !== 'start' contentAlign работает некорректно. Поправил баг
  • Добавил скриншоты кейсов, которые были сломаны
  • Настроил параметры в сторибуке компонента RichCell для более удобного использования

Release notes

Исправления

  • RichCell: Поправлена логика рассчета минимальной ширины у after

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner January 28, 2025 09:44
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jan 28, 2025
Copy link
Contributor

size-limit report 📦

Path Size
JS 393.23 KB (+0.03% 🔺)
JS (gzip) 119.28 KB (+0.03% 🔺)
JS (brotli) 98.17 KB (+0.13% 🔺)
JS import Div (tree shaking) 1.56 KB (0%)
CSS 345.14 KB (+0.18% 🔺)
CSS (gzip) 42.77 KB (+0.14% 🔺)
CSS (brotli) 34.06 KB (+0.12% 🔺)

Copy link

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

e2e tests

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit e7dfa8d

Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.49%. Comparing base (7a953d8) to head (e7dfa8d).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8199   +/-   ##
=======================================
  Coverage   95.49%   95.49%           
=======================================
  Files         403      403           
  Lines       11503    11508    +5     
  Branches     3812     3816    +4     
=======================================
+ Hits        10985    10990    +5     
  Misses        518      518           
Flag Coverage Δ
unittests 95.49% <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.

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.

👍 🙏

Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

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

Судя по скриншотам мы не только откатываем #7730 но и всё ещё фиксим превоначальную проблему #7715
👍

@EldarMuhamethanov EldarMuhamethanov merged commit 40a7218 into master Jan 28, 2025
29 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/8174/revert-after-overflow branch January 28, 2025 10:42
@vkcom-publisher
Copy link
Contributor

❌ Patch

Не удалось автоматически применить исправление на ветке 7.1-stable.

Дальнейшие действия выполняют контрибьютеры из группы @VKCOM/vkui-core

Чтобы изменение попало в ветку 7.1-stable, выполните следующие действия:

  1. Создайте новую ветку от 7.1-stable и примените изменения используя cherry-pick
git stash # опционально
git fetch origin 7.1-stable
git checkout -b patch/pr8199 origin/7.1-stable

git cherry-pick --no-commit 40a7218a674a5f7018dbaa69963bc7f76174d700
git checkout HEAD **/__image_snapshots__/*.png
git diff --quiet HEAD || git commit --no-verify --no-edit
  1. Исправьте конфликты, следуя инструкциям из терминала
  2. Отправьте ветку на GitHub и создайте новый PR с веткой 7.1-stable (установка лейбла не требуется!)
git push --set-upstream origin patch/pr8199
gh pr create --base 7.1-stable --title "patch: pr8199" --body "- patch #8199"

@EldarMuhamethanov
Copy link
Contributor Author

фиксим превоначальную проблему #7715

К сожалению нет( я там ограничил maxWidth вручную

EldarMuhamethanov added a commit that referenced this pull request Jan 28, 2025
@EldarMuhamethanov EldarMuhamethanov mentioned this pull request Jan 28, 2025
EldarMuhamethanov added a commit that referenced this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][RichCell]: Из-за flex-basis некорректно отображается after
4 participants