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

Prevent None Controls From Adding Rows To Inspector. #6016

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

seanparsons
Copy link
Contributor

Problem:
Annotations: the 'none' control accidentally creates an empty row.

Fix:
Added conditions to return null for the none cases, as well as changing the type for RowForControl to prevent it from being possible to use none control with it.

Commit Details:

  • Added in cases to stop none controls from reaching a RowForControl.
  • Changed RowForControlProps.controlDescription to exclude NoneControlDescription`.

Manual Tests:
I hereby swear that:

  • I opened a hydrogen project and it loaded
  • I could navigate to various routes in Preview mode

Fixes #6002

- Added in cases to stop `none` controls from reaching a `RowForControl`.
- Changed `RowForControlProps.controlDescription` to `exclude `NoneControlDescription`.
Copy link
Contributor

github-actions bot commented Jun 20, 2024

Try me

Copy link

relativeci bot commented Jun 20, 2024

#13187 Bundle Size — 62.26MiB (~+0.01%).

45b7efb(current) vs 6339ece master#13177(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#13187
     Baseline
#13177
Regression  Initial JS 45.32MiB(~+0.01%) 45.32MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.6% 21.58%
No change  Chunks 30 30
No change  Assets 33 33
No change  Modules 4305 4305
No change  Duplicate Modules 525 525
No change  Duplicate Code 31.84% 31.84%
No change  Packages 448 448
No change  Duplicate Packages 51 51
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13187
     Baseline
#13177
Regression  JS 62.25MiB (~+0.01%) 62.24MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch fix/prevent-none-controls-from-a...Project dashboard

@seanparsons seanparsons merged commit 467b65b into master Jun 21, 2024
16 checks passed
@seanparsons seanparsons deleted the fix/prevent-none-controls-from-adding-rows branch June 21, 2024 09:28
liady pushed a commit that referenced this pull request Dec 13, 2024
…6016)

- Added in cases to stop `none` controls from reaching a
`RowForControl`.
- Changed `RowForControlProps.controlDescription` to `exclude
`NoneControlDescription`.
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.

Annotations: 🐛 the 'none' control accidentally creates an empty row
3 participants