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

Resize A Grid #6032

Merged
merged 4 commits into from
Jul 2, 2024
Merged

Resize A Grid #6032

merged 4 commits into from
Jul 2, 2024

Conversation

seanparsons
Copy link
Contributor

Problem:
Ideally we wanted to be able to resize a grid directly.

Fix:
Within this are controls for and a strategy that implements both pixel and a simple fractional resize of grids as a starting point.

As it was implemented originally in a shared branch there is some code which may be dormant right now but should ease the merging process.

Commit Details:

  • Added resizeGridStrategy to resizeStrategies.
  • Added GridAxisHandle to CanvasControlType.
  • Implemented resizeGridStrategy.
  • Added GridControls (potentially including shared work).

Manual Tests:
I hereby swear that:

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

- Added `resizeGridStrategy` to `resizeStrategies`.
- Added `GridAxisHandle` to `CanvasControlType`.
- Implemented `resizeGridStrategy`.
- Added `GridControls` (potentially including shared work).
Copy link
Contributor

github-actions bot commented Jul 1, 2024

Try me

Copy link

relativeci bot commented Jul 1, 2024

#13234 Bundle Size — 62.42MiB (+0.03%).

7860e68(current) vs 6339ece master#13232(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Bundle metrics  Change 4 changes Regression 1 regression
                 Current
#13234
     Baseline
#13232
Regression  Initial JS 45.48MiB(+0.04%) 45.46MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 22.69% 23.06%
No change  Chunks 30 30
No change  Assets 33 33
Change  Modules 4316(+0.05%) 4314
No change  Duplicate Modules 524 524
Change  Duplicate Code 31.76%(-0.03%) 31.77%
No change  Packages 450 450
No change  Duplicate Packages 51 51
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13234
     Baseline
#13232
Regression  JS 62.41MiB (+0.03%) 62.39MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch feature/resize-a-gridProject dashboard

ruggi added 3 commits July 2, 2024 10:50
@seanparsons seanparsons merged commit 042a958 into master Jul 2, 2024
15 checks passed
@seanparsons seanparsons deleted the feature/resize-a-grid branch July 2, 2024 09:40
liady pushed a commit that referenced this pull request Dec 13, 2024
- Added `resizeGridStrategy` to `resizeStrategies`.
- Added `GridAxisHandle` to `CanvasControlType`.
- Implemented `resizeGridStrategy`.
- Added `GridControls`.
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