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:
2026-09-06 23:23:29 +08:00
parent 1ccee1414c
commit c33857ffac
42 changed files with 3329 additions and 598 deletions
+11 -12
View File
@@ -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>
);
)
}