Commit Graph

50 Commits

Author SHA1 Message Date
ef05a6523d Apply ruff formatting and fix unused import linting errors
Remove unused imports flagged by ruff (F401), apply ruff format across all
files, and restore members.signals side-effect import with noqa: F401 so the
post_save signal that auto-creates Member profiles continues to fire.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 08:55:28 +02:00
6c0115d4a2 Add Team/TeamRole/TeamMembership/TeamPicture models and fix two test bugs
- Fix Member.create(): post_save signal creates Member immediately on User creation,
  so new users always hit the hasattr branch; check `created` flag to set initial
  password and notes for genuinely new users
- Fix Season.for_date(): replace get() with filter().order_by("-start_date").first()
  to handle overlapping seasons gracefully and raise DoesNotExist when none match
- Add TeamRole, Team, TeamMembership, TeamPicture models with rules permissions
- Add migration 0002 for new models
- Add test suites for members and teams covering all new model behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 08:53:05 +02:00
a02f234411 Fix five confirmed bugs: typo, field name, auth, success message, debug print
- Fix `fist_name` typo in CSV bulk upload (first_name was always None)
- Fix CSV file field name mismatch: `members_data` → `csv_file` (matches form + template)
- Add `@login_required` to backend index view (was unprotected)
- Move `messages.success` inside `if form.is_valid()` (was always shown)
- Remove debug `print(response.headers)` from HTMXViewMixin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 14:56:51 +02:00
236a28bb3d New file for using Claude code 2026-05-17 23:36:08 +02:00
c95cb24ca7 Extend Season model: add generate_default method for creating seasons with configurable defaults, and _add_months utility for date calculations. 2026-04-26 22:01:32 +02:00
03ed9c74b0 Add Season model to teams app: define fields, constraints, meta options, and utility methods for date range and current season tracking. 2026-04-18 16:01:38 +02:00
fb830710f2 Set up teams app: create app structure, register in settings, and update base template formatting. 2026-04-18 12:36:42 +02:00
72e6388c0c Add configuration page: implement ConfigurationForm, update views, templates, and routes to enable superusers to manage club settings and toggle features using django-waffle. 2026-04-12 16:02:05 +02:00
cb3da371d1 Refactor feature flags: replace config checks with django-waffle switches, update templates and MemberLoadView to use TF_MASS_UPLOAD and TF_ENABLE_TEAMS. Add missing waffle_tags load for member_form.html. 2026-04-12 13:48:43 +02:00
8f9357f1b8 Update emergency phone icon in member_form.html to use fa-star-of-life for improved clarity 2026-04-12 13:38:36 +02:00
4e4fe62f11 Add feature flag for bulk member upload: update MemberLoadView, templates, and settings to use mass_upload flag with django-waffle. 2026-04-12 12:18:24 +02:00
b71bc2afc0 Add bulk member upload functionality: implement MemberLoadView, update routes, templates, and create MassUploadForm for CSV uploads. 2026-04-12 12:10:02 +02:00
4b819d9dd9 Fix paginator "last page" link in member_filter.html template by correcting hx-get attribute 2026-04-12 11:13:48 +02:00
7aa4a4816c Enable member editing functionality: implement MemberEditView, update routes, modify templates for dynamic filtering and superuser badges, and standardize contact info handling. 2026-04-12 11:06:28 +02:00
3d94b9b2d8 Refactor styles in styles.css: fix margin typo, improve focus/hover effects, and standardize dropdown styling with updated colors and shadows. 2026-04-12 10:37:16 +02:00
95e46fe727 Add django-waffle for feature flagging: update dependencies and middleware configuration. 2026-04-12 10:18:53 +02:00
e55c88c742 Update base.html layout: adjust styles for improved height handling, overflow behavior, and consistency in responsive designs. 2026-03-31 22:56:49 +02:00
6f07c32fb1 Adjust navbar styles: rename class to navbar-shrink, add padding to elements for better spacing. 2026-03-31 16:49:21 +02:00
646479c5be Refactor MemberEditView to include permissions, success messages, and HTMX support. Adjust member filter template layout to use flex-row. 2026-03-31 16:49:03 +02:00
06e51f2278 Updating files after updating new versions of packages 2026-03-31 14:26:29 +02:00
a846754440 Add notes field to Member model with migration. 2026-03-31 14:19:45 +02:00
303b8553c9 Enable member creation functionality: implement MemberAddView, create MemberForm, update routes, templates, and add supporting styles. 2026-01-17 23:38:12 +01:00
cb10c8ccf5 Update user__is_active filter choices to improve clarity in filter options 2026-01-17 21:32:40 +01:00
17e91cd7f8 Add menu highlighting logic via HX-Trigger, update templates for dynamic menu state management, and extend mixins to support menu highlighting. 2026-01-16 23:57:06 +01:00
5898a3ac6d Soft-deletion for members: implement confirmation template, update MemberDeleteView to deactivate users instead of deleting, and adjust templates for i18n. 2026-01-11 22:14:25 +01:00
b885bf6da5 Activate member deletion functionality: implement MemberDeleteView with HTMX integration, add is_active filter, update member filter template, and refine related styles. 2026-01-11 22:04:34 +01:00
d2d50afdd7 Enhance MemberListView with HTMX integration, refactor member filter template for partial rendering, and add HTMX utility mixins. 2026-01-10 23:57:06 +01:00
f4c5377727 Integrate django-htmx into project: update settings, middleware, and base HTML with HTMX utilities. 2026-01-10 23:01:39 +01:00
97ee6c2500 Add django-htmx>=1.27.0 to project dependencies in pyproject.toml and update uv.lock. 2026-01-10 23:00:00 +01:00
26155de246 Implement avatar rendering logic: add custom tags, template, and styles; update base.html integration and revamp member filter and list designs. 2026-01-10 22:59:11 +01:00
03f8a5eb35 Refactor base layout: implement responsive navbar with scroll shrink effect, revamp sidebar structure and styles, and refine footer. 2026-01-09 23:52:55 +01:00
093ca1b88d Add pillow>=12.1.0 to project dependencies in pyproject.toml and update uv.lock. 2026-01-09 21:22:54 +01:00
66ba195cb7 Merge remote-tracking branch 'refs/remotes/origin/development' into development
# Conflicts:
#	pyproject.toml
#	uv.lock
2026-01-09 21:22:08 +01:00
92101ca86a Update navbar behavior with shrinking effect on scroll, refine layout and styles, and enhance backend sidebar for members management. 2026-01-08 23:14:15 +01:00
a19d3b091e Integrate custom fonts and global theme variables, update base HTML layout with navbar, dynamic club logo, and sidebar, and extend settings with configurable club logo. 2026-01-07 08:43:53 +01:00
f344533386 Add Font Awesome 7.1.0 to project static assets 2026-01-05 12:25:21 +01:00
40ddab4627 Extend members app: add filtering with django-filter, MemberFilter class, and initial view setup. Update URLs, templates, and dependencies for integration. 2026-01-04 23:24:53 +01:00
e67ef526f4 Remove backend app and its initial structure 2026-01-04 22:53:05 +01:00
666ec88165 Extend members app: add user signals for automatic Member profile creation, tests for Member behavior, and updated authentication backends 2026-01-04 22:53:00 +01:00
18181113a9 Set up backend app with initial structure and registered it in settings 2026-01-04 22:43:38 +01:00
769f18dac8 Extend members app: add fields to Member model, update migrations, and configure admin display 2026-01-04 22:42:54 +01:00
a38a813865 Set up members app with models, migrations, permissions, and rules integration; updated dependencies and settings 2026-01-03 13:00:06 +01:00
63ad906557 Set up members app with initial structure and registered it in settings 2026-01-03 12:46:57 +01:00
8f566b2e5e Add team forge logo to static assets 2026-01-03 12:46:02 +01:00
3e77b1edb8 Set up theme app with initial structure, Tailwind CSS integration, and npm dependencies 2026-01-03 12:38:06 +01:00
5573058e3e Update Python SDK references in project configuration files 2026-01-02 14:24:18 +01:00
cb04e908ce Add new dependencies to uv.lock file 2026-01-02 14:24:00 +01:00
9c55fcd828 Update pyproject.toml dependencies and regenerate lockfile 2025-12-31 14:14:46 +01:00
2044d609b6 Set up Django project with initial structure and configuration files 2025-12-30 22:19:47 +01:00
243975314f Initial commit 2025-12-30 22:19:41 +01:00