fix(PBI-59): jobs sorted newest-first, unified on created_at (#157)

- actions/jobs-page.ts: beide kolommen orderBy created_at desc
- stores/jobs-store.ts: nieuwe actieve jobs unshift (top) i.p.v. push (bottom)

Hiermee komen nieuw aangemaakte QUEUED/CLAIMED jobs bovenaan in de
linker kolom, in plaats van onderaan waar ze buiten het scrollbare deel
kunnen vallen.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Janpeter Visser 2026-05-07 20:58:27 +02:00 committed by GitHub
parent 883534a521
commit 25bd59c0b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ export const useJobsStore = create<JobsState & JobsActions>()(
if (idx !== -1) {
Object.assign(state.activeJobs[idx], job)
} else {
state.activeJobs.push(job as JobWithRelations)
state.activeJobs.unshift(job as JobWithRelations)
}
}
})