Commit graph

101 commits

Author SHA1 Message Date
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 2025-05-18 20:29:39 -07:00
95d794d8b9 Greatly improve prefetching and reduce # of db calls for each trade_offer 2025-05-18 15:26:34 -07:00
b89025a7e0 Remove unneeded empty staticfiles dir 2025-05-18 11:30:41 -07:00
48102b1e2a Fix missing double-quote mark in email templates 2025-05-18 11:29:52 -07:00
e4b76aa7cf Devcontainer minor fixes 2025-05-18 11:29:27 -07:00
f2f61af2e4 Switch to goatcounter analytics 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. 2025-05-18 11:27:59 -07:00
76b2becc24 Fix haproxy.cfgs missing ending LF 2025-05-09 20:35:18 -07:00
89cfa50519 Add devcontainer support for production-parity debugging 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. 2025-05-09 18:49:34 -07:00
959b06c425 Packaging fixes 2025-05-09 08:43:43 -07:00
fa6103d007 Add django-linear-migrations dependency
- Introduced `django-linear-migrations` version 2.17.0 to manage migrations more effectively and prevent merges.
- Refactored `INSTALLED_APPS` in `settings.py` to allow linear-migrations to track first party apps explicitly.
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. 2025-05-06 23:14:36 -07:00
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
9c41f63247 Complete refactor of environment configuration and Docker setup for development and production.
- Dev and prod both now run with the same exact docker configuration, except the .env file copied in.
- Removed the `.env` file and added a new `.env.dev` file for development settings, including database configuration and API keys.
- Introduced a `.envrc` file for automatic venv activation.
- Updated `deploy.sh` to utilize `uv` for running management commands and added a command for building Tailwind CSS.
- Created `docker-compose.yml` for local development with PostgreSQL, ensuring proper service dependencies.
- Deleted unnecessary files such as `docker-compose_db_only.yml` and `requirements.txt` to streamline the project structure.
2025-05-05 21:48:59 -07:00
0d19f0f060 Update Docker commands in tasks.json and entrypoint.sh for improved service management
- Modified Docker commands in `.vscode/tasks.json` to remove the `-d` flag for running services, allowing for better visibility of logs during development.
- Adjusted `entrypoint.sh` to streamline the startup process by running the development server and npm concurrently, enhancing the development workflow.
2025-04-29 14:01:46 -07:00
7b1e42d341 Add Simple Analytics for privacy-first tracking 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
- 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
7d94dc001f update caching on homepage, and add db checks to healthcheck 2025-04-29 12:50:07 -07:00
411c274e56 small fix in logging and supporting both granian/gunicorn 2025-04-29 12:10:34 -07:00
8d316f07ce change .env to be softlink 2025-04-29 12:05:54 -07:00
dcb2e483b6 use app instead of application for granian 2025-04-19 17:14:30 -07:00
fb9b6dbb22 add locust load testing 2025-04-19 17:11:19 -07:00
6a44ef30a3 build fixes and static files fix, closes #28 2025-04-19 17:10:46 -07:00
bff2525c65 disable debug toolbar and auto reload if DEBUG 2025-04-17 19:27:23 -07:00
7c872740b5 fix trade history misalignment 2025-04-17 19:24:13 -07:00
fca80b88d4 increase trade_offer size from w-87 to w-90 2025-04-17 18:44:27 -07:00
6c631d7a4b remove PYTHONDONTWRITEBYTECODE completely from Dockerfile as any value is interpreted as true 2025-04-17 18:42:01 -07:00
1c702e9e31 Fix card-multiselect js errors on page load when no card multiselect is on page 2025-04-17 18:39:48 -07:00
4bb81de1e4 Small fixes to improve project stability 2025-04-17 18:36:45 -07:00
843b2b6e55 fix pagination of card detail sections 2025-04-17 18:36:13 -07:00
725061e151 fix trade offer tag card gap spacing 2025-04-17 16:56:41 -07:00
b894b60b65 reorganizing build scripts 2025-04-17 16:21:26 -07:00
633c1e87e8 Update README and CONTRIBUTING 2025-04-16 23:35:48 -07:00
318571bb7e Remove example keys and replace with environ access 2025-04-16 22:34:47 -07:00
10386b1ce9 make card_multiselect DRY, closes #26 2025-04-15 00:51: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
135bd95a6a smaller text size on trade_acceptance card 2025-04-13 00:42:31 -07:00
9e501af1ac fix card_badges to always be links to card detail page 2025-04-13 00:33:56 -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
1c95ccfff7 all cards of a trade offer are now ordered alphabetically. fixes #12 2025-04-08 23:15:20 -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 2025-04-08 21:29:36 -07:00
1cdeaa9bba fix png generation to align with new card badges, fixes #2 2025-04-08 14:40:46 -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
52663c83ef remove avatar dropdown in header, and change click to redirect to dashboard 2025-04-08 01:55:05 -07:00
dd2ee7b558 update email templates to link to trade offer itself and unify language 2025-04-08 01:23:52 -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
e37731b74d Add javascript marquee effect for overflowing text on card badge names 2025-04-06 23:49:22 -07:00