1
0
Fork 0
polaris-task-force/src/app/(frontend)
Z8MB1E cc9d3b8073 fix(missions): only accept Arma 3 Launcher preset exports as mod lists
Root cause of the upload failures: the launcher writes an
<?xml version="1.0"?> prologue, Payload sniffs uploads with
fileTypeFromBuffer, and the collection mimeTypes allowlist lacked
application/xml, so every genuine launcher export was rejected with
'Invalid MIME type: application/xml'.

- Add application/xml to the mod-lists upload mimeTypes (the document is
  still stored as text/html; verified end to end).
- New pure parser src/lib/modlistPreset.ts validates the launcher export
  structure (arma:Type=preset meta + data-type=ModContainer rows) and is
  shared by the server action (authoritative) and CreateSideOpDialog
  (instant client-side feedback).
- Plain-text lists are no longer accepted anywhere: dialog accept/hint,
  collection mimeTypes, and the action now agree on HTML presets only.
- Upload name defaults to the preset's own arma:PresetName.
- Tests: tests/int/modlist-preset.int.spec.ts (9 cases).
2026-10-08 13:25:08 -04:00
..
account feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
awards feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
events feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
helpdesk feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
impersonate refactor(impersonation): move user selection into action flow 2026-09-01 17:17:48 -04:00
intelligence fix(missions): only accept Arma 3 Launcher preset exports as mod lists 2026-10-08 13:25:08 -04:00
locker feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
logistics feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
map feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
minigames feat(chips): credit chip bank from non-card minigame XP 2026-09-14 15:38:26 -04:00
notifications style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
operations feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00
personnel feat(npc-dialogue): let event flag effects target self, global, or a specific user 2026-10-07 13:33:52 -04:00
profile/[username] feat(evaluations): mark mission evaluable after scheduled window 2026-10-05 03:36:12 -04:00
projects feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
roster feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
story feat(story): order chapters by creation date and show newest first 2026-09-24 19:23:46 -04:00
surveys feat(surveys): open surveys in a scrollable modal, fix page layouts 2026-09-23 21:07:07 -04:00
transfers style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
voiceover feat(voiceover): spoiler gate, pacing pattern, and recorder updates 2026-09-14 15:37:12 -04:00
wiki feat(wiki): show System as author for seeded documentation pages 2026-09-30 18:41:13 -04:00
actions.ts feat(dashboard): customizable dashboard with personal widgets 2026-09-10 20:03:27 -04:00
layout.tsx fix(intel): show the intelligence section to anyone with read access 2026-10-04 02:53:24 -04:00
page.tsx feat(dashboard): flag restricted events with a lock icon in Recent Events 2026-10-07 13:07:23 -04:00
styles.css feat(map): add Arma-style coordinate grid config, overlay and mission-map wiring 2026-10-05 03:17:52 -04:00