Commit graph

16 commits

Author SHA1 Message Date
9b3b3d099f Fix trade offer png generation (fixes #27).
- Updated `card_badge.html` to adjust width properties for better layout consistency.
- Modified `trade_offer_png.html` to change padding for improved visual appearance.
- Enhanced `bubble_up_trade_offer_updates` signal to delete cached images when related instances change, ensuring up-to-date content.
- Updated `TradeOfferPNGView` to pass the request context when rendering the template, improving compatibility with Django's template rendering.
- Refactored `render_trade_offer_png` to use constants for dimensions and improve readability, while also updating context handling for better integration.
2025-05-05 21:53:31 -07:00
4e50e1545c Refactor card badge and multiselect template tags to properly implement and/or improve caching and context handling
- Updated `card_badge` and `card_multiselect` template tags to utilize `reverse_lazy` for URL resolution.
- Enhanced caching mechanisms in `card_badge.html` and `card_multiselect.html` to improve performance.
- Introduced a new template `_card_multiselect_options.html` for rendering multiselect options.
- Improved context management in `card_multiselect` to handle selected cards and dynamic placeholders.
- Added error handling for query hashing in `card_multiselect` to ensure robustness.
- Updated `trade_offer_tags` to optimize database queries using `select_related` for related objects.
2025-04-29 13:50:52 -07:00
afaa392b2f use <a> tags for card_badge and trade_offer clickable areas (except for main card_badge row on trade_offers, still uses @click for now because the a tag can't wrap that content for some reason). closes #14 2025-04-15 00:15:08 -07:00
86b061c971 add email setting, closes #5. other misc small fixes 2025-04-13 21:22:43 -07:00
a83ce746b5 When a user is thanking, check state to see if other user thanked first, if so switch new_state to THANKED_BY_BOTH. fixes #13 2025-04-08 14:12:54 -07:00
bd7a65975f Bugfixes for emails and bugfixes for trade acceptance quantities being checked on create, closes #1 2025-04-08 00:59:40 -07:00
32da8157a6 Refactor email templates 2025-04-07 19:01:51 -07:00
7edefe23c3 Move profile and settings into the new unified dashboard, showing user info in one place 2025-03-31 22:20:59 -07:00
65ca344582 Fix create trade offer flow and other related bugs 2025-03-26 11:38:02 -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
f7a9b2f823 Add rarity field to trade_offer instead of looking up via cards 2025-03-16 19:27:16 -07:00
9ce5d525b3 Some optimizations to trade_offers to reduce loading times 2025-03-15 15:23:00 -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