feat: user collection stats, filters and private fit - #230
Merged
Conversation
added 7 commits
March 11, 2026 11:58
Allow allauth email verification behavior to be configured by environment and add custom verification templates, while enabling trusted CSRF origins from allowed hosts for safer deployments.
Track FootballKitArchive entry IDs to make collection imports idempotent, improve import resilience for legacy data edge cases, and add migration-backed schema updates including private jersey fit support and stricter color validation.
Introduce reusable geo/stat partials and server-side aggregation for user collections, with filterable top cards/lists, active filter chips, and HTMX pagination for faster profile browsing without full page reloads.
Expose the private fit field in create/edit flows, persist it in JerseyForm save paths, and render it only for the owner on item detail; also smooth-scroll filtered HTMX collection updates into view.
Regenerate translation catalogs so new collection, fit, and profile filter strings are included and source references stay aligned with the current templates and views.
Align jersey fit handling and user item filters, harden dropdown behaviour, and complete Spanish geo/profile and email confirmation translations.
Keep geo filters visible for everyone but omit the fit chip from active filters when viewing someone else's collection.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
added 5 commits
March 11, 2026 16:50
Apply Ruff/formatter suggestions to populate_user_collection, user collection templates, and user items view without changing behaviour.
Cover ItemService fit filter behaviour and UserItemListView fit/geo filters so Codecov passes on the user-collection-stats patch.
Keep privacy-focused coverage for the fit filter while avoiding brittle assumptions about active filter chips for the profile owner.
Adjust coverage configuration so the heavy import management command does not affect patch coverage thresholds in CI/Codecov.
sunr4y
marked this pull request as ready for review
March 12, 2026 00:04
…is, optional chaining
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds analytics and filters to the user collection page (
/users/<username>/items/) and a private "How it fits" field for jerseys, visible only to the owner.Changes
Jersey.fitfield (e.g. "Fits true to size"). Shown only to the profile owner: "How it fits" list and fit filter chip are hidden for visitors.#user-collection-htmx-blockwith scroll-to-grid after swap.BaseItem.id_fka_entry; Ruff/lint fixes in populate command and user items view.