mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 15:33:18 +08:00
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:
parent
99e7b1557f
commit
34db62c8d2
11 changed files with 449 additions and 134 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue