Phase 1/2: Tauri shell, React UI (welcome, read-only import, overview with start/stop), e2e driver

Verified in the native window against a disposable fixture: import writes only
<folder>.manager + registry; start surfaces a human 'database update required'
message; stop returns to Offline. Live install untouched throughout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Sonnet 5.5 committed 2026-09-30 07:13:59 +05:00
1 parent bbf06793ba
commit 2e8803a067
50 files changed
+7331 -9

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import { cva, type VariantProps } from "class-variance-authority";
import * as React from "react";
import { cn } from "@/lib/utils";
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors disabled:pointer-events-none disabled:opacity-45 cursor-pointer",
{
variants: {
variant: {
primary: "bg-gold text-[#17130a] hover:bg-gold-strong",
secondary: "bg-card-2 text-ink border border-line hover:bg-[#1f2226]",
ghost: "text-muted hover:text-ink hover:bg-white/5",
danger: "bg-bad/90 text-white hover:bg-bad",
},
size: {
sm: "h-9 px-3 text-sm",
md: "h-11 px-5 text-[15px]",
xl: "h-16 px-10 text-lg tracking-wide",
},
},
defaultVariants: { variant: "secondary", size: "md" },
},
);
export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {}
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, ...props }, ref) => (
<button ref={ref} className={cn(buttonVariants({ variant, size }), className)} {...props} />
),
);
Button.displayName = "Button";
+11
View File
@@ -0,0 +1,11 @@
import * as React from "react";
import { cn } from "@/lib/utils";
export function Card({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("rounded-card border border-line bg-card/90 shadow-[0_8px_30px_rgb(0_0_0/0.28)]", className)}
{...props}
/>
);
}