Merge ticket/017-regex-cheat-sheet-icon

This commit is contained in:
Hugh Kaznowski
2026-09-05 19:41:48 +01:00
5 changed files with 84 additions and 3 deletions
+5 -1
View File
@@ -17,6 +17,7 @@ import {
useSectionCollapsed,
} from './CollapsibleSection'
import { HelpIcon } from './HelpIcon'
import { RegexHelpIcon } from './RegexHelpIcon'
import { queryInputClassName } from './FilterBar'
type ConditionKind = AlertCondition['kind']
@@ -341,7 +342,10 @@ export function Alerts() {
{form.kind === 'newvalue' && (
<div className="space-y-1">
<div>
<label className="mb-1 block text-xs text-text-subtle">Field regex</label>
<label className="mb-1 flex items-center gap-1 text-xs text-text-subtle">
Field regex
<RegexHelpIcon label="Help: Field regex syntax" />
</label>
<input
className="w-full rounded border border-border-soft bg-surface-1 px-2 py-1 font-mono text-sm text-text placeholder:text-text-subtle focus:border-border-strong focus:outline-none"
value={form.fieldRegex}