feat(Group): Добавляем подкомпоненты#7395
Merged
andrey-medvedev-vk merged 6 commits intomasterfrom Aug 29, 2024
Merged
Conversation
Contributor
size-limit report 📦
|
|
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. |
Contributor
e2e tests |
Contributor
👀 Docs deployed
Commit 8c53f92 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7395 +/- ##
==========================================
- Coverage 94.47% 94.47% -0.01%
==========================================
Files 375 378 +3
Lines 11123 11150 +27
Branches 3653 3653
==========================================
+ Hits 10509 10534 +25
- Misses 614 616 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4 tasks
inomdzhon
previously approved these changes
Aug 20, 2024
Separator is not a subcomponent as it's defined outside of the group and could be esasily forgotten when subcomponent approach is used.
Otherwise it shows Group.Container as title in the doc
6e4033b to
8c53f92
Compare
inomdzhon
approved these changes
Aug 23, 2024
BlackySoul
approved these changes
Aug 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Описание
Разбил Group на подкомпоненты.
Единственное, что в подкомпоненты не вынес это сепаратор между группами.
Вложил его логику в
Group.Container, так какGroup.Containerпринимает все основные свойстваGroup.Почему не вынес?
До сих пор не уверен в решении.
С одной стороны хорошо бы его вынести, чтобы при использовании подкомпонентного подхода его приходилось бы явно добавлять. И скорее всего его бы не добавляли бы, забывали бы. К тому же он очень гибкий и не всем будет ясна логика такого явного подкомпонента, который то есть, то нет.
Плюс, его бы пришлось явно складывать после группы, так как он управляет расстоянием между группами, это довольно странно и тогда бы было бы не установить связь между группой и сепаратором через контекст.
Неявно его оставлять в
Group.Containerтоже так себе идея. Он будет продолжать неявно влиять на логику расстояний между группами, как и сейчас, конечно.Но как-то проще в доке про него рассказать, что он неявно есть, чем явно его добавлять и как-то синкать с группой до него.