From 9aeea153c7f9945aa95abdd1163349011c31eab8 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Wed, 21 Jan 2026 14:57:40 +0100 Subject: [PATCH] woah --- .cursor/rules/codebase-index.mdc | 2 +- AGENTS.md | 5 +++++ .../components/editor/properties-panel/text-properties.tsx | 4 ++-- apps/web/src/components/footer.tsx | 2 +- apps/web/src/utils/{string-utils.ts => strings.ts} | 0 5 files changed, 9 insertions(+), 4 deletions(-) rename apps/web/src/utils/{string-utils.ts => strings.ts} (100%) diff --git a/.cursor/rules/codebase-index.mdc b/.cursor/rules/codebase-index.mdc index 326e37af..9b2d6585 100644 --- a/.cursor/rules/codebase-index.mdc +++ b/.cursor/rules/codebase-index.mdc @@ -1632,7 +1632,7 @@ platform.ts export function getPlatformAlternateKey(): string export function isAppleDevice(): boolean -string-utils.ts +strings.ts export function capitalizeFirstLetter({ string }: { string: string }) export function uppercase({ string }: { string: string }) diff --git a/AGENTS.md b/AGENTS.md index 7cbe7736..8ebac930 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,6 +4,11 @@ Privacy-first video editor, with a focus on simplicity and ease of use. +## Lib vs Utils + +- `lib/` - domain logic (specific to this app) +- `utils/` - small helper utils (generic, could be copy-pasted into any other app) + ## Core Editor System The editor uses a **singleton EditorCore** that manages all editor state through specialized managers. diff --git a/apps/web/src/components/editor/properties-panel/text-properties.tsx b/apps/web/src/components/editor/properties-panel/text-properties.tsx index cd43f1b0..3ecb90d5 100644 --- a/apps/web/src/components/editor/properties-panel/text-properties.tsx +++ b/apps/web/src/components/editor/properties-panel/text-properties.tsx @@ -19,7 +19,7 @@ import { } from "./property-item"; import { ColorPicker } from "@/components/ui/color-picker"; import { cn } from "@/utils/ui"; -import { capitalizeFirstLetter, uppercase } from "@/utils/string-utils"; +import { capitalizeFirstLetter, uppercase } from "@/utils/strings"; import { clamp } from "@/utils/math"; import { Grid2x2 } from "lucide-react"; import { @@ -390,7 +390,7 @@ export function TextProperties({ className={cn( "text-foreground", element.backgroundColor === "transparent" && - "text-primary", + "text-primary", )} /> diff --git a/apps/web/src/components/footer.tsx b/apps/web/src/components/footer.tsx index c955e2f7..faeb56f7 100644 --- a/apps/web/src/components/footer.tsx +++ b/apps/web/src/components/footer.tsx @@ -3,7 +3,7 @@ import { RiDiscordFill, RiTwitterXLine } from "react-icons/ri"; import { FaGithub } from "react-icons/fa6"; import Image from "next/image"; import { DEFAULT_LOGO_URL, SOCIAL_LINKS } from "@/constants/site-constants"; -import { capitalizeFirstLetter } from "@/utils/string-utils"; +import { capitalizeFirstLetter } from "@/utils/strings"; type Category = "resources" | "company"; diff --git a/apps/web/src/utils/string-utils.ts b/apps/web/src/utils/strings.ts similarity index 100% rename from apps/web/src/utils/string-utils.ts rename to apps/web/src/utils/strings.ts