Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"@posthog/git": "workspace:*",
"@posthog/hedgehog-mode": "^0.0.48",
"@posthog/platform": "workspace:*",
"@posthog/quill": "0.1.0-alpha.7",
"@posthog/quill": "0.3.0-beta.1",
"@posthog/shared": "workspace:*",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-icons": "^1.3.2",
Expand Down Expand Up @@ -186,16 +186,17 @@
"react-markdown": "^10.1.0",
"react-resizable-panels": "^3.0.6",
"reflect-metadata": "^0.2.2",
"semver": "^7.6.0",
"rehype-raw": "^7.0.0",
"rehype-sanitize": "^6.0.0",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.1",
"semver": "^7.6.0",
"shadcn": "^4.1.2",
"smol-toml": "^1.6.0",
"sonner": "^2.0.7",
"striptags": "^3.2.0",
"tailwind-merge": "^3.5.0",
"tailwindcss-scroll-mask": "^0.0.3",
"tippy.js": "^6.3.7",
"tw-animate-css": "^1.4.0",
"vaul": "^1.1.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
import { KeyHint } from "@features/command/components/KeyHint";
import { Code, Flex } from "@radix-ui/themes";
import { Kbd, KbdGroup } from "@posthog/quill";

export function CommandKeyHints() {
return (
<Flex
align="center"
justify="center"
gap="4"
px="3"
py="2"
className="shrink-0 border-gray-6 border-t bg-gray-1"
>
<Flex align="center" gap="2">
<KeyHint keys={["↑", "↓"]} />
<Code variant="ghost" color="gray" className="text-[13px]">
Navigate
</Code>
</Flex>
<Flex align="center" gap="2">
<KeyHint keys={["↵"]} />
<Code variant="ghost" color="gray" className="text-[13px]">
Select
</Code>
</Flex>
<Flex align="center" gap="2">
<KeyHint keys={["Esc"]} />
<Code variant="ghost" color="gray" className="text-[13px]">
Close
</Code>
</Flex>
</Flex>
<div className="flex items-center justify-center gap-4 border-border border-t py-1">
<div className="flex items-center gap-2">
<KbdGroup>
<Kbd>↑</Kbd>
<Kbd>↓</Kbd>
</KbdGroup>
<span className="text-xs">navigate</span>
</div>
<div className="flex items-center gap-2">
<KbdGroup>
<Kbd>↵</Kbd>
</KbdGroup>
<span className="text-xs">select</span>
</div>
<div className="flex items-center gap-2">
<KbdGroup>
<Kbd>Esc</Kbd>
</KbdGroup>
<span className="text-xs">close</span>
</div>
</div>
);
}
Loading
Loading