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

MG-163 - Add snap to grid effect on layout #175

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

felixgateru
Copy link
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Dependency Update

What does this do?

Adds snap to grid effect on the layout.

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

  • Yes
  • No, and this is why:

Did you document any new/modified functionality?

  • Yes
  • No, and this is why:

Notes

@felixgateru felixgateru force-pushed the MG-163-snap_to_grid branch 2 times, most recently from d1c78be to 0250027 Compare February 27, 2024 07:35
@@ -14,6 +14,9 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
<script src="//code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this jquery being used?
remove unused importations

@felixgateru felixgateru force-pushed the MG-163-snap_to_grid branch 4 times, most recently from 8c071a6 to 754197d Compare March 6, 2024 10:29
@felixgateru felixgateru force-pushed the MG-163-snap_to_grid branch 2 times, most recently from afbba48 to 4766bab Compare March 6, 2024 10:58
@felixgateru felixgateru marked this pull request as ready for review March 6, 2024 10:59
@felixgateru felixgateru force-pushed the MG-163-snap_to_grid branch 2 times, most recently from 19ba86c to a08e0ab Compare March 7, 2024 16:59
grid.refreshItems();
grid.layout(true);
document.removeEventListener("mouseup", finalizeResize);
console.log("Resize finalized");
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove debug logs.

@@ -14,6 +14,7 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" />
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was used in a previous implementation with jquery but has now been removed.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@38b1017). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #175   +/-   ##
=======================================
  Coverage        ?   76.74%           
=======================================
  Files           ?        3           
  Lines           ?      215           
  Branches        ?        0           
=======================================
  Hits            ?      165           
  Misses          ?       34           
  Partials        ?       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@felixgateru felixgateru force-pushed the MG-163-snap_to_grid branch 2 times, most recently from 7b4b05a to d4d8211 Compare March 18, 2024 08:44
@ianmuchyri
Copy link
Contributor

some charts are not snapping to the grid:
Screencast from 18-03-24 12:33:57.webm
Only the first one snaps to the grid.

@ianmuchyri
Copy link
Contributor

@1998-felix there is a scroll bar that appears at the bottom that is not required:
image

Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: felix.gateru <felix.gateru@gmail.com>
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
Signed-off-by: 1998-felix <felix.gateru@gmail.com>
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.

Add snap-to-grid effect on the layout
4 participants