- {options.map((option) => (
+ {options.map((option, index) => (
-
+
{label}{" "}
{options.find((opt) => opt.id === selectedOption)?.label}
@@ -81,10 +134,11 @@ export const FilterOperatorInput = ({
...
diff --git a/apps/dashboard/components/logs/live-switch-button/index.tsx b/apps/dashboard/components/logs/live-switch-button/index.tsx
index eb93b87258..74664b5381 100644
--- a/apps/dashboard/components/logs/live-switch-button/index.tsx
+++ b/apps/dashboard/components/logs/live-switch-button/index.tsx
@@ -1,3 +1,4 @@
+import { KeyboardButton } from "@/components/keyboard-button";
import { useKeyboardShortcut } from "@/hooks/use-keyboard-shortcut";
import { CircleCaretRight } from "@unkey/icons";
import { Button } from "@unkey/ui";
@@ -9,14 +10,14 @@ type LiveSwitchProps = {
};
export const LiveSwitchButton = ({ isLive, onToggle }: LiveSwitchProps) => {
- useKeyboardShortcut({ meta: true, key: "l" }, onToggle);
+ useKeyboardShortcut("option+shift+l", onToggle);
return (
);
};
diff --git a/apps/dashboard/components/logs/refresh-button/index.tsx b/apps/dashboard/components/logs/refresh-button/index.tsx
index f6cad7fd8a..b340258f86 100644
--- a/apps/dashboard/components/logs/refresh-button/index.tsx
+++ b/apps/dashboard/components/logs/refresh-button/index.tsx
@@ -18,10 +18,6 @@ export const RefreshButton = ({ onRefresh, isEnabled, isLive, toggleLive }: Refr
const [isLoading, setIsLoading] = useState(false);
const [refreshTimeout, setRefreshTimeout] = useState
(null);
- useKeyboardShortcut({ ctrl: true, key: "r" }, () => {
- isEnabled && handleRefresh();
- });
-
const handleRefresh = () => {
if (isLoading) {
return;
@@ -45,6 +41,11 @@ export const RefreshButton = ({ onRefresh, isEnabled, isLive, toggleLive }: Refr
setRefreshTimeout(timeout);
};
+ useKeyboardShortcut("option+shift+r", handleRefresh, {
+ preventDefault: true,
+ disabled: !isEnabled,
+ });
+
return (
Refresh
-
+
diff --git a/apps/dashboard/components/navbar-popover.tsx b/apps/dashboard/components/navbar-popover.tsx
index 222ebac96d..797459f992 100644
--- a/apps/dashboard/components/navbar-popover.tsx
+++ b/apps/dashboard/components/navbar-popover.tsx
@@ -67,7 +67,7 @@ export const QuickNavPopover = ({
})
: null;
- useKeyboardShortcut({ key: shortcutKey, ctrl: true }, () => {
+ useKeyboardShortcut(`option+shift+${shortcutKey}`, () => {
setOpen((prev) => !prev);
});
@@ -226,7 +226,7 @@ const PopoverHeader = ({
}) => (
{title}
-
+
);
diff --git a/apps/dashboard/components/navigation/navbar.tsx b/apps/dashboard/components/navigation/navbar.tsx
index 27077c46b4..400b26acac 100644
--- a/apps/dashboard/components/navigation/navbar.tsx
+++ b/apps/dashboard/components/navigation/navbar.tsx
@@ -67,7 +67,7 @@ const Breadcrumbs = React.forwardRef
-
+
-