Skip to content

Conversation

mankinchi
Copy link
Contributor

This is to handle this issue #915

If there is multiple printing, the option shows what set the card is from (it only change the dropdown, not the actual list)
image

Example in case of not similar text. If this is too much, please inform so I can modify it
image

@NoahTheDuke
Copy link
Collaborator

This is killer!

@plural
Copy link
Collaborator

plural commented Jul 22, 2025

Nice! Are you able to sort printings reverse chronologically?

@mankinchi
Copy link
Contributor Author

In term of release date? Should not be complicated

@mankinchi mankinchi requested a review from plural July 23, 2025 12:24
// If same title, sort by pack release date reversed
if (a.title === b.title) {
const aPackReleaseDate = moment(
Copy link
Collaborator

Choose a reason for hiding this comment

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

i don't think you need the moment creation. The date format is already sortable properly as a string.

// If same title, sort by pack release date reversed
if (a.title === b.title) {
return b.pack.date_release.localCompare(a.pack.date_release)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be localeCompare.

Copy link
Collaborator

Choose a reason for hiding this comment

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

please adjust the formatter settings you set up. It removed all trailing semicolons, which is a big, unnecessary change and will update a ton of files.

I would recommend not doing the linter / formatter at all in this PR, but as it's own PR so we can evaluate it's settings and impact.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, I didn't realise that it removes the trailing semicolons (which I also don't like). I have prettier installed so it runs by default. I'll revert those changes 🐱

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.

3 participants