From 6f544e2b1fff8c235b6db3cd4bd49e35112e6dec Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Fri, 19 Jun 2026 20:26:17 -0400 Subject: [PATCH] fix(ui): report modals use folds Dialog shell (N63) ReportRoomModal/ReportUserModal rendered as with inline background/borderRadius(R400)/boxShadow. Switch both to so the surface (background, R300 radius, shadow) comes from the design system, matching MessageReportItem and every other message-action modal. Co-Authored-By: Claude Opus 4.8 --- LOTUS_BUGS.md | 2 +- src/app/features/room/ReportRoomModal.tsx | 14 +++++--------- src/app/features/room/ReportUserModal.tsx | 14 +++++--------- 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/LOTUS_BUGS.md b/LOTUS_BUGS.md index 0b4b8d1f4..6ae844dbe 100644 --- a/LOTUS_BUGS.md +++ b/LOTUS_BUGS.md @@ -413,7 +413,7 @@ This document tracks identified bugs, edge cases, and architectural discrepancie | N60 | Knock Badge on Members Button | `RoomViewHeader.tsx` | 744–782 | Knock count badge wrapped in extra `
` with hardcoded `fontSize: '9px'`, `minWidth: '14px'`, `height: '14px'`, `padding: '0 3px'` overriding folds `size="200"` — **FIXED**: removed wrapper div, put `position: 'relative'` directly on the `IconButton`, `` with `toRem(3)` insets and `` — now matches the Pinned Messages badge pattern exactly | Pinned Messages badge (same header, lines 651–677) uses `position: 'relative'` directly on `` + `toRem()` for inset; no extra wrapper div | | N61 | Knock Member Rows | `MembersDrawer.tsx` | 441–487 | Knock requester rows use raw `` with manually duplicated padding; no `` wrapper → no hover/focus/active states — **WON'T FIX (deliberate)**: unlike a `MemberItem` (a clickable navigation row), a knock row contains two action buttons (Approve / Deny) and is **not itself clickable**. Wrapping it in `` (a `` (spinner while loading) replacing the passive text | `RoomActivityLog.tsx:425` and `MessageSearch.tsx:129` both render a folds `` to fetch the next page | | N66 | DateRangeButton — Native `` | `SearchFilters.tsx` | 558–589 | "From" and "To" date fields are raw `` with inline style overrides including `fontSize: '0.82rem'` — **FIXED**: replaced both with folds ``; removed now-unused `color` import | `SelectRoomButton` (same file, line 224) and `SelectSenderButton` (line 424) both use folds ``; the date inputs are the only native browser inputs in the search filter row | diff --git a/src/app/features/room/ReportRoomModal.tsx b/src/app/features/room/ReportRoomModal.tsx index 6e9d1c958..f55477f16 100644 --- a/src/app/features/room/ReportRoomModal.tsx +++ b/src/app/features/room/ReportRoomModal.tsx @@ -5,6 +5,7 @@ import { Text, Input, Button, + Dialog, IconButton, Icon, Icons, @@ -94,19 +95,14 @@ export function ReportRoomModal({ roomId, onClose }: ReportRoomModalProps) { escapeDeactivates: stopPropagation, }} > -
- +
diff --git a/src/app/features/room/ReportUserModal.tsx b/src/app/features/room/ReportUserModal.tsx index eb3996726..fc89703f5 100644 --- a/src/app/features/room/ReportUserModal.tsx +++ b/src/app/features/room/ReportUserModal.tsx @@ -5,6 +5,7 @@ import { Text, Input, Button, + Dialog, IconButton, Icon, Icons, @@ -100,19 +101,14 @@ export function ReportUserModal({ userId, onClose }: ReportUserModalProps) { escapeDeactivates: stopPropagation, }} > -
- +