Case restrictions appear twice, under both Linked actions and Linked restrictions #163

Open
opened 2026-10-17 21:12:37 -04:00 by goddard · 0 comments
Collaborator

A restriction applied from a case is listed twice on the case page: once under Linked actions and again under Linked restrictions, with the same ID.

  • cases/[id]/+page.svelte:473-492 lists every linked action, including records whose type is restriction (it switches the ID label to "Restriction ID" for them, :488-490).
  • cases/[id]/+page.svelte:515-569 lists the same restrictions again with their scope, expiry, note and revoke button.

The duplicate makes the sidebar longer and suggests a second, separate action was taken.

Screenshots

Synthetic preview. Cases, archived chat and a second moderator were added through the moderation API for these screenshots. The after images are mockups.

Before:
Before

After (mockup):
After (mockup)

Fix

  • Show only warnings, kicks and messages under Linked actions, and say that restrictions are listed below
  • Keep restrictions available as supporting actions in the Close case dialog
A restriction applied from a case is listed twice on the case page: once under **Linked actions** and again under **Linked restrictions**, with the same ID. - `cases/[id]/+page.svelte:473-492` lists every linked action, including records whose `type` is `restriction` (it switches the ID label to "Restriction ID" for them, `:488-490`). - `cases/[id]/+page.svelte:515-569` lists the same restrictions again with their scope, expiry, note and revoke button. The duplicate makes the sidebar longer and suggests a second, separate action was taken. **Screenshots** Synthetic preview. Cases, archived chat and a second moderator were added through the moderation API for these screenshots. The after images are mockups. Before: ![Before](https://gitea.thewrightserver.net/attachments/faec8879-4481-4892-8b93-776334e49a25) After (mockup): ![After (mockup)](https://gitea.thewrightserver.net/attachments/3368cc0a-08a3-4876-8042-b2ff5bcd0a80) **Fix** - [ ] Show only warnings, kicks and messages under Linked actions, and say that restrictions are listed below - [ ] Keep restrictions available as supporting actions in the Close case dialog
goddard added the
priority
low
type/ux
labels 2026-10-17 21:12:37 -04:00
josh was assigned by goddard 2026-10-17 21:12:37 -04:00
Sign in to join this conversation.