Update technical notes for customer jobs filter
This commit is contained in:
parent
f4384086f2
commit
189dc4ed37
@ -11,6 +11,7 @@ This file documents all changes made to this project via Claude Code.
|
||||
### Changed
|
||||
- Changed `/jobs` route to accept optional `customer_id` query parameter and return only jobs for that customer when provided
|
||||
- Changed default Jobs listing behavior to keep existing inactive-customer filtering only when no `customer_id` filter is applied
|
||||
- Changed `docs/technical-notes-codex.md` with updated "Last updated" date, Customers→Jobs navigation notes, and test build/push validation snapshot
|
||||
|
||||
## [2026-02-13]
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Technical Notes (Internal)
|
||||
|
||||
Last updated: 2026-02-13
|
||||
Last updated: 2026-02-16
|
||||
|
||||
## Purpose
|
||||
Internal technical snapshot of the `backupchecks` repository for faster onboarding, troubleshooting, and change impact analysis.
|
||||
@ -254,10 +254,28 @@ All pages use **explicit link-based queries** (no date-based logic):
|
||||
- Prevents browser from auto-selecting checkboxes after page reload
|
||||
- Fixes issue where deleting items would cause same number of new items to be selected
|
||||
|
||||
### Customers to Jobs Navigation (2026-02-16)
|
||||
- Customers page links each customer name to filtered Jobs view:
|
||||
- `GET /jobs?customer_id=<customer_id>`
|
||||
- Jobs route behavior:
|
||||
- Accepts optional `customer_id` query parameter in `routes_jobs.py`.
|
||||
- If set: returns jobs for that customer only.
|
||||
- If not set: keeps default filter that hides jobs linked to inactive customers.
|
||||
- Jobs UI behavior:
|
||||
- Shows active filter banner with selected customer name.
|
||||
- Provides "Clear filter" action back to unfiltered `/jobs`.
|
||||
- Templates touched:
|
||||
- `templates/main/customers.html`
|
||||
- `templates/main/jobs.html`
|
||||
|
||||
## Feedback Module with Screenshots
|
||||
- Models: `FeedbackItem`, `FeedbackVote`, `FeedbackReply`, `FeedbackAttachment`.
|
||||
- Attachments:
|
||||
- multiple uploads, type validation, per-file size limits, storage in database (BYTEA).
|
||||
|
||||
## Validation Snapshot
|
||||
- 2026-02-16: Test build + push succeeded via `update-and-build.sh t`.
|
||||
- Pushed image: `gitea.oskamp.info/ivooskamp/backupchecks:dev`.
|
||||
- Delete strategy:
|
||||
- soft delete by default,
|
||||
- permanent delete only for admins and only after soft delete.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user