1
0
Fork 0
polaris-task-force/src/collections
Z8MB1E 4f129fc59a feat(approval): reset reviewed documents to in progress on non-superuser edits
Add resetApprovalStatusOnEdit(), a collection beforeChange hook factory: when a
non-superuser updates a document whose stored approvalStatus is approved or
revision_requested, the status is rewritten to in_progress so the edit goes
through review again. Creates, superusers (system:admin-access), and system
writes with no user (catalog imports, seeds) are exempt, and an explicit
in_progress/ready_for_review in the edit is honored.

Wired into Technologies, Assets, Resources, Vehicles, and Structures.

Structures also moves from the legacy isDeveloper filterOptions gate to
approvalStatusFieldAccess("structures"), matching the other four collections
and removing the hard ValidationError when saving an already-approved structure.

Tests: 12 cases in tests/int/division-admin-access.int.spec.ts.
2026-10-15 10:01:02 -04:00
..
banking feat(rbac): migrate collection access controls to RBAC permissions 2026-08-19 19:47:51 -04:00
discord feat(bot): add editable Discord Rich Presence via command and CMS 2026-10-12 10:21:37 -04:00
game feat(npc-dialogue): post opted-in event effects to Discord dispatch channel 2026-10-14 16:57:33 -04:00
intelligence feat(approval): reset reviewed documents to in progress on non-superuser edits 2026-10-15 10:01:02 -04:00
locker feat(arma-bridge): sync limited-arsenal locker stock with the game 2026-10-05 03:17:59 -04:00
logistics feat(approval): reset reviewed documents to in progress on non-superuser edits 2026-10-15 10:01:02 -04:00
market style(collections): replace dashes in admin field descriptions 2026-09-07 05:19:50 -04:00
minigames feat(minigames): add phasing-out status with estimated removal date 2026-10-14 23:51:37 -04:00
operations feat(operations): readiness and zone pressure aggregates 2026-09-20 02:43:53 -04:00
projects feat(projects): enforce permissions and improve search 2026-08-21 00:26:33 -04:00
server feat(arma-bridge): handle garage deposit, withdraw, and sync events 2026-10-13 16:02:58 -04:00
story feat(journals): member-authored journal entries with author-owned publishing 2026-10-12 14:39:48 -04:00
tickets feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
users feat(contributions): award XP for published journal entries 2026-10-13 14:37:53 -04:00
voiceover fix(uploads): store upload collections under the persistent media volume 2026-10-08 12:14:46 -04:00
wiki feat(wiki): add page curation for featured strip 2026-10-09 17:56:02 -04:00
world feat(map): add Arma-style coordinate grid config, overlay and mission-map wiring 2026-10-05 03:17:52 -04:00
AGENTS.md feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00
Announcements.ts feat(announcements): add announcements system with roleDocs targeting and richText 2026-09-22 21:08:46 -04:00
Media.ts feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
Shims.ts style(collections): replace dashes in admin field descriptions 2026-09-07 05:19:50 -04:00