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

Hide area name in grid expression inputs #6452

Merged
merged 7 commits into from
Oct 2, 2024
Merged

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Oct 2, 2024

Problem:

Area names should not be shown in the string inputs used for grid template values.

Fix:

Set the flag to hide area names in GridExpressionInput. For the future, I also made that flag mandatory and a string union instead of a boolean flag, as 'show-area-name' | 'hide-area-name'.

Fixes #6451

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Try me

Copy link

relativeci bot commented Oct 2, 2024

#14522 Bundle Size — 57.79MiB (~+0.01%).

8854dfa(current) vs 916e8b9 master#14521(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#14522
     Baseline
#14521
Regression  Initial JS 40.74MiB(~+0.01%) 40.74MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 18.03% 18.02%
No change  Chunks 23 23
No change  Assets 25 25
No change  Modules 4106 4106
No change  Duplicate Modules 214 214
No change  Duplicate Code 27.47% 27.47%
No change  Packages 475 475
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#14522
     Baseline
#14521
Regression  JS 57.78MiB (~+0.01%) 57.78MiB
Improvement  HTML 7.37KiB (-0.25%) 7.39KiB

Bundle analysis reportBranch fix/hide-area-name-grid-inputProject dashboard


Generated by RelativeCIDocumentationReport issue

@@ -250,7 +250,7 @@ const TemplateDimensionControl = React.memo(
'always',
grid.elementPath,
PP.create('style', axis === 'column' ? 'gridTemplateColumns' : 'gridTemplateRows'),
printArrayGridDimensions(newDimensions),
printArrayGridDimensions(newDimensions, 'show-area-name'),
Copy link
Contributor

Choose a reason for hiding this comment

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

"show" feels very wrong here, since this function is about generating the template string which goes into the actual code update. I wonder if we should split this into two helper functions, stringifyArrayGridDimensions and something else for getting the visual printed version

@ruggi ruggi merged commit a160566 into master Oct 2, 2024
13 checks passed
@ruggi ruggi deleted the fix/hide-area-name-grid-input branch October 2, 2024 14:50
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

Area names should not be shown in the string inputs used for grid
template values.

**Fix:**

Set the flag to hide area names in `GridExpressionInput`. For the
future, I also made that flag mandatory and a string union instead of a
boolean flag, as `'show-area-name' | 'hide-area-name'`.

Fixes #6451
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.

don't show area names in grid template inputs
4 participants