diff --git a/LOTUS_BUGS.md b/LOTUS_BUGS.md index 4079e1829..a4a8b8a26 100644 --- a/LOTUS_BUGS.md +++ b/LOTUS_BUGS.md @@ -397,9 +397,8 @@ This document tracks identified bugs, edge cases, and architectural discrepancie **N56 — Report Modal Category Dropdown: Native ``. - **Issue:** Both report modals render the "Category" field as `` with hand-rolled inline styles (padding, border, background, color, fontSize, fontFamily). No other selector in the message-action modal context uses `` with `` trigger + `` + `` + `` pattern. --- diff --git a/src/app/features/room/ReportCategorySelect.tsx b/src/app/features/room/ReportCategorySelect.tsx new file mode 100644 index 000000000..806b7b323 --- /dev/null +++ b/src/app/features/room/ReportCategorySelect.tsx @@ -0,0 +1,85 @@ +import React, { MouseEventHandler, useState } from 'react'; +import { Box, Button, Icon, Icons, Menu, MenuItem, PopOut, RectCords, Text, config } from 'folds'; +import FocusTrap from 'focus-trap-react'; +import { stopPropagation } from '../../utils/keyboard'; + +type ReportCategorySelectProps = { + id?: string; + value: string; + labels: Record; + onChange: (value: string) => void; +}; + +/** + * Category dropdown for the report modals — folds `Button` + `PopOut` + `Menu` + * pattern (matching `OrderButton` in SearchFilters), replacing the OS-styled + * native `