Commit Graph

13 Commits

Author SHA1 Message Date
pacnpal
c26414ff74 Add comprehensive tests for Parks API and models
- Implemented extensive test cases for the Parks API, covering endpoints for listing, retrieving, creating, updating, and deleting parks.
- Added tests for filtering, searching, and ordering parks in the API.
- Created tests for error handling in the API, including malformed JSON and unsupported methods.
- Developed model tests for Park, ParkArea, Company, and ParkReview models, ensuring validation and constraints are enforced.
- Introduced utility mixins for API and model testing to streamline assertions and enhance test readability.
- Included integration tests to validate complete workflows involving park creation, retrieval, updating, and deletion.
2025-08-17 19:36:20 -04:00
pacnpal
da7c7e3381 major changes, including tailwind v4 2025-08-15 12:24:20 -04:00
pacnpal
b7f6c60682 Refactor model imports and update admin classes to use pghistory for historical tracking; replace HistoricalModel with TrackedModel in relevant models 2025-02-09 11:20:40 -05:00
pacnpal
7ecf43f1a4 Add history tracking functionality using django-pghistory; implement views, templates, and middleware for event serialization and context management 2025-02-09 09:52:19 -05:00
pacnpal
bc68eaf4d9 Add auto-approval for moderator submissions and update submission handling 2025-02-05 18:47:23 -05:00
pacnpal
8265348a83 code commit 2024-11-13 21:59:49 +00:00
pacnpal
1acfe9d29e Improve moderation dashboard UI and functionality
- Add status tabs (Pending, Approved, Rejected, Escalated)
- Implement HTMX for smooth tab switching and status changes
- Add proper permissions for escalated submissions
- Change Status filter to Submission Type (Text/Photo)
- Move navigation into dashboard content
- Fix tab menu visibility and transitions
- Add contextual loading indicator
- Update styling to match dark theme
- Ensure consistent styling across components
2024-11-13 18:38:03 +00:00
pacnpal
537ea0fc07 Improve code readability in moderation models using walrus operator 2024-11-13 15:51:54 +00:00
pacnpal
7f4de7c2ec Fixed mod models 2024-11-13 14:53:31 +00:00
pacnpal
eb5d2acab5 fixed a bunch of things, hopefully didn't break things 2024-11-05 21:51:02 +00:00
pacnpal
2e8a725933 series of tests added with built-in django test support 2024-11-05 18:40:39 +00:00
pacnpal
3cbda93094 here we go 2024-10-31 22:32:01 +00:00
pacnpal
6880f36b99 good stuff 2024-10-29 21:29:16 -04:00