feat(ai): implement an AI chat window for agentic resume building (#3022)

This commit is contained in:
Amruth Pillai
2026-05-10 13:23:32 +02:00
committed by GitHub
parent 42e83cc676
commit 6787175a8a
91 changed files with 11894 additions and 135 deletions
+6 -1
View File
@@ -46,7 +46,7 @@ import TextAlign from "@tiptap/extension-text-align";
import { TextStyle } from "@tiptap/extension-text-style";
import { EditorContent, EditorContext, useEditor, useEditorState } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import { useMemo, useState } from "react";
import { useEffect, useMemo, useState } from "react";
import { toast } from "sonner";
import { match } from "ts-pattern";
import z from "zod";
@@ -137,6 +137,11 @@ export function RichInput({ value, onChange, style, className, editorClassName,
const providerValue = useMemo(() => ({ editor }), [editor]);
useEffect(() => {
if (!editor || editor.getHTML() === value) return;
editor.commands.setContent(value, { emitUpdate: false });
}, [editor, value]);
if (!editor) return null;
const editorElement = (