From 34265613b80d1d2249d276da5fcd5e4c274af357 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 14 May 2024 12:16:04 +0700 Subject: feat(ui): add history explore (#2022) * break out HistoryRow, add drawer * syntax highlighting! * smaller text * allow inspecting all old commands, no drag command * fix query bug * add loader --- ui/src/pages/Dotfiles.tsx | 10 +++++----- ui/src/pages/History.tsx | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'ui/src/pages') diff --git a/ui/src/pages/Dotfiles.tsx b/ui/src/pages/Dotfiles.tsx index 29b6b54a..43ecfa2a 100644 --- a/ui/src/pages/Dotfiles.tsx +++ b/ui/src/pages/Dotfiles.tsx @@ -5,7 +5,7 @@ import Vars from "@/components/dotfiles/Vars"; enum Section { Aliases, Vars, - Scripts, + Snippets, } function renderDotfiles(current: Section) { @@ -14,7 +14,7 @@ function renderDotfiles(current: Section) { return ; case Section.Vars: return ; - case Section.Scripts: + case Section.Snippets: return
; } } @@ -60,9 +60,9 @@ function Tabs({ current, setCurrent }: TabsProps) { section: Section.Vars, }, { - name: "Scripts", - isCurrent: () => current === Section.Scripts, - section: Section.Scripts, + name: "Snippets", + isCurrent: () => current === Section.Snippets, + section: Section.Snippets, }, ]; diff --git a/ui/src/pages/History.tsx b/ui/src/pages/History.tsx index 6eaa6f67..34ad93c2 100644 --- a/ui/src/pages/History.tsx +++ b/ui/src/pages/History.tsx @@ -5,7 +5,6 @@ import HistoryList from "@/components/HistoryList.tsx"; import HistorySearch from "@/components/HistorySearch.tsx"; import Stats from "@/components/history/Stats.tsx"; import Drawer from "@/components/Drawer.tsx"; -import InfiniteHistory from "@/components/InfiniteHistory.tsx"; import { useStore } from "@/state/store"; -- cgit v1.3.1