Re-work Collection Manager to use jQuery Datatables
Completely re-work the Collection Manager to use jQuery Datatables. This is an excellent program that tends to be fast and efficient especially with large data sets. I have pushed this out across both https://digimoncard.io and https://pokemoncard.io.
A bit of work is needed for this to work with the Collection Manager but it should be completely doable and should alleviate most of the issues we have been having recently with it.
First bit of work on this complete.
- Collection data loaded into a DataTable.
- DataTable built in filters replaced old filters.
- Delete icon working.
Current performance is massively improved over old system.
One design choice to consider is not allowing user to change card edition/card condition of already added cards. This would be unfortunate but configuring the drop-downs on page load is massively decreasing page performance.
- Boxes now working with DataTable.
- Delete Card now working.
- Increase Card Quantity now working.
- Decrease Card Quantity now working.
- Card Count removed and massive amount of card quantity display adjustment code removed. This is primarily done within DataTables now.
- Add Card finally working with DataTables correctly without performance impact. Note: https://datatables.net/examples/api/add_row.html
- Delete specific card rows through Checkboxes now working.
- Prices and TCGplayer URLs now loaded instantly on page load with no performance impact as they are built into the query. Removes the need for a "Load Prices" button.
- Total Collection Value now auto loads with Collection.
TODO:
Collection
- Add Tooltip Hover to cards so you can see full card details.
- Jump to a specific page in the collection manager.
- Possibly rework boxes. I'm not at all happy with how boxes work. This is due to the way I've implemented the primary key. This needs a BIG rework and it's been requested numerous times already. High priority.
- When a card is added to the collection from the Pack Simulator, don't add it to a box. The previous point will need to be addressed for this.
Deck Builder
- Filter boxes
These seem to be high-priority issues at the moment. If I limit myself to just addressing these specific issues then the Collection Manager should be in a much better place.