Newtypes and broker refactor

Reviewed-on: #10
This commit was merged in pull request #10.
This commit is contained in:
2026-01-02 00:22:55 +00:00
parent 146d775f02
commit 66e0e613fc
29 changed files with 1087 additions and 324 deletions

View File

@@ -11,7 +11,7 @@ import { Editor } from "@/components/editor/editor";
import { useTranslation } from "react-i18next";
const noteSchema = (t: any) => z.object({
title: z.string().min(1, t("Title is required")).max(200, t("Title too long")),
title: z.string().min(0, t("Title too long")).max(200, t("Title too long")),
content: z.string().optional(),
is_pinned: z.boolean().default(false),
tags: z.string().optional(), // Comma separated for now

View File

@@ -6,14 +6,14 @@ export default function PrivacyPolicyPage() {
const appName = "K-Notes";
return (
<div className="min-h-screen bg-gradient-to-br from-background via-background to-muted/20">
<div className="min-h-screen bg-linear-to-br from-background via-background to-muted/20">
<div className="max-w-4xl mx-auto px-4 py-12 space-y-8">
{/* Header */}
<div className="text-center space-y-4 mb-12">
<div className="flex justify-center">
<Shield className="h-16 w-16 text-primary" />
</div>
<h1 className="text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-primary to-primary/60">
<h1 className="text-4xl font-bold bg-clip-text text-transparent bg-linear-gradient-to-r from-primary to-primary/60">
Privacy Policy
</h1>
<div className="flex items-center justify-center gap-2 text-muted-foreground">