@@ -94,6 +94,7 @@ let renderDashboard = (state: automationRouterState): Tea_Vdom.t<msg> => {
9494 },
9595 ),
9696 Events .onClick (AutomationRouter (ToggleGlobalEnabled )),
97+ KeyboardNav .onActivate (AutomationRouter (ToggleGlobalEnabled )),
9798 },
9899 list {
99100 text (
@@ -196,6 +197,7 @@ let renderRules = (state: automationRouterState): Tea_Vdom.t<msg> => {
196197 },
197198 ),
198199 Events .onClick (AutomationRouter (ToggleShowDisabled )),
200+ KeyboardNav .onActivate (AutomationRouter (ToggleShowDisabled )),
199201 },
200202 list {text ("Show Disabled" )},
201203 ),
@@ -315,6 +317,7 @@ let renderPending = (state: automationRouterState): Tea_Vdom.t<msg> => {
315317 "px-3 py-1.5 text-xs bg-emerald-700 text-white rounded hover:bg-emerald-600 cursor-pointer" ,
316318 ),
317319 Events .onClick (AutomationRouter (ApproveAll )),
320+ KeyboardNav .onActivate (AutomationRouter (ApproveAll )),
318321 },
319322 list {text ("Approve All" )},
320323 ),
@@ -324,6 +327,7 @@ let renderPending = (state: automationRouterState): Tea_Vdom.t<msg> => {
324327 "px-3 py-1.5 text-xs bg-red-800 text-red-200 rounded hover:bg-red-700 cursor-pointer" ,
325328 ),
326329 Events .onClick (AutomationRouter (RejectAll )),
330+ KeyboardNav .onActivate (AutomationRouter (RejectAll )),
327331 },
328332 list {text ("Reject All" )},
329333 ),
@@ -482,6 +486,7 @@ let renderSettings = (state: automationRouterState): Tea_Vdom.t<msg> => {
482486 },
483487 ),
484488 Events .onClick (AutomationRouter (LoadFromRepo )),
489+ KeyboardNav .onActivate (AutomationRouter (LoadFromRepo )),
485490 },
486491 list {text ("Load from Repo" )},
487492 ),
@@ -491,6 +496,7 @@ let renderSettings = (state: automationRouterState): Tea_Vdom.t<msg> => {
491496 "px-3 py-1.5 text-xs bg-gray-700 text-gray-300 rounded hover:bg-gray-600 cursor-pointer" ,
492497 ),
493498 Events .onClick (AutomationRouter (SaveRules )),
499+ KeyboardNav .onActivate (AutomationRouter (SaveRules )),
494500 },
495501 list {text ("Save Rules" )},
496502 ),
@@ -512,6 +518,7 @@ let renderSettings = (state: automationRouterState): Tea_Vdom.t<msg> => {
512518 },
513519 ),
514520 Events .onClick (AutomationRouter (ToggleShowDisabled )),
521+ KeyboardNav .onActivate (AutomationRouter (ToggleShowDisabled )),
515522 },
516523 list {text ("Show Disabled Rules" )},
517524 ),
@@ -567,6 +574,7 @@ let view = (state: automationRouterState): Tea_Vdom.t<msg> => {
567574 },
568575 ),
569576 Events .onClick (AutomationRouter (ToggleAutomationBojRouting )),
577+ KeyboardNav .onActivate (AutomationRouter (ToggleAutomationBojRouting )),
570578 },
571579 list {
572580 text (
@@ -584,6 +592,7 @@ let view = (state: automationRouterState): Tea_Vdom.t<msg> => {
584592 "px-3 py-1.5 text-xs bg-gray-700 text-gray-300 rounded hover:bg-gray-600 cursor-pointer" ,
585593 ),
586594 Events .onClick (AutomationRouter (LoadRules )),
595+ KeyboardNav .onActivate (AutomationRouter (LoadRules )),
587596 },
588597 list {text ("Refresh" )},
589598 ),
0 commit comments