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

Feature: Undo Variables 'Sort' #893

Open
slspencer opened this issue Mar 20, 2023 · 8 comments
Open

Feature: Undo Variables 'Sort' #893

slspencer opened this issue Mar 20, 2023 · 8 comments

Comments

@slspencer
Copy link
Collaborator

Describe the new feature you would like to see in Seamly
In Measurements->Variables, the Columns can be sorted, but once sorted the columns can't be unsorted.
Add capability to undo the sort and return the variables to the original order.
image

@DSCaskey
Copy link
Contributor

DSCaskey commented Mar 20, 2023 via email

@DSCaskey
Copy link
Contributor

So the question is...

Do you want to just restore a single column to unsorted - leaving any other columns that may be sorted left alone?

Or would a "restore" button that just refills the table with the default data suffice? The latter is easy to do... the former is way more involved as the QTableWidget does not support an unsorted option - just ascending and descending - therefore requiring subclassing the data model to handle that option.

@DSCaskey
Copy link
Contributor

Add capability to undo the sort and return the variables to the original order.

Ok... there's more to the issue.

Since a user can manually move items up / dn in one of the tables... exactly what is the "orginal" order? Would that be the order in which the pattern was loaded, and subsequently the Variables table opened? Or Does it mean the order just prior to sorting... which could be different from the order in which the pattern was loaded if it hasn't been saved yet. In the true sense of Undo - IMO that would be the order just prior, where as Resetting would be the order as last saved.

@slspencer
Copy link
Collaborator Author

Can't prevent user error, but I've seen this on webapps: Provide a confirmation "Are you sure?" popup message with an additional checkbox for "Don't show again".

@DSCaskey
Copy link
Contributor

??? I have no clue what a pop up has to do with restoring a sort order?

@slspencer
Copy link
Collaborator Author

slspencer commented Mar 26, 2023

When the 'Restore' button is selected then a popup window asking the user if they're sure might be a good solution low-code solution to your concerns.
We can prevent most disasters with this approach. I see it in apps frequently enough that it seems to be an industry practice.
Maybe I was thinking the Restore button would be enabled for edits, moves, deletes. Maybe this is incorrect thinking.

The Restore button is sufficient.

@DSCaskey
Copy link
Contributor

DSCaskey commented Mar 26, 2023 via email

@slspencer
Copy link
Collaborator Author

Closing and reopening the window to refresh the data to the original order is aggravating. Your suggestion for Restore button is good.

If the Restor button truly restores from the currently saved state then it can be enabled whenever a change has happened, like edit, move, delete, add but user decides to discard changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants