feat(ledger): add bookkeeping workbench and transaction views
- Add transactions_dirty table and zero-tolerance cleansing action - Implement bookkeeping workbench (/bookkeeping) with searchable Combobox channel selector and card suffix / account identifier - Implement transaction ledger (/transactions) with date groupings, multi-currency metrics, and filters - Update AGENTS.md guidelines for Base UI Select and Combobox bindings
This commit is contained in:
+11
-12
@@ -1,17 +1,17 @@
|
||||
"use client";
|
||||
"use client"
|
||||
|
||||
import * as React from "react";
|
||||
import { useTheme } from "next-themes";
|
||||
import { MoonIcon, SunIcon } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import * as React from "react"
|
||||
import { useTheme } from "next-themes"
|
||||
import { MoonIcon, SunIcon } from "lucide-react"
|
||||
import { Button } from "@/components/ui/button"
|
||||
|
||||
export function ThemeToggle() {
|
||||
const { resolvedTheme, setTheme } = useTheme();
|
||||
const { resolvedTheme, setTheme } = useTheme()
|
||||
const mounted = React.useSyncExternalStore(
|
||||
() => () => {},
|
||||
() => true,
|
||||
() => false
|
||||
);
|
||||
)
|
||||
|
||||
if (!mounted) {
|
||||
return (
|
||||
@@ -23,10 +23,10 @@ export function ThemeToggle() {
|
||||
>
|
||||
<span className="size-4" />
|
||||
</Button>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
const isDark = resolvedTheme === "dark";
|
||||
const isDark = resolvedTheme === "dark"
|
||||
|
||||
return (
|
||||
<Button
|
||||
@@ -35,7 +35,7 @@ export function ThemeToggle() {
|
||||
onClick={() => setTheme(isDark ? "light" : "dark")}
|
||||
aria-label="Toggle color theme"
|
||||
title={isDark ? "切换为浅色模式" : "切换为深色模式"}
|
||||
className="text-muted-foreground hover:text-foreground transition-colors"
|
||||
className="text-muted-foreground transition-colors hover:text-foreground"
|
||||
>
|
||||
{isDark ? (
|
||||
<SunIcon data-icon="inline-start" />
|
||||
@@ -43,6 +43,5 @@ export function ThemeToggle() {
|
||||
<MoonIcon data-icon="inline-start" />
|
||||
)}
|
||||
</Button>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user