Commit graph

  • ecb060af6d
    feat(cards): Refactor card styling and implement JS multiselect dev badbl0cks 2025-06-20 00:30:03 -07:00
  • af2f48a491
    refactor(db): update cursor rules and enhance deployment rollback script badbl0cks 2025-06-19 15:42:36 -07:00
  • 39a002e394
    style: standardize string formatting and improve readability across multiple files badbl0cks 2025-06-12 20:53:38 -07:00
  • 4b9e4f651e
    refactor(db): initial, incomplete work to update model and re-normalize fields badbl0cks 2025-06-12 17:06:21 -07:00
  • 30ce126a07
    feat(deploy): implement blue-green deployment strategy This commit replaces the previous deployment mechanism with a blue-green strategy to lay the groundwork for zero-downtime deployments. Key changes: Introduces a deploy-blue-green.sh script to manage "blue" and "green" container sets, creating versioned releases. Updates the Anubis gatekeeper template to dynamically route traffic based on the active deployment color, allowing for seamless traffic switching. Modifies Docker Compose files to include color-specific labels and environment variables. Adapts the GitHub Actions workflow to execute the new blue-green deployment process. Removes the old, now-obsolete deployment and health check scripts. Note: Automated rollback on health check failure is not yet implemented. Downgrades can be performed manually by switching the active color. badbl0cks 2025-06-12 16:56:36 -07:00
  • 2337747ca6
    Merge branch 'dev' (staging/no-tag) main badbl0cks 2025-06-06 18:10:00 -07:00
  • a58a0e642a
    fix(deploy): remove invalid parameters for download-artifact, add back in missing setuptools-scm dependency badbl0cks 2025-06-06 17:36:07 -07:00
  • e183a990e7
    Merge branch 'dev' (staging/no-tag) badbl0cks 2025-06-06 17:28:45 -07:00
  • 291231c886
    fix(deploy): correct env vars, docker compose project names, and workflow outputs badbl0cks 2025-06-06 17:26:50 -07:00
  • a012c2a2f6
    Merge branch 'dev' (staging/no-tag) badbl0cks 2025-06-06 14:39:53 -07:00
  • f20c4f9474
    feat: add dynamic versioning and automated deployment with rollback capability badbl0cks 2025-06-06 14:38:23 -07:00
  • 445be58cd3
    Merge branch 'dev' (staging/no-tag) badbl0cks 2025-06-01 19:11:28 -07:00
  • 46619bd5e1
    fix(templates) Add missing cache templatetag to trade_acceptance partial badbl0cks 2025-06-01 19:08:00 -07:00
  • 48ea0eb48e
    fix(dev): Resolve Dev Debug Environment Issues and Streamline Local Setup badbl0cks 2025-06-01 19:05:56 -07:00
  • 4af7512293
    fix(settings): Remove erroneously added DJANGO_SETTINGS_MODULE from settings.py as it is causing ModuleNotFoundError: No module named 'pkmntrade_club.django_project.settings' when using django-admin commands badbl0cks 2025-05-23 23:22:03 -07:00
  • 552c74f626
    Merge branch 'dev' (staging/no-tag) badbl0cks 2025-05-23 21:55:17 -07:00
  • b26ca10489
    fix(docker): Add missing ALLOWED_HOSTS environment variables to docker-compose_web.yml and docker-compose_staging.yml to prevent security errors. badbl0cks 2025-05-23 21:54:14 -07:00
  • 35894ab545
    Merge branch 'dev' (staging/no-tag) badbl0cks 2025-05-23 19:41:48 -07:00
  • acbbc33efa
    fix(static): For now, replace @ symbols from static js filenames as granian doesn't handle URL-encoded static paths properly yet. But the static file handling is faster with granian, so we want to keep it. badbl0cks 2025-05-23 21:35:52 -07:00
  • 51de3c7a6d
    feat(dev): Enable hot reloading and streamline local development badbl0cks 2025-05-23 21:19:33 -07:00
  • 02f23dba28
    refactor(docker): Enhance settings.py and deployment badbl0cks 2025-05-23 18:46:20 -07:00
  • d4948e7cd3
    fix: Ensure deploy script runs once and is part of entrypoint badbl0cks 2025-05-23 16:31:49 -07:00
  • c87d73435b
    feat: Enhance gatekeeper resilience and host handling badbl0cks 2025-05-23 16:16:59 -07:00
  • 6aa15d1af9
    feat: Implement dynamic Gatekeeper proxy and enhance service health monitoring badbl0cks 2025-05-22 19:21:58 -07:00
  • 5c912de307
    If we push to a registry in the future, we need to pin by sha for security reasons feat-add-docker-image-sha-pinning badbl0cks 2025-05-21 09:48:23 -07:00
  • f530790f6c add celery background tasks and redis server for celery, also modify django to use redis instead of postgres for caching for speed improvement and alleviating sql traffic badbl0cks 2025-05-19 18:23:19 -07:00
  • eeae7ae675 fix manifest.in to properly include package files, and fix docker-compose web and staging to use the correct tags (stable and staging) instead of edge badbl0cks 2025-05-18 18:54:36 -07:00
  • 95d794d8b9 Greatly improve prefetching and reduce # of db calls for each trade_offer badbl0cks 2025-05-18 15:26:34 -07:00
  • b89025a7e0 Remove unneeded empty staticfiles dir badbl0cks 2025-05-18 11:30:41 -07:00
  • 48102b1e2a Fix missing double-quote mark in email templates badbl0cks 2025-05-18 11:29:52 -07:00
  • e4b76aa7cf Devcontainer minor fixes badbl0cks 2025-05-18 11:29:27 -07:00
  • f2f61af2e4 Switch to goatcounter analytics badbl0cks 2025-05-18 11:28:39 -07:00
  • 6f57699c8d Major refactoring of build_deploy action, along with docker building and packaging improvements. Added no_signups and other .env improvements. There is no longer a separate .env.dev, both use .env now. badbl0cks 2025-05-18 11:27:59 -07:00
  • 76b2becc24 Fix haproxy.cfgs missing ending LF badbl0cks 2025-05-09 20:35:18 -07:00
  • 89cfa50519 Add devcontainer support for production-parity debugging badbl0cks 2025-05-09 20:33:12 -07:00
  • 762361a21b Finish packaging and change to src-based packaging layout, replace caddy with haproxy for performance, and update docker-compose and Dockerfiles for new packaging. badbl0cks 2025-05-09 18:39:04 -07:00
  • 959b06c425 Packaging fixes badbl0cks 2025-05-08 21:08:12 -07:00
  • fa6103d007 Add django-linear-migrations dependency badbl0cks 2025-05-06 23:16:10 -07:00
  • 2dba19a77e Small refactor of scripts, Dockerfile, and docker-compose to support load balancing, and mutiple replicas. Various fixes related to playwright installation in container environment, static file handling, and etc. badbl0cks 2025-05-06 23:14:36 -07:00
  • 9b3b3d099f Fix trade offer png generation (fixes #27). badbl0cks 2025-05-05 21:50:52 -07:00
  • 9c41f63247 Complete refactor of environment configuration and Docker setup for development and production. badbl0cks 2025-05-05 21:48:59 -07:00
  • 0d19f0f060 Update Docker commands in tasks.json and entrypoint.sh for improved service management badbl0cks 2025-04-29 14:01:46 -07:00
  • 7b1e42d341 Add Simple Analytics for privacy-first tracking badbl0cks 2025-04-29 14:01:31 -07:00
  • 4e50e1545c Refactor card badge and multiselect template tags to properly implement and/or improve caching and context handling badbl0cks 2025-04-29 13:50:52 -07:00
  • 7d94dc001f update caching on homepage, and add db checks to healthcheck badbl0cks 2025-04-29 12:17:23 -07:00
  • 411c274e56 small fix in logging and supporting both granian/gunicorn badbl0cks 2025-04-29 12:10:34 -07:00
  • 8d316f07ce change .env to be softlink badbl0cks 2025-04-29 12:05:54 -07:00
  • dcb2e483b6 use app instead of application for granian badbl0cks 2025-04-19 17:14:30 -07:00
  • fb9b6dbb22 add locust load testing badbl0cks 2025-04-19 17:11:19 -07:00
  • 6a44ef30a3 build fixes and static files fix, closes #28 badbl0cks 2025-04-19 17:10:46 -07:00
  • bff2525c65 disable debug toolbar and auto reload if DEBUG badbl0cks 2025-04-17 19:26:48 -07:00
  • 7c872740b5 fix trade history misalignment badbl0cks 2025-04-17 19:24:13 -07:00
  • fca80b88d4 increase trade_offer size from w-87 to w-90 badbl0cks 2025-04-17 18:44:27 -07:00
  • 6c631d7a4b remove PYTHONDONTWRITEBYTECODE completely from Dockerfile as any value is interpreted as true badbl0cks 2025-04-17 18:42:01 -07:00
  • 1c702e9e31 Fix card-multiselect js errors on page load when no card multiselect is on page badbl0cks 2025-04-17 18:39:48 -07:00
  • 4bb81de1e4 Small fixes to improve project stability badbl0cks 2025-04-17 18:36:45 -07:00
  • 843b2b6e55 fix pagination of card detail sections badbl0cks 2025-04-17 18:36:13 -07:00
  • 725061e151 fix trade offer tag card gap spacing badbl0cks 2025-04-17 16:56:41 -07:00
  • b894b60b65 reorganizing build scripts badbl0cks 2025-04-17 12:21:21 -07:00
  • 633c1e87e8 Update README and CONTRIBUTING badbl0cks 2025-04-16 23:27:27 -07:00
  • 318571bb7e Remove example keys and replace with environ access badbl0cks 2025-04-16 22:19:28 -07:00
  • 10386b1ce9 make card_multiselect DRY, closes #26 badbl0cks 2025-04-15 00:51:47 -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 badbl0cks 2025-04-15 00:15:08 -07:00
  • 86b061c971 add email setting, closes #5. other misc small fixes badbl0cks 2025-04-13 21:14:20 -07:00
  • 135bd95a6a smaller text size on trade_acceptance card badbl0cks 2025-04-13 00:42:31 -07:00
  • 9e501af1ac fix card_badges to always be links to card detail page badbl0cks 2025-04-13 00:31:24 -07:00
  • 5fbe80e83a update trade acceptance styling and layout, and also trade acceptance update/details page. fixes #16 badbl0cks 2025-04-10 23:55:08 -07:00
  • 1c95ccfff7 all cards of a trade offer are now ordered alphabetically. fixes #12 badbl0cks 2025-04-08 23:00:49 -07:00
  • b5db5af185 restore quantity display on expanded card_badges and add limits to all trade offer creation (currently 20 unique cards per side, 20 max quantity per card), fixes #3 and fixes #17 badbl0cks 2025-04-08 15:15:24 -07:00
  • 1cdeaa9bba fix png generation to align with new card badges, fixes #2 badbl0cks 2025-04-08 14:40:41 -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 badbl0cks 2025-04-08 14:12:54 -07:00
  • 52663c83ef remove avatar dropdown in header, and change click to redirect to dashboard badbl0cks 2025-04-08 01:55:05 -07:00
  • dd2ee7b558 update email templates to link to trade offer itself and unify language badbl0cks 2025-04-08 01:23:52 -07:00
  • bd7a65975f Bugfixes for emails and bugfixes for trade acceptance quantities being checked on create, closes #1 badbl0cks 2025-04-08 00:59:40 -07:00
  • 32da8157a6 Refactor email templates badbl0cks 2025-04-07 18:33:45 -07:00
  • e37731b74d Add javascript marquee effect for overflowing text on card badge names badbl0cks 2025-04-06 23:30:57 -07:00
  • 262f0ea190 fix card badges to have better rarity visibility and other bugfixes badbl0cks 2025-04-06 22:33:01 -07:00
  • 37d8bd5981 Another attempt at getting the trade flipping and collapsing looking correct badbl0cks 2025-04-04 22:50:07 -07:00
  • 7c62c57433 remove trade offer expanding, fix flipping to work with new layout. all cards in trade offer are not expanded badbl0cks 2025-04-04 14:23:53 -07:00
  • c68d1fb5ec Add clear_cache management command badbl0cks 2025-04-03 22:12:15 -07:00
  • fa4f38301b Reduce size of card badges, and change trade offers to show all cards by default, but in minimized mode. expand button now toggles between minimized mode and expanded mode for all cards on the trade offer badbl0cks 2025-04-03 20:54:09 -07:00
  • 01becbee48 Fixes to trade expansion and trade acceptance appearance badbl0cks 2025-04-03 17:09:51 -07:00
  • 63e20bace6 Fix expanded state handling for trade offers and modify expand all on trade offers listing to persist between pages badbl0cks 2025-04-02 13:39:15 -07:00
  • 6a61b79bbe Fix pagination controls, move mixin to common app, fix pagination invocation on all views, and other random bug fixes badbl0cks 2025-04-01 23:01:05 -07:00
  • 7edefe23c3 Move profile and settings into the new unified dashboard, showing user info in one place badbl0cks 2025-03-31 22:20:59 -07:00
  • 2d826734a0 Add tradeOffer image field, tweak image generation to only fire once per tradeOffer, even with simultaneous requests badbl0cks 2025-03-29 15:13:57 -07:00
  • 138a929da6 Various small bug fixes, break out pagination for cards into its own mixin and templatetag badbl0cks 2025-03-29 00:27:40 -07:00
  • 05a279fa3a various small bugfixes; add cards list view badbl0cks 2025-03-28 15:50:20 -07:00
  • d5f8345581 Rewrite how trade offer png's are generated to try to reduce system resources. Only render the specific html code necessary and not the entire trade offer details page. badbl0cks 2025-03-28 00:42:41 -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 badbl0cks 2025-03-27 23:17:51 -07:00
  • 2cb35e853d Allow theme button to toggle between 3 themes: system (prefers-dark-theme), dark, light badbl0cks 2025-03-27 23:16:10 -07:00
  • b9c4d7a61d Fix friend_code max length issues in tests, and fix in_game_name length issues, also update tests to fit more scenarios badbl0cks 2025-03-27 17:26:07 -07:00
  • 0d4655bf80 Add initial home tests badbl0cks 2025-03-27 00:16:56 -07:00
  • 2785e0ed13 Add initial trades tests badbl0cks 2025-03-27 00:16:44 -07:00
  • d66ed823e0 Add initial cards tests badbl0cks 2025-03-27 00:16:34 -07:00
  • fd6d75bbac Add tests for cards badbl0cks 2025-03-26 15:08:06 -07:00
  • 23d334c596 Add tests for accounts, and fix allowing user to delete friend code with active trade offers and in-game-name not being set on signup badbl0cks 2025-03-26 14:25:09 -07:00
  • 65ca344582 Fix create trade offer flow and other related bugs badbl0cks 2025-03-26 11:38:02 -07:00
  • f3a1366269 Fix gravatar hovercards, and add trade_offer image generation with playwright, for use with opengraph tags on trade_offer_detal.html badbl0cks 2025-03-20 23:59:22 -07:00
  • 4c0db9f842 Fix Gravatar profiles showing on hover and add gravatar explanation and profile page for users badbl0cks 2025-03-18 14:21:50 -07:00