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

Adjust component prop metadata labels #5569

Merged
merged 4 commits into from
May 5, 2024

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented May 5, 2024

Part of #5560

This PR adjusts the coloring of prop metadata labels in the inspector's component section so that:

  1. show the blue color only when the prop value is connected to data
  2. show the plus icon only on hover
Screen.Recording.2024-05-05.at.5.39.42.PM.mov

Manual Tests:
I hereby swear that:

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

Copy link
Contributor

github-actions bot commented May 5, 2024

Try me

Copy link

relativeci bot commented May 5, 2024

#12260 Bundle Size — 62.48MiB (~+0.01%).

e0f318a(current) vs 6339ece master#12256(baseline)

Warning

Bundle contains 58 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#12260
     Baseline
#12256
Regression  Initial JS 45.56MiB(~+0.01%) 45.56MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.08% 21.06%
No change  Chunks 31 31
No change  Assets 34 34
No change  Modules 4377 4377
No change  Duplicate Modules 504 504
No change  Duplicate Code 30.81% 30.81%
No change  Packages 468 468
No change  Duplicate Packages 58 58
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#12260
     Baseline
#12256
Regression  JS 62.47MiB (~+0.01%) 62.47MiB
Improvement  HTML 10.94KiB (-0.34%) 10.98KiB

Bundle analysis reportBranch fix/adjust-prop-metadata-labelsProject dashboard

Copy link
Contributor

github-actions bot commented May 5, 2024

Performance test results:
(Chart1)
(Chart2)

? colorTheme.dynamicBlue.value
: undefined,
cursor: isHovered ? 'pointer' : 'default',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can just remain 'pointer' as this field only has effect when the mouse hovers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pfft yeah, my brain stopped functioning here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@balazsbajorics balazsbajorics merged commit 9da7f27 into master May 5, 2024
18 checks passed
@balazsbajorics balazsbajorics deleted the fix/adjust-prop-metadata-labels branch May 5, 2024 21:09
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.

3 participants