markafitzgerald1 / cribbage-trainer

Two-player cribbage discard and play improvement tool.
Mozilla Public License 2.0
1 stars 0 forks source link

🤖 test(Storybook): Add PossibleHand stories #44

Closed markafitzgerald1 closed 6 months ago

markafitzgerald1 commented 6 months ago

https://storybook.js.org/docs/api/arg-types#options, possibly with a mapping and even perhaps a select control with labels (https://stackoverflow.com/a/69390407/1840078) seems like a promising route to giving the sort order (and rank!) better UI than just numbers in Storybook.

markafitzgerald1 commented 6 months ago

Ranks now have labels. Perhaps try to do the same for ranks in dealt cards before final PR review and merge. (Is dealOrder really required in props or to sort card arrays? I suspect not as the original deal order should always be handed in from higher components and app state.)