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

Grid Swap! #6035

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Grid Swap! #6035

merged 1 commit into from
Jul 3, 2024

Conversation

seanparsons
Copy link
Contributor

Problem:
Sometimes we want to swap items around in the grid.

Fix:
Ported over the rearrangeGridSwapStrategy from the spike branch, which swaps the dragged cell with a target cell that it is dragged over.

Commit Details:

  • Added rearrangeGridSwapStrategy to moveOrReorderStrategies.

Manual Tests:
I hereby swear that:

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

- Added `rearrangeGridSwapStrategy` to `moveOrReorderStrategies`.
Copy link
Contributor

github-actions bot commented Jul 2, 2024

Try me

Copy link

relativeci bot commented Jul 2, 2024

#13247 Bundle Size — 62.5MiB (~+0.01%).

5d9d4dc(current) vs 6339ece master#13244(baseline)

Warning

Bundle contains 51 duplicate packages – View duplicate packages

Bundle metrics  Change 3 changes Regression 1 regression
                 Current
#13247
     Baseline
#13244
Regression  Initial JS 45.56MiB(+0.01%) 45.55MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.6% 23.8%
No change  Chunks 30 30
No change  Assets 33 33
Change  Modules 4320(+0.02%) 4319
No change  Duplicate Modules 524 524
No change  Duplicate Code 31.75% 31.75%
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
#13247
     Baseline
#13244
Regression  JS 62.49MiB (~+0.01%) 62.48MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch feature/grid-swapProject dashboard

@ruggi ruggi merged commit 0167916 into master Jul 3, 2024
18 checks passed
@ruggi ruggi deleted the feature/grid-swap branch July 3, 2024 08:57
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**
Sometimes we want to swap items around in the grid.

**Fix:**
Ported over the `rearrangeGridSwapStrategy` from the spike branch, which
swaps the dragged cell with a target cell that it is dragged over.

**Commit Details:**
- Added `rearrangeGridSwapStrategy` to `moveOrReorderStrategies`.

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode
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