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

Big PR 1/7: UX basics part 1 #170

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

Conversation

zwegner
Copy link

@zwegner zwegner commented Apr 3, 2024

Hello Swaroop! I've been organizing the big amount of changes I have to be grouped into smaller logical chunks, and here's the first: starting off with some refactoring that is used in many places throughout all my changes, followed by a bunch of small interface tweaks to improve the user experience, mostly dealing with selection behavior.

Happy to answer any questions you might have about the changes. I've also made more branches for my intended future PRs after this one if you're curious to look ahead.

zwegner added 13 commits April 2, 2024 15:49
…iables for long edit_mode expressions, add grid_is_square() helper
…mode, and make the logic less restrictive on what types of cells this works for
…ht want to clear the selection in some cases but for now having more cells selected when changing modes etc is much better than it clearing all the time
@swaroopg92
Copy link
Owner

Thank you. I will start the review soon after I settle down from my traveling. Can you please change the merging branch to dev branch instead of master. @zwegner

@zwegner zwegner changed the base branch from master to dev April 4, 2024 03:36
@swaroopg92
Copy link
Owner

Update: Just started catching up with all PRs. Reviewing this one now. :)

@@ -8659,26 +8651,6 @@ class Puzzle {
}
}

mouse_numberS(x, y, num, submode) {
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason, you removed this piece of code? The only purpose of this code was to improve the experience with certain types of puzzles that involve both big digits and corner digits as part of solution. E.g. Tight Fit Sudoku

@@ -893,15 +898,6 @@ onload = function() {
}
}

// resetting the type for starbattle composite mode
Copy link
Owner

@swaroopg92 swaroopg92 Jul 18, 2024

Choose a reason for hiding this comment

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

Is there a reason for removing this segment?
I am unable to recollect the exact reason why I needed this but something around improving the composite mode behavior especially on mobiles/ipads.

@swaroopg92
Copy link
Owner

swaroopg92 commented Jul 18, 2024

@zwegner Thank you for this PR. I think for the most part it looks great. There are couple of review comments above and a couple of other things that I mention it below:

  1. I found one bug for multi-selection in Number mode. If you select multiple cells, enter any digit, now press the delete button it will only delete the number from one cell. Can you please fix this?
  2. Is there a use-case on retaining the multiple selection while switching between modes? I understand that between submodes (Sudoku Normal to Sudoku Center) it makes sense. But let say I selected 4 cells in Sudoku mode and switched to Surface mode, did some shading and came back to Sudoku mode , my selection is retained. I don't think that should be the intended behavior. That's why I am trying to understand the use-case and thought process behind this behavior.

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.

2 participants