-
Notifications
You must be signed in to change notification settings - Fork 86
Add more details to options during deck direct import #927
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
base: main
Are you sure you want to change the base?
Conversation
This is killer! |
Nice! Are you able to sort printings reverse chronologically? |
In term of release date? Should not be complicated |
web/js/directimport.js
Outdated
// If same title, sort by pack release date reversed | ||
if (a.title === b.title) { | ||
const aPackReleaseDate = moment( |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be localeCompare.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 🐱
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)

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