Commit graph

16 commits

Author SHA1 Message Date
ecb060af6d
feat(cards): Refactor card styling and implement JS multiselect
Refactors card styling by moving color data to the `CardSet` model, removing the `Card.style` and `Pack.hex_color` fields.

- Adds `hex_color` to `CardSet` and a `CardSetColorMapping` model to populate it during import.
- Card importer now uses correct filename regexes to identify sets and apply color mappings.
- Card badge styling is now derived from the `CardSet`'s color, simplifying the data model.

Replaces the old clunky card multiselect with a dynamic Alpine.js component for an improved user experience.

- Introduces an API endpoint (`cards/api/search/`) for asynchronous searching.
- Provides a modern search-as-you-type interface with a `<noscript>` fallback.
2025-06-20 00:30:03 -07:00
af2f48a491
refactor(db): update cursor rules and enhance deployment rollback script
- Standardized string formatting in cursor rules for consistency.
- Added a new rollback deployment script to facilitate blue-green deployment strategy.
- Removed outdated seed data files and introduced new rarity mappings for better data management.
- Improved model relationships and query optimizations in various views and admin configurations.
- Enhanced caching strategies across templates to improve performance and reduce load times, including jitter in cache settings for better performance.
- Refactored card-related views and templates to utilize new model fields and relationships.
2025-06-19 15:42:36 -07:00
b894b60b65 reorganizing build scripts 2025-04-17 16:21:26 -07:00
5fbe80e83a update trade acceptance styling and layout, and also trade acceptance update/details page. fixes #16 2025-04-12 22:10:46 -07:00
32da8157a6 Refactor email templates 2025-04-07 19:01:51 -07:00
262f0ea190 fix card badges to have better rarity visibility and other bugfixes 2025-04-06 22:33:01 -07:00
2d826734a0 Add tradeOffer image field, tweak image generation to only fire once per tradeOffer, even with simultaneous requests 2025-03-29 15:13:57 -07:00
138a929da6 Various small bug fixes, break out pagination for cards into its own mixin and templatetag 2025-03-29 00:27:40 -07:00
15f8eb7cf4 Update seed data to include new cards, and modify hex codes for existing decks to be more different. Also add functionality to set a dark font color for card_badges if the bg color is too light 2025-03-28 00:39:08 -07:00
86c7eba10a Refactor database models to majorly increase queries needed and decrease load times of home from 30 secs to 5 sec (we will be caching the rest to decrease even further via background tasks) 2025-03-17 14:08:01 -07:00
9ce5d525b3 Some optimizations to trade_offers to reduce loading times 2025-03-15 15:23:00 -07:00
bc181b12d9 Add in_game_name field to FriendCode model 2025-03-14 09:50:49 -07:00
b97ddde71c fix card_multiselect filtering and quantity controls 2025-03-13 15:48:26 -07:00
d62956d465 finished conversion to tailwind 2025-03-11 23:47:20 -07:00
6e2843c60e progress on conversion to tailwind 2025-03-11 23:47:20 -07:00
71b3993326 Initial working version with minor bugs 2025-02-26 00:17:06 -08:00