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

Default starting sort mode in Cards sheet changed from shuffled to unshuffled (affects v10.272) #7465

Closed
admiralnlson opened this issue Jul 10, 2022 · 8 comments
Assignees
Labels
bug Functionality which is not working as intended cards Issues related to Cards and the Cards system nonrepro Bugs which are not yet able to be reproduced. ux Issues focused on user experience improvements

Comments

@admiralnlson
Copy link

admiralnlson commented Jul 10, 2022

Environment Details

Please share the following basic details about your setup.

  • Foundry VTT Version: 10.272
  • Operating System: Windows w/ Node.js
  • How Are You Using Foundry: Chrome
  • Which Game System: N/A
  • Modules Enabled?: no

Issue Description

Original understanding, debunked by @aaclayton below:

Shuffling a deck with the default Cards sheet only temporarily reorders cards in the display.
Re-rendering the sheet (e.g. via F5) loses the shuffle and reverts to a sort based on 'suit' (first) and 'value' (second).

Updated understanding, debunked by @Fyorl below:

The user's selection between default and shuffled display mode in the Cards sheet is no longer persisted like it was in v9.

The new behaviour of defaulting back to 'default mode' on each re-render or close/reopen of the sheet could be intentional or a regression. But, if intentional, I would argue it is inferior UX-wise.

Latest understanding:

Default starting sort mode in Cards sheet changed from shuffled to unshuffled.

@admiralnlson admiralnlson added the bug Functionality which is not working as intended label Jul 10, 2022
@admiralnlson admiralnlson changed the title (v10.272) Deck shuffle does not work / is lost upon re-render Deck shuffle does not work / is lost upon re-render (affects v10.272) Jul 10, 2022
@aaclayton
Copy link
Contributor

Is this possibly just a misunderstanding that you have the sheet view mode in "default sort" order rather than "shuffled sort" order?

@aaclayton aaclayton added nonrepro Bugs which are not yet able to be reproduced. cards Issues related to Cards and the Cards system ux Issues focused on user experience improvements labels Jul 10, 2022
@aaclayton aaclayton added this to the Version 10 - Development 3 milestone Jul 10, 2022
@admiralnlson
Copy link
Author

@aaclayton I was not aware this button to swap between default and shuffled sorts existed. So thanks for that tip.

However, there is a still a difference between v9 and v10 behaviors, which I think may be a regression:

The choice of default vs shuffled used to be persisted in v9. But in v10, it always defaults back to default mode upon re-render of or closing/reopening the sheet.

I'll rework this issue to be about this.

@admiralnlson admiralnlson changed the title Deck shuffle does not work / is lost upon re-render (affects v10.272) The choice between default and shuffled display mode in the Cards sheet is no longer persisted (affects v10.272) Jul 10, 2022
@Fyorl Fyorl self-assigned this Jul 11, 2022
@Fyorl
Copy link
Contributor

Fyorl commented Jul 11, 2022

I'm not able to reproduce this on the latest dev branch. I've attached a small video that demonstrates shuffling a deck a few times then closing and opening the sheet and re-rendering it. In all cases the choice of shuffled vs. ordered view is retained.

chrome_GDYvw41OMe.mp4

@admiralnlson
Copy link
Author

@Fyorl I'm not able to tell with the video if you also tried an F5 also.
But the fact it keeps the display mode after a close/reopen of the sheet seems convincing enough.

Maybe it was another fix merged to develop since 10.272 that fixed it?

I let you decide if you'd rather close this bug as nonrepro or wait until the next official patch when I would test again to confirm/infirm the issue persists on my side.

@Fyorl
Copy link
Contributor

Fyorl commented Jul 12, 2022

I didn't try F5, but that will always reset the sort mode since choice of sort mode is a transient setting that is not persisted, and has never been persisted, even in v9.

@admiralnlson
Copy link
Author

admiralnlson commented Jul 12, 2022

@Fyorl ah!

Well then it seems the only difference between v9 and v10/develop is that the mode now defaults to 'unshuffled' while it used to default to 'shuffled' in v9.

Hopefully, my understanding is correct this time.

And, if yes, then I would argue that 'shuffled' as default view mode was best. Because one used to be able to witness the impact of pushing the "shuffle" button immediately with the default view, whereas now, one may not realize the shuffle worked until they click on the <> butto above the card images.

Anyway, I let you guys figure out the rest. I think you have all elements now to take whatever decision (or lackthereof) is needed here. :)

@Fyorl
Copy link
Contributor

Fyorl commented Jul 12, 2022

I will leave the issue open so we can take a look at whether this default has been changed, and whether it was intentional or not.

@Fyorl
Copy link
Contributor

Fyorl commented Jul 13, 2022

I was able to confirm that the default starting sort mode inadvertently changed between v9 and v10, and has now been reverted.

I wanted to note that this:

Because one used to be able to witness the impact of pushing the "shuffle" button immediately with the default view, whereas now, one may not realize the shuffle worked until they click on the <> butto above the card images.

Was still not the case. Clicking the shuffle button will always set the sort mode to SHUFFLED and that behaviour was unchanged in v10.

@Fyorl Fyorl closed this as completed Jul 13, 2022
@admiralnlson admiralnlson changed the title The choice between default and shuffled display mode in the Cards sheet is no longer persisted (affects v10.272) Default starting sort mode in Cards sheet changed from shuffled to unshuffled (affects v10.272) Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended cards Issues related to Cards and the Cards system nonrepro Bugs which are not yet able to be reproduced. ux Issues focused on user experience improvements
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants