feat(ume): keyword key-alert rules with label and case-insensitive match

Add description keyword matching alongside notificationId rules, require
per-rule labels, and improve the AI monitor form layout and clear-on-push UX.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-06-22 16:48:01 +08:00
parent 99e7b1557f
commit 34db62c8d2
11 changed files with 449 additions and 134 deletions

View file

@ -4,9 +4,10 @@ type Props = {
text: string;
ariaLabel: string;
align?: "start" | "end";
nowrap?: boolean;
};
export function HelpHint({ text, ariaLabel, align = "start" }: Props) {
export function HelpHint({ text, ariaLabel, align = "start", nowrap = false }: Props) {
const [open, setOpen] = useState(false);
const rootRef = useRef<HTMLSpanElement>(null);
@ -38,7 +39,10 @@ export function HelpHint({ text, ariaLabel, align = "start" }: Props) {
?
</button>
{open ? (
<div className="help-hint__popover" role="tooltip">
<div
className={`help-hint__popover${nowrap ? " help-hint__popover--nowrap" : ""}`}
role="tooltip"
>
{text}
</div>
) : null}