V1.2.0: archive/delete campaigns and encounters, encounter sorting, change password, fuller seed

- Campaigns: DM can archive/restore; owner can delete. Archived campaigns
  move off the main list and stop accepting invite codes.
- Encounters: DM can archive/restore and delete, and arrange the campaign's
  own order; the list can also be sorted by name, status, type or date.
  Archived encounters are hidden from players' lists.
- Account page with change password (POST /auth/password).
- Seed is now additive (safe on a live database; --reset for the old wipe)
  and builds a fuller Aldenfell: earned weapons, item pool, spells, NPCs,
  and 28 battle/quest scenes with descriptions, DM notes and rewards.
- Vite preview host config for the deployed site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 08:58:54 +02:00
co-authored by Claude Opus 5.5
parent 4a6a09bae8
commit 28e1a84b64
22 changed files with 1340 additions and 94 deletions
+22 -2
View File
@@ -61,7 +61,25 @@ notes) works the same in both.
Status is a label. Nothing is locked when an encounter is complete: the DM
can still change HP, add people and award rewards. Encounters cannot be
deleted or renamed from the screen.
renamed from the screen.
### Order, archive and delete
**Order.** The campaign page lists encounters in the **campaign order**, which
the DM arranges with the ▲ and ▼ buttons and everyone sees. A new encounter
goes to the top. The "Sort by" menu re-sorts the list by name, status, type or
date instead; that choice is remembered per browser and changes nothing for
anyone else. ▲ and ▼ only show while sorting by campaign order.
**Archive.** "Archive" (on the list or the encounter page) puts an encounter
away without changing it. It moves to the DM's "Archived" section and
disappears from the players' list; anyone who already has its page open or
bookmarked can still open it. "Restore" puts it back on the list.
**Delete.** "Delete" (on the encounter page, or on an archived encounter in
the list) removes the scene, who was in it and its reward list, after a
confirmation. There is no undo. Rewards already handed out stay with the
characters, and characters keep their current HP.
## 4. The scene and DM notes
@@ -194,6 +212,8 @@ information cannot be dug out of the page.
| Create an encounter | Yes | No |
| Open an encounter | Yes | Yes |
| Change mode, status, scene or DM notes | Yes | No |
| Rearrange, archive, restore or delete encounters | Yes | No |
| See archived encounters in the list | Yes | No |
| Add or remove anyone | Yes | No |
| Change HP, initiative or conditions | Yes | No |
| Advance turns and rounds | Yes | No |
@@ -211,5 +231,5 @@ People outside the campaign cannot open its encounters.
- Maps, positions, distances and areas of effect
- Experience points and encounter difficulty
- Spells as rewards
- Deleting or renaming an encounter from the screen
- Renaming an encounter from the screen
- A log of what happened during the encounter