refactor: update memory management tools to enforce character limits, enhance pinned section handling, and improve user feedback in MemoryContent and TeamMemoryManager components

This commit is contained in:
Anish Sarkar 2026-04-09 17:24:31 +05:30
parent ab3cb0e1c5
commit a335f7621a
9 changed files with 324 additions and 52 deletions

View file

@ -54,8 +54,8 @@ const editorVariants = cva(
cn(
"group/editor",
"relative w-full cursor-text select-text overflow-x-hidden whitespace-pre-wrap break-words",
"rounded-md ring-offset-background focus-visible:outline-none",
"**:data-slate-placeholder:!top-1/2 **:data-slate-placeholder:-translate-y-1/2 placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:opacity-100!",
"rounded-none ring-offset-background focus-visible:outline-none",
"placeholder:text-muted-foreground/80 **:data-slate-placeholder:text-muted-foreground/80 **:data-slate-placeholder:py-1",
"[&_strong]:font-bold"
),
{

View file

@ -6,7 +6,7 @@ import type { PlateElementProps } from "platejs/react";
import { PlateElement } from "platejs/react";
import * as React from "react";
const headingVariants = cva("relative mb-1", {
const headingVariants = cva("relative mb-1 first:mt-0", {
variants: {
variant: {
h1: "mt-[1.6em] pb-1 font-bold font-heading text-4xl",