A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
📦 v5.0.15 - https://docs.rxresu.me/changelog
Amruth Pillai4fd43657dcf0
diff --git a/.env.example b/.env.exampleindex 41fd69485..f875e3e34 100644--- a/.env.example+++ b/.env.example@@ -30,6 +30,10 @@ GOOGLE_CLIENT_SECRET=""GITHUB_CLIENT_ID=""GITHUB_CLIENT_SECRET=""+# Social Auth (LinkedIn, optional)+LINKEDIN_CLIENT_ID=""+LINKEDIN_CLIENT_SECRET=""+# Custom OAuth Provider (optional)OAUTH_PROVIDER_NAME=""OAUTH_CLIENT_ID=""diff --git a/AGENTS.md b/AGENTS.mdindex 12a582364..2cc7fcffb 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -1,5 +1,3 @@-# AGENTS.md-## OverviewReactive Resume is a single-package full-stack TypeScript app (not a monorepo) built with [TanStack Start](https://tanstack.com/start/latest/docs/framework/react/overview) (React, Vite, Nitro). It serves both frontend and API on port 3000.@@ -130,4 +128,4 @@ Copy `.env.example` to `.env` if not present. Key notes for local dev:## Review Checklist for Agents- [ ] Run `vp install` after pulling remote changes and before getting started.-- [ ] Run `vp check` and `vp test` to validate changes.+- [ ] Run `pnpm lint:fix`, `pnpm fmt:fix`, `pnpm typecheck` and `vp test` to validate changes.diff --git a/CLAUDE.md b/CLAUDE.mdnew file mode 120000index 000000000..47dc3e3d8--- /dev/null+++ b/CLAUDE.md@@ -0,0 +1 @@+AGENTS.md\ No newline at end of filediff --git a/docs/changelog/index.mdx b/docs/changelog/index.mdxindex 44be9b501..2c552021d 100644--- a/docs/changelog/index.mdx+++ b/docs/changelog/index.mdx@@ -4,6 +4,37 @@ description: "List of all notable changes and updates to Reactive Resume"rss: true---+<Update label="v5.0.15" description="1st April 2026">+## Features & Improvements+- Added **LinkedIn sign-in** support for self-hosted instances, including sign-in on the auth page and account linking in settings.+- Improved the sign-in experience by showing loading placeholders while social login providers are being fetched.+- Resume builder panel sizes are now persisted more reliably, making the layout feel more consistent between sessions.+- Added clearer labels for resume sorting and filtering controls on the dashboard.++## Fixes+- Improved autosave reliability in the resume builder:+ - Unsaved edits are flushed before page unload.+ - You now get a clear persistent warning if changes fail to save (for example, due to network issues).+- Strengthened authentication defaults by increasing the minimum password length requirement to 8 characters.+- Improved reliability around resume deletion and server-side error handling for create/update operations.+- Fixed a rare language mix-up during printing/export when multiple print jobs run at the same time, so each PDF/screenshot now reliably uses the correct locale.+- Improved print stability under heavy usage by reusing in-progress PDF and screenshot generation requests for the same resume instead of starting duplicate jobs.+- Hardened printer token signing and token/session/API-key verification paths for better security.+- Improved resilience in AI tailoring output parsing and JSON Resume import normalization.+- Printer service now provides descriptive error messages ("Failed to generate PDF" / "Failed to capture screenshot") instead of generic internal server errors.+- Job descriptions in the job detail sheet now render HTML formatting (headings, lists, bold text) instead of showing raw tags.+- Fixed the "Tailor Resume" button being incorrectly disabled when AI is not configured — the dialog already supports plain resume duplication as a fallback.+- Fixed the tailor resume flow to open the resume builder in a new tab while keeping the job listing open for reference, instead of navigating away and auto-opening the application page.+- Apply option links in the job detail sheet are now validated before rendering, preventing malformed or potentially unsafe URLs.+- Improved job card loading skeletons to match the actual card layout (logo, title, badges) for a smoother loading experience.+- Centered the "Configure Job Search" empty state on the page.+- Extracted the `JobCard` component into its own file for better code organization.++## Docs & Localization+- Updated self-hosting and environment variable documentation to include LinkedIn OAuth configuration.+- Synced translations across locales for the latest authentication and save-status messaging.+</Update>+<Update label="v5.0.14" description="24th March 2026">## Features- Implemented OAuth 2.1 support for MCP authentication, thanks to @5queezer. [#2829](https://github.com/amruthpillai/reactive-resume/pull/2829)diff --git a/docs/getting-started/quickstart.mdx b/docs/getting-started/quickstart.mdxindex 823d250be..53db7147c 100644--- a/docs/getting-started/quickstart.mdx+++ b/docs/getting-started/quickstart.mdx@@ -138,6 +138,8 @@ Here's a complete list of environment variables you can configure:| `GOOGLE_CLIENT_SECRET` | Google OAuth Client Secret | — || `GITHUB_CLIENT_ID` | GitHub OAuth Client ID | — || `GITHUB_CLIENT_SECRET` | GitHub OAuth Client Secret | — |+| `LINKEDIN_CLIENT_ID` | LinkedIn OAuth Client ID | — |+| `LINKEDIN_CLIENT_SECRET` | LinkedIn OAuth Client Secret | — || `OAUTH_PROVIDER_NAME` | Custom OAuth Provider Name | — || `OAUTH_CLIENT_ID` | Custom OAuth Client ID | — || `OAUTH_CLIENT_SECRET` | Custom OAuth Client Secret | — |diff --git a/docs/self-hosting/docker.mdx b/docs/self-hosting/docker.mdxindex a90942d61..1a8504e6f 100644--- a/docs/self-hosting/docker.mdx+++ b/docs/self-hosting/docker.mdx@@ -73,6 +73,10 @@ GOOGLE_CLIENT_SECRET=""GITHUB_CLIENT_ID=""GITHUB_CLIENT_SECRET=""+# Social Auth (LinkedIn, optional)+LINKEDIN_CLIENT_ID=""+LINKEDIN_CLIENT_SECRET=""+# Custom OAuth ProviderOAUTH_PROVIDER_NAME=""OAUTH_CLIENT_ID=""@@ -338,6 +342,8 @@ openssl rand -hex 32**`GITHUB_CLIENT_ID`** / **`GITHUB_CLIENT_SECRET`** (optional): Enables GitHub sign-in.+ **`LINKEDIN_CLIENT_ID`** / **`LINKEDIN_CLIENT_SECRET`** (optional): Enables LinkedIn sign-in.+**Custom OAuth provider** (optional):- **`OAUTH_PROVIDER_NAME`**: Display name in the UI- **`OAUTH_CLIENT_ID`** / **`OAUTH_CLIENT_SECRET`**: Required for any custom OAuth provider@@ -375,7 +381,7 @@ openssl rand -hex 32<Accordion title="Feature Flags">- **`FLAG_DEBUG_PRINTER`**: Bypasses the printer-only access restriction (useful when debugging `/printer/{resumeId}`). Recommended: keep `"false"` in production.- **`FLAG_DISABLE_SIGNUPS`**: Disables new signups (web app and server). Useful for private instances.- - **`FLAG_DISABLE_EMAIL_AUTH`**: Disables email/password login entirely. Also disables email verification, forgot password, and reset password flows. Users can still sign up via social auth (Google/GitHub/Custom OAuth), unless FLAG_DISABLE_SIGNUPS is also set to true. Useful when only SSO is required.+ - **`FLAG_DISABLE_EMAIL_AUTH`**: Disables email/password login entirely. Also disables email verification, forgot password, and reset password flows. Users can still sign up via social auth (Google/GitHub/LinkedIn/Custom OAuth), unless FLAG_DISABLE_SIGNUPS is also set to true. Useful when only SSO is required.- **`FLAG_DISABLE_IMAGE_PROCESSING`**: Disables image processing. This is useful if you are using a machine with limited resources, like a Raspberry Pi.</Accordion></AccordionGroup>diff --git a/docs/self-hosting/examples.mdx b/docs/self-hosting/examples.mdxindex cd7fc05eb..1ef9dd95a 100644--- a/docs/self-hosting/examples.mdx+++ b/docs/self-hosting/examples.mdx@@ -405,6 +405,8 @@ services:- GOOGLE_CLIENT_SECRET=$GOOGLE_CLIENT_SECRET- GITHUB_CLIENT_ID=$GITHUB_CLIENT_ID- GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET+ - LINKEDIN_CLIENT_ID=$LINKEDIN_CLIENT_ID+ - LINKEDIN_CLIENT_SECRET=$LINKEDIN_CLIENT_SECRET- SMTP_HOST=$SMTP_HOST- SMTP_PORT=$SMTP_PORT- SMTP_USER=$SMTP_USERdiff --git a/docs/self-hosting/sso.mdx b/docs/self-hosting/sso.mdxindex a314ab0aa..1e99d4a59 100644--- a/docs/self-hosting/sso.mdx+++ b/docs/self-hosting/sso.mdx@@ -253,6 +253,8 @@ AUTH_SECRET="your-32-byte-hex-secret"# GOOGLE_CLIENT_SECRET=""# GITHUB_CLIENT_ID=""# GITHUB_CLIENT_SECRET=""+# LINKEDIN_CLIENT_ID=""+# LINKEDIN_CLIENT_SECRET=""# Custom OAuth Provider (e.g., Authentik)OAUTH_PROVIDER_NAME="Company SSO"diff --git a/locales/af-ZA.po b/locales/af-ZA.poindex eba436505..2d26b851f 100644--- a/locales/af-ZA.po+++ b/locales/af-ZA.po@@ -3186,6 +3186,10 @@ msgstr "Jou data word plaaslik gestoor"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Jou data word veilig gestoor en nooit met derde partye gedeel nie. Jy kan ook Reactive Resume self-host op jou eie bedieners vir volledige beheer oor jou data."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Jou wagwoord is suksesvol herstel. Jy kan nou met jou nuwe wagwoord aanmeld."@@ -3244,4 +3248,3 @@ msgstr "Zoem uit"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zoeloe"-diff --git a/locales/am-ET.po b/locales/am-ET.poindex 62b038182..cc0882b69 100644--- a/locales/am-ET.po+++ b/locales/am-ET.po@@ -3186,6 +3186,10 @@ msgstr "መረጃዎ በአካባቢዎ መሣሪያ ላይ ይቀመጣል"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "መረጃዎ በደህና ይከማቻል እና ከሶስተኛ ወገኖች ጋር አይተካፈልም። ደግሞም በራስዎ ሰርቨር ላይ Reactive Resumeን በመጫን በመረጃዎ ላይ ሙሉ ቁጥጥር ማግኘት ትችላላችሁ።"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "የይለፍ ቃልዎ በተሳካ ሁኔታ ዳግም ተጀምሯል። አሁን በአዲሱ የይለፍ ቃል መግባት ትችላላችሁ።"@@ -3244,4 +3248,3 @@ msgstr "አጉር"#: src/utils/locale.tsmsgid "Zulu"msgstr "ዙሉ"-diff --git a/locales/ar-SA.po b/locales/ar-SA.poindex f28d16cdc..256c80636 100644--- a/locales/ar-SA.po+++ b/locales/ar-SA.po@@ -3186,6 +3186,10 @@ msgstr "تُخزَّن بياناتك محليًا"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "تُخزَّن بياناتك بأمان ولا تتم مشاركتها أبدًا مع أطراف ثالثة. يمكنك أيضًا استضافة Reactive Resume ذاتيًا على خوادمك الخاصة للتحكم الكامل في بياناتك."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "تمت إعادة تعيين كلمة المرور الخاصة بك بنجاح. يمكنك الآن تسجيل الدخول باستخدام كلمة المرور الجديدة."@@ -3244,4 +3248,3 @@ msgstr "تصغير"#: src/utils/locale.tsmsgid "Zulu"msgstr "الزولو"-diff --git a/locales/az-AZ.po b/locales/az-AZ.poindex 0ff3db41d..f830d1ec5 100644--- a/locales/az-AZ.po+++ b/locales/az-AZ.po@@ -3186,6 +3186,10 @@ msgstr "Məlumatlarınız lokal olaraq saxlanılır"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Məlumatlarınız təhlükəsiz şəkildə saxlanılır və heç vaxt üçüncü tərəflərlə paylaşılmır. Məlumatlarınıza tam nəzarət üçün Reactive Resume‑ni öz serverlərinizdə də host edə bilərsiniz."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Parolunuz uğurla sıfırlandı. İndi yeni parolunuzla daxil ola bilərsiniz."@@ -3244,4 +3248,3 @@ msgstr "Uzaqlaşdır"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/bg-BG.po b/locales/bg-BG.poindex 7413a0435..87354b2d2 100644--- a/locales/bg-BG.po+++ b/locales/bg-BG.po@@ -3186,6 +3186,10 @@ msgstr "Вашите данни се съхраняват локално"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Вашите данни се съхраняват сигурно и никога не се споделят с трети страни. Можете също да хоствате Reactive Resume самостоятелно на свои сървъри за пълен контрол върху данните си."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Паролата ви беше нулирана успешно. Сега можете да влезете с новата си парола."@@ -3244,4 +3248,3 @@ msgstr "Намаляване"#: src/utils/locale.tsmsgid "Zulu"msgstr "Зулуски"-diff --git a/locales/bn-BD.po b/locales/bn-BD.poindex 534716d6b..1d58b545f 100644--- a/locales/bn-BD.po+++ b/locales/bn-BD.po@@ -3186,6 +3186,10 @@ msgstr "আপনার ডেটা স্থানীয়ভাবে সংmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "আপনার ডেটা নিরাপদভাবে সংরক্ষিত হয় এবং কখনোই তৃতীয় পক্ষের সঙ্গে শেয়ার করা হয় না। চাইলে আপনি নিজের সার্ভারে Reactive Resume নিজে হোস্ট করেও ডেটার পূর্ণ নিয়ন্ত্রণ রাখতে পারেন।"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "আপনার পাসওয়ার্ড সফলভাবে রিসেট হয়েছে। এখন আপনি নতুন পাসওয়ার্ড দিয়ে সাইন ইন করতে পারবেন।"@@ -3244,4 +3248,3 @@ msgstr "জুম আউট"#: src/utils/locale.tsmsgid "Zulu"msgstr "জুলু"-diff --git a/locales/ca-ES.po b/locales/ca-ES.poindex 3f87e78fc..c720f27e6 100644--- a/locales/ca-ES.po+++ b/locales/ca-ES.po@@ -3186,6 +3186,10 @@ msgstr "Les dades es desen localment"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Les dades s’emmagatzemen de manera segura i mai no es comparteixen amb tercers. També pots autoallotjar Reactive Resume als teus propis servidors per tenir un control total sobre les dades."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "La contrasenya s’ha restablert correctament. Ara ja pots iniciar sessió amb la contrasenya nova."@@ -3244,4 +3248,3 @@ msgstr "Allunya"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulú"-diff --git a/locales/cs-CZ.po b/locales/cs-CZ.poindex 81dc95caa..74d8b9305 100644--- a/locales/cs-CZ.po+++ b/locales/cs-CZ.po@@ -3186,6 +3186,10 @@ msgstr "Vaše data jsou ukládána lokálně"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Vaše data jsou ukládána bezpečně a nikdy nejsou sdílena s třetími stranami. Reactive Resume si můžete také hostovat sami na vlastních serverech a mít tak nad svými daty plnou kontrolu."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Vaše heslo bylo úspěšně obnoveno. Nyní se můžete přihlásit pomocí nového hesla."@@ -3244,4 +3248,3 @@ msgstr "Oddálit"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/da-DK.po b/locales/da-DK.poindex 4a63f350e..78b692188 100644--- a/locales/da-DK.po+++ b/locales/da-DK.po@@ -3186,6 +3186,10 @@ msgstr "Dine data gemmes lokalt"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Dine data lagres sikkert og deles aldrig med tredjeparter. Du kan også selv-hoste Reactive Resume på dine egne servere for fuld kontrol over dine data."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Din adgangskode er blevet nulstillet. Du kan nu logge ind med din nye adgangskode."@@ -3244,4 +3248,3 @@ msgstr "Zoom ud"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/de-DE.po b/locales/de-DE.poindex 2fb937d56..bb71aad57 100644--- a/locales/de-DE.po+++ b/locales/de-DE.po@@ -3186,6 +3186,10 @@ msgstr "Deine Daten werden lokal gespeichert"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Deine Daten werden sicher gespeichert und niemals an Dritte weitergegeben. Du kannst Reactive Resume außerdem auf deinen eigenen Servern selbst hosten, um die vollständige Kontrolle über deine Daten zu behalten."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ihr Passwort wurde erfolgreich zurückgesetzt. Sie können sich nun mit Ihrem neuen Passwort anmelden."@@ -3244,4 +3248,3 @@ msgstr "Herauszoomen"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/el-GR.po b/locales/el-GR.poindex 573b81f3d..857406539 100644--- a/locales/el-GR.po+++ b/locales/el-GR.po@@ -3186,6 +3186,10 @@ msgstr "Τα δεδομένα σας αποθηκεύονται τοπικά"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Τα δεδομένα σας αποθηκεύονται με ασφάλεια και δεν κοινοποιούνται ποτέ σε τρίτους. Μπορείτε επίσης να φιλοξενήσετε μόνοι σας το Reactive Resume στους δικούς σας διακομιστές για πλήρη έλεγχο των δεδομένων σας."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ο κωδικός πρόσβασής σας επαναφέρθηκε με επιτυχία. Τώρα μπορείτε να συνδεθείτε με τον νέο σας κωδικό πρόσβασης."@@ -3244,4 +3248,3 @@ msgstr "Σμίκρυνση"#: src/utils/locale.tsmsgid "Zulu"msgstr "Ζουλού"-diff --git a/locales/en-GB.po b/locales/en-GB.poindex 7ed9ce411..01732abac 100644--- a/locales/en-GB.po+++ b/locales/en-GB.po@@ -3186,6 +3186,10 @@ msgstr "Your data is stored locally"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Your password has been reset successfully. You can now sign in with your new password."@@ -3244,4 +3248,3 @@ msgstr "Zoom out"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/en-US.po b/locales/en-US.poindex 395cc4309..d01037cc6 100644--- a/locales/en-US.po+++ b/locales/en-US.po@@ -3181,6 +3181,10 @@ msgstr "Your data is stored locally"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Your password has been reset successfully. You can now sign in with your new password."diff --git a/locales/es-ES.po b/locales/es-ES.poindex 4c91569d1..c636497d8 100644--- a/locales/es-ES.po+++ b/locales/es-ES.po@@ -3186,6 +3186,10 @@ msgstr "Tus datos se almacenan localmente"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Tus datos se almacenan de forma segura y nunca se comparten con terceros. También puedes auto alojar Reactive Resume en tus propios servidores para tener un control total sobre tus datos."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Tu contraseña se ha restablecido correctamente. Ahora puedes iniciar sesión con tu nueva contraseña."@@ -3244,4 +3248,3 @@ msgstr "Alejar"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulú"-diff --git a/locales/fa-IR.po b/locales/fa-IR.poindex 399a8a82a..bd0e2d262 100644--- a/locales/fa-IR.po+++ b/locales/fa-IR.po@@ -3186,6 +3186,10 @@ msgstr "دادههای شما بهصورت محلی ذخیره میشوmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "دادههای شما بهطور ایمن ذخیره شده و هرگز با اشخاص ثالث به اشتراک گذاشته نمیشوند. همچنین میتوانید Reactive Resume را روی سرورهای خود میزبانی کنید تا کنترل کامل بر دادههای خود داشته باشید."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "گذرواژهٔ شما با موفقیت تنظیم مجدد شد. اکنون میتوانید با گذرواژهٔ جدید خود وارد شوید."@@ -3244,4 +3248,3 @@ msgstr "کوچکنمایی"#: src/utils/locale.tsmsgid "Zulu"msgstr "زولو"-diff --git a/locales/fi-FI.po b/locales/fi-FI.poindex 3151e2f9e..b6b7aeaaf 100644--- a/locales/fi-FI.po+++ b/locales/fi-FI.po@@ -3186,6 +3186,10 @@ msgstr "Tietosi tallennetaan paikallisesti"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Tietosi tallennetaan turvallisesti eikä niitä koskaan jaeta kolmansille osapuolille. Voit myös itseisännöidä Reactive Resumen omilla palvelimillasi täydellisen tietokontrollin takaamiseksi."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Salasanasi on palautettu onnistuneesti. Voit nyt kirjautua sisään uudella salasanallasi."@@ -3244,4 +3248,3 @@ msgstr "Loitonna"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/fr-FR.po b/locales/fr-FR.poindex 535ed57ec..d48478bdf 100644--- a/locales/fr-FR.po+++ b/locales/fr-FR.po@@ -3186,6 +3186,10 @@ msgstr "Vos données sont stockées localement"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Vos données sont stockées en toute sécurité et ne sont jamais partagées avec des tiers. Vous pouvez également héberger Reactive Resume sur vos propres serveurs pour un contrôle total de vos données."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Votre mot de passe a été réinitialisé avec succès. Vous pouvez maintenant vous connecter avec votre nouveau mot de passe."@@ -3244,4 +3248,3 @@ msgstr "Zoom arrière"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zoulou"-diff --git a/locales/he-IL.po b/locales/he-IL.poindex 745a545bf..e2cdf32b2 100644--- a/locales/he-IL.po+++ b/locales/he-IL.po@@ -3186,6 +3186,10 @@ msgstr "הנתונים שלך מאוחסנים באופן מקומי"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "הנתונים שלך מאוחסנים בצורה מאובטחת ולעולם אינם משותפים עם צדדים שלישיים. אפשר גם לארח את Reactive Resume בשרתים שלך כדי לשלוט לחלוטין בנתונים שלך."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "הסיסמה שלך אופסה בהצלחה. כעת אפשר להתחבר עם הסיסמה החדשה שלך."@@ -3244,4 +3248,3 @@ msgstr "התרחקות"#: src/utils/locale.tsmsgid "Zulu"msgstr "זולו"-diff --git a/locales/hi-IN.po b/locales/hi-IN.poindex 2fa22bc5d..8b5ad4884 100644--- a/locales/hi-IN.po+++ b/locales/hi-IN.po@@ -3186,6 +3186,10 @@ msgstr "आपका डेटा लोकल रूप से संग्रmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "आपका डेटा सुरक्षित रूप से संग्रहीत है और कभी भी थर्ड पार्टियों के साथ साझा नहीं किया जाता। आप अपने सर्वर्स पर Reactive Resume को स्व‑होस्ट भी कर सकते हैं ताकि अपने डेटा पर पूर्ण नियंत्रण रख सकें।"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "आपका पासवर्ड सफलतापूर्वक रीसेट कर दिया गया है। अब आप अपने नए पासवर्ड से साइन इन कर सकते हैं।"@@ -3244,4 +3248,3 @@ msgstr "ज़ूम आउट"#: src/utils/locale.tsmsgid "Zulu"msgstr "ज़ुलु"-diff --git a/locales/hu-HU.po b/locales/hu-HU.poindex 0055baaa3..c7b81ae94 100644--- a/locales/hu-HU.po+++ b/locales/hu-HU.po@@ -3186,6 +3186,10 @@ msgstr "Az adataid helyben tárolódnak"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Az adataid biztonságosan tároljuk, és soha nem osztjuk meg harmadik felekkel. A Reactive Resume‑t saját szervereiden is hosztolhatod, hogy teljes kontrollod legyen az adataid felett."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "A jelszavadat sikeresen visszaállítottuk. Mostantól az új jelszóval jelentkezhetsz be."@@ -3244,4 +3248,3 @@ msgstr "Kicsinyítés"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/id-ID.po b/locales/id-ID.poindex c0cecb100..8bb43ed42 100644--- a/locales/id-ID.po+++ b/locales/id-ID.po@@ -3186,6 +3186,10 @@ msgstr "Data Anda disimpan secara lokal"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Data Anda disimpan dengan aman dan tidak pernah dibagikan dengan pihak ketiga. Anda juga dapat self-host Reactive Resume di server Anda sendiri untuk kontrol penuh atas data Anda."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Kata sandi Anda telah berhasil diatur ulang. Anda sekarang dapat masuk dengan kata sandi baru Anda."@@ -3244,4 +3248,3 @@ msgstr "Perkecil"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/it-IT.po b/locales/it-IT.poindex d6300bacd..c6ed30965 100644--- a/locales/it-IT.po+++ b/locales/it-IT.po@@ -3186,6 +3186,10 @@ msgstr "I tuoi dati vengono memorizzati localmente"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "I tuoi dati sono archiviati in modo sicuro e non vengono mai condivisi con terze parti. Puoi anche fare self-host di Reactive Resume sui tuoi server per avere il pieno controllo dei tuoi dati."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "La tua password è stata reimpostata correttamente. Ora puoi accedere con la tua nuova password."@@ -3244,4 +3248,3 @@ msgstr "Rimpicciolisci"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ja-JP.po b/locales/ja-JP.poindex c52e4680a..5b2f76b0a 100644--- a/locales/ja-JP.po+++ b/locales/ja-JP.po@@ -3186,6 +3186,10 @@ msgstr "あなたのデータはローカルに保存されます。"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "あなたのデータは安全に保存され、第三者と共有されることはありません。また、完全にデータを管理したい場合は、Reactive Resume を自分のサーバーにセルフホストすることもできます。"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "パスワードを正常にリセットしました。新しいパスワードでサインインできます。"@@ -3244,4 +3248,3 @@ msgstr "ズームアウト"#: src/utils/locale.tsmsgid "Zulu"msgstr "ズールー語"-diff --git a/locales/km-KH.po b/locales/km-KH.poindex c15475b34..e8575e5b5 100644--- a/locales/km-KH.po+++ b/locales/km-KH.po@@ -3186,6 +3186,10 @@ msgstr "ទិន្នន័យរបស់អ្នកត្រូវmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "ទិន្នន័យរបស់អ្នកត្រូវបានរក្សាទុកដោយសុវត្ថិភាព ហើយមិនដែលត្រូវបានចែករំលែកជាមួយភាគីទីបីទេ។ អ្នកក៏អាចដំឡើង Reactive Resume លើម៉ាស៊ីនបម្រើផ្ទាល់ខ្លួនរបស់អ្នក ដើម្បីមានសិទ្ធિត្រួតត្រាលើទិន្នន័យរបស់អ្នកដល់ខ្ពស់បំផុតផងដែរ។"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "ពាក្យសម្ងាត់របស់អ្នកត្រូវបានកំណត់ឡើងវិញដោយជោគជ័យ។ ឥឡូវអ្នកអាចចូលដោយប្រើពាក្យសម្ងាត់ថ្មីរបស់អ្នកបានហើយ។"@@ -3244,4 +3248,3 @@ msgstr "បង្រួម"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/kn-IN.po b/locales/kn-IN.poindex 855f0e299..b309d07ee 100644--- a/locales/kn-IN.po+++ b/locales/kn-IN.po@@ -3186,6 +3186,10 @@ msgstr "ನಿಮ್ಮ ಡೇಟಾವನ್ನು ಸ್ಥಳೀಯವಾಗmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "ನಿಮ್ಮ ಡೇಟಾವನ್ನು ಸುರಕ್ಷಿತವಾಗಿ ಸಂಗ್ರಹಿಸಲಾಗುತ್ತದೆ ಮತ್ತು ಎಂದಿಗೂ ತೃತೀಯಪಕ್ಷಗಳೊಂದಿಗೆ ಹಂಚಿಕೊಳ್ಳಲಾಗುವುದಿಲ್ಲ. ನಿಮ್ಮ ಡೇಟಾದ ಮೇಲೆ ಸಂಪೂರ್ಣ ನಿಯಂತ್ರಣಕ್ಕಾಗಿ ನಿಮ್ಮದೇ ಸರ್ವರ್ಗಳಲ್ಲಿ Reactive Resume ಅನ್ನು ಸ್ವಯಂ-ಹೋಸ್ಟ್ ಮಾಡಬಹುದು."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "ನಿಮ್ಮ ಪಾಸ್ವರ್ಡ್ ಅನ್ನು ಯಶಸ್ವಿಯಾಗಿ ಮರುಹೊಂದಿಸಲಾಗಿದೆ. ಈಗ ನೀವು ನಿಮ್ಮ ಹೊಸ ಪಾಸ್ವರ್ಡ್ ಬಳಸಿಕೊಂಡು ಸೈನ್ ಇನ್ ಮಾಡಬಹುದು."@@ -3244,4 +3248,3 @@ msgstr "ಗಾತ್ರ ಕುಗ್ಗಿಸಿ"#: src/utils/locale.tsmsgid "Zulu"msgstr "ಜೂಲೂ"-diff --git a/locales/ko-KR.po b/locales/ko-KR.poindex 2b35b2c98..6a17201ff 100644--- a/locales/ko-KR.po+++ b/locales/ko-KR.po@@ -3186,6 +3186,10 @@ msgstr "데이터는 브라우저에 로컬로 저장됩니다"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "데이터는 안전하게 저장되며 제3자와 공유되지 않습니다. 또한 Reactive Resume를 직접 서버에 호스팅해 데이터에 대한 완전한 제어권을 가질 수 있습니다."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "비밀번호가 성공적으로 재설정되었습니다. 이제 새 비밀번호로 로그인할 수 있습니다."@@ -3244,4 +3248,3 @@ msgstr "축소"#: src/utils/locale.tsmsgid "Zulu"msgstr "줄루어"-diff --git a/locales/lt-LT.po b/locales/lt-LT.poindex 6e53bcba3..5a5b9ec55 100644--- a/locales/lt-LT.po+++ b/locales/lt-LT.po@@ -3186,6 +3186,10 @@ msgstr "Jūsų duomenys saugomi vietoje"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Jūsų duomenys saugiai laikomi ir niekada nebendrinami su trečiosiomis šalimis. Taip pat galite savarankiškai talpinti „Reactive Resume“ savo serveriuose ir visiškai kontroliuoti savo duomenis."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Jūsų slaptažodis sėkmingai atstatytas. Dabar galite prisijungti naudodami naują slaptažodį."@@ -3244,4 +3248,3 @@ msgstr "Tolinti"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulų"-diff --git a/locales/lv-LV.po b/locales/lv-LV.poindex 1720a71ff..9e26181f8 100644--- a/locales/lv-LV.po+++ b/locales/lv-LV.po@@ -3186,6 +3186,10 @@ msgstr "Jūsu dati tiek glabāti lokāli"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Jūsu dati tiek glabāti droši un nekad netiek kopīgoti ar trešajām pusēm. Reactive Resume varat arī pašhostēt uz saviem serveriem, lai pilnībā kontrolētu savus datus."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Jūsu parole ir veiksmīgi atiestatīta. Tagad varat pieteikties ar jauno paroli."@@ -3244,4 +3248,3 @@ msgstr "Tālināt"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ml-IN.po b/locales/ml-IN.poindex cb45eca5a..0eb8540fb 100644--- a/locales/ml-IN.po+++ b/locales/ml-IN.po@@ -3186,6 +3186,10 @@ msgstr "നിങ്ങളുടെ ഡാറ്റ നിങ്ങളുടെmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "നിങ്ങളുടെ ഡാറ്റ സുരക്ഷിതമായി സൂക്ഷിക്കപ്പെടുന്നു, ഒരിക്കലും മൂന്നാം കക്ഷികളുമായി പങ്കിടുന്നില്ല. നിങ്ങളുടെ ഡാറ്റയ്ക്ക് പൂർണ്ണ നിയന്ത്രണം നേടാൻ Reactive Resume നിങ്ങളുടെ സ്വന്തം സെർവറുകളിൽ സെൽഫ്‑ഹോസ്റ്റ് ചെയ്യാനും നിങ്ങൾക്ക് കഴിയും."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "നിങ്ങളുടെ പാസ്വേഡ് വിജയകരമായി റീസെറ്റ് ചെയ്തിട്ടുണ്ട്. ഇനി നിങ്ങൾക്ക് പുതിയ പാസ്വേഡ് ഉപയോഗിച്ച് സൈൻ ഇൻ ചെയ്യാം."@@ -3244,4 +3248,3 @@ msgstr "സൂം ഔട്ട് ചെയ്യുക"#: src/utils/locale.tsmsgid "Zulu"msgstr "സൂളു"-diff --git a/locales/mr-IN.po b/locales/mr-IN.poindex 24de31db1..683058b18 100644--- a/locales/mr-IN.po+++ b/locales/mr-IN.po@@ -3186,6 +3186,10 @@ msgstr "तुमचा डेटा लोकली साठवला जाmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "तुमचा डेटा सुरक्षितपणे साठवला जातो आणि तृतीय पक्षांसोबत कधीही शेअर केला जात नाही. तुम्ही पूर्ण डेटा कंट्रोलसाठी Reactive Resume स्वतःच्या सर्व्हरवरही होस्ट करू शकता."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "तुमचा पासवर्ड यशस्वीरित्या रिसेट केला गेला आहे. तुम्ही आता नवीन पासवर्डने साइन इन करू शकता."@@ -3244,4 +3248,3 @@ msgstr "बाहेर झूम करा"#: src/utils/locale.tsmsgid "Zulu"msgstr "झुलू"-diff --git a/locales/ms-MY.po b/locales/ms-MY.poindex c80f158cc..e44b7e71e 100644--- a/locales/ms-MY.po+++ b/locales/ms-MY.po@@ -3186,6 +3186,10 @@ msgstr "Data anda disimpan secara setempat"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Data anda disimpan dengan selamat dan tidak pernah dikongsi dengan pihak ketiga. Anda juga boleh menghoskan sendiri Reactive Resume pada pelayan anda untuk kawalan penuh ke atas data anda."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Kata laluan anda telah berjaya ditetapkan semula. Anda kini boleh log masuk dengan kata laluan baharu anda."@@ -3244,4 +3248,3 @@ msgstr "Zum keluar"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ne-NP.po b/locales/ne-NP.poindex bb54efc58..d0773d221 100644--- a/locales/ne-NP.po+++ b/locales/ne-NP.po@@ -3186,6 +3186,10 @@ msgstr "तपाईंको डाटा स्थानीय रूपमाmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "तपाईंको डाटा सुरक्षित रूपमा भण्डारण गरिएको छ र तेस्रो पक्षसँग कहिल्यै सेयर गरिँदैन। तपाईंले चाहनु भएमा आफ्नै सर्भरमा Reactive Resume लाई self-host गरेर आफ्नो डाटामा पूर्ण नियन्त्रण राख्न सक्नुहुन्छ।"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "तपाईंको पासवर्ड सफलतापूर्वक रिसेट भयो। अब नयाँ पासवर्ड प्रयोग गरेर साइन इन गर्न सक्नुहुन्छ।"@@ -3244,4 +3248,3 @@ msgstr "जूम आउट"#: src/utils/locale.tsmsgid "Zulu"msgstr "जुलु"-diff --git a/locales/nl-NL.po b/locales/nl-NL.poindex 1ad3453f0..882f81dae 100644--- a/locales/nl-NL.po+++ b/locales/nl-NL.po@@ -3186,6 +3186,10 @@ msgstr "Uw gegevens worden lokaal opgeslagen"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Uw gegevens worden veilig opgeslagen en nooit met derden gedeeld. U kunt Reactive Resume ook zelf op uw eigen servers hosten voor volledige controle over uw gegevens."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Uw wachtwoord is succesvol gereset. U kunt nu met uw nieuwe wachtwoord inloggen."@@ -3244,4 +3248,3 @@ msgstr "Uitzoomen"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/no-NO.po b/locales/no-NO.poindex 4a316da3a..314c7540a 100644--- a/locales/no-NO.po+++ b/locales/no-NO.po@@ -3186,6 +3186,10 @@ msgstr "Dataene dine lagres lokalt"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Dataene dine lagres sikkert og deles aldri med tredjeparter. Du kan også selv-hoste Reactive Resume på egne servere for full kontroll over dataene dine."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Passordet ditt er tilbakestilt. Du kan nå logge inn med det nye passordet ditt."@@ -3244,4 +3248,3 @@ msgstr "Zoom ut"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/or-IN.po b/locales/or-IN.poindex b540319e2..dea2101cb 100644--- a/locales/or-IN.po+++ b/locales/or-IN.po@@ -3186,6 +3186,10 @@ msgstr "ଆପଣଙ୍କ ତଥ୍ୟ ସ୍ଥାନୀୟ ଭାବରେmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "ଆପଣଙ୍କ ତଥ୍ୟ ସୁରକ୍ଷିତ ଭାବରେ ସଞ୍ଚୟ ହୋଇଛି ଏବଂ କେବେ ମଧ୍ୟ ତୃତୀୟ ପକ୍ଷ ସହ ସେୟାର ହୋଇନାହିଁ। ଆପଣ ଆପଣଙ୍କ ତଥ୍ୟ ଉପରେ ପୂର୍ଣ୍ଣ ନିୟନ୍ତ୍ରଣ ପାଇଁ ଆପଣଙ୍କ ନିଜ ସର୍ଭରଗୁଡିକରେ Reactive Resume କୁ ସ୍ୱୟଂ‑ହୋଷ୍ଟ କରିପାରିବେ।"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "ଆପଣଙ୍କ ପାସୱାର୍ଡ ସଫଳତାର ସହ ପୁନଃ ସେଟ୍ କରାଯାଇଛି। ଆପଣ ଏବେ ନୂତନ ପାସୱାର୍ଡ ସହ ସାଇନ୍ ଇନ୍ କରିପାରିବେ।"@@ -3244,4 +3248,3 @@ msgstr "ଜୁମ୍ ଆଉଟ୍ କରନ୍ତୁ"#: src/utils/locale.tsmsgid "Zulu"msgstr "ଜୁଲୁ"-diff --git a/locales/pl-PL.po b/locales/pl-PL.poindex 3ebd1df03..8a6d5eac0 100644--- a/locales/pl-PL.po+++ b/locales/pl-PL.po@@ -3186,6 +3186,10 @@ msgstr "Twoje dane są przechowywane lokalnie"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Twoje dane są przechowywane w bezpieczny sposób i nigdy nie są udostępniane podmiotom trzecim. Możesz też samodzielnie hostować Reactive Resume na własnych serwerach, aby mieć pełną kontrolę nad swoimi danymi."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Twoje hasło zostało pomyślnie zresetowane. Możesz teraz zalogować się przy użyciu nowego hasła."@@ -3244,4 +3248,3 @@ msgstr "Pomniejsz"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/pt-BR.po b/locales/pt-BR.poindex 1fc557f62..574a0d8a0 100644--- a/locales/pt-BR.po+++ b/locales/pt-BR.po@@ -3186,6 +3186,10 @@ msgstr "Seus dados são armazenados localmente"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Seus dados são armazenados com segurança e nunca são compartilhados com terceiros. Você também pode auto-hospedar o Reactive Resume em seus próprios servidores para ter controle total sobre seus dados."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Sua senha foi redefinida com sucesso. Agora você pode entrar com sua nova senha."@@ -3244,4 +3248,3 @@ msgstr "Diminuir zoom"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/pt-PT.po b/locales/pt-PT.poindex b691f9185..bcb1edeeb 100644--- a/locales/pt-PT.po+++ b/locales/pt-PT.po@@ -3186,6 +3186,10 @@ msgstr "Os seus dados são armazenados localmente"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Os seus dados são armazenados em segurança e nunca são partilhados com terceiros. Também pode auto-hospedar o Reactive Resume nos seus próprios servidores para ter controlo total sobre os seus dados."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "A sua senha foi reposta com sucesso. Já pode iniciar sessão com a sua nova senha."@@ -3244,4 +3248,3 @@ msgstr "Afastar"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ro-RO.po b/locales/ro-RO.poindex 90fd36e8b..ced7b40fd 100644--- a/locales/ro-RO.po+++ b/locales/ro-RO.po@@ -3186,6 +3186,10 @@ msgstr "Datele dvs. sunt stocate local"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Datele dvs. sunt stocate în siguranță și nu sunt niciodată partajate cu terți. De asemenea, puteți auto-găzdui Reactive Resume pe propriile servere pentru control complet asupra datelor."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Parola a fost resetată cu succes. Vă puteți autentifica acum cu noua parolă."@@ -3244,4 +3248,3 @@ msgstr "Micșorează"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ru-RU.po b/locales/ru-RU.poindex f2e1fdd49..76a64c089 100644--- a/locales/ru-RU.po+++ b/locales/ru-RU.po@@ -3186,6 +3186,10 @@ msgstr "Ваши данные хранятся локально"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Ваши данные надежно хранятся и никогда не передаются третьим лицам. Вы также можете развернуть Reactive Resume на своих серверах, чтобы полностью контролировать свои данные."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ваш пароль был успешно сброшен. Теперь вы можете войти с новым паролем."@@ -3244,4 +3248,3 @@ msgstr "Уменьшить"#: src/utils/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/locales/sk-SK.po b/locales/sk-SK.poindex 092a49420..d4892a22c 100644--- a/locales/sk-SK.po+++ b/locales/sk-SK.po@@ -3186,6 +3186,10 @@ msgstr "Tvoje dáta sú uložené lokálne"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Tvoje dáta sú bezpečne uložené a nikdy sa nezdieľajú s tretími stranami. Reactive Resume si môžeš tiež hostovať na vlastných serveroch a mať nad dátami úplnú kontrolu."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Tvoje heslo bolo úspešne obnovené. Teraz sa môžeš prihlásiť s novým heslom."@@ -3244,4 +3248,3 @@ msgstr "Oddialiť"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/sl-SI.po b/locales/sl-SI.poindex a3e4b0f17..6e0bbbef7 100644--- a/locales/sl-SI.po+++ b/locales/sl-SI.po@@ -3186,6 +3186,10 @@ msgstr "Vaši podatki so shranjeni lokalno"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Vaši podatki so varno shranjeni in se nikoli ne delijo s tretjimi osebami. Reactive Življenjepis lahko tudi gostite sami na svojih strežnikih za popoln nadzor nad svojimi podatki."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Vaše geslo je bilo uspešno ponastavljeno. Zdaj se lahko prijavite z novim geslom."@@ -3244,4 +3248,3 @@ msgstr "Oddalji"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zuluščina"-diff --git a/locales/sq-AL.po b/locales/sq-AL.poindex d537c33a8..2c75ea805 100644--- a/locales/sq-AL.po+++ b/locales/sq-AL.po@@ -3186,6 +3186,10 @@ msgstr "Të dhënat tuaja ruhen lokalisht"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Të dhënat tuaja ruhen në mënyrë të sigurt dhe nuk ndahen kurrë me palë të treta. Ju gjithashtu mund ta self-host-oni Reactive Resume në serverët tuaj për kontroll të plotë mbi të dhënat tuaja."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Fjalëkalimi juaj u rivendos me sukses. Tani mund të hyni me fjalëkalimin tuaj të ri."@@ -3244,4 +3248,3 @@ msgstr "Zvogëlo"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/sr-SP.po b/locales/sr-SP.poindex 77468f3e1..98ffb87d0 100644--- a/locales/sr-SP.po+++ b/locales/sr-SP.po@@ -3186,6 +3186,10 @@ msgstr "Ваши подаци се чувају локално"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Ваши подаци се чувају безбедно и никада се не деле са трећим странама. Такође можете самостално хостовати Реактивни Резиме на сопственим серверима за потпуну контролу над подацима."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ваша лозинка је успешно ресетована. Сада можете да се пријавите новом лозинком."@@ -3244,4 +3248,3 @@ msgstr "Умањи"#: src/utils/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/locales/sv-SE.po b/locales/sv-SE.poindex e75ccfe17..c47112507 100644--- a/locales/sv-SE.po+++ b/locales/sv-SE.po@@ -3186,6 +3186,10 @@ msgstr "Dina data lagras lokalt"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Dina data lagras säkert och delas aldrig med tredje part. Du kan också själv hosta Reactive Resume på dina egna servrar för full kontroll över dina data."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ditt lösenord har återställts. Du kan nu logga in med ditt nya lösenord."@@ -3244,4 +3248,3 @@ msgstr "Zooma ut"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/ta-IN.po b/locales/ta-IN.poindex 664b2082c..8dc5b82ba 100644--- a/locales/ta-IN.po+++ b/locales/ta-IN.po@@ -3186,6 +3186,10 @@ msgstr "உங்கள் தரவு உங்கள் உலாவியிmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "உங்கள் தரவு பாதுகாப்பாக சேமிக்கப்படுகிறது மற்றும் மூன்றாம் தரப்புகளுடன் ஒருபோதும் பகிரப்படாது. உங்கள் தரவு மீது முழு கட்டுப்பாட்டிற்காக Reactive Resume-ஐ உங்கள் சொந்த சேவையகங்களில் தானே ஹோஸ்ட் செய்யவும் முடியும்."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "உங்கள் கடவுச்சொல் வெற்றிகரமாக மீட்டமைக்கப்பட்டுள்ளது. இப்போது உங்கள் புதிய கடவுச்சொல்லைப் பயன்படுத்தி உள்நுழையலாம்."@@ -3244,4 +3248,3 @@ msgstr "சிறிதாக்கு"#: src/utils/locale.tsmsgid "Zulu"msgstr "ஜூலு"-diff --git a/locales/te-IN.po b/locales/te-IN.poindex e37ffa10b..013ed73ee 100644--- a/locales/te-IN.po+++ b/locales/te-IN.po@@ -3186,6 +3186,10 @@ msgstr "మీ డేటా లోకల్గా నిల్వ చేయmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "మీ డేటా భద్రంగా నిల్వ చేయబడుతుంది, మూడవ పక్షాలతో ఎప్పుడూ పంచుకోబడదు. మీ డేటాపై పూర్తి నియంత్రణ కోసం మీరు Reactive Resumeను మీ సొంత సర్వర్లపై హోస్ట్ చేసుకోవచ్చు."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "మీ పాస్వర్డ్ విజయవంతంగా రీసెట్ చేయబడింది. ఇప్పుడు మీ కొత్త పాస్వర్డ్తో సైన్ ఇన్ చేయవచ్చు."@@ -3244,4 +3248,3 @@ msgstr "జూమ్ అవుట్ చేయండి"#: src/utils/locale.tsmsgid "Zulu"msgstr "జులు"-diff --git a/locales/th-TH.po b/locales/th-TH.poindex 233655e18..2ab375113 100644--- a/locales/th-TH.po+++ b/locales/th-TH.po@@ -3186,6 +3186,10 @@ msgstr "ข้อมูลของคุณถูกจัดเก็บไวmsgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "ข้อมูลของคุณถูกจัดเก็บไว้อย่างปลอดภัยและจะไม่ถูกแชร์กับบุคคลที่สาม คุณยังสามารถโฮสต์ Reactive Resume ด้วยตัวเองบนเซิร์ฟเวอร์ของคุณเพื่อควบคุมข้อมูลได้อย่างสมบูรณ์."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "รหัสผ่านของคุณถูกรีเซ็ตเรียบร้อยแล้ว ตอนนี้คุณสามารถเข้าสู่ระบบด้วยรหัสผ่านใหม่ของคุณได้."@@ -3244,4 +3248,3 @@ msgstr "ซูมออก"#: src/utils/locale.tsmsgid "Zulu"msgstr "ซูลู"-diff --git a/locales/tr-TR.po b/locales/tr-TR.poindex 30c5eba97..31cefaeb6 100644--- a/locales/tr-TR.po+++ b/locales/tr-TR.po@@ -3186,6 +3186,10 @@ msgstr "Verileriniz yerel olarak depolanıyor"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Verileriniz güvenli bir şekilde saklanır ve asla üçüncü partilerle paylaşılmaz. Kendi sunucularınızda Reactive Resume'u barındırarak verileriniz üzerinde tam kontrol sahibi olabilirsiniz."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Şifreniz başarıyla sıfırlandı. Artık yeni şifrenizle giriş yapabilirsiniz."@@ -3244,4 +3248,3 @@ msgstr "Uzaklaştır"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/uk-UA.po b/locales/uk-UA.poindex 1feec686c..0a4f7a80a 100644--- a/locales/uk-UA.po+++ b/locales/uk-UA.po@@ -3186,6 +3186,10 @@ msgstr "Ваші дані зберігаються локально"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Ваші дані зберігаються безпечно і ніколи не передаються третім особам. Ви також можете самостійно розгорнути Reactive Resume на власних серверах для повного контролю над своїми даними."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Ваш пароль було успішно скинуто. Тепер ви можете увійти з новим паролем."@@ -3244,4 +3248,3 @@ msgstr "Зменшити"#: src/utils/locale.tsmsgid "Zulu"msgstr "Зулу"-diff --git a/locales/uz-UZ.po b/locales/uz-UZ.poindex 8ce107c35..5164c254d 100644--- a/locales/uz-UZ.po+++ b/locales/uz-UZ.po@@ -3186,6 +3186,10 @@ msgstr "Maʼlumotlaringiz lokal tarzda saqlanadi"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Maʼlumotlaringiz xavfsiz saqlanadi va uchinchi tomonlarga hech qachon ulashilmaydi. Shuningdek, rezyume qurilmasini o‘z serverlaringizda mustaqil joylashtirishingiz va maʼlumotlaringiz ustidan to‘liq nazorat qilishingiz mumkin."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Parolingiz muvaffaqiyatli tiklandi. Endi yangi parolingiz bilan tizimga kirishingiz mumkin."@@ -3244,4 +3248,3 @@ msgstr "Kichraytirish"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/vi-VN.po b/locales/vi-VN.poindex 08676a5a8..6b087be9f 100644--- a/locales/vi-VN.po+++ b/locales/vi-VN.po@@ -3186,6 +3186,10 @@ msgstr "Dữ liệu của bạn được lưu trữ cục bộ"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "Dữ liệu của bạn được lưu trữ an toàn và không bao giờ chia sẻ với bên thứ ba. Bạn cũng có thể tự host Reactive Resume trên máy chủ của riêng mình để kiểm soát hoàn toàn dữ liệu của mình."+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "Mật khẩu của bạn đã được đặt lại thành công. Bây giờ bạn có thể đăng nhập bằng mật khẩu mới."@@ -3244,4 +3248,3 @@ msgstr "Thu nhỏ"#: src/utils/locale.tsmsgid "Zulu"msgstr "Zulu"-diff --git a/locales/zh-CN.po b/locales/zh-CN.poindex baf9d2183..b622dd6ff 100644--- a/locales/zh-CN.po+++ b/locales/zh-CN.po@@ -3186,6 +3186,10 @@ msgstr "你的数据将存储在本地"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "你的数据会被安全存储,且绝不会与第三方共享。你也可以在自己的服务器上自托管 Reactive Resume,以完全掌控你的数据。"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "你的密码已成功重置。你现在可以使用新密码登录。"@@ -3244,4 +3248,3 @@ msgstr "缩小"#: src/utils/locale.tsmsgid "Zulu"msgstr "祖鲁语"-diff --git a/locales/zh-TW.po b/locales/zh-TW.poindex 0b779ae8d..2afc83d4a 100644--- a/locales/zh-TW.po+++ b/locales/zh-TW.po@@ -3186,6 +3186,10 @@ msgstr "您的資料將儲存在本機裝置中"msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr "您的資料會被安全保存,且絕不會分享給第三方。您也可以在自有伺服器上自行託管 Reactive Resume,完全掌控自己的資料。"+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr "您的密碼已成功重設。您現在可以使用新密碼登入。"@@ -3244,4 +3248,3 @@ msgstr "縮小"#: src/utils/locale.tsmsgid "Zulu"msgstr "祖魯語"-diff --git a/locales/zu-ZA.po b/locales/zu-ZA.poindex cdb01a03c..8d7a54f6f 100644--- a/locales/zu-ZA.po+++ b/locales/zu-ZA.po@@ -3181,6 +3181,10 @@ msgstr ""msgid "Your data is stored securely and is never shared with third parties. You can also self-host Reactive Resume on your own servers for complete control over your data."msgstr ""+#: src/components/resume/store/resume.ts+msgid "Your latest changes could not be saved. Please make sure you are connected to the internet and try again."+msgstr ""+#: src/routes/auth/reset-password.tsxmsgid "Your password has been reset successfully. You can now sign in with your new password."msgstr ""diff --git a/migrations/20260401210024_silky_the_fallen/migration.sql b/migrations/20260401210024_silky_the_fallen/migration.sqlnew file mode 100644index 000000000..c58310594--- /dev/null+++ b/migrations/20260401210024_silky_the_fallen/migration.sql@@ -0,0 +1,5 @@+ALTER TABLE "session" ADD COLUMN "impersonated_by" text;--> statement-breakpoint+ALTER TABLE "user" ADD COLUMN "role" text DEFAULT 'user';--> statement-breakpoint+ALTER TABLE "user" ADD COLUMN "banned" boolean DEFAULT false;--> statement-breakpoint+ALTER TABLE "user" ADD COLUMN "ban_reason" text;--> statement-breakpoint+ALTER TABLE "user" ADD COLUMN "ban_expires" timestamp(6) with time zone;\ No newline at end of filediff --git a/migrations/20260401210024_silky_the_fallen/snapshot.json b/migrations/20260401210024_silky_the_fallen/snapshot.jsonnew file mode 100644index 000000000..90e147bde--- /dev/null+++ b/migrations/20260401210024_silky_the_fallen/snapshot.json@@ -0,0 +1,3114 @@+{+ "version": "8",+ "dialect": "postgres",+ "id": "5c375a76-885b-41e3-947e-a6b9fc84725c",+ "prevIds": ["35e0fff4-f296-413c-8ab2-18fc66146d8f"],+ "ddl": [+ {+ "isRlsEnabled": false,+ "name": "account",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "apikey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "jwks",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_access_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_client",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_consent",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "oauth_refresh_token",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "passkey",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "resume_statistics",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "session",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "two_factor",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "user",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "isRlsEnabled": false,+ "name": "verification",+ "entityType": "tables",+ "schema": "public"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "account_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'credential'",+ "generated": null,+ "identity": null,+ "name": "provider_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scope",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "access_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_token_expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "account"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "start",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "prefix",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "key",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "'default'",+ "generated": null,+ "identity": null,+ "name": "config_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_interval",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refill_amount",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_refill_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "true",+ "generated": null,+ "identity": null,+ "name": "enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "rate_limit_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "86400000",+ "generated": null,+ "identity": null,+ "name": "rate_limit_time_window",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "10",+ "generated": null,+ "identity": null,+ "name": "rate_limit_max",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "request_count",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "remaining",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_request",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "permissions",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "apikey"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "private_key",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "jwks"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "refresh_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_secret",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "disabled",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "skip_consent",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "enable_end_session",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "subject_type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "uri",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "icon",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "contacts",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "tos",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "policy",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_version",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "software_statement",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "post_logout_redirect_uris",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token_endpoint_auth_method",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "grant_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "response_types",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "type",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "require_pkce",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "metadata",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "client_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "session_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "reference_id",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "revoked",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "auth_time",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "scopes",+ "entityType": "columns",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "aaguid",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "public_key",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "credential_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "counter",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "device_type",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "backed_up",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "transports",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "passkey"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "slug",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 1,+ "default": "'{}'",+ "generated": null,+ "identity": null,+ "name": "tags",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_public",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "is_locked",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "password",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "jsonb",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "data",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "views",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "integer",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "0",+ "generated": null,+ "identity": null,+ "name": "downloads",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_viewed_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_downloaded_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "resume_id",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "token",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ip_address",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_agent",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "impersonated_by",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "session"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "user_id",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "secret",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "backup_codes",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "image",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "name",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "email",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "email_verified",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "display_username",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "two_factor_enabled",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "last_active_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "'user'",+ "generated": null,+ "identity": null,+ "name": "role",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "boolean",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": "false",+ "generated": null,+ "identity": null,+ "name": "banned",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_reason",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp(6) with time zone",+ "typeSchema": null,+ "notNull": false,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "ban_expires",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "user"+ },+ {+ "type": "uuid",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "id",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "identifier",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "text",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "value",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": null,+ "generated": null,+ "identity": null,+ "name": "expires_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "created_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "type": "timestamp with time zone",+ "typeSchema": null,+ "notNull": true,+ "dimensions": 0,+ "default": "now()",+ "generated": null,+ "identity": null,+ "name": "updated_at",+ "entityType": "columns",+ "schema": "public",+ "table": "verification"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "account_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "key",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_key_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "config_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_config_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "enabled",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "reference_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "apikey_enabled_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_access_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_client_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "client_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_consent_user_id_client_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "oauth_refresh_token_token_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "passkey_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "updated_at",+ "isExpression": false,+ "asc": false,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_user_id_updated_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "is_public",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "slug",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "resume_is_public_slug_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "token",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ },+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_token_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "expires_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "session_expires_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "user_id",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_user_id_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "secret",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "two_factor_secret_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "created_at",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "user_created_at_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "user"+ },+ {+ "nameExplicit": false,+ "columns": [+ {+ "value": "identifier",+ "isExpression": false,+ "asc": true,+ "nullsFirst": false,+ "opclass": null+ }+ ],+ "isUnique": false,+ "where": null,+ "with": "",+ "method": "btree",+ "concurrently": false,+ "name": "verification_identifier_index",+ "entityType": "indexes",+ "schema": "public",+ "table": "verification"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "account_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "account"+ },+ {+ "nameExplicit": false,+ "columns": ["reference_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "apikey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "apikey"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["session_id"],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_access_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["refresh_id"],+ "schemaTo": "public",+ "tableTo": "oauth_refresh_token",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_access_token_refresh_id_oauth_refresh_token_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_access_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_client_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_client"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_consent_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_consent"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "schemaTo": "public",+ "tableTo": "oauth_client",+ "columnsTo": ["client_id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_client_id_oauth_client_client_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["session_id"],+ "schemaTo": "public",+ "tableTo": "session",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "SET NULL",+ "name": "oauth_refresh_token_session_id_session_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "oauth_refresh_token_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "oauth_refresh_token"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "passkey_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "passkey"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "schemaTo": "public",+ "tableTo": "resume",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "resume_statistics_resume_id_resume_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "resume_statistics"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "session_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "session"+ },+ {+ "nameExplicit": false,+ "columns": ["user_id"],+ "schemaTo": "public",+ "tableTo": "user",+ "columnsTo": ["id"],+ "onUpdate": "NO ACTION",+ "onDelete": "CASCADE",+ "name": "two_factor_user_id_user_id_fkey",+ "entityType": "fks",+ "schema": "public",+ "table": "two_factor"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "account_pkey",+ "schema": "public",+ "table": "account",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "apikey_pkey",+ "schema": "public",+ "table": "apikey",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "jwks_pkey",+ "schema": "public",+ "table": "jwks",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_access_token_pkey",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_client_pkey",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_consent_pkey",+ "schema": "public",+ "table": "oauth_consent",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "oauth_refresh_token_pkey",+ "schema": "public",+ "table": "oauth_refresh_token",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "passkey_pkey",+ "schema": "public",+ "table": "passkey",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_pkey",+ "schema": "public",+ "table": "resume",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "resume_statistics_pkey",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "session_pkey",+ "schema": "public",+ "table": "session",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "two_factor_pkey",+ "schema": "public",+ "table": "two_factor",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "user_pkey",+ "schema": "public",+ "table": "user",+ "entityType": "pks"+ },+ {+ "columns": ["id"],+ "nameExplicit": false,+ "name": "verification_pkey",+ "schema": "public",+ "table": "verification",+ "entityType": "pks"+ },+ {+ "nameExplicit": false,+ "columns": ["slug", "user_id"],+ "nullsNotDistinct": false,+ "name": "resume_slug_user_id_unique",+ "entityType": "uniques",+ "schema": "public",+ "table": "resume"+ },+ {+ "nameExplicit": false,+ "columns": ["token"],+ "nullsNotDistinct": false,+ "name": "oauth_access_token_token_key",+ "schema": "public",+ "table": "oauth_access_token",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["client_id"],+ "nullsNotDistinct": false,+ "name": "oauth_client_client_id_key",+ "schema": "public",+ "table": "oauth_client",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["resume_id"],+ "nullsNotDistinct": false,+ "name": "resume_statistics_resume_id_key",+ "schema": "public",+ "table": "resume_statistics",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["token"],+ "nullsNotDistinct": false,+ "name": "session_token_key",+ "schema": "public",+ "table": "session",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["email"],+ "nullsNotDistinct": false,+ "name": "user_email_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["username"],+ "nullsNotDistinct": false,+ "name": "user_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["display_username"],+ "nullsNotDistinct": false,+ "name": "user_display_username_key",+ "schema": "public",+ "table": "user",+ "entityType": "uniques"+ },+ {+ "nameExplicit": false,+ "columns": ["identifier"],+ "nullsNotDistinct": false,+ "name": "verification_identifier_key",+ "schema": "public",+ "table": "verification",+ "entityType": "uniques"+ }+ ],+ "renames": []+}diff --git a/package.json b/package.jsonindex 416d55b6c..5ae16e980 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "reactive-resume",- "version": "5.0.14",+ "version": "5.0.15","description": "Reactive Resume is a free and open-source resume builder that simplifies the process of creating, updating, and sharing your resume.","license": "MIT","author": {@@ -31,13 +31,14 @@"preview": "vp preview","start": "node .output/server/index.mjs","test": "vp test",+ "test:coverage": "vp test --coverage --run","typecheck": "tsgo --noEmit"},"dependencies": {"@ai-sdk/anthropic": "^3.0.64",- "@ai-sdk/google": "^3.0.53",- "@ai-sdk/openai": "^3.0.48",- "@aws-sdk/client-s3": "^3.1019.0",+ "@ai-sdk/google": "^3.0.55",+ "@ai-sdk/openai": "^3.0.49",+ "@aws-sdk/client-s3": "^3.1022.0","@base-ui/react": "^1.3.0","@better-auth/api-key": "^1.5.6","@better-auth/drizzle-adapter": "^1.5.6",@@ -50,7 +51,7 @@"@hookform/resolvers": "^5.2.2","@lingui/core": "^5.9.4","@lingui/react": "^5.9.4",- "@modelcontextprotocol/sdk": "^1.28.0",+ "@modelcontextprotocol/sdk": "^1.29.0","@monaco-editor/react": "4.8.0-rc.3","@orpc/client": "^1.13.13","@orpc/json-schema": "^1.13.13",@@ -62,20 +63,20 @@"@phosphor-icons/web": "^2.1.2","@sindresorhus/slugify": "^3.0.0","@t3-oss/env-core": "^0.13.11",- "@tanstack/react-query": "^5.95.2",- "@tanstack/react-router": "^1.168.8",+ "@tanstack/react-query": "^5.96.1",+ "@tanstack/react-router": "^1.168.10","@tanstack/react-router-ssr-query": "^1.166.10",- "@tanstack/react-start": "^1.167.13",+ "@tanstack/react-start": "^1.167.16","@tanstack/zod-adapter": "^1.166.9",- "@tiptap/extension-highlight": "^3.21.0",- "@tiptap/extension-table": "^3.21.0",- "@tiptap/extension-text-align": "^3.21.0",- "@tiptap/pm": "^3.21.0",- "@tiptap/react": "^3.21.0",- "@tiptap/starter-kit": "^3.21.0",+ "@tiptap/extension-highlight": "^3.22.0",+ "@tiptap/extension-table": "^3.22.0",+ "@tiptap/extension-text-align": "^3.22.0",+ "@tiptap/pm": "^3.22.0",+ "@tiptap/react": "^3.22.0",+ "@tiptap/starter-kit": "^3.22.0","@uiw/color-convert": "^2.9.6","@uiw/react-color-colorful": "^2.9.6",- "ai": "^6.0.141",+ "ai": "^6.0.142","ai-sdk-ollama": "^3.8.2","bcrypt": "^6.0.0","better-auth": "^1.5.6",@@ -106,10 +107,10 @@"react-resizable-panels": "^4.8.0","react-window": "^2.2.7","react-zoom-pan-pinch": "^3.7.0",- "shadcn": "^4.1.1",+ "shadcn": "^4.1.2","sharp": "^0.34.5","sonner": "^2.0.7",- "srvx": "^0.11.13",+ "srvx": "^0.11.14","tailwind-merge": "^3.5.0","tailwindcss": "^4.2.2","ts-pattern": "^5.9.0",@@ -129,6 +130,7 @@"@lingui/vite-plugin": "^5.9.4","@rolldown/plugin-babel": "^0.2.2","@tailwindcss/vite": "^4.2.2",+ "@testing-library/react": "^16.3.2","@types/bcrypt": "^6.0.0","@types/js-cookie": "^3.0.6","@types/node": "^25.5.0",@@ -136,24 +138,24 @@"@types/pg": "^8.20.0","@types/react": "^19.2.14","@types/react-dom": "^19.2.3",- "@typescript/native-preview": "7.0.0-dev.20260329.1",+ "@typescript/native-preview": "7.0.0-dev.20260401.1","@vitejs/plugin-react": "^6.0.1",+ "@vitest/coverage-v8": "^4.1.2","babel-plugin-macros": "^3.1.0","drizzle-kit": "1.0.0-beta.20",+ "happy-dom": "^20.8.9","jose": "^6.2.2",- "jsdom": "^29.0.1",- "knip": "^6.1.0",+ "knip": "^6.2.0","nitro": "3.0.260311-beta","node-addon-api": "^8.7.0","node-gyp": "^12.2.0",- "npm-check-updates": "^19.6.6",- "tsx": "^4.21.0",+ "npm-check-updates": "^20.0.0","vite": "npm:@voidzero-dev/vite-plus-core@latest","vite-plugin-pwa": "^1.2.0","vite-plus": "latest","vitest": "npm:@voidzero-dev/vite-plus-test@latest"},- "packageManager": "[email protected]",+ "packageManager": "[email protected]+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319","pnpm": {"overrides": {"@isaacs/brace-expansion": "^5.0.1",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 282e52f7e..f3b6a111d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -26,29 +26,29 @@ importers:specifier: ^3.0.64version: 3.0.64([email protected])'@ai-sdk/google':- specifier: ^3.0.53- version: 3.0.53([email protected])+ specifier: ^3.0.55+ version: 3.0.55([email protected])'@ai-sdk/openai':- specifier: ^3.0.48- version: 3.0.48([email protected])+ specifier: ^3.0.49+ version: 3.0.49([email protected])'@aws-sdk/client-s3':- specifier: ^3.1019.0- version: 3.1019.0+ specifier: ^3.1022.0+ version: 3.1022.0'@base-ui/react':specifier: ^1.3.0'@better-auth/api-key':specifier: ^1.5.6- version: 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))+ version: 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))'@better-auth/drizzle-adapter':specifier: ^1.5.6version: 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))'@better-auth/infra':specifier: ^0.1.13- version: 0.1.13(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected])))([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected])+ version: 0.1.13(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected])))([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected])'@better-auth/oauth-provider':specifier: ^1.5.6- version: 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected]))+ version: 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected]))'@dnd-kit/core':specifier: ^6.3.1@@ -71,8 +71,8 @@ importers:specifier: ^5.9.4version: 5.9.4(@lingui/[email protected]([email protected])([email protected]))([email protected])([email protected])'@modelcontextprotocol/sdk':- specifier: ^1.28.0- version: 1.28.0([email protected])+ specifier: ^1.29.0+ version: 1.29.0([email protected])'@monaco-editor/react':specifier: 4.8.0-rc.3@@ -81,19 +81,19 @@ importers:version: 1.13.13(@opentelemetry/[email protected])'@orpc/json-schema':specifier: ^1.13.13- version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/openapi':specifier: ^1.13.13- version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/server':specifier: ^1.13.13- version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ version: 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/tanstack-query':specifier: ^1.13.13- version: 1.13.13(@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@tanstack/[email protected])+ version: 1.13.13(@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@tanstack/[email protected])'@orpc/zod':specifier: ^1.13.13- version: 1.13.13(@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])+ version: 1.13.13(@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])'@phosphor-icons/react':specifier: ^2.1.10@@ -107,38 +107,38 @@ importers:specifier: ^0.13.11'@tanstack/react-query':- specifier: ^5.95.2- version: 5.95.2([email protected])+ specifier: ^5.96.1+ version: 5.96.1([email protected])'@tanstack/react-router':- specifier: ^1.168.8+ specifier: ^1.168.10'@tanstack/react-router-ssr-query':specifier: ^1.166.10- version: 1.166.10(@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])+ version: 1.166.10(@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])'@tanstack/react-start':- specifier: ^1.167.13- version: 1.167.13(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])+ specifier: ^1.167.16+ version: 1.167.16(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])'@tanstack/zod-adapter':specifier: ^1.166.9- version: 1.166.9(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ version: 1.166.9(@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected])'@tiptap/extension-highlight':- specifier: ^3.21.0- version: 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))+ specifier: ^3.22.0+ version: 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))'@tiptap/extension-table':- specifier: ^3.21.0+ specifier: ^3.22.0'@tiptap/extension-text-align':- specifier: ^3.21.0- version: 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))+ specifier: ^3.22.0+ version: 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))'@tiptap/pm':- specifier: ^3.21.0- version: 3.21.0+ specifier: ^3.22.0+ version: 3.22.0'@tiptap/react':- specifier: ^3.21.0- version: 3.21.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^3.22.0+ version: 3.22.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@tiptap/starter-kit':- specifier: ^3.21.0- version: 3.21.0+ specifier: ^3.22.0+ version: 3.22.0'@uiw/color-convert':specifier: ^2.9.6version: 2.9.6(@babel/[email protected])@@ -146,17 +146,17 @@ importers:specifier: ^2.9.6ai:- specifier: ^6.0.141- version: 6.0.141([email protected])+ specifier: ^6.0.142+ version: 6.0.142([email protected])ai-sdk-ollama:specifier: ^3.8.2bcrypt:specifier: ^6.0.0version: 6.0.0better-auth:specifier: ^1.5.6- version: 1.5.6(d57c8314811a2c76a791cf28e230a6db)+ version: 1.5.6(9d65c2ad022ab83f20e12e7f626dac52)class-variance-authority:specifier: ^0.7.1version: 0.7.1@@ -239,8 +239,8 @@ importers:specifier: ^3.7.0shadcn:- specifier: ^4.1.1+ specifier: ^4.1.2sharp:specifier: ^0.34.5version: 0.34.5@@ -248,8 +248,8 @@ importers:specifier: ^2.0.7srvx:- specifier: ^0.11.13- version: 0.11.13+ specifier: ^0.11.14+ version: 0.11.14tailwind-merge:specifier: ^3.5.0version: 3.5.0@@ -302,6 +302,9 @@ importers:'@tailwindcss/vite':specifier: ^4.2.2version: 4.2.2(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@testing-library/react':+ specifier: ^16.3.2+ version: 16.3.2(@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@types/bcrypt':specifier: ^6.0.0version: 6.0.0@@ -324,26 +327,29 @@ importers:specifier: ^19.2.3version: 19.2.3(@types/[email protected])'@typescript/native-preview':- specifier: 7.0.0-dev.20260329.1- version: 7.0.0-dev.20260329.1+ specifier: 7.0.0-dev.20260401.1+ version: 7.0.0-dev.20260401.1'@vitejs/plugin-react':specifier: ^6.0.1version: 6.0.1(@rolldown/[email protected](@babel/[email protected])(@babel/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/coverage-v8':+ specifier: ^4.1.2+ version: 4.1.2(@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected]))babel-plugin-macros:specifier: ^3.1.0version: 3.1.0drizzle-kit:specifier: 1.0.0-beta.20version: 1.0.0-beta.20+ happy-dom:+ specifier: ^20.8.9+ version: 20.8.9jose:specifier: ^6.2.2version: 6.2.2- jsdom:- specifier: ^29.0.1- version: 29.0.1(@noble/[email protected])knip:- specifier: ^6.1.0- version: 6.1.0+ specifier: ^6.2.0+ version: 6.2.0nitro:specifier: 3.0.260311-betaversion: 3.0.260311-beta(@azure/[email protected])(@electric-sql/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])@@ -354,11 +360,8 @@ importers:specifier: ^12.2.0version: 12.2.0npm-check-updates:- specifier: ^19.6.6- version: 19.6.6- tsx:- specifier: ^4.21.0- version: 4.21.0+ specifier: ^20.0.0+ version: 20.0.0vite:specifier: npm:@voidzero-dev/vite-plus-core@latestversion: '@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@@ -367,10 +370,10 @@ importers:version: 1.2.0(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected]))([email protected])vite-plus:specifier: latest- version: 0.1.12(@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])+ version: 0.1.12(@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])vitest:specifier: npm:@voidzero-dev/vite-plus-test@latest- version: '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])'+ version: '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])'packages:@@ -380,20 +383,20 @@ packages:peerDependencies:zod: ^3.25.76 || ^4.1.8- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-LvlWujbSdEkTBXBLFtF7GS6riXdHhH0O+DpDrCaNQvXeHmSF2jKsOg7JWXiCgygAHM5cWFAO3JYmZp83DjiuBQ==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-RnUw6UNvkaw9MEaJU9cIjA+WBP+ZR5+M/9nfbfJHcGKtTbcWXijJuYKx9nYRnm+qU+iiakb0XvQA/vvho6lTsw==}engines: {node: '>=18'}peerDependencies:zod: ^3.25.76 || ^4.1.8- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-uz8tIlkDgQJG9Js2Wh9JHzd4kI9+hYJqf9XXJLx60vyN5mRIqhr49iwR5zGP5Gl8odp2PeR3Gh2k+5bh3Z1HHw==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-lIID7kDdeqzSR/eg+LrEFJGoe/mIwuW4eBdjS84Bi0cIY4cmGwSsvwYILSdiad0197Ha+DUbCxOUuSOnORUx7g==}engines: {node: '>=18'}peerDependencies:zod: ^3.25.76 || ^4.1.8- '@ai-sdk/[email protected]':- resolution: {integrity: sha512-ALmj/53EXpcRqMbGpPJPP4UOSWw0q4VGpnDo7YctvsynjkrKDmoneDG/1a7VQnSPYHnJp6tTRMf5ZdxZ5whulg==}+ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-U2f0pCyNn/jQH3wjgxr8o9VvCkuDFTtXbIhbFFtgXqCzMbed6rBnvzQcAMEK0/Pa44byL9zfcvCOFOflvkRA8w==}engines: {node: '>=18'}peerDependencies:zod: ^3.25.76 || ^4.1.8@@ -452,48 +455,48 @@ packages:'@aws-crypto/[email protected]':resolution: {integrity: sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-0pb9x7PPhS4oEi4c0rL3vzQQoXA4cWKtPuGga/UfVYLZ68yrqdq0NDKg0fr55qzdhNvWFCpmGx73g9Iyy03kkA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-PhdIW0LxjzcMlBiCldRefnyZk84wtYGnEV0sNGOD55DZTvZsibG2XHvQiL1aFliKugfAhuIpNmFkctI2n2I3Dg==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-TNrx7eq6nKNOO62HWPqoBqPLXEkW6nLZQGwjL6lq1jZtigWYbK1NbCnT7mKDzbLMHZfuOECUt3n6CzxjUW9HWQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-A/E6n2W42ruU+sfWk+mMUOyVXbsSgGrY3MJ9/0Az5qUdG67y8I6HYzzoAa+e/lzxxl1uCYmEL6BTMi9ZiZnplQ==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':resolution: {integrity: sha512-2VbTstbjKdT+yKi8m7b3a9CiVac+pL/IY2PHJwsaGkkHmuuqkJZIErPck1h6P3T9ghQMLSdMPyW6Qp7Di5swFg==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-EamaclJcCEaPHp6wiVknNMM2RlsPMjAHSsYSFLNENBM8Wz92QPc6cOn3dif6vPDQt0Oo4IEghDy3NMDCzY/IvA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-FWg8uFmT6vQM7VuzELzwVo5bzExGaKHdubn0StjgrcU5FvuLExUe+k06kn/40uKv59rYzhez8eFNM4yYE/Yb/w==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-qPymamdPcLp6ugoVocG1y5r69ScNiRzb0hogX25/ij+Wz7c7WnsgjLTaz7+eB5BfRxeyUwuw5hgULMuwOGOpcw==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-CY4ppZ+qHYqcXqBVi//sdHST1QK3KzOEiLtpLsc9W2k2vfZPKExGaQIsOwcyvjpjUEolotitmd3mUNY56IwDEA==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-xKxEAMuP6GYx2y5GET+d3aGEroax3AgGfwBE65EQAUe090lzyJ/RzxPX9s8v7Z6qAk0XwfQl+LrmH05X7YvTeg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-wXYvq3+uQcZV7k+bE4yDXCTBdzWTU9x/nMiKBfzInmv6yYK1veMK0AKvRfRBd72nGWYKcL6AxwiPg9z/pYlgpw==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-EFcM8RM3TUxnZOfMJo++3PnyxFu1fL/huzmn3Vh+8IWRgqZawUD3cRwwOr+/4bE9DpyHaLOWFAjY0lfK5X9ZkQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-ZSTfO6jqUTCysbdBPtEX5OUR//3rbD0lN7jO3sQeS2Gjr/Y+DT6SbIJ0oT2cemNw3UzKu97sNONd1CwNMthuZQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-jXpxSolfFnPVj6GCTtx3xIdWNoDR7hYC/0SbetGZxOC9UnNmipHeX1k6spVstf7eWJrMhXNQEgXC0pD1r5tXIg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-clSzDcvndpFJAggLDnDb36sPdlZYyEs5Zm6zgZjjUhwsJgSWiWKwFIXUVBcbruidNyBdbpOv2tNDL9sX8y3/0g==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-IL/TFW59++b7MpHserjUblGrdP5UXy5Ekqqx1XQkERXBFJcZr74I7VaSrQT5dxdRMU16xGK4L0RQ5fQG1pMgnA==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-Q2k/XLrFXhEztPHqj4SLCNID3hEPdlhh1CDLBpNnM+1L8fq7P+yON9/9M1IGN/dA5W45v44ylERfXtDAlmMNmw==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-c6ghvRb6gTlMznWhGxn/bpVCcp0HRaz4DobGVD9kI4vwHq186nU2xN/S7QGkm0lo0H2jQU8+dgpUFLxfTcwCOg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-IoUlmKMLEITFn1SiCTjPfR6KrE799FBo5baWyk/5Ppar2yXZoUdaRqZzJzK6TcJxx450M8m8DbpddRVYlp5R/A==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-cXcS3+XD3iwhoXkM44AmxjmbcKueoLCINr1e+IceMmCySda5ysNIfiGBGe9qn5EMiQ9Jd7pP0AGFtcd6OV3Lvg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-d+6h0SD8GGERzKe27v5rOzNGKOl0D+l0bWJdqrxH8WSQzHzjsQFIAPgIeOTUwBHVsKKwtSxc91K/SWax6XgswQ==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':@@ -504,8 +507,8 @@ packages:resolution: {integrity: sha512-5DTBTiotEES1e2jOHAq//zyzCjeMB78lEHd35u15qnrid4Nxm7diqIf9fQQ3Ov0ChH1V3Vvt13thOnrACmfGVQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-SPSvF0G1t8m8CcB0L+ClNFszzQOvXaxmRj25oRWDf6aU+TuN2PXPFAJ9A6lt1IvX4oGAqqbTdMPTYs/SSHUYYQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-YckB8k1ejbyCg/g36gUMFLNzE4W5cERIa4MtsdO+wpTmJEP0+TB7okWIt7d8TDOvnb7SwvxJ21E4TGOBxFpSWQ==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':@@ -524,32 +527,32 @@ packages:resolution: {integrity: sha512-/Wt5+CT8dpTFQxEJ9iGy/UGrXr7p2wlIOEHvIr/YcHYByzoLjrqkYqXdJjd9UIgWjv7eqV2HnFJen93UTuwfTQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-5q7UGSTtt7/KF0Os8wj2VZtlLxeWJVb0e2eDrDJlWot2EIxUNKDDMPFq/FowUqrwZ40rO2bu6BypxaKNvQhI+g==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-gomO6DZwx+1D/9mbCpcqO5tPBqYBK7DtdgjTIjZ4yvfh/S7ETwAPS0XbJgP2JD8Ycr5CwVrEkV1sFtu3ShXeOw==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':resolution: {integrity: sha512-wqlK0yO/TxEC2UsY9wIlqeeutF6jjLe0f96Pbm40XscTo57nImUk9lBcw0dPgsm0sppFtAkSlDrfpK+pC30Wqw==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-AilFIh4rI/2hKyyGN6XrB0yN96W2o7e7wyrPWCM6QjZM1mcC/pVkW3IWWRvuBWMpVP8Fg+rMpbzeLQ6dTM4gig==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-cfWZFlVh7Va9lRay4PN2A9ARFzaBYcA097InT5M2CdRS05ECF5yaz86jET8Wsl2WcyKYEvVr/QNmKtYtafUHtQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-L7Qzoj/qQU1cL5GnYLQP5LbI+wlLCLoINvcykR3htKcQ4tzrPf2DOs72x933BM7oArYj1SKrkb2lGlsJHIic3g==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-c7ZSIXrESxHKx2Mcopgd8AlzZgoXMr20fkx5ViPWPOLBvmyhw9VwJx/Govg8Ef/IhEon5R9l53Z8fdYSEmp6VA==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':resolution: {integrity: sha512-1dq9ToC6e070QvnVhhbAs3bb5r6cQ10gTVc6cyRV5uvQe7P138TV2uG2i6+Yok4bAkVAcx5AqkTEBUvWEtBlsQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-4nZSrBr1NO+48HCM/6BRU8mnRjuHZjcpziCvLXZk5QVftwWz5Mxqbhwdz4xf7WW88buaTB8uRO2MHklSX1m0vg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-Ukw2RpqvaL96CjfH/FgfBmy/ZosHBqoHBCFsN61qGg99F33vpntIVii8aNeh65XuOja73arSduskoa4OJea9RQ==}engines: {node: '>=20.0.0'}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-OF+2RfRmUKyjzrRWlDcyju3RBsuqcrYDQ8TwrJg8efcOotMzuZN4U9mpVTIdATpmEc4lWNZBMSjPzrGm6JPnAQ==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-TKY6h9spUk3OLs5v1oAgW9mAeBE3LAGNBwJokLy96wwmd4W2v/tYlXseProyed9ValDj2u1jK/4Rg1T+1NXyJA==}engines: {node: '>=20.0.0'}'@aws-sdk/[email protected]':@@ -571,8 +574,8 @@ packages:'@aws-sdk/[email protected]':resolution: {integrity: sha512-B3KGXJviV2u6Cdw2SDY2aDhoJkVfY/Q/Trwk2CMSkikE1Oi6gRzxhvhIfiRpHfmIsAhV4EA54TVEX8K6CbHbkA==}- '@aws-sdk/[email protected]':- resolution: {integrity: sha512-8phW0TS8ntENJgDcFewYT/Q8dOmarpvSxEjATu2GUBAutiHr++oEGCiBUwxslCMNvwW2cAPZNT53S/ym8zm/gg==}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-vNSB/DYaPOyujVZBg/zUznH9QC142MaTHVmaFlF7uzzfg3CgT9f/l4C0Yi+vU/tbBhxVcXVB90Oohk5+o+ZbWw==}engines: {node: '>=20.0.0'}peerDependencies:aws-crt: '>=1.0.0'@@ -1203,6 +1206,10 @@ packages:'@types/react':optional: true+ '@bcoe/[email protected]':+ resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}+ engines: {node: '>=18'}+'@better-auth/[email protected]':resolution: {integrity: sha512-jr3m4/caFxn9BuY9pGDJ4B1HP1Qoqmyd7heBHm4KUFel+a9Whe/euROgZ/L+o7mbmUdZtreneaU15dpn0tJZ5g==}peerDependencies:@@ -2074,8 +2081,8 @@ packages:'@messageformat/[email protected]':resolution: {integrity: sha512-3p0YRGCcTUCYvBKLIxtDDyrJ0YijGIwrTRu1DT8gIviIDZru8H23+FkY6MJBzM1n9n20CiM4VeDYuBsrrwnLjg==}- '@modelcontextprotocol/[email protected]':- resolution: {integrity: sha512-gmloF+i+flI8ouQK7MWW4mOwuMh4RePBuPFAEPC6+pdqyWOUMDOixb6qZ69owLJpz6XmyllCouc4t8YWO+E2Nw==}+ '@modelcontextprotocol/[email protected]':+ resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==}engines: {node: '>=18'}peerDependencies:'@cfworker/json-schema': ^4.1.1@@ -3227,10 +3234,6 @@ packages:resolution: {integrity: sha512-gVaaGtKYMYAMmI8buULVH3A2TXVJ98QiwGwI7ddrWGuGidGC2uRt4FHs22+8iROJ0QTzju9CuMjlVsrvpqsdhA==}engines: {node: '>=20'}- '@smithy/[email protected]':- resolution: {integrity: sha512-xolrFw6b+2iYGl6EcOL7IJY71vvyZ0DJ3mcKtpykqPe2uscwtzDZJa1uVQXyP7w9Dd+kGwYnPbMsJrGISKiY/Q==}- engines: {node: '>=18.0.0'}-'@smithy/[email protected]':resolution: {integrity: sha512-jA5k5Udn7Y5717L86h4EIv06wIr3xn8GM1qHRi/Nf31annXcXHJjBKvgztnbn2TxH3xWrPBfgwHsOwZf0UmQWw==}engines: {node: '>=18.0.0'}@@ -3243,8 +3246,8 @@ packages:resolution: {integrity: sha512-iIzMC5NmOUP6WL6o8iPBjFhUhBZ9pPjpUpQYWMUFQqKyXXzOftbfK8zcQCz/jFV1Psmf05BK5ypx4K2r4Tnwdg==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-o9VycsYNtgC+Dy3I0yrwCqv9CWicDnke0L7EVOrZtJpjb2t0EjaEofmMrYc0T1Kn3yk32zm6cspxF9u9Bj7e5w==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-J+2TT9D6oGsUVXVEMvz8h2EmdVnkBiy2auCie4aSJMvKlzUtO5hqjEzXhoCUkIMo7gAYjbQcN0g/MMSXEhDs1Q==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3307,16 +3310,16 @@ packages:resolution: {integrity: sha512-YE58Yz+cvFInWI/wOTrB+DbvUVz/pLn5mC5MvOV4fdRUc6qGwygyngcucRQjAhiCEbmfLOXX0gntSIcgMvAjmA==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-T3TFfUgXQlpcg+UdzcAISdZpj4Z+XECZ/cefgA6wLBd6V4lRi0svN2hBouN/be9dXQ31X4sLWz3fAQDf+nt6BA==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-p1gfYpi91CHcs5cBq982UlGlDrxoYUX6XdHSo91cQ2KFuz6QloHosO7Jc60pJiVmkWrKOV8kFYlGFFbQ2WUKKQ==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-Y1Rav7m5CFRPQyM4CI0koD/bXjyjJu3EQxZZhtLGD88WIrBrQ7kqXM96ncd6rYnojwOo/u9MXu57JrEvu/nLrA==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-SpvWNNOPOrKQGUqZbEPO+es+FRXMWvIyzUKUOYdDgdlA6BdZj/R58p4umoQ76c2oJC44PiM7mKizyyex1IJzow==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-ExYhcltZSli0pgAKOpQQe1DLFBLryeZ22605y/YS+mQpdNWekum9Ujb/jMKfJKgjtz1AZldtwA/wCYuKJgjjlg==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-beqfV+RZ9RSv+sQqor3xroUUYgRFCGRw6niGstPG8zO9LgTl0B0MCucxjmrH/2WwksQN7UUgI7KNANoZv+KALA==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3327,8 +3330,8 @@ packages:resolution: {integrity: sha512-tr2oKX2xMcO+rBOjobSwVAkV05SIfUKz8iI53rzxEmgW3GOOPOv0UioSDk+J8OpRQnpnhsO3Af6IEBabQBVmiw==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-Rnq9vQWiR1+/I6NZZMNzJHV6pZYyEHt2ZnuV3MG8z2NNenC4i/8Kzttz7CjZiHSmsN5frhXhg17z3Zqjjhmz1A==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-ejjxdAXjkPIs9lyYyVutOGNOraqUE9v/NjGMKwwFrfOM354wfSD8lmlj8hVwUzQmlLLF4+udhfCX9Exnbmvfzw==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3359,8 +3362,8 @@ packages:resolution: {integrity: sha512-B/FBwO3MVOL00DaRSXfXfa/TRXRheagt/q5A2NM13u7q+sHS59EOVGQNfG7DkmVtdQm5m3vOosoKAXSqn/OEgw==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-q3gqnwml60G44FECaEEsdQMplYhDMZYCtYhMCzadCnRnnHIobZJjegmdoUo6ieLQlPUzvrMdIJUpx6DoPmzANQ==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-aJaAX7vHe5i66smoSSID7t4rKY08PbD8EBU7DOloixvhOozfYWdcSYE4l6/tjkZ0vBZhGjheWzB2mh31sLgCMA==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3395,12 +3398,12 @@ packages:resolution: {integrity: sha512-dWU03V3XUprJwaUIFVv4iOnS1FC9HnMHDfUrlNDSh4315v0cWyaIErP8KiqGVbf5z+JupoVpNM7ZB3jFiTejvQ==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-Qd/0wCKMaXxev/z00TvNzGCH2jlKKKxXP1aDxB6oKwSQthe3Og2dMhSayGCnsma1bK/kQX1+X7SMP99t6FgiiQ==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-eZg6XzaCbVr2S5cAErU5eGBDaOVTuTo1I65i4tQcHENRcZ8rMWhQy1DaIYUSLyZjsfXvmCqZrstSMYyGFocvHA==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-qSRbYp1EQ7th+sPFuVcVO05AE0QH635hycdEXlpzIahqHHf2Fyd/Zl+8v0XYMJ3cgDVPa0lkMefU7oNUjAP+DQ==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-FqOKTlqSaoV3nzO55pMs5NBnZX8EhoI0DGmn9kbYeXWppgHD6dchyuj2HLqp4INJDJbSrj6OFYJkAh/WhSzZPg==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3415,12 +3418,12 @@ packages:resolution: {integrity: sha512-Er805uFUOvgc0l8nv0e0su0VFISoxhJ/AwOn3gL2NWNY2LUEldP5WtVcRYSQBcjg0y9NfG8JYrCJaYDpupBHJQ==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-1zopLDUEOwumjcHdJ1mwBHddubYF8GMQvstVCLC54Y46rqoHwlIU+8ZzUeaBcD+WCJHyDGSeZ2ml9YSe9aqcoQ==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-qQQsIvL0MGIbUjeSrg0/VlQ3jGNKyM3/2iU3FPNgy01z+Sp4OvcaxbgIoFOTvB61ZoohtutuOvOcgmhbD0katQ==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-4yXLm5n/B5SRBR2p8cZ90Sbv4zL4NKsgxdzCzp/83cXw2KxLEumt5p+GAVyRNZgQOSrzXn9ARpO0lUe8XSlSDw==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-KzSg+7KKywLnkoKejRtIBXDmwBfjGvg1U1i/etkC7XSWUyFCoLno1IohV2c74IzQqdhX5y3uE44r/8/wuK+A7Q==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3435,8 +3438,8 @@ packages:resolution: {integrity: sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==}engines: {node: '>=18.0.0'}- '@smithy/[email protected]':- resolution: {integrity: sha512-2zdZ9DTHngRtcYxJK1GUDxruNr53kv5W2Lupe0LMU+Imr6ohQg8M2T14MNkj1Y0wS3FFwpgpGQyvuaMF7CiTmQ==}+ '@smithy/[email protected]':+ resolution: {integrity: sha512-2zqq5o/oizvMaFUlNiTyZ7dbgYv1a893aGut2uaxtbzTx/VYYnRxWzDHuD/ftgcw94ffenua+ZNLrbqwUYE+Bg==}engines: {node: '>=18.0.0'}'@smithy/[email protected]':@@ -3567,11 +3570,11 @@ packages:resolution: {integrity: sha512-NaOGLRrddszbQj9upGat6HG/4TKvXLvu+osAIgfxPYA+eIvYKv8GKDJOrY2D3/U9MRnKfMWD7bU4jeD4xmqyIg==}engines: {node: '>=20.19'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-o4T8vZHZET4Bib3jZ/tCW9/7080urD4c+0/AUaYVpIqOsr7y0reBc1oX3ttNaSW5mYyvZHctiQ/UOP2PfdmFEQ==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-u1yBgtavSy+N8wgtW3PiER6UpxcplMje65yXnnVgiHTqiMwLlxiw4WvQDrXyn+UD6lnn8kHaxmerJUzQcV/MMg==}- '@tanstack/[email protected]':- resolution: {integrity: sha512-/wGkvLj/st5Ud1Q76KF1uFxScV7WeqN1slQx5280ycwAyYkIPGaRZAEgHxe3bjirSd5Zpwkj6zNcR4cqYni/ZA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-2X7KYK5KKWUKGeWCVcqxXAkYefJtrKB7tSKWgeG++b0H6BRHxQaLSSi8AxcgjmUnnosHuh9WsFZqvE16P1WCzA==}peerDependencies:react: ^18 || ^19@@ -3585,29 +3588,29 @@ packages:react: '>=18.0.0 || >=19.0.0'react-dom: '>=18.0.0 || >=19.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-t0S0QueXubBKmI9eLPcN/A1sLQgTu8/yHerjrvvsGeD12zMdw0uJPKwEKpStQF2OThQtw64cs34uUSYXBUTSNw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-/RmDlOwDkCug609KdPB3U+U1zmrtadJpvsmRg2zEn8TRCKRNri7dYZIjQZbNg8PgUiRL4T6njrZBV1ChzblNaA==}engines: {node: '>=20.19'}peerDependencies:react: '>=18.0.0 || >=19.0.0'react-dom: '>=18.0.0 || >=19.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-lNIdRuK6hIeUfDQEO9pLnFAnQ1/Q8tpMt297lixsci2u+g+EcTh0CwEFzkZRDq7py8Jiv53/cx1orq+RAMjUMg==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-FvD279zzneUtsfhaTv2c29qhE1Z3wHy3dt3cCjn9LzWZehOgn5Ij78s0YpmQaQ8lSF3YL7CySE3pDk9XHE6YeA==}engines: {node: '>=22.12.0'}peerDependencies:react: '>=18.0.0 || >=19.0.0'react-dom: '>=18.0.0 || >=19.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-+ijM4apEyZSbPa5d27uxbaNWQP1xYnyVbCZg9ZbognhQob797e023lCK0yxaGYAGPltT7w/FC4msjTfFW+afNg==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-bPLADxlplvcnAcnZvBjJl2MzgUnB85d7Mu5aEkYoOFxhz0WiG6mZp7BDadIJuCd33NYMirsd3XrjfCHNzrMTyg==}engines: {node: '>=22.12.0'}peerDependencies:react: '>=18.0.0 || >=19.0.0'react-dom: '>=18.0.0 || >=19.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-AM1mrQxoEu4/cWGmTO0RpWpZuryiPiMn75Il0fnYin4+PCKtqpvT6M5BjB5MEdoQ8NIhYdMZaC4D9IVEC0kESw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-vHIhn+FTWfAVhRus1BZEaBZPhnYL+StDuMlShslIBPEGGTCRt11BxNUfV/iDpr7zbxw36Snj7zGfI7DwfjjlDQ==}engines: {node: '>=22.12.0'}hasBin: truepeerDependencies:@@ -3621,22 +3624,22 @@ packages:react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- '@tanstack/[email protected]':- resolution: {integrity: sha512-z4UEdlzMrFaKBsG4OIxlZEm+wsYBtEp//fnX6kW18jhQpETNcM6u2SXNdX+bcIYp6AaR7ERS3SBENzjC/xxwQQ==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-18oeEwEDyXOIuO1VBP9ACaK7tYHZUjynGDCoUh/5c/BNhia9vCJCp9O0LfhZXOorDc/PmLSgvmweFhVmIxF10g==}engines: {node: '>=20.19'}hasBin: true- '@tanstack/[email protected]':- resolution: {integrity: sha512-wQ7H8/Q2rmSPuaxWnurJ3DATNnqWV2tajxri9TSiW4QHsG7cWPD34+goeIinKG+GajJyEdfVpz6w/gRJXfbAPw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-vdaGKwuH+r+DPe6R1mjk+TDDmDH6NTG7QqwxHqGEvOH4aGf9sPjhmRKNJZqQr8cPIbfp6u5lXyZ1TeDcSNMVEA==}engines: {node: '>=20.19'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-h/VV05FEHd4PVyc5Zy8B3trWLcdLt/Pmp+mfifmBKGRw+MUtvdQKbBHhmy4ouOf67s5zDJMc+n8R3xgU7bDwFA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-StEHcctCuFI5taSjO+lhR/yQ+EK63BdyYa+ne6FoNQPB3MMrOUrz2ZVnbqILRLkh2b+p2EfBKt65sgAKdKygPQ==}engines: {node: '>=20.19'}hasBin: truepeerDependencies:'@rsbuild/core': '>=1.0.2'- '@tanstack/react-router': ^1.168.8+ '@tanstack/react-router': ^1.168.10vite: '>=5.0.0 || >=6.0.0 || >=7.0.0'vite-plugin-solid: ^2.11.10webpack: '>=5.92.0'@@ -3663,8 +3666,8 @@ packages:resolution: {integrity: sha512-nRcYw+w2OEgK6VfjirYvGyPLOK+tZQz1jkYcmH5AjMamQ9PycnlxZF2aEZtPpNoUsaceX2bHptn6Ub5hGXqNvw==}engines: {node: '>=20.19'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-WKQYbaSKZzKdi7kaZHtIVlb2EFZin+EFNoE3sl53rcJjQNEcrmUHjLMBjxYQejD13dmIeQtPpKvPAM2s3uJ42g==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-2ETQO/bxiZGsoTdPxZb7xR8YqCy5l4kv/QPkwIXuvx/A4BjufngXfgISjXUicXsFRIBZeiFnBzp9A38UMsS2iA==}engines: {node: '>=22.12.0'}hasBin: true@@ -3672,19 +3675,19 @@ packages:resolution: {integrity: sha512-Y6QSlGiLga8cHfvxGGaonXIlt2bIUTVdH6AMjmpMp7+ANNCp+N96GQbjjhLye3JkaxDfP68x5iZA8NK4imgRig==}engines: {node: '>=22.12.0'}- '@tanstack/[email protected]':- resolution: {integrity: sha512-jSAyrmhMNe1b0UrBD/IB3ttLdmt5//jylOujxa39mUuyDzQGXITC5kacm26j/uJ713qfc3u17UtVKyo47UHmKA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-OkorpOobGOEDVr72QUmkzKjbawKC05CSz+1B3OObB/AxBIIw+lLLhTXbV45QkX2LZA7dcRvPJYZGOH1pkFqA1g==}engines: {node: '>=22.12.0'}peerDependencies:vite: '>=7.0.0'- '@tanstack/[email protected]':- resolution: {integrity: sha512-P60/B0bj5bYFRGbHzHu/3RU0uIpoUwV+9f06lBUccaONyPuDbcP54d/vB6kJ109yvgREocilU5E83aOEnNPUkg==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-vKkslQIihoDDVumF73VXT7PVFmN7Nea0nKhZx7gMbc0m09yPQYYR1dn86/dz14k6/7cDkJ+qKXa09rlVlN/i9Q==}engines: {node: '>=22.12.0'}hasBin: true- '@tanstack/[email protected]':- resolution: {integrity: sha512-//vNgC2WK5Dw/j01i9AWq3VW7k8dqudDH9O86LFPmygfoKAhVONYs0CgWReoLVpjcc5QsMrjLI2Y95DF656acQ==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-3vEdiYRMx+r+Q7Xqxj3YmADPIpMm7fkKxDa8ITwodGXiw+SBJCGkpBXGUWjOXyXkIyqGHKM5UrReTcVUTkmaug==}engines: {node: '>=22.12.0'}'@tanstack/[email protected]':@@ -3705,170 +3708,189 @@ packages:'@tediousjs/[email protected]':resolution: {integrity: sha512-7qSgZbincDDDFyRweCIEvZULFAw5iz/DeunhvuxpL31nfntX3P4Yd4HkHBRg9H8CdqY1e5WFN1PZIz/REL9MVQ==}- '@tiptap/[email protected]':- resolution: {integrity: sha512-IfnQiuEeabDSPr1C/zHFTbnvlTf5z0DE/d/xz4C6bkL4ZBDJ3rr99h2qsaV0l8F+kbNswZMlQdM8rxNlMy95fQ==}+ '@testing-library/[email protected]':+ resolution: {integrity: sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==}+ engines: {node: '>=18'}++ '@testing-library/[email protected]':+ resolution: {integrity: sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==}+ engines: {node: '>=18'}peerDependencies:- '@tiptap/pm': ^3.21.0+ '@testing-library/dom': ^10.0.0+ '@types/react': ^18.0.0 || ^19.0.0+ '@types/react-dom': ^18.0.0 || ^19.0.0+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true- '@tiptap/[email protected]':- resolution: {integrity: sha512-JDM/RR6rM0dMCZ1UnEf7eqmN6pAdIa2llhN+E24HdTGNJCklMFhLAGE/OT8/1r7M0WWA9GVO7/PTe4EdGh6+lQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-EA/XFbvvz0yRyccqrgOwB9RQe6+uJ8NszjLKH9+3xPE2/+Sa2imax0IqWl7YOXkWihdQVrlpP+EpQF9APKx3jg==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-iyEJRzG7XTCPlHwEDzUw3HnuYYCfL7lNpcCHmxcpYMrIUA8rv7EUxerIwApT6xY8hQ/07ljuJKgOyPvnJOOzuA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-WF7K1jtEhkhCZFOoei3QrUHMsM6i9eqXw1IuL6cAX3+CBpqVg89KbP/cJp05dYKU0SO0LJkn87biKVqcnAcN7A==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-/fabRRhhf8i4LAx9e8xz9ppqN5KgdJk3TxMuxAD5vAWGsejvhSoPa8O8H/QwwyntXm1Vue8aQiMHsUk48b2hGQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-mPG1FzOy2DVaJHHuX/eQPIuYie0kqG07M04nElBY8QlV0oYB4/kd0Aubz+m9czqHx/F9u/L98kmMFhCh2DWk2w==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-PWNF+xwxgOeXYGD88sCQLKL0eBoQqjUnZNALxBjN3Y7x4llalh42rHOp2Nt2t6UbQgqTBtBzU/uFcussTpxreQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-792CUdP0roO17jQJ+fflSJEWfw2cAric61nV2291a2iL7L/6mNJGP4QFim1FqZzfx3/FwHSXEI3NYT6wdUlh8w==}peerDependencies:- '@tiptap/extension-list': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-zrVOcOzDCjHQ8NJcC+qHmZZKiwnP/NMSb3qVJlSMN8TzuHept1MZCDa2Mbo70O6I0txo456SGuXB9sqV1vHmGg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-GUBYUXlNMxfJVpbDQnwNU54rqIBHEIQ7KyPptghSzvmnwMlr6n10OmYSGSVvNpOAIYkHkuhzkwgUDeU+YzWbjg==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/extension-list': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-D7wA9jp+4X2r1f3FIoga73s6Rn4rmZY57Jes6a4rK3HY+3yHk1r057pPIZSY8Drfs97jxHQVFdfUYUomLSFYBA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-HtnYHj6yHVy2dKs02j5dyEehWQMGOGRMiZBkefY3TwSSNzGESVcFfDV+Xr87j7zDGYvY16vOtVmyRTOTqPn49A==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-7oCyzXI9ChvJQUlr23AURdfVar4OIsrYUvqdhEwo3bjcI/Q/j0KJiXfuh6ZzL5eVaINSailH53sZaGg4THQtUg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-JGxByyyUdR0yRt1mOxnA2dp6PmI9pr6C846UkZtuOCwhBOBLkoBGkZqW4FytLPOfWGVJpm7w5tx7h1n5uNwfag==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-6fsDSVAM2iz7eElvT6iivMrGBGjIP/oPigVZ/SPm6f31phaYhz6TIOEgV/Lr2jaPIOgyK4U0cU4Yd4KUBCmhzQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-ZdtuBt2KnxIYBtp/VrKiWQ5cLPw1qDKb+sieipBaDWuvhgDNi1kfr//ByEP8xPhcjJfH/C3PCdYYVwIUJwzdqQ==}peerDependencies:- '@tiptap/extensions': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-n2HzTB+I/5rAl8R/1sKMv92JiY1oDK1hroXizxEKYa6dskJcAMW0CfYyPcPOZWQQEe7qoeOvQISr2ooLAKW+Mw==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-yI0aMD4szbNdy/dlglPbZ9Ddc2UucRatJSifmtenCLg7YWyIIYton0T6Uym+FXAEUZ6KsaoNqEKiUbK5cRzZMQ==}+ peerDependencies:+ '@tiptap/extensions': ^3.22.0++ '@tiptap/[email protected]':+ resolution: {integrity: sha512-6Gg3I6n+YaCJyvpcKheWiOtU9Oy0M3lbwUGdLK7jTxgAG2YOJxEcx2CzDv3PtNcoyAVUVk9Eio21awVMOECLAQ==}peerDependencies:'@floating-ui/dom': ^1.0.0- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-wGjgAoYBTvPAe9QYMI5px355XcNeMkaUrMY9IHbMqgqdmHcDxqooxM4H6sYVX2CRcHwXy4I8NQAoOhSYrQJDMg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-VsnaTU88PlA/eG9DtUvuB90z5gVZIaH6T/JVTxGasxR4CFsv0L4Zq5awwr0+SsYH9dKepRMgbanVU03c6k1SuA==}peerDependencies:- '@tiptap/extensions': ^3.21.0+ '@tiptap/extensions': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-6JFVSAOQ1qhQHi9mVcdn2/XO8YIMgYV8zjarzNUzP6Sf2waeE5BLXjlg6rIH/945sY1J+FndTojLru6gQ07a5A==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-F51pt3fgjbtWrY0Uud+5HoJW4f7w/aBZvmoCk19nrEY955vvuQQ2PD/DZtecl4A8fF50PpRjgilrYnnh99l0ew==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-ji6VJmoRnDzAHYflEYEZohMHRi77UGLW1o3ua7UhI32iJ9nuYssbPNuzEeE4SvENMQwZRszad5+a+dKAa+NC7g==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-SnOUBXzh9Dft7HY0rqaSL/kZKg4W9wlHfpnFPW8aIuewXvFDLKa6PisqxPpHsXSbG21kfs5E0MLdwdXtNP89XA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-3f/bVgfm2dJZxalh07TThDxcTaeXJ+dpYyRY9trnFeHbhyYQXSy6yzkNhNcYB4Ua5jxpKQv4b9Q448QVh+KNzA==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-5+u3Rr3EDF4tmXlMblL1RWwHheO00Gdn974HjUNrKus01q6JQcqBpycXfYYq5XHG+iHdWSVzL2XE1KsTwVI+7w==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-vNBnOfFEY62CoJPGo4nonRM7RiOvhII1vhoO+WFr1GxDqCAfmEFjToflt7JT1UJdo6lMVcD+aaaAgOiuSz5p6g==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-9v08PcmJOumVmgGgcuFPZpAk+tf+m7+vaCNsNyf8Ce1i0m3GPSle1ZmxzjDU2FlpaCFrcgoUKlEjKYaFYFCJIg==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-2I8oPvwyXhRn1k8lbDFIutzvhtLEjoO5mmQCNX4TnT4PdxxaSrK9+ihYg12VeqhUeO7dg1MKiFqws0HVBrwzWg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-+qq9QZF44O1MRqk6w1AMDZ8oDBs5AtdDdNEcdXpzVU54cJAtWyEPEfXtD0B68hOUp/RdZjMdL27fp+4Id7C1YA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-oMU7Yve1sbgBsaFAUc2R0GPf4d3ZPVJeMUFC6b6X9rJIvx/IhEUEn9toQcSBGfp02uWK9NdQyIFYFdWlVXH++w==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-tGMBUAmni532G6R5gnaRvTb6c7+ST1qCHBV0p5kGGzdHaQTDd1R7S8fnuA3M7+6Sruc82iIY+Ur+6Tusvo/vLA==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-1ZymZmlQVbAoC4q5x3cro0v5+3I6l+BHqbhIMQLjQFlAOJfcE0pvqRzAFW7PduxUj41tXEtsYqp2NREvO9F5Fg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-9cFvFLEtf0bnOc/LaGeX2D+c9wOxeqhzgabUl2Ztz8Xzoby4JtamXnrIpb7DG7hZMf3luJMF8bz0HSvAnNiISQ==}peerDependencies:- '@tiptap/extension-list': ^3.21.0+ '@tiptap/extension-list': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-EzrfW3ASNFPWKhR8sNOq7Kqw4hvaTAOn4dlI7chB8HIANSrlyPOUn+eKAnO6HQgsUgsbjg2GbTUrGrxcoLykUg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-uCtr5/g+Cwkmsb/VLctgo4VjKm0jv52moAmDyr/TLRjW94gnSLhwXFKzyd7BNIXBQHDyS44UEIJFD3ul4dUKdw==}peerDependencies:- '@tiptap/extension-list': ^3.21.0+ '@tiptap/extension-list': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-KeBlEtLrGce2d3dgL89hmwWEtREuzlW4XY5bYWpKNvCbFqvdSb3n7vkdkw32YclZmMWxAcABgW6ucCStkE0rsQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-NfSCAgX44NVLib6aN4HmsP1wi6fFfK3dt6TBb9EgcR82nzq6n7dq7VEBw9V1aKqeXQEtNpqMnQFd0SDayweyfQ==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-+d+0orokMfqaBfvr9tUBgGvo2ZCV+fR3JzsJTmnLBWOkhBSJN7H4pnfXPTue0qwspUwRmkLJxdIlU+J7HkMrng==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-B5JSJ2Xe2KPIYYG7jpZHVeAku/VJB+CCgPYl+qIHjZ4JGTnW23qkIA+6dWk6WljGmhQL1qusxZZn4UAnZtBLeQ==}peerDependencies:- '@tiptap/extension-list': ^3.21.0+ '@tiptap/extension-list': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-cMPG/jCoZ9NmLZ5ctFziILaxJGfDtMTb5OLBhifMFZeMVwF1pEJIygDEfnX/HSruv507weZSQG4pERO2tRszMg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-fwkPvbGI3xvzWrTJVGZVocgA99Pgqd5kW7iv7MEWlI9uOUa6Ifu31/seHV7j+QDW3y3mADcx+zyhxcMVELtLjA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-easnVaN11Wl+5fOtfvzJ10J762S9TRXZaMj5rLBGavgf82DCYHqhGhBqpLQrJ41r4nPABGlYvTRoxfvBLB74Lg==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-gCgFr1sIcqrJeV5Gdrh8KVZHA+0B1FpFBuOi6FzMyVfBB2sBBqKnjoInYTkPXXdP49Qu8L8hi4luFQtoj4zGzA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-/iPVM/5TtRy7wGrLW/uL+qjMHsor26P/nH2nHasgPr/EIwliLGhHp9Gwjhix3OTyM2UK+VNcuhH6X50UbcByTQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-R7vYmlEg91nV51zzajaWj6R9yIDckOvKKeKsmHAhFzrzUjjpia+lJcUBjXHbp2Vnq30QV8EmtBPqpygnr7XGiw==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-XaoUaq45nai9LLoUStumMItHhhCnmXirPR8mTjEDKZ2QD0Kg/YHEr6guJYc6qKB7YA+Wa1EgBIrZOv1+d2Pdag==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-wKX5uCCEl31KtBBqXFcKYHMivF9fzME4EwykYZk7qN3HoV+WJMl9D17s5r6TUayN++1G5IiW69UFFiwB9yDugw==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-Zx8QdB8a5iBuE4uO21c3BjmpBfaJEr2Jd1QFnsdgx11fm6P7dGgZaGko1FaINhfOPRGTN6O/kiF02cDMdOHa/w==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-FQ3lBRswZbSEbtxOnDF4T7pdsZRmKh/8q+M29zXaDHGfBc6nuGNPlNKSIy0Iryjhf/YmMVaWDpHvzk56KD7QtA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-gGmBEymbWnr8AIS8bI/bPw5rcwo7wAFcBw/TsLd1nAanu1dDqSRNDBrit3m02Ru+D88u2SfNvmbOPI1pz+1f5w==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-AxQOnXQwYmZNjagkEoCZZqbpJbLVmBcu1ivJ9dE0SAQsr1wRUp7mAg+g1SqhbMAvrXvv7yhhNevSdQKmXsnFyA==}peerDependencies:- '@tiptap/core': ^3.21.0+ '@tiptap/core': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-MN1uh5PmHT1F2BNsbc21MIS0AMFFA73oODlp/4ckpBR4o5AxRwV+8f43Cd52UL4MgMkKj/A+QfZ7iK9IDb0h5A==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-En8p1FiFBT3V9CduErCyLPFxDRsYLISb2cCtLKTeYVeCRn2vQZK4B8WuOgHI4IBipz3I3XidmDhra4yt8mmi/w==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-I3sNo7oMMsR6FFz1ecvPb9uCF0VQuS2WV67j8Io2M7DJicRWCE/GM5DaiYjTeWBbnByk6BuG0txoJATAqPVliQ==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-O9kpzNnFX5837kFevwAM8yr7ImLHu8noIwIpoci0AwfJjiBMzfZBejhbzxnKEfTpFWnkvZ8rWohlb6CQdJ6Crg==}- '@tiptap/[email protected]':- resolution: {integrity: sha512-p+OKJgxmFB3t5nY3mjaqjKaj8vJX9++OkdrZLRxYuG7ScAHemWraWQ25sgNZl1LDaRYrdnNYxx9MP0CXOSB6ew==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-Jt2LxSbwIUTtp+2Fg27tnsUCC5XiRl084o+/uJTa5xcY4Fdce6rsrEDMjw5P7uYObhjdnBxr514tqd2bvC6LUw==}peerDependencies:- '@tiptap/core': ^3.21.0- '@tiptap/pm': ^3.21.0+ '@tiptap/core': ^3.22.0+ '@tiptap/pm': ^3.22.0'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0'@types/react-dom': ^17.0.0 || ^18.0.0 || ^19.0.0react: ^17.0.0 || ^18.0.0 || ^19.0.0react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0- '@tiptap/[email protected]':- resolution: {integrity: sha512-w7fWxglDtqXFBgRYH+LforJyUboSAQllnWQbGVSTyX4rsICqZjkb3f6CTSUWpGoGKmlmbb2ZpEuoik7tur9d8Q==}+ '@tiptap/[email protected]':+ resolution: {integrity: sha512-3V0RysviBKbsvzHuupM30ftb/WLogSgINtIbmGQHZK4Ta1YzwzW63nAWPGKOoFw8r1HRFFO6LjtqrT6iJsPnzQ==}'@tootallnate/[email protected]':resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==}@@ -3879,6 +3901,9 @@ packages:'@tybys/[email protected]':resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}+'@types/[email protected]':resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}@@ -3971,9 +3996,15 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==}+'@types/[email protected]':resolution: {integrity: sha512-N8WXpbE6Wgri7KUSvrmQcqrMllKZ9uxkYWMt+mCSGwNc0Hsw9VQTW7ApqI4XNrx6/SaM2QQJCzMPDEXE058s+Q==}+ '@types/[email protected]':+ resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}+'@types/[email protected]':resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==}@@ -3983,43 +4014,43 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}- '@typescript/[email protected]':- resolution: {integrity: sha512-zS1thDk7luD82nXVwvMd97F7FgxAE6jGtSmnHeXdaQ+6hJQcQLOVkfUdaehhdodqKDapWA2jEURxQAYjDGvv3g==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-9PCc1D4/zLic30g1upOw6ZmUl98fnrXYRv5wIZ6fxm1zZAObieRKUX3Jbr8M9N8iQQFxPIZPniIScsxAbmbJvw==}cpu: [arm64]os: [darwin]- '@typescript/[email protected]':- resolution: {integrity: sha512-3IJ2qmpjQ1OXpZNUhJRjF1+SbDuqGC14Ug8DjWJlPBp06isi1fcJph90f5qW//FxEsNnJPYRcNwpP0A2RbTASg==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-wwzca1KrjSVC6ApXfITsg/wF4GGbhVYebc7zChpuyi+phrHfw6ThTPB5XFUH4nA32vqw0Hn/6KACipMgzg8GPA==}cpu: [x64]os: [darwin]- '@typescript/[email protected]':- resolution: {integrity: sha512-gQb6SjB5JlUKDaDuz6mv/m+/OBWVDlcjHINFOykBZZYZtgxBx6nEDjLrT8TiJRjmHEG6hSbv+yisUL9IThWycA==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-1hgKibGi4QZF1J0hKltgY4nj4yKDmI4Ang5ar80I+YeUdGxV/fP2kU3bJang7QtHuSso6W+a52SF62zgqbzdow==}cpu: [arm64]os: [linux]- '@typescript/[email protected]':- resolution: {integrity: sha512-WKSSJrH611DFFAg6YCkgbnkdy0a4RRpzvDpNXtPzLTbMYC5oJdq3Dpvncx5nrJvGh4J4yvzXoMxraGPyygqGLw==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-bbIkRZYjtyoyCJ3wFES7qn3EwYO5Go1hxArL5X5oWiBmUHq5gMIxTZDv5mpWxopVf9Eyh4ErHefXjf1s4J+6Ag==}cpu: [arm]os: [linux]- '@typescript/[email protected]':- resolution: {integrity: sha512-kg4r+ssxoEWruBynUg9bFMdcMpo5NupzAPqNBlV8uWbmYGZjaPLonFWAi9ZZMiVJY/x5ZQ9GBl6xskwLdd3PJQ==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-1ysZ4c/Wa3RYIlrwVceYlhb1m1hxQ4P2x92valZXH0bNWEPb+oiQ4Yf35O/vi5h8zDdX/ZQ59vivYl27cF1VVA==}cpu: [x64]os: [linux]- '@typescript/[email protected]':- resolution: {integrity: sha512-Qi4lddVxl5MG7Tk67gYhCFnoqqLGd4TvaI8RN4qHFjt3GV8s6c+0cQGsJXJnVgMx27qbyDTdsyAa2pvb42rYcQ==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-fZYLCRe36y1BuzRFFpU2/RQ212l6Y1dccRMh8oTB8HlAVAAwtbkb6cjEn0Ablj4Dy16+Ih8R9uHsxPLNhtKw1Q==}cpu: [arm64]os: [win32]- '@typescript/[email protected]':- resolution: {integrity: sha512-+k5+usuB8HZ6Xc+enLdb95ZJd25bQqsnI1zXxfRCHP+RS9mxs70Mi9ezQz3lKOLZFFXShSH7iW9iulm8KwVzCQ==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-I6ses4SjWvpbvSpm1BPFRrDeqrzu7JTchJG/a26iwwmTLv4fAGLc5/o6Kv9Naygozop1W3KOcVM5i3A9oxiIjQ==}cpu: [x64]os: [win32]- '@typescript/[email protected]':- resolution: {integrity: sha512-v5lJ0TgSt2m9yVk2xoj9+NH/gTDeWTLaWGPx6MJsUKOYd6bmCJhHbMcWmb8d/zlfhE9ffpixUKYj62CdYfriqA==}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-xJcN9WlY/P6xKjCMH4+DTzZSj/EKR6H9avuqUKs4eKyPEvaQ4bX+9Ys3Vl2qhlUaD7IRWY7HN7db0LHAGlWRSA==}hasBin: true'@typespec/[email protected]':@@ -4083,6 +4114,21 @@ packages:babel-plugin-react-compiler:optional: true+ '@vitest/[email protected]':+ resolution: {integrity: sha512-sPK//PHO+kAkScb8XITeB1bf7fsk85Km7+rt4eeuRR3VS1/crD47cmV5wicisJmjNdfeokTZwjMk4Mj2d58Mgg==}+ peerDependencies:+ '@vitest/browser': 4.1.2+ vitest: 4.1.2+ peerDependenciesMeta:+ '@vitest/browser':+ optional: true++ '@vitest/[email protected]':+ resolution: {integrity: sha512-dwQga8aejqeuB+TvXCMzSQemvV9hNEtDDpgUKDzOmNQayl2OG241PSWeJwKRH3CiC+sESrmoFd49rfnq7T4RnA==}++ '@vitest/[email protected]':+ resolution: {integrity: sha512-xw2/TiX82lQHA06cgbqRKFb5lCAy3axQ4H4SoUFhUsg+wztiet+co86IAMDtF6Vm1hc7J6j09oh/rgDn+JdKIQ==}+'@voidzero-dev/[email protected]':resolution: {integrity: sha512-j8YNe7A+8JcSoddztf5whvom/yJ7OKUO3Y5a3UoLIUmOL8YEKVv5nPANrxJ7eaFfHJoMnBEwzBpq1YVZ+H3uPA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -4242,8 +4288,8 @@ packages:peerDependencies:ai: ^6.0.137- resolution: {integrity: sha512-+GomGQWaId3xN0wcugUW/H7xMMaFkID2PiS7K/Wugj45G3efv0BXhQ3psRZoQVoRbOpdNoUqcK/KTB+FR4h6qg==}+ resolution: {integrity: sha512-ZoxAsnTL/dFg5WdcwC8QNhKVlLtqwwT3I7p/4i8IJJP+6ZwqF1ljuwMsAsPYYvppZ+RzUxjxxFGb1cbEhNH3dg==}engines: {node: '>=18'}peerDependencies:zod: ^3.25.76 || ^4.1.8@@ -4290,6 +4336,9 @@ packages:resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}+resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}engines: {node: '>= 0.4'}@@ -4313,6 +4362,9 @@ packages:resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-1fSfIwuDICFA4LKkCzRPO7F0hzFf0B7+Xqrl27ynQaa+Rh0e1Es0v6kWHPott3lU10AyAr7oKHa65OppjLn3Rg==}+resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}engines: {node: '>= 0.4'}@@ -4942,6 +4994,10 @@ packages:resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}@@ -4963,6 +5019,9 @@ packages:resolution: {integrity: sha512-ZJja9/KBUuFC109sCMzovoq2GR2wCG/AuxivjA+OHj/q0TEgJIm3S7yrlUxIy3B+bV8YDj/BiHfWyrRFmyWpDQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}+resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}@@ -5271,6 +5330,9 @@ packages:resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}+resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}@@ -5528,9 +5590,6 @@ packages:resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==}-resolution: {integrity: sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==}@@ -5587,6 +5646,10 @@ packages:crossws:optional: true+ resolution: {integrity: sha512-Tz23LR9T9jOGVZm2x1EPdXqwA37G/owYMxRwU0E4miurAtFsPMQ1d2Jc2okUaSjZqAFz2oEn3FLXC5a0a+siyA==}+ engines: {node: '>=20.0.0'}+resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}engines: {node: '>= 0.4'}@@ -5631,6 +5694,9 @@ packages:resolution: {integrity: sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==}engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}+ resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}+resolution: {integrity: sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==}@@ -5931,6 +5997,18 @@ packages:resolution: {integrity: sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==}engines: {node: '>=20'}+ resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-ykkVRwrYvFm1nb2AJfKKYPr0emF6IiXDYUaFx4Zn9ZuIH7MrzEZ3sD5RlqGXNRpHtvUHJyOnCEFxOlNDtGo7wg==}engines: {node: 20 || >=22}@@ -5965,6 +6043,9 @@ packages:resolution: {integrity: sha512-5obBtsz9301ULlsgggLg542s/jqtddfOpV5KJc4hajc9JV8GeY2gZHSVpYBn4nWqAUTJ9v+xwtbJ1mIBgIH5Vw==}+ resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==}+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -6038,8 +6119,8 @@ packages:resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-n5eVbJP7HXmwTsiJcELWJe2O1ESxyCTNxJzRTIECDYDTM465qnqk7fL2dv6ae3NUFvFWorZvGlh9mcwxwJ5Xgw==}+ resolution: {integrity: sha512-4OMUMJARvNble8e8TeFv12flp4fKzAITrQec1eKO4g2eA4HnNqEa8CXy2UOPLjuYuAETpe0N0r25jF9yY9FLig==}engines: {node: ^20.19.0 || >=22.12.0}hasBin: true@@ -6204,12 +6285,23 @@ packages:resolution: {integrity: sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA==}engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'}+ resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}+ hasBin: true+resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==}resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}+ resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==}++ resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-vM2sG+wbVeVGYcCm16mM3d5fuem9oC28n436HjsGO3LcxoTI8LNVa4rwZDn3f76+cWyT4GGJDxjTYU1I2nr6zw==}engines: {node: ^20.17.0 || >=22.9.0}@@ -6507,8 +6599,8 @@ packages:resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-AvlRcnlUEyBEJfblUSjYMJwYKvCIWDRuCDa6x3hyUMTMkI3kslmFm0LDqwgzQfshfNh0Z3ouKiA4fLjRN7HejQ==}+ resolution: {integrity: sha512-qCs02x51irGf0okCttwv8lHEO2NxT903IJ2bKpG82kIzkm6pfT3CoWB5YIvqY/wi/DdnYRfI7eVfCYYymQgvCg==}engines: {node: '>=20.0.0', npm: '>=8.12.1'}hasBin: true@@ -6831,6 +6923,10 @@ packages:resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==}engines: {node: ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}+ engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}+resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}@@ -7010,6 +7106,9 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'+ resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==}+resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}@@ -7294,8 +7393,8 @@ packages:resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}- resolution: {integrity: sha512-nBj+7LYC9kzV9v9QmRPpoOhfW4KctJVQejywdAt/K+K+z4RYlJOcO2a4AaF7elrRWkfCbgXeGK02liV0KB9HvQ==}+ resolution: {integrity: sha512-qNQcCavkbYsgBj+X09tF2bTcwRd8abR880bsFkDU2kMqceMCLAm5c+cLg7kWDhfh1H9g08knpQ5ZEf6y/co16g==}hasBin: true@@ -7404,8 +7503,8 @@ packages:resolution: {integrity: sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-oknN6qduuMPafxKtHucUeG32Q963pjriA5g3/Bl05cwEsUe5VVbIU4qR9LrALHbipSCyBe+VmfDGGydqazDRkw==}+ resolution: {integrity: sha512-mx+pKrWJCzo5m6uXqyB7n4VA81mpdFRroSWsVTQTYqCZE65hFJ+jtVIeyhtL2/kvtDMrHdbA0hWEUh/vu0+Viw==}engines: {node: '>=20.16.0'}hasBin: true@@ -7602,6 +7701,10 @@ packages:resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==}engines: {node: ^20.0.0 || >=22.0.0}+ resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}+ engines: {node: '>=14.0.0'}+resolution: {integrity: sha512-Je6p7pkk+KMzMv2XXKmAE3McmolOQFdxkKw0R8EYNr7sELW46JqnNeTX8ybPiQgvg1ymCoF8LXs5fzFaZvJPTA==}@@ -7985,6 +8088,10 @@ packages:resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==}+ resolution: {integrity: sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==}engines: {node: '>=18'}@@ -8246,20 +8353,20 @@ snapshots:'@ai-sdk/provider-utils': 4.0.21([email protected])zod: 4.3.6- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 3.0.8'@ai-sdk/provider-utils': 4.0.21([email protected])'@vercel/oidc': 3.1.0zod: 4.3.6- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 3.0.8'@ai-sdk/provider-utils': 4.0.21([email protected])zod: 4.3.6- '@ai-sdk/[email protected]([email protected])':+ '@ai-sdk/[email protected]([email protected])':dependencies:'@ai-sdk/provider': 3.0.8'@ai-sdk/provider-utils': 4.0.21([email protected])@@ -8290,6 +8397,7 @@ snapshots:'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])'@csstools/css-tokenizer': 4.0.0lru-cache: 11.2.7+ optional: true'@asamuzakjp/[email protected]':dependencies:@@ -8298,8 +8406,10 @@ snapshots:css-tree: 3.2.1is-potential-custom-element-name: 1.0.1lru-cache: 11.2.7+ optional: true- '@asamuzakjp/[email protected]': {}+ '@asamuzakjp/[email protected]':+ optional: true'@authenio/[email protected]':dependencies:@@ -8354,31 +8464,31 @@ snapshots:'@smithy/util-utf8': 2.3.0tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/sha1-browser': 5.2.0'@aws-crypto/sha256-browser': 5.2.0'@aws-crypto/sha256-js': 5.2.0- '@aws-sdk/core': 3.973.25- '@aws-sdk/credential-provider-node': 3.972.27+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/credential-provider-node': 3.972.29'@aws-sdk/middleware-bucket-endpoint': 3.972.8'@aws-sdk/middleware-expect-continue': 3.972.8- '@aws-sdk/middleware-flexible-checksums': 3.974.5+ '@aws-sdk/middleware-flexible-checksums': 3.974.6'@aws-sdk/middleware-host-header': 3.972.8'@aws-sdk/middleware-location-constraint': 3.972.8'@aws-sdk/middleware-logger': 3.972.8'@aws-sdk/middleware-recursion-detection': 3.972.9- '@aws-sdk/middleware-sdk-s3': 3.972.26+ '@aws-sdk/middleware-sdk-s3': 3.972.27'@aws-sdk/middleware-ssec': 3.972.8- '@aws-sdk/middleware-user-agent': 3.972.26+ '@aws-sdk/middleware-user-agent': 3.972.28'@aws-sdk/region-config-resolver': 3.972.10- '@aws-sdk/signature-v4-multi-region': 3.996.14+ '@aws-sdk/signature-v4-multi-region': 3.996.15'@aws-sdk/types': 3.973.6'@aws-sdk/util-endpoints': 3.996.5'@aws-sdk/util-user-agent-browser': 3.972.8- '@aws-sdk/util-user-agent-node': 3.973.12+ '@aws-sdk/util-user-agent-node': 3.973.14'@smithy/config-resolver': 4.4.13- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/eventstream-serde-browser': 4.2.12'@smithy/eventstream-serde-config-resolver': 4.3.12'@smithy/eventstream-serde-node': 4.2.12@@ -8389,41 +8499,41 @@ snapshots:'@smithy/invalid-dependency': 4.2.12'@smithy/md5-js': 4.2.12'@smithy/middleware-content-length': 4.2.12- '@smithy/middleware-endpoint': 4.4.27- '@smithy/middleware-retry': 4.4.44- '@smithy/middleware-serde': 4.2.15+ '@smithy/middleware-endpoint': 4.4.28+ '@smithy/middleware-retry': 4.4.46+ '@smithy/middleware-serde': 4.2.16'@smithy/middleware-stack': 4.2.12'@smithy/node-config-provider': 4.3.12- '@smithy/node-http-handler': 4.5.0+ '@smithy/node-http-handler': 4.5.1'@smithy/protocol-http': 5.3.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1'@smithy/url-parser': 4.2.12'@smithy/util-base64': 4.3.2'@smithy/util-body-length-browser': 4.2.2'@smithy/util-body-length-node': 4.2.3- '@smithy/util-defaults-mode-browser': 4.3.43- '@smithy/util-defaults-mode-node': 4.2.47+ '@smithy/util-defaults-mode-browser': 4.3.44+ '@smithy/util-defaults-mode-node': 4.2.48'@smithy/util-endpoints': 3.3.3'@smithy/util-middleware': 4.2.12- '@smithy/util-retry': 4.2.12- '@smithy/util-stream': 4.5.20+ '@smithy/util-retry': 4.2.13+ '@smithy/util-stream': 4.5.21'@smithy/util-utf8': 4.2.2- '@smithy/util-waiter': 4.2.13+ '@smithy/util-waiter': 4.2.14tslib: 2.8.1transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-sdk/types': 3.973.6'@aws-sdk/xml-builder': 3.972.16- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/node-config-provider': 4.3.12'@smithy/property-provider': 4.2.12'@smithy/protocol-http': 5.3.12'@smithy/signature-v4': 5.3.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1'@smithy/util-base64': 4.3.2'@smithy/util-middleware': 4.2.12@@ -8435,37 +8545,37 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/types': 3.973.6'@smithy/fetch-http-handler': 5.3.15- '@smithy/node-http-handler': 4.5.0+ '@smithy/node-http-handler': 4.5.1'@smithy/property-provider': 4.2.12'@smithy/protocol-http': 5.3.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1- '@smithy/util-stream': 4.5.20+ '@smithy/util-stream': 4.5.21tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25- '@aws-sdk/credential-provider-env': 3.972.23- '@aws-sdk/credential-provider-http': 3.972.25- '@aws-sdk/credential-provider-login': 3.972.26- '@aws-sdk/credential-provider-process': 3.972.23- '@aws-sdk/credential-provider-sso': 3.972.26- '@aws-sdk/credential-provider-web-identity': 3.972.26- '@aws-sdk/nested-clients': 3.996.16+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/credential-provider-env': 3.972.24+ '@aws-sdk/credential-provider-http': 3.972.26+ '@aws-sdk/credential-provider-login': 3.972.28+ '@aws-sdk/credential-provider-process': 3.972.24+ '@aws-sdk/credential-provider-sso': 3.972.28+ '@aws-sdk/credential-provider-web-identity': 3.972.28+ '@aws-sdk/nested-clients': 3.996.18'@aws-sdk/types': 3.973.6'@smithy/credential-provider-imds': 4.2.12'@smithy/property-provider': 4.2.12@@ -8475,10 +8585,10 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25- '@aws-sdk/nested-clients': 3.996.16+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/nested-clients': 3.996.18'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/protocol-http': 5.3.12@@ -8488,14 +8598,14 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/credential-provider-env': 3.972.23- '@aws-sdk/credential-provider-http': 3.972.25- '@aws-sdk/credential-provider-ini': 3.972.26- '@aws-sdk/credential-provider-process': 3.972.23- '@aws-sdk/credential-provider-sso': 3.972.26- '@aws-sdk/credential-provider-web-identity': 3.972.26+ '@aws-sdk/credential-provider-env': 3.972.24+ '@aws-sdk/credential-provider-http': 3.972.26+ '@aws-sdk/credential-provider-ini': 3.972.28+ '@aws-sdk/credential-provider-process': 3.972.24+ '@aws-sdk/credential-provider-sso': 3.972.28+ '@aws-sdk/credential-provider-web-identity': 3.972.28'@aws-sdk/types': 3.973.6'@smithy/credential-provider-imds': 4.2.12'@smithy/property-provider': 4.2.12@@ -8505,20 +8615,20 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/shared-ini-file-loader': 4.4.7'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25- '@aws-sdk/nested-clients': 3.996.16- '@aws-sdk/token-providers': 3.1019.0+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/nested-clients': 3.996.18+ '@aws-sdk/token-providers': 3.1021.0'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/shared-ini-file-loader': 4.4.7@@ -8527,10 +8637,10 @@ snapshots:transitivePeerDependencies:- aws-crt- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25- '@aws-sdk/nested-clients': 3.996.16+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/nested-clients': 3.996.18'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/shared-ini-file-loader': 4.4.7@@ -8556,12 +8666,12 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/crc32': 5.2.0'@aws-crypto/crc32c': 5.2.0'@aws-crypto/util': 5.2.0- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/crc64-nvme': 3.972.5'@aws-sdk/types': 3.973.6'@smithy/is-array-buffer': 4.2.2@@ -8569,7 +8679,7 @@ snapshots:'@smithy/protocol-http': 5.3.12'@smithy/types': 4.13.1'@smithy/util-middleware': 4.2.12- '@smithy/util-stream': 4.5.20+ '@smithy/util-stream': 4.5.21'@smithy/util-utf8': 4.2.2tslib: 2.8.1@@ -8600,20 +8710,20 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/types': 3.973.6'@aws-sdk/util-arn-parser': 3.972.3- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/node-config-provider': 4.3.12'@smithy/protocol-http': 5.3.12'@smithy/signature-v4': 5.3.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1'@smithy/util-config-provider': 4.2.2'@smithy/util-middleware': 4.2.12- '@smithy/util-stream': 4.5.20+ '@smithy/util-stream': 4.5.21'@smithy/util-utf8': 4.2.2tslib: 2.8.1@@ -8623,55 +8733,55 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/types': 3.973.6'@aws-sdk/util-endpoints': 3.996.5- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/protocol-http': 5.3.12'@smithy/types': 4.13.1- '@smithy/util-retry': 4.2.12+ '@smithy/util-retry': 4.2.13tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:'@aws-crypto/sha256-browser': 5.2.0'@aws-crypto/sha256-js': 5.2.0- '@aws-sdk/core': 3.973.25+ '@aws-sdk/core': 3.973.26'@aws-sdk/middleware-host-header': 3.972.8'@aws-sdk/middleware-logger': 3.972.8'@aws-sdk/middleware-recursion-detection': 3.972.9- '@aws-sdk/middleware-user-agent': 3.972.26+ '@aws-sdk/middleware-user-agent': 3.972.28'@aws-sdk/region-config-resolver': 3.972.10'@aws-sdk/types': 3.973.6'@aws-sdk/util-endpoints': 3.996.5'@aws-sdk/util-user-agent-browser': 3.972.8- '@aws-sdk/util-user-agent-node': 3.973.12+ '@aws-sdk/util-user-agent-node': 3.973.14'@smithy/config-resolver': 4.4.13- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/fetch-http-handler': 5.3.15'@smithy/hash-node': 4.2.12'@smithy/invalid-dependency': 4.2.12'@smithy/middleware-content-length': 4.2.12- '@smithy/middleware-endpoint': 4.4.27- '@smithy/middleware-retry': 4.4.44- '@smithy/middleware-serde': 4.2.15+ '@smithy/middleware-endpoint': 4.4.28+ '@smithy/middleware-retry': 4.4.46+ '@smithy/middleware-serde': 4.2.16'@smithy/middleware-stack': 4.2.12'@smithy/node-config-provider': 4.3.12- '@smithy/node-http-handler': 4.5.0+ '@smithy/node-http-handler': 4.5.1'@smithy/protocol-http': 5.3.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1'@smithy/url-parser': 4.2.12'@smithy/util-base64': 4.3.2'@smithy/util-body-length-browser': 4.2.2'@smithy/util-body-length-node': 4.2.3- '@smithy/util-defaults-mode-browser': 4.3.43- '@smithy/util-defaults-mode-node': 4.2.47+ '@smithy/util-defaults-mode-browser': 4.3.44+ '@smithy/util-defaults-mode-node': 4.2.48'@smithy/util-endpoints': 3.3.3'@smithy/util-middleware': 4.2.12- '@smithy/util-retry': 4.2.12+ '@smithy/util-retry': 4.2.13'@smithy/util-utf8': 4.2.2tslib: 2.8.1transitivePeerDependencies:@@ -8685,19 +8795,19 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/middleware-sdk-s3': 3.972.26+ '@aws-sdk/middleware-sdk-s3': 3.972.27'@aws-sdk/types': 3.973.6'@smithy/protocol-http': 5.3.12'@smithy/signature-v4': 5.3.12'@smithy/types': 4.13.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/core': 3.973.25- '@aws-sdk/nested-clients': 3.996.16+ '@aws-sdk/core': 3.973.26+ '@aws-sdk/nested-clients': 3.996.18'@aws-sdk/types': 3.973.6'@smithy/property-provider': 4.2.12'@smithy/shared-ini-file-loader': 4.4.7@@ -8734,9 +8844,9 @@ snapshots:bowser: 2.14.1tslib: 2.8.1- '@aws-sdk/[email protected]':+ '@aws-sdk/[email protected]':dependencies:- '@aws-sdk/middleware-user-agent': 3.972.26+ '@aws-sdk/middleware-user-agent': 3.972.28'@aws-sdk/types': 3.973.6'@smithy/node-config-provider': 4.3.12'@smithy/types': 4.13.1@@ -9611,11 +9721,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.14- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))':+ '@bcoe/[email protected]': {}++ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))':dependencies:'@better-auth/core': 1.5.6(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])'@better-auth/utils': 0.3.1- better-auth: 1.5.6(d57c8314811a2c76a791cf28e230a6db)+ better-auth: 1.5.6(9d65c2ad022ab83f20e12e7f626dac52)zod: 4.3.6'@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])':@@ -9638,12 +9750,12 @@ snapshots:optionalDependencies:drizzle-orm: 1.0.0-beta.20(@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected])))([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected])':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected])))([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected])':dependencies:'@better-auth/core': 1.5.6(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])- '@better-auth/sso': 1.5.5(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected]))+ '@better-auth/sso': 1.5.5(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected]))'@better-fetch/fetch': 1.1.21- better-auth: 1.5.6(d57c8314811a2c76a791cf28e230a6db)+ better-auth: 1.5.6(9d65c2ad022ab83f20e12e7f626dac52)better-call: 1.3.4([email protected])jose: 6.2.2libphonenumber-js: 1.12.40@@ -9668,12 +9780,12 @@ snapshots:optionalDependencies:mongodb: 7.1.0([email protected])- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected]))':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])(@better-fetch/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected]))':dependencies:'@better-auth/core': 1.5.6(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])'@better-auth/utils': 0.3.1'@better-fetch/fetch': 1.1.21- better-auth: 1.5.6(d57c8314811a2c76a791cf28e230a6db)+ better-auth: 1.5.6(9d65c2ad022ab83f20e12e7f626dac52)better-call: 1.3.2([email protected])jose: 6.2.2zod: 4.3.6@@ -9686,12 +9798,12 @@ snapshots:'@prisma/client': 7.4.2([email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected])prisma: 7.4.2(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])- '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](d57c8314811a2c76a791cf28e230a6db))([email protected]([email protected]))':+ '@better-auth/[email protected](@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](9d65c2ad022ab83f20e12e7f626dac52))([email protected]([email protected]))':dependencies:'@better-auth/core': 1.5.6(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])'@better-auth/utils': 0.3.1'@better-fetch/fetch': 1.1.21- better-auth: 1.5.6(d57c8314811a2c76a791cf28e230a6db)+ better-auth: 1.5.6(9d65c2ad022ab83f20e12e7f626dac52)better-call: 1.3.2([email protected])fast-xml-parser: 5.4.2jose: 6.2.2@@ -9712,6 +9824,7 @@ snapshots:'@bramus/[email protected]':dependencies:css-tree: 3.2.1+ optional: true'@chevrotain/[email protected]':dependencies:@@ -9732,12 +9845,14 @@ snapshots:'@chevrotain/[email protected]':optional: true- '@csstools/[email protected]': {}+ '@csstools/[email protected]':+ optional: true'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':dependencies:'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])'@csstools/css-tokenizer': 4.0.0+ optional: true'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':dependencies:@@ -9745,16 +9860,20 @@ snapshots:'@csstools/css-calc': 3.1.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])'@csstools/css-tokenizer': 4.0.0+ optional: true'@csstools/[email protected](@csstools/[email protected])':dependencies:'@csstools/css-tokenizer': 4.0.0+ optional: true'@csstools/[email protected]([email protected])':optionalDependencies:css-tree: 3.2.1+ optional: true- '@csstools/[email protected]': {}+ '@csstools/[email protected]':+ optional: true'@dnd-kit/[email protected]([email protected])':dependencies:@@ -9987,6 +10106,7 @@ snapshots:'@exodus/[email protected](@noble/[email protected])':optionalDependencies:'@noble/hashes': 2.0.1+ optional: true'@floating-ui/[email protected]':dependencies:@@ -10303,7 +10423,7 @@ snapshots:dependencies:moo: 0.5.3- '@modelcontextprotocol/[email protected]([email protected])':+ '@modelcontextprotocol/[email protected]([email protected])':dependencies:'@hono/node-server': 1.19.10([email protected])ajv: 8.18.0@@ -10325,7 +10445,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@modelcontextprotocol/[email protected]([email protected])':+ '@modelcontextprotocol/[email protected]([email protected])':dependencies:'@hono/node-server': 1.19.10([email protected])ajv: 8.18.0@@ -10473,12 +10593,12 @@ snapshots:'@orpc/[email protected]': {}- '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@orpc/contract': 1.13.13(@opentelemetry/[email protected])'@orpc/interop': 1.13.13- '@orpc/openapi': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/openapi': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/shared': 1.13.13(@opentelemetry/[email protected])json-schema-typed: 8.0.2transitivePeerDependencies:@@ -10496,13 +10616,13 @@ snapshots:transitivePeerDependencies:- '@opentelemetry/api'- '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@orpc/client': 1.13.13(@opentelemetry/[email protected])'@orpc/contract': 1.13.13(@opentelemetry/[email protected])'@orpc/interop': 1.13.13'@orpc/openapi-client': 1.13.13(@opentelemetry/[email protected])- '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/shared': 1.13.13(@opentelemetry/[email protected])'@orpc/standard-server': 1.13.13(@opentelemetry/[email protected])json-schema-typed: 8.0.2@@ -10513,7 +10633,7 @@ snapshots:- fastify- ws- '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@orpc/client': 1.13.13(@opentelemetry/[email protected])'@orpc/contract': 1.13.13(@opentelemetry/[email protected])@@ -10527,7 +10647,7 @@ snapshots:'@orpc/standard-server-peer': 1.13.13(@opentelemetry/[email protected])cookie: 1.1.1optionalDependencies:- crossws: 0.4.4([email protected])+ crossws: 0.4.4([email protected])ws: 8.19.0transitivePeerDependencies:- '@opentelemetry/api'@@ -10585,20 +10705,20 @@ snapshots:transitivePeerDependencies:- '@opentelemetry/api'- '@orpc/[email protected](@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@tanstack/[email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@tanstack/[email protected])':dependencies:'@orpc/client': 1.13.13(@opentelemetry/[email protected])'@orpc/shared': 1.13.13(@opentelemetry/[email protected])- '@tanstack/query-core': 5.95.2+ '@tanstack/query-core': 5.96.1transitivePeerDependencies:- '@opentelemetry/api'- '@orpc/[email protected](@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':+ '@orpc/[email protected](@opentelemetry/[email protected])(@orpc/[email protected](@opentelemetry/[email protected]))(@orpc/[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:'@orpc/contract': 1.13.13(@opentelemetry/[email protected])- '@orpc/json-schema': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- '@orpc/openapi': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/json-schema': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/openapi': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ '@orpc/server': 1.13.13(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])'@orpc/shared': 1.13.13(@opentelemetry/[email protected])escape-string-regexp: 5.0.0wildcard-match: 5.1.4@@ -11269,11 +11389,6 @@ snapshots:'@sindresorhus/[email protected]': {}- '@smithy/[email protected]':- dependencies:- '@smithy/types': 4.13.1- tslib: 2.8.1-'@smithy/[email protected]':dependencies:'@smithy/util-base64': 4.3.2@@ -11292,7 +11407,7 @@ snapshots:'@smithy/util-middleware': 4.2.12tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/protocol-http': 5.3.12'@smithy/types': 4.13.1@@ -11300,7 +11415,7 @@ snapshots:'@smithy/util-base64': 4.3.2'@smithy/util-body-length-browser': 4.2.2'@smithy/util-middleware': 4.2.12- '@smithy/util-stream': 4.5.20+ '@smithy/util-stream': 4.5.21'@smithy/util-utf8': 4.2.2'@smithy/uuid': 1.1.2tslib: 2.8.1@@ -11396,10 +11511,10 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:- '@smithy/core': 3.23.12- '@smithy/middleware-serde': 4.2.15+ '@smithy/core': 3.23.13+ '@smithy/middleware-serde': 4.2.16'@smithy/node-config-provider': 4.3.12'@smithy/shared-ini-file-loader': 4.4.7'@smithy/types': 4.13.1@@ -11407,21 +11522,21 @@ snapshots:'@smithy/util-middleware': 4.2.12tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/node-config-provider': 4.3.12'@smithy/protocol-http': 5.3.12'@smithy/service-error-classification': 4.2.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1'@smithy/util-middleware': 4.2.12- '@smithy/util-retry': 4.2.12+ '@smithy/util-retry': 4.2.13'@smithy/uuid': 1.1.2tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:- '@smithy/core': 3.23.12+ '@smithy/core': 3.23.13'@smithy/protocol-http': 5.3.12'@smithy/types': 4.13.1tslib: 2.8.1@@ -11438,9 +11553,8 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:- '@smithy/abort-controller': 4.2.12'@smithy/protocol-http': 5.3.12'@smithy/querystring-builder': 4.2.12'@smithy/types': 4.13.1@@ -11487,14 +11601,14 @@ snapshots:'@smithy/util-utf8': 4.2.2tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:- '@smithy/core': 3.23.12- '@smithy/middleware-endpoint': 4.4.27+ '@smithy/core': 3.23.13+ '@smithy/middleware-endpoint': 4.4.28'@smithy/middleware-stack': 4.2.12'@smithy/protocol-http': 5.3.12'@smithy/types': 4.13.1- '@smithy/util-stream': 4.5.20+ '@smithy/util-stream': 4.5.21tslib: 2.8.1'@smithy/[email protected]':@@ -11535,20 +11649,20 @@ snapshots:dependencies:tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/property-provider': 4.2.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/config-resolver': 4.4.13'@smithy/credential-provider-imds': 4.2.12'@smithy/node-config-provider': 4.3.12'@smithy/property-provider': 4.2.12- '@smithy/smithy-client': 4.12.7+ '@smithy/smithy-client': 4.12.8'@smithy/types': 4.13.1tslib: 2.8.1@@ -11567,16 +11681,16 @@ snapshots:'@smithy/types': 4.13.1tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/service-error-classification': 4.2.12'@smithy/types': 4.13.1tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:'@smithy/fetch-http-handler': 5.3.15- '@smithy/node-http-handler': 4.5.0+ '@smithy/node-http-handler': 4.5.1'@smithy/types': 4.13.1'@smithy/util-base64': 4.3.2'@smithy/util-buffer-from': 4.2.2@@ -11598,9 +11712,8 @@ snapshots:'@smithy/util-buffer-from': 4.2.2tslib: 2.8.1- '@smithy/[email protected]':+ '@smithy/[email protected]':dependencies:- '@smithy/abort-controller': 4.2.12'@smithy/types': 4.13.1tslib: 2.8.1@@ -11695,62 +11808,62 @@ snapshots:'@tanstack/[email protected]': {}- '@tanstack/[email protected]': {}+ '@tanstack/[email protected]': {}- '@tanstack/[email protected]([email protected])':+ '@tanstack/[email protected]([email protected])':dependencies:- '@tanstack/query-core': 5.95.2+ '@tanstack/query-core': 5.96.1react: 19.2.4- '@tanstack/[email protected](@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])':+ '@tanstack/[email protected](@tanstack/[email protected])(@tanstack/[email protected]([email protected]))(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@tanstack/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@tanstack/query-core': 5.95.2- '@tanstack/react-query': 5.95.2([email protected])- '@tanstack/router-ssr-query-core': 1.167.0(@tanstack/[email protected])(@tanstack/[email protected])+ '@tanstack/query-core': 5.96.1+ '@tanstack/react-query': 5.96.1([email protected])+ '@tanstack/router-ssr-query-core': 1.167.0(@tanstack/[email protected])(@tanstack/[email protected])react: 19.2.4react-dom: 19.2.4([email protected])transitivePeerDependencies:- '@tanstack/router-core'dependencies:'@tanstack/history': 1.161.6- '@tanstack/router-core': 1.168.7+ '@tanstack/router-core': 1.168.9isbot: 5.1.35react: 19.2.4react-dom: 19.2.4([email protected])dependencies:- '@tanstack/router-core': 1.168.7- '@tanstack/start-client-core': 1.167.7+ '@tanstack/router-core': 1.168.9+ '@tanstack/start-client-core': 1.167.9react: 19.2.4react-dom: 19.2.4([email protected])- '@tanstack/[email protected]([email protected]([email protected]))([email protected]([email protected]))([email protected])':+ '@tanstack/[email protected]([email protected]([email protected]))([email protected]([email protected]))([email protected])':dependencies:'@tanstack/history': 1.161.6- '@tanstack/router-core': 1.168.7- '@tanstack/start-client-core': 1.167.7- '@tanstack/start-server-core': 1.167.7([email protected]([email protected]))+ '@tanstack/router-core': 1.168.9+ '@tanstack/start-client-core': 1.167.9+ '@tanstack/start-server-core': 1.167.9([email protected]([email protected]))react: 19.2.4react-dom: 19.2.4([email protected])transitivePeerDependencies:- crossws- '@tanstack/[email protected](@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])':+ '@tanstack/[email protected](@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])':dependencies:- '@tanstack/react-start-server': 1.166.23([email protected]([email protected]))([email protected]([email protected]))([email protected])+ '@tanstack/react-start-server': 1.166.25([email protected]([email protected]))([email protected]([email protected]))([email protected])'@tanstack/router-utils': 1.161.6- '@tanstack/start-client-core': 1.167.7- '@tanstack/start-plugin-core': 1.167.14(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))- '@tanstack/start-server-core': 1.167.7([email protected]([email protected]))+ '@tanstack/start-client-core': 1.167.9+ '@tanstack/start-plugin-core': 1.167.17(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))+ '@tanstack/start-server-core': 1.167.9([email protected]([email protected]))pathe: 2.0.3react: 19.2.4react-dom: 19.2.4([email protected])@@ -11769,16 +11882,16 @@ snapshots:react-dom: 19.2.4([email protected])use-sync-external-store: 1.6.0([email protected])- '@tanstack/[email protected]':+ '@tanstack/[email protected]':dependencies:'@tanstack/history': 1.161.6cookie-es: 2.0.0seroval: 1.5.0seroval-plugins: 1.5.0([email protected])- '@tanstack/[email protected]':+ '@tanstack/[email protected]':dependencies:- '@tanstack/router-core': 1.168.7+ '@tanstack/router-core': 1.168.9'@tanstack/router-utils': 1.161.6'@tanstack/virtual-file-routes': 1.161.7prettier: 3.8.1@@ -11789,7 +11902,7 @@ snapshots:transitivePeerDependencies:- supports-color- '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.29.0'@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])@@ -11797,23 +11910,23 @@ snapshots:'@babel/template': 7.28.6'@babel/traverse': 7.29.0'@babel/types': 7.29.0- '@tanstack/router-core': 1.168.7- '@tanstack/router-generator': 1.166.22+ '@tanstack/router-core': 1.168.9+ '@tanstack/router-generator': 1.166.24'@tanstack/router-utils': 1.161.6'@tanstack/virtual-file-routes': 1.161.7chokidar: 3.6.0unplugin: 2.3.11zod: 3.25.76optionalDependencies:vite: '@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'transitivePeerDependencies:- supports-colordependencies:- '@tanstack/query-core': 5.95.2- '@tanstack/router-core': 1.168.7+ '@tanstack/query-core': 5.96.1+ '@tanstack/router-core': 1.168.9'@tanstack/[email protected]':dependencies:@@ -11829,33 +11942,33 @@ snapshots:transitivePeerDependencies:- supports-color- '@tanstack/[email protected]':+ '@tanstack/[email protected]':dependencies:- '@tanstack/router-core': 1.168.7+ '@tanstack/router-core': 1.168.9'@tanstack/start-fn-stubs': 1.161.6- '@tanstack/start-storage-context': 1.166.21+ '@tanstack/start-storage-context': 1.166.23seroval: 1.5.0'@tanstack/[email protected]': {}- '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))':+ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))':dependencies:'@babel/code-frame': 7.27.1'@babel/core': 7.29.0'@babel/types': 7.29.0'@rolldown/pluginutils': 1.0.0-beta.40- '@tanstack/router-core': 1.168.7- '@tanstack/router-generator': 1.166.22- '@tanstack/router-plugin': 1.167.9(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/router-core': 1.168.9+ '@tanstack/router-generator': 1.166.24+ '@tanstack/router-plugin': 1.167.12(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))'@tanstack/router-utils': 1.161.6- '@tanstack/start-client-core': 1.167.7- '@tanstack/start-server-core': 1.167.7([email protected]([email protected]))+ '@tanstack/start-client-core': 1.167.9+ '@tanstack/start-server-core': 1.167.9([email protected]([email protected]))cheerio: 1.2.0exsolve: 1.0.8pathe: 2.0.3picomatch: 4.0.3source-map: 0.7.6- srvx: 0.11.13+ srvx: 0.11.14tinyglobby: 0.2.15ufo: 1.6.3vite: '@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])'@@ -11870,158 +11983,179 @@ snapshots:- vite-plugin-solid- webpackdependencies:'@tanstack/history': 1.161.6- '@tanstack/router-core': 1.168.7- '@tanstack/start-client-core': 1.167.7- '@tanstack/start-storage-context': 1.166.21+ '@tanstack/router-core': 1.168.9+ '@tanstack/start-client-core': 1.167.9+ '@tanstack/start-storage-context': 1.166.23seroval: 1.5.0transitivePeerDependencies:- crossws- '@tanstack/[email protected]':+ '@tanstack/[email protected]':dependencies:- '@tanstack/router-core': 1.168.7+ '@tanstack/router-core': 1.168.9'@tanstack/[email protected]': {}'@tanstack/[email protected]': {}- '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected])':+ '@tanstack/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))([email protected])':dependencies:zod: 4.3.6'@tediousjs/[email protected]': {}- '@tiptap/[email protected](@tiptap/[email protected])':+ '@testing-library/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/runtime': 7.28.6+ '@types/aria-query': 5.0.4+ aria-query: 5.3.0+ dom-accessibility-api: 0.5.16+ lz-string: 1.5.0+ picocolors: 1.1.1+ pretty-format: 27.5.1++ '@testing-library/[email protected](@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.28.6+ '@testing-library/dom': 10.4.1+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@tiptap/[email protected](@tiptap/[email protected])':dependencies:- '@tiptap/pm': 3.21.0+ '@tiptap/pm': 3.22.0dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.7.6- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0optional: true- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extension-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extensions': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extensions': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:'@floating-ui/dom': 1.7.6- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0optional: true- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extensions': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extensions': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0linkifyjs: 4.3.2- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extension-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extension-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))':dependencies:- '@tiptap/extension-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])+ '@tiptap/core': 3.22.0(@tiptap/[email protected])- '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':+ '@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0- '@tiptap/[email protected]':+ '@tiptap/[email protected]':dependencies:prosemirror-changeset: 2.4.0prosemirror-collab: 1.3.1@@ -12042,10 +12176,10 @@ snapshots:prosemirror-transform: 1.11.0prosemirror-view: 1.41.6- '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@tiptap/[email protected](@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])'@types/use-sync-external-store': 0.0.6@@ -12054,37 +12188,37 @@ snapshots:react-dom: 19.2.4([email protected])use-sync-external-store: 1.6.0([email protected])optionalDependencies:- '@tiptap/extension-bubble-menu': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-floating-menu': 3.21.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-bubble-menu': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-floating-menu': 3.22.0(@floating-ui/[email protected])(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])transitivePeerDependencies:- '@floating-ui/dom'- '@tiptap/[email protected]':- dependencies:- '@tiptap/core': 3.21.0(@tiptap/[email protected])- '@tiptap/extension-blockquote': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-bold': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-bullet-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-code': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-code-block': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-document': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-dropcursor': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-gapcursor': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-hard-break': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-heading': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-horizontal-rule': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-italic': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-link': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/extension-list-item': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-list-keymap': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-ordered-list': 3.21.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))- '@tiptap/extension-paragraph': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-strike': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-text': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extension-underline': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))- '@tiptap/extensions': 3.21.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])- '@tiptap/pm': 3.21.0+ '@tiptap/[email protected]':+ dependencies:+ '@tiptap/core': 3.22.0(@tiptap/[email protected])+ '@tiptap/extension-blockquote': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bold': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-bullet-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-code': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-code-block': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-document': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-dropcursor': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-gapcursor': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-hard-break': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-heading': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-horizontal-rule': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-italic': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-link': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/extension-list-item': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-list-keymap': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-ordered-list': 3.22.0(@tiptap/[email protected](@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected]))+ '@tiptap/extension-paragraph': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-strike': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-text': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extension-underline': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))+ '@tiptap/extensions': 3.22.0(@tiptap/[email protected](@tiptap/[email protected]))(@tiptap/[email protected])+ '@tiptap/pm': 3.22.0'@tootallnate/[email protected]': {}@@ -12099,6 +12233,8 @@ snapshots:tslib: 2.8.1optional: true+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@babel/parser': 7.29.0@@ -12210,11 +12346,17 @@ snapshots:'@types/[email protected]':optional: true+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/webidl-conversions': 7.0.3optional: true+ '@types/[email protected]':+ dependencies:+ '@types/node': 25.5.0+'@types/[email protected]': {}'@types/[email protected]':@@ -12226,36 +12368,36 @@ snapshots:'@types/node': 25.5.0optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optional: true- '@typescript/[email protected]':+ '@typescript/[email protected]':optionalDependencies:- '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260329.1- '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260329.1- '@typescript/native-preview-linux-arm': 7.0.0-dev.20260329.1- '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260329.1- '@typescript/native-preview-linux-x64': 7.0.0-dev.20260329.1- '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260329.1- '@typescript/native-preview-win32-x64': 7.0.0-dev.20260329.1+ '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20260401.1+ '@typescript/native-preview-darwin-x64': 7.0.0-dev.20260401.1+ '@typescript/native-preview-linux-arm': 7.0.0-dev.20260401.1+ '@typescript/native-preview-linux-arm64': 7.0.0-dev.20260401.1+ '@typescript/native-preview-linux-x64': 7.0.0-dev.20260401.1+ '@typescript/native-preview-win32-arm64': 7.0.0-dev.20260401.1+ '@typescript/native-preview-win32-x64': 7.0.0-dev.20260401.1'@typespec/[email protected]':dependencies:@@ -12318,6 +12460,30 @@ snapshots:optionalDependencies:'@rolldown/plugin-babel': 0.2.2(@babel/[email protected])(@babel/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ '@vitest/[email protected](@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected]))':+ dependencies:+ '@bcoe/v8-coverage': 1.0.2+ '@vitest/utils': 4.1.2+ ast-v8-to-istanbul: 1.0.0+ istanbul-lib-coverage: 3.2.2+ istanbul-lib-report: 3.0.1+ istanbul-reports: 3.2.0+ magicast: 0.5.2+ obug: 2.1.1+ std-env: 4.0.0+ tinyrainbow: 3.1.0+ vitest: '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])'++ '@vitest/[email protected]':+ dependencies:+ tinyrainbow: 3.1.0++ '@vitest/[email protected]':+ dependencies:+ '@vitest/pretty-format': 4.1.2+ convert-source-map: 2.0.0+ tinyrainbow: 3.1.0+'@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])':dependencies:'@oxc-project/runtime': 0.115.0@@ -12346,7 +12512,7 @@ snapshots:'@voidzero-dev/[email protected]':optional: true- '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])':+ '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])':dependencies:'@standard-schema/spec': 1.1.0'@types/chai': 5.2.3@@ -12365,6 +12531,7 @@ snapshots:optionalDependencies:'@opentelemetry/api': 1.9.0'@types/node': 25.5.0+ happy-dom: 20.8.9jsdom: 29.0.1(@noble/[email protected])transitivePeerDependencies:- '@arethetypeswrong/core'@@ -12412,19 +12579,19 @@ snapshots:dependencies:'@ai-sdk/provider': 3.0.8'@ai-sdk/provider-utils': 4.0.21([email protected])- ai: 6.0.141([email protected])+ ai: 6.0.142([email protected])jsonrepair: 3.13.3ollama: 0.6.3transitivePeerDependencies:- zoddependencies:- '@ai-sdk/gateway': 3.0.83([email protected])+ '@ai-sdk/gateway': 3.0.84([email protected])'@ai-sdk/provider': 3.0.8'@ai-sdk/provider-utils': 4.0.21([email protected])'@opentelemetry/api': 1.9.0@@ -12464,6 +12631,10 @@ snapshots:dependencies:tslib: 2.8.1+ dependencies:+ dequal: 2.0.3+dependencies:call-bound: 1.0.4@@ -12493,6 +12664,12 @@ snapshots:dependencies:tslib: 2.8.1+ dependencies:+ '@jridgewell/trace-mapping': 0.3.31+ estree-walker: 3.0.3+ js-tokens: 10.0.0+@@ -12593,7 +12770,7 @@ snapshots:node-addon-api: 8.7.0node-gyp-build: 4.8.4- [email protected](d57c8314811a2c76a791cf28e230a6db):+ [email protected](9d65c2ad022ab83f20e12e7f626dac52):dependencies:'@better-auth/core': 1.5.6(@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])'@better-auth/drizzle-adapter': 1.5.6(@better-auth/[email protected](@better-auth/[email protected])(@better-fetch/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]))(@better-auth/[email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))@@ -12614,7 +12791,7 @@ snapshots:zod: 4.3.6optionalDependencies:'@prisma/client': 7.4.2([email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]))([email protected])- '@tanstack/react-start': 1.167.13(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])+ '@tanstack/react-start': 1.167.16(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])drizzle-kit: 1.0.0-beta.20drizzle-orm: 1.0.0-beta.20(@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])mongodb: 7.1.0([email protected])@@ -12623,7 +12800,7 @@ snapshots:prisma: 7.4.2(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])react: 19.2.4react-dom: 19.2.4([email protected])- vitest: '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])'+ vitest: '@voidzero-dev/[email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])'transitivePeerDependencies:- '@cloudflare/workers-types'- '@opentelemetry/api'@@ -12649,6 +12826,7 @@ snapshots:dependencies:require-from-string: 2.0.2+ optional: true@@ -12992,9 +13170,9 @@ snapshots:shebang-command: 2.0.0which: 2.0.2optionalDependencies:- srvx: 0.11.13+ srvx: 0.11.14@@ -13010,6 +13188,7 @@ snapshots:dependencies:mdn-data: 2.27.1source-map-js: 1.2.1+ optional: true@@ -13027,6 +13206,7 @@ snapshots:whatwg-url: 16.0.1(@noble/[email protected])transitivePeerDependencies:- '@noble/hashes'+ optional: truedependencies:@@ -13058,7 +13238,8 @@ snapshots:dependencies:ms: 2.1.3- [email protected]: {}+ optional: trueoptionalDependencies:@@ -13107,6 +13288,8 @@ snapshots:+ [email protected]: {}+optional: true@@ -13127,6 +13310,8 @@ snapshots:xml: 1.0.1xml-js: 1.6.11+ [email protected]: {}+dependencies:domelementtype: 2.3.0@@ -13249,9 +13434,9 @@ snapshots:dependencies:- crossws: 0.4.4([email protected])+ crossws: 0.4.4([email protected])httpxy: 0.3.1- srvx: 0.11.13+ srvx: 0.11.14dependencies:@@ -13424,6 +13609,10 @@ snapshots:+ dependencies:+ '@types/estree': 1.0.8+@@ -13723,10 +13912,6 @@ snapshots:es-errors: 1.3.0get-intrinsic: 1.3.0- dependencies:- resolve-pkg-maps: 1.0.0-dependencies:resolve-pkg-maps: 1.0.0@@ -13785,12 +13970,24 @@ snapshots:dependencies:rou3: 0.8.1- srvx: 0.11.13+ srvx: 0.11.14optionalDependencies:- crossws: 0.4.4([email protected])+ crossws: 0.4.4([email protected])++ dependencies:+ '@types/node': 25.5.0+ '@types/whatwg-mimetype': 3.0.2+ '@types/ws': 8.18.1+ entities: 7.0.1+ whatwg-mimetype: 3.0.0+ ws: 8.19.0+ transitivePeerDependencies:+ - bufferutil+ - utf-8-validate@@ -13830,6 +14027,9 @@ snapshots:'@exodus/bytes': 1.15.0(@noble/[email protected])transitivePeerDependencies:- '@noble/hashes'+ optional: true++ [email protected]: {}dependencies:@@ -14011,7 +14211,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -14087,6 +14288,19 @@ snapshots:+ [email protected]: {}++ dependencies:+ istanbul-lib-coverage: 3.2.2+ make-dir: 4.0.0+ supports-color: 7.2.0++ dependencies:+ html-escaper: 2.0.2+ istanbul-lib-report: 3.0.1+dependencies:'@isaacs/cliui': 9.0.0@@ -14118,6 +14332,8 @@ snapshots:+ [email protected]: {}+@@ -14151,6 +14367,7 @@ snapshots:xml-name-validator: 5.0.0transitivePeerDependencies:- '@noble/hashes'+ optional: true@@ -14209,7 +14426,7 @@ snapshots:dependencies:'@nodelib/fs.walk': 1.2.8fast-glob: 3.3.3@@ -14332,7 +14549,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -14343,6 +14561,8 @@ snapshots:optional: true+ [email protected]: {}+dependencies:sourcemap-codec: 1.4.8@@ -14351,6 +14571,16 @@ snapshots:dependencies:'@jridgewell/sourcemap-codec': 1.5.5+ dependencies:+ '@babel/parser': 7.29.0+ '@babel/types': 7.29.0+ source-map-js: 1.2.1++ dependencies:+ semver: 7.7.4+dependencies:'@gar/promise-retry': 1.0.2@@ -14380,7 +14610,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -14568,17 +14799,17 @@ snapshots:[email protected](@azure/[email protected])(@electric-sql/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:consola: 3.4.2- crossws: 0.4.4([email protected])+ crossws: 0.4.4([email protected])db0: 0.3.4(@electric-sql/[email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])env-runner: 0.1.6- h3: 2.0.1-rc.16([email protected]([email protected]))+ h3: 2.0.1-rc.16([email protected]([email protected]))hookable: 6.1.0nf3: 0.3.11ocache: 0.1.2ofetch: 2.0.0-alpha.3ohash: 2.0.11rolldown: 1.0.0-rc.9- srvx: 0.11.13+ srvx: 0.11.14unenv: 2.0.0-rc.24unstorage: 2.0.0-alpha.6(@azure/[email protected])([email protected])([email protected](@electric-sql/[email protected])([email protected](@electric-sql/[email protected])(@opentelemetry/[email protected])(@types/[email protected](@azure/[email protected]))(@types/[email protected])([email protected](@azure/[email protected]))([email protected])([email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])optionalDependencies:@@ -14661,7 +14892,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -14941,6 +15172,7 @@ snapshots:dependencies:entities: 6.0.1+ optional: true@@ -15062,6 +15294,12 @@ snapshots:+ dependencies:+ ansi-regex: 5.0.1+ ansi-styles: 5.2.0+ react-is: 17.0.2+dependencies:'@jest/schemas': 29.6.3@@ -15306,6 +15544,8 @@ snapshots:react: 19.2.4react-dom: 19.2.4([email protected])+ [email protected]: {}+@@ -15567,6 +15807,7 @@ snapshots:dependencies:xmlchars: 2.2.0+ optional: true@@ -15638,14 +15879,14 @@ snapshots:dependencies:'@babel/core': 7.29.0'@babel/parser': 7.29.0'@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])'@babel/preset-typescript': 7.28.5(@babel/[email protected])'@dotenvx/dotenvx': 1.54.1- '@modelcontextprotocol/sdk': 1.28.0([email protected])+ '@modelcontextprotocol/sdk': 1.29.0([email protected])'@types/validate-npm-package-name': 4.0.2browserslist: 4.28.1commander: 14.0.3@@ -15811,7 +16052,7 @@ snapshots:optional: true- [email protected]: {}+ [email protected]: {}dependencies:@@ -15941,7 +16182,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -16076,6 +16318,8 @@ snapshots:+ [email protected]: {}+@@ -16112,6 +16356,7 @@ snapshots:dependencies:punycode: 2.3.1+ optional: truedependencies:@@ -16131,7 +16376,7 @@ snapshots:dependencies:esbuild: 0.27.3- get-tsconfig: 4.13.6+ get-tsconfig: 4.13.7optionalDependencies:fsevents: 2.3.3@@ -16315,11 +16560,11 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected]):+ [email protected](@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected]):dependencies:'@oxc-project/types': 0.115.0'@voidzero-dev/vite-plus-core': 0.1.12(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@voidzero-dev/vite-plus-test': 0.1.12(@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])+ '@voidzero-dev/vite-plus-test': 0.1.12(@opentelemetry/[email protected])(@types/[email protected])(@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])([email protected](@noble/[email protected]))([email protected])([email protected])([email protected])([email protected])cac: 6.7.14cross-spawn: 7.0.6oxfmt: 0.40.0@@ -16370,6 +16615,7 @@ snapshots:dependencies:xml-name-validator: 5.0.0+ optional: true@@ -16386,7 +16632,8 @@ snapshots:optional: true- [email protected]: {}+ optional: true@@ -16396,9 +16643,12 @@ snapshots:+ [email protected]: {}+- [email protected]: {}+ optional: truedependencies:@@ -16413,6 +16663,7 @@ snapshots:webidl-conversions: 8.0.1transitivePeerDependencies:- '@noble/hashes'+ optional: truedependencies:@@ -16625,7 +16876,8 @@ snapshots:dependencies:sax: 1.6.0- [email protected]: {}+ optional: true@@ -16636,7 +16888,8 @@ snapshots:'@oozcitak/util': 10.0.0js-yaml: 4.1.1- [email protected]: {}+ optional: truediff --git a/scripts/migration/resume.ts b/scripts/migration/resume.tsindex b2fb34bc7..7f9ce8487 100644--- a/scripts/migration/resume.ts+++ b/scripts/migration/resume.ts@@ -192,8 +192,7 @@ export async function migrateResumes() {process.exit(0);};- process.on("SIGINT", handleShutdown);- process.on("SIGTERM", handleShutdown);+ process.on("exit", handleShutdown);// Initialize the importerconst importer = new ReactiveResumeV4JSONImporter();@@ -465,8 +464,7 @@ export async function migrateResumes() {}// Remove signal handlers- process.off("SIGINT", handleShutdown);- process.off("SIGTERM", handleShutdown);+ process.off("exit", handleShutdown);const migrationEnd = performance.now();const migrationDurationMs = migrationEnd - migrationStart;diff --git a/scripts/migration/user.ts b/scripts/migration/user.tsindex 646fc961a..109967dce 100644--- a/scripts/migration/user.ts+++ b/scripts/migration/user.ts@@ -186,8 +186,7 @@ export async function migrateUsers() {process.exit(0);};- process.on("SIGINT", handleShutdown);- process.on("SIGTERM", handleShutdown);+ process.on("exit", handleShutdown);while (hasMore) {// Check if shutdown was requested@@ -409,8 +408,7 @@ export async function migrateUsers() {}// Remove signal handlers- process.off("SIGINT", handleShutdown);- process.off("SIGTERM", handleShutdown);+ process.off("exit", handleShutdown);const migrationEnd = performance.now();const migrationDurationMs = migrationEnd - migrationStart;diff --git a/src/components/animation/comet-card.tsx b/src/components/animation/comet-card.tsxindex b07630287..79f813f42 100644--- a/src/components/animation/comet-card.tsx+++ b/src/components/animation/comet-card.tsx@@ -69,28 +69,18 @@ export const CometCard = ({<motion.divref={ref}initial={{ scale: 1, z: 0 }}- className="relative rounded-md"- style={{- rotateX: rotateX,- rotateY: rotateY,- translateX: translateX,- translateY: translateY,- willChange: "transform",- }}- whileHover={{ z: 50, scale: scaleFactor, transition: { duration: 0.2 } }}onMouseMove={handleMouseMove}onMouseLeave={handleMouseLeave}+ className="relative rounded-md will-change-transform"+ whileHover={{ z: 50, scale: scaleFactor, transition: { duration: 0.2 } }}+ style={{ rotateX: rotateX, rotateY: rotateY, translateX: translateX, translateY: translateY }}>{children}<motion.divtransition={{ duration: 0.2 }}- style={{- background: glareBackground,- opacity: glareOpacity,- willChange: "opacity",- }}- className="pointer-events-none absolute inset-0 z-50 h-full w-full rounded-md mix-blend-overlay"+ style={{ background: glareBackground, opacity: glareOpacity }}+ className="pointer-events-none absolute inset-0 z-50 h-full w-full rounded-md mix-blend-overlay will-change-[opacity]"/></motion.div></div>diff --git a/src/components/animation/spotlight.tsx b/src/components/animation/spotlight.tsxindex 4a40351e5..bd5f0e925 100644--- a/src/components/animation/spotlight.tsx+++ b/src/components/animation/spotlight.tsx@@ -33,8 +33,7 @@ export const Spotlight = ({<motion.divanimate={{ x: [0, xOffset, 0] }}transition={{ duration, repeat: Infinity, repeatType: "reverse", ease: "easeInOut" }}- className="pointer-events-none absolute inset-s-0 top-0 z-40 h-svh w-svw"- style={{ willChange: "transform" }}+ className="pointer-events-none absolute inset-s-0 top-0 z-40 h-svh w-svw will-change-transform"><divclassName="absolute inset-s-0 top-0"@@ -69,14 +68,8 @@ export const Spotlight = ({<motion.divanimate={{ x: [0, -xOffset, 0] }}- className="pointer-events-none absolute inset-e-0 top-0 z-40 h-svh w-svw"- transition={{- duration,- repeat: Infinity,- ease: "easeInOut",- repeatType: "reverse",- }}- style={{ willChange: "transform" }}+ transition={{ duration, repeat: Infinity, ease: "easeInOut", repeatType: "reverse" }}+ className="pointer-events-none absolute inset-e-0 top-0 z-40 h-svh w-svw will-change-transform"><divclassName="absolute inset-e-0 top-0"diff --git a/src/components/input/chip-input.test.tsx b/src/components/input/chip-input.test.tsxnew file mode 100644index 000000000..83bce0d98--- /dev/null+++ b/src/components/input/chip-input.test.tsx@@ -0,0 +1,251 @@+import { cleanup, fireEvent, render, screen } from "@testing-library/react";+import { afterEach, describe, expect, it, vi } from "vite-plus/test";++afterEach(cleanup);++// Mock dnd-kit+vi.mock("@dnd-kit/core", () => ({+ DndContext: ({ children }: { children: React.ReactNode }) => <>{children}</>,+ closestCenter: vi.fn(),+ KeyboardSensor: vi.fn(),+ PointerSensor: vi.fn(),+ useSensor: vi.fn(() => ({})),+ useSensors: vi.fn(() => []),+}));++vi.mock("@dnd-kit/sortable", () => ({+ SortableContext: ({ children }: { children: React.ReactNode }) => <>{children}</>,+ horizontalListSortingStrategy: vi.fn(),+ sortableKeyboardCoordinates: vi.fn(),+ useSortable: () => ({+ attributes: {},+ listeners: {},+ setNodeRef: vi.fn(),+ transform: null,+ transition: null,+ isDragging: false,+ }),+}));++vi.mock("@dnd-kit/utilities", () => ({+ CSS: { Transform: { toString: () => "" } },+}));++// Mock framer motion+vi.mock("motion/react", () => ({+ motion: {+ div: ({ children, ...props }: any) => <div {...props}>{children}</div>,+ },+}));++// Mock lingui+vi.mock("@lingui/react/macro", () => ({+ Trans: ({ children }: { children: React.ReactNode }) => <>{children}</>,+}));++// Mock phosphor icons+vi.mock("@phosphor-icons/react", () => ({+ PencilSimpleIcon: ({ className }: any) => <span data-testid="edit-icon" className={className} />,+ XIcon: ({ className }: any) => <span data-testid="remove-icon" className={className} />,+}));++import { ChipInput } from "./chip-input";++describe("ChipInput", () => {+ describe("rendering", () => {+ it("renders the input field", () => {+ render(<ChipInput />);+ expect(screen.getByRole("textbox")).toBeDefined();+ });++ it("renders existing chips", () => {+ render(<ChipInput value={["React", "TypeScript", "Node"]} />);+ expect(screen.getByText("React")).toBeDefined();+ expect(screen.getByText("TypeScript")).toBeDefined();+ expect(screen.getByText("Node")).toBeDefined();+ });++ it("renders no chips when value is empty", () => {+ render(<ChipInput value={[]} />);++ // Only the input area, no chip badges+ expect(screen.queryByText("React")).toBeNull();+ });++ it("shows description by default", () => {+ render(<ChipInput />);+ expect(screen.getByText(/Enter/)).toBeDefined();+ });++ it("hides description when hideDescription is true", () => {+ render(<ChipInput hideDescription />);+ expect(screen.queryByText(/Enter/)).toBeNull();+ });+ });++ describe("adding chips via Enter key", () => {+ it("adds a chip when Enter is pressed", () => {+ const onChange = vi.fn();+ render(<ChipInput value={[]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: "React" } });+ fireEvent.keyDown(input, { key: "Enter" });++ expect(onChange).toHaveBeenCalledWith(["React"]);+ });++ it("does not add empty chips", () => {+ const onChange = vi.fn();+ render(<ChipInput value={[]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: " " } });+ fireEvent.keyDown(input, { key: "Enter" });++ expect(onChange).not.toHaveBeenCalled();+ });++ it("trims whitespace from chips", () => {+ const onChange = vi.fn();+ render(<ChipInput value={[]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: " React " } });+ fireEvent.keyDown(input, { key: "Enter" });++ expect(onChange).toHaveBeenCalledWith(["React"]);+ });++ it("prevents duplicate chips", () => {+ const onChange = vi.fn();+ render(<ChipInput value={["React"]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: "React" } });+ fireEvent.keyDown(input, { key: "Enter" });++ // Set is used, so duplicates are filtered — onChange should be called with same array+ expect(onChange).toHaveBeenCalledWith(["React"]);+ });+ });++ describe("adding chips via comma", () => {+ it("adds a chip when comma is typed in the input", () => {+ const onChange = vi.fn();+ render(<ChipInput value={[]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: "React," } });++ expect(onChange).toHaveBeenCalledWith(["React"]);+ });++ it("handles multiple comma-separated values", () => {+ const onChange = vi.fn();+ render(<ChipInput value={[]} onChange={onChange} />);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: "React,TypeScript," } });++ // First call adds "React", second call adds "TypeScript"+ expect(onChange).toHaveBeenCalled();+ });+ });++ describe("removing chips", () => {+ it("calls onChange without the removed chip when remove button is clicked", () => {+ const onChange = vi.fn();+ render(<ChipInput value={["React", "Vue", "Angular"]} onChange={onChange} />);++ // Find all remove buttons+ const removeButtons = screen.getAllByLabelText(/Remove/);+ fireEvent.click(removeButtons[1]); // Remove "Vue"++ expect(onChange).toHaveBeenCalledWith(["React", "Angular"]);+ });++ it("removes the first chip correctly", () => {+ const onChange = vi.fn();+ render(<ChipInput value={["A", "B", "C"]} onChange={onChange} />);++ const removeButtons = screen.getAllByLabelText(/Remove/);+ fireEvent.click(removeButtons[0]);++ expect(onChange).toHaveBeenCalledWith(["B", "C"]);+ });++ it("removes the last chip correctly", () => {+ const onChange = vi.fn();+ render(<ChipInput value={["A", "B", "C"]} onChange={onChange} />);++ const removeButtons = screen.getAllByLabelText(/Remove/);+ fireEvent.click(removeButtons[2]);++ expect(onChange).toHaveBeenCalledWith(["A", "B"]);+ });+ });++ describe("editing chips", () => {+ it("enters edit mode when edit button is clicked", () => {+ render(<ChipInput value={["React", "Vue"]} />);++ const editButtons = screen.getAllByLabelText(/Edit/);+ fireEvent.click(editButtons[0]);++ const input = screen.getByRole("textbox");+ expect((input as HTMLInputElement).value).toBe("React");+ expect(input.getAttribute("aria-label")).toBe("Edit keyword");+ });++ it("exits edit mode with Escape key", () => {+ render(<ChipInput value={["React"]} />);++ const editButton = screen.getByLabelText("Edit React");+ fireEvent.click(editButton);++ const input = screen.getByRole("textbox");+ fireEvent.keyDown(input, { key: "Escape" });++ expect((input as HTMLInputElement).value).toBe("");+ expect(input.getAttribute("aria-label")).toBe("Add keyword");+ });++ it("saves edit when Enter is pressed", () => {+ const onChange = vi.fn();+ render(<ChipInput value={["React"]} onChange={onChange} />);++ const editButton = screen.getByLabelText("Edit React");+ fireEvent.click(editButton);++ const input = screen.getByRole("textbox");+ fireEvent.change(input, { target: { value: "React.js" } });+ fireEvent.keyDown(input, { key: "Enter" });++ expect(onChange).toHaveBeenCalledWith(["React.js"]);+ });+ });++ describe("input placeholder", () => {+ it("shows 'Add a keyword...' by default", () => {+ render(<ChipInput />);+ expect(screen.getByPlaceholderText("Add a keyword...")).toBeDefined();+ });++ it("shows 'Editing keyword...' in edit mode", () => {+ render(<ChipInput value={["Test"]} />);++ const editButton = screen.getByLabelText("Edit Test");+ fireEvent.click(editButton);++ expect(screen.getByPlaceholderText("Editing keyword...")).toBeDefined();+ });+ });++ describe("uncontrolled mode", () => {+ it("works with defaultValue", () => {+ render(<ChipInput defaultValue={["Initial"]} />);+ expect(screen.getByText("Initial")).toBeDefined();+ });+ });+});diff --git a/src/components/input/chip-input.tsx b/src/components/input/chip-input.tsxindex 033cb2fab..22ac6d17e 100644--- a/src/components/input/chip-input.tsx+++ b/src/components/input/chip-input.tsx@@ -70,11 +70,10 @@ function ChipItem({ id, chip, index, isEditing, onEdit, onRemove }: ChipItemProp><span className="max-w-32 truncate">{chip}</span><motion.div- initial={false}+ initial="false"animate={isHovered ? { opacity: 1, scaleX: 1, x: 0 } : { opacity: 0, scaleX: 0.95, x: -3 }}transition={{ duration: 0.12, ease: "easeOut" }}- className="ms-2 flex w-10 shrink-0 origin-left items-center gap-x-1 overflow-hidden"- style={{ willChange: "transform, opacity" }}+ className="ms-2 flex w-10 shrink-0 origin-left items-center gap-x-1 overflow-hidden will-change-[transform,opacity]"><buttontype="button"diff --git a/src/components/input/url-input.test.tsx b/src/components/input/url-input.test.tsxnew file mode 100644index 000000000..df9c6d7be--- /dev/null+++ b/src/components/input/url-input.test.tsx@@ -0,0 +1,119 @@+import { cleanup, fireEvent, render, screen } from "@testing-library/react";+import { afterEach, describe, expect, it, vi } from "vite-plus/test";++afterEach(cleanup);++// Mock lingui macros+vi.mock("@lingui/core/macro", () => ({+ t: (strings: TemplateStringsArray) => strings[0],+}));+vi.mock("@lingui/react/macro", () => ({+ Trans: ({ children }: { children: React.ReactNode }) => <>{children}</>,+}));++// Mock phosphor icons+vi.mock("@phosphor-icons/react", () => ({+ TagIcon: () => <span data-testid="tag-icon" />,+}));++import { URLInput } from "./url-input";++describe("URLInput", () => {+ describe("URL prefix handling", () => {+ it("displays URL without https:// prefix", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "https://example.com", label: "" }} onChange={onChange} />);++ const input = screen.getByDisplayValue("example.com");+ expect(input).toBeDefined();+ });++ it("displays empty string when URL is empty", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} />);++ const inputs = screen.getAllByRole("textbox");+ const urlInput = inputs[0];+ expect((urlInput as HTMLInputElement).value).toBe("");+ });++ it("adds https:// prefix when user types", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} />);++ const inputs = screen.getAllByRole("textbox");+ fireEvent.change(inputs[0], { target: { value: "example.com" } });++ expect(onChange).toHaveBeenCalledWith({+ url: "https://example.com",+ label: "",+ });+ });++ it("does not double-prefix when user types https://", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} />);++ const inputs = screen.getAllByRole("textbox");+ fireEvent.change(inputs[0], { target: { value: "https://example.com" } });++ expect(onChange).toHaveBeenCalledWith({+ url: "https://example.com",+ label: "",+ });+ });++ it("sends empty URL when input is cleared", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "https://example.com", label: "" }} onChange={onChange} />);++ const inputs = screen.getAllByRole("textbox");+ fireEvent.change(inputs[0], { target: { value: "" } });++ expect(onChange).toHaveBeenCalledWith({+ url: "",+ label: "",+ });+ });+ });++ describe("label preservation", () => {+ it("preserves label when URL changes", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "https://old.com", label: "My Site" }} onChange={onChange} />);++ const inputs = screen.getAllByRole("textbox");+ fireEvent.change(inputs[0], { target: { value: "new.com" } });++ expect(onChange).toHaveBeenCalledWith({+ url: "https://new.com",+ label: "My Site",+ });+ });+ });++ describe("hideLabelButton prop", () => {+ it("hides the label button when hideLabelButton is true", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} hideLabelButton={true} />);++ expect(screen.queryByTestId("tag-icon")).toBeNull();+ });++ it("shows the label button by default", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} />);++ expect(screen.getByTestId("tag-icon")).toBeDefined();+ });+ });++ describe("displays the https:// prefix text", () => {+ it("shows https:// as static text", () => {+ const onChange = vi.fn();+ render(<URLInput value={{ url: "", label: "" }} onChange={onChange} />);++ expect(screen.getByText("https://")).toBeDefined();+ });+ });+});diff --git a/src/components/level/display.test.tsx b/src/components/level/display.test.tsxnew file mode 100644index 000000000..71ea5b6df--- /dev/null+++ b/src/components/level/display.test.tsx@@ -0,0 +1,142 @@+import { cleanup, render, screen } from "@testing-library/react";+import { afterEach, describe, expect, it, vi } from "vite-plus/test";++afterEach(cleanup);++// Mock @lingui/core/macro+vi.mock("@lingui/core/macro", () => ({+ t: (strings: TemplateStringsArray, ...values: unknown[]) => {+ let result = strings[0];+ for (let i = 0; i < values.length; i++) {+ result += String(values[i]) + strings[i + 1];+ }+ return result;+ },+}));++// Mock PageIcon to avoid deep dependency chain+vi.mock("../resume/shared/page-icon", () => ({+ PageIcon: ({ icon, className }: { icon: string; className?: string }) => (+ <span data-testid="page-icon" data-icon={icon} className={className} />+ ),+}));++import { LevelDisplay } from "./display";++describe("LevelDisplay", () => {+ describe("returns null for invalid states", () => {+ it("returns null when level is 0", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={0} />);+ expect(container.firstChild).toBeNull();+ });++ it("returns null when type is 'hidden'", () => {+ const { container } = render(<LevelDisplay icon="star" type="hidden" level={3} />);+ expect(container.firstChild).toBeNull();+ });++ it("returns null when icon is empty string", () => {+ const { container } = render(<LevelDisplay icon="" type="circle" level={3} />);+ expect(container.firstChild).toBeNull();+ });+ });++ describe("renders correct number of elements", () => {+ it("always renders 5 elements for non-zero level", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={3} />);+ const wrapper = container.firstChild as HTMLElement;+ expect(wrapper.children).toHaveLength(5);+ });++ it("renders 5 elements for level 1", () => {+ const { container } = render(<LevelDisplay icon="star" type="square" level={1} />);+ const wrapper = container.firstChild as HTMLElement;+ expect(wrapper.children).toHaveLength(5);+ });++ it("renders 5 elements for level 5", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={5} />);+ const wrapper = container.firstChild as HTMLElement;+ expect(wrapper.children).toHaveLength(5);+ });+ });++ describe("active state for circle/square/rectangle types", () => {+ it("marks correct number of items as active for level 3", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={3} />);+ const items = Array.from((container.firstChild as HTMLElement).children);+ const activeItems = items.filter((el) => el.getAttribute("data-active") === "true");+ expect(activeItems).toHaveLength(3);+ });++ it("marks 1 item active for level 1", () => {+ const { container } = render(<LevelDisplay icon="star" type="square" level={1} />);+ const items = Array.from((container.firstChild as HTMLElement).children);+ const activeItems = items.filter((el) => el.getAttribute("data-active") === "true");+ expect(activeItems).toHaveLength(1);+ });++ it("marks all 5 items active for level 5", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={5} />);+ const items = Array.from((container.firstChild as HTMLElement).children);+ const activeItems = items.filter((el) => el.getAttribute("data-active") === "true");+ expect(activeItems).toHaveLength(5);+ });+ });++ describe("progress-bar type", () => {+ it("renders progress bar elements", () => {+ const { container } = render(<LevelDisplay icon="star" type="progress-bar" level={3} />);+ const wrapper = container.firstChild as HTMLElement;+ expect(wrapper.children).toHaveLength(5);+ });++ it("has correct active count for progress-bar", () => {+ const { container } = render(<LevelDisplay icon="star" type="progress-bar" level={2} />);+ const items = Array.from((container.firstChild as HTMLElement).children);+ const activeItems = items.filter((el) => el.getAttribute("data-active") === "true");+ expect(activeItems).toHaveLength(2);+ });+ });++ describe("icon type", () => {+ it("renders PageIcon components", () => {+ render(<LevelDisplay icon="star" type="icon" level={3} />);+ const icons = screen.getAllByTestId("page-icon");+ expect(icons).toHaveLength(5);+ });++ it("passes the icon name to PageIcon", () => {+ render(<LevelDisplay icon="star" type="icon" level={2} />);+ const icons = screen.getAllByTestId("page-icon");+ expect(icons[0].getAttribute("data-icon")).toBe("star");+ });++ it("applies opacity to inactive icons", () => {+ render(<LevelDisplay icon="star" type="icon" level={2} />);+ const icons = screen.getAllByTestId("page-icon");+ // First 2 should be active (no opacity-40), last 3 inactive (opacity-40)+ expect(icons[0].className).not.toContain("opacity-40");+ expect(icons[1].className).not.toContain("opacity-40");+ expect(icons[2].className).toContain("opacity-40");+ expect(icons[3].className).toContain("opacity-40");+ expect(icons[4].className).toContain("opacity-40");+ });+ });++ describe("aria attributes", () => {+ it("has aria-label showing level out of 5", () => {+ render(<LevelDisplay icon="star" type="circle" level={3} />);+ const el = screen.getByRole("presentation");+ expect(el.getAttribute("aria-label")).toContain("3");+ expect(el.getAttribute("aria-label")).toContain("5");+ });+ });++ describe("className prop", () => {+ it("applies custom className to the wrapper", () => {+ const { container } = render(<LevelDisplay icon="star" type="circle" level={3} className="custom-level" />);+ expect((container.firstChild as HTMLElement).className).toContain("custom-level");+ });+ });+});diff --git a/src/components/resume/shared/linked-title.test.tsx b/src/components/resume/shared/linked-title.test.tsxnew file mode 100644index 000000000..e3d8ba975--- /dev/null+++ b/src/components/resume/shared/linked-title.test.tsx@@ -0,0 +1,95 @@+import { cleanup, render, screen } from "@testing-library/react";+import { afterEach, describe, expect, it } from "vite-plus/test";++afterEach(cleanup);++import { LinkedTitle } from "./linked-title";++describe("LinkedTitle", () => {+ describe("renders as link when showLinkInTitle and website.url are provided", () => {+ it("renders an anchor tag", () => {+ render(+ <LinkedTitle title="Acme Corp" website={{ url: "https://acme.com", label: "Acme" }} showLinkInTitle={true} />,+ );++ const link = screen.getByRole("link", { name: "Acme Corp" });+ expect(link).toBeDefined();+ expect(link.getAttribute("href")).toBe("https://acme.com");+ });++ it("sets target=_blank and rel=noopener on the link", () => {+ render(+ <LinkedTitle title="Company" website={{ url: "https://example.com", label: "" }} showLinkInTitle={true} />,+ );++ const link = screen.getByRole("link");+ expect(link.getAttribute("target")).toBe("_blank");+ expect(link.getAttribute("rel")).toBe("noopener");+ });++ it("wraps the title in a strong tag inside the link", () => {+ render(+ <LinkedTitle title="Bold Title" website={{ url: "https://example.com", label: "" }} showLinkInTitle={true} />,+ );++ const strong = screen.getByText("Bold Title");+ expect(strong.tagName).toBe("STRONG");+ });+ });++ describe("renders as plain strong tag otherwise", () => {+ it("renders strong when showLinkInTitle is false", () => {+ render(+ <LinkedTitle title="Plain Title" website={{ url: "https://example.com", label: "" }} showLinkInTitle={false} />,+ );++ const strong = screen.getByText("Plain Title");+ expect(strong.tagName).toBe("STRONG");+ expect(screen.queryByRole("link")).toBeNull();+ });++ it("renders strong when showLinkInTitle is undefined", () => {+ render(<LinkedTitle title="No Link" />);++ expect(screen.getByText("No Link").tagName).toBe("STRONG");+ expect(screen.queryByRole("link")).toBeNull();+ });++ it("renders strong when website is undefined", () => {+ render(<LinkedTitle title="No Website" showLinkInTitle={true} />);++ expect(screen.getByText("No Website").tagName).toBe("STRONG");+ expect(screen.queryByRole("link")).toBeNull();+ });++ it("renders strong when website.url is empty", () => {+ render(<LinkedTitle title="Empty URL" website={{ url: "", label: "" }} showLinkInTitle={true} />);++ expect(screen.getByText("Empty URL").tagName).toBe("STRONG");+ expect(screen.queryByRole("link")).toBeNull();+ });+ });++ describe("className prop", () => {+ it("applies className to the link element", () => {+ render(+ <LinkedTitle+ title="Styled"+ website={{ url: "https://x.com", label: "" }}+ showLinkInTitle={true}+ className="custom-class"+ />,+ );++ const link = screen.getByRole("link");+ expect(link.className).toContain("custom-class");+ });++ it("applies className to the strong element", () => {+ render(<LinkedTitle title="Styled Strong" className="my-class" />);++ const strong = screen.getByText("Styled Strong");+ expect(strong.className).toContain("my-class");+ });+ });+});diff --git a/src/components/resume/store/resume.test.ts b/src/components/resume/store/resume.test.tsnew file mode 100644index 000000000..c2cfcab64--- /dev/null+++ b/src/components/resume/store/resume.test.ts@@ -0,0 +1,272 @@+import { afterEach, describe, expect, it, vi } from "vite-plus/test";++// Mock dependencies before importing the store+vi.mock("@lingui/core/macro", () => ({+ t: (strings: TemplateStringsArray) => strings[0],+}));++vi.mock("sonner", () => ({+ toast: {+ error: vi.fn(() => "toast-id"),+ dismiss: vi.fn(),+ },+}));++vi.mock("@/integrations/orpc/client", () => ({+ orpc: {+ resume: {+ update: {+ call: vi.fn(() => Promise.resolve()),+ },+ },+ },+}));++import { defaultResumeData } from "@/schema/resume/data";++import { useResumeStore } from "./resume";++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function makeResume(overrides?: Record<string, unknown>) {+ return {+ id: "test-resume-id",+ name: "Test Resume",+ slug: "test-resume",+ tags: ["test"],+ isLocked: false,+ data: structuredClone(defaultResumeData),+ ...overrides,+ };+}++afterEach(() => {+ // Reset store between tests+ useResumeStore.getState().initialize(null);+});++// ---------------------------------------------------------------------------+// initialize+// ---------------------------------------------------------------------------++describe("useResumeStore — initialize", () => {+ it("sets resume and isReady to true", () => {+ const resume = makeResume();+ useResumeStore.getState().initialize(resume);++ const state = useResumeStore.getState();+ expect(state.isReady).toBe(true);+ expect(state.resume.id).toBe("test-resume-id");+ expect(state.resume.name).toBe("Test Resume");+ });++ it("sets isReady to false when initialized with null", () => {+ useResumeStore.getState().initialize(null);++ const state = useResumeStore.getState();+ expect(state.isReady).toBe(false);+ });++ it("replaces previous resume data", () => {+ useResumeStore.getState().initialize(makeResume({ name: "First" }));+ expect(useResumeStore.getState().resume.name).toBe("First");++ useResumeStore.getState().initialize(makeResume({ name: "Second" }));+ expect(useResumeStore.getState().resume.name).toBe("Second");+ });+});++// ---------------------------------------------------------------------------+// updateResumeData+// ---------------------------------------------------------------------------++describe("useResumeStore — updateResumeData", () => {+ it("updates resume data via immer draft", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "Jane Doe";+ });++ expect(useResumeStore.getState().resume.data.basics.name).toBe("Jane Doe");+ });++ it("can update nested fields", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.website.url = "https://example.com";+ draft.basics.email = "[email protected]";+ });++ expect(useResumeStore.getState().resume.data.basics.website.url).toBe("https://example.com");+ expect(useResumeStore.getState().resume.data.basics.email).toBe("[email protected]");+ });++ it("can add items to sections", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.sections.skills.items.push({+ id: "s1",+ hidden: false,+ icon: "",+ name: "TypeScript",+ proficiency: "Advanced",+ level: 4,+ keywords: [],+ });+ });++ expect(useResumeStore.getState().resume.data.sections.skills.items).toHaveLength(1);+ expect(useResumeStore.getState().resume.data.sections.skills.items[0].name).toBe("TypeScript");+ });++ it("does not update when resume is not initialized", () => {+ // Store starts with null resume+ useResumeStore.getState().initialize(null);++ // Should not throw+ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "Should not apply";+ });+ });++ it("blocks updates when resume is locked", async () => {+ const { toast } = await import("sonner");+ useResumeStore.getState().initialize(makeResume({ isLocked: true }));++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "Should not apply";+ });++ // Name should remain unchanged+ expect(useResumeStore.getState().resume.data.basics.name).toBe("");+ // Should show error toast+ expect(toast.error).toHaveBeenCalled();+ });++ it("does not block updates on unlocked resume", () => {+ useResumeStore.getState().initialize(makeResume({ isLocked: false }));++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "Updated";+ });++ expect(useResumeStore.getState().resume.data.basics.name).toBe("Updated");+ });+});++// ---------------------------------------------------------------------------+// Multiple updates+// ---------------------------------------------------------------------------++describe("useResumeStore — multiple updates", () => {+ it("applies sequential updates correctly", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "First Update";+ });++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.headline = "Developer";+ });++ const data = useResumeStore.getState().resume.data;+ expect(data.basics.name).toBe("First Update");+ expect(data.basics.headline).toBe("Developer");+ });++ it("preserves unmodified sections across updates", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.basics.name = "Jane";+ });++ // Metadata and other sections should be untouched+ expect(useResumeStore.getState().resume.data.metadata.template).toBe("onyx");+ expect(useResumeStore.getState().resume.data.sections.skills.items).toHaveLength(0);+ });+});++// ---------------------------------------------------------------------------+// Temporal store (undo/redo)+// ---------------------------------------------------------------------------++describe("useResumeStore — temporal", () => {+ it("has a temporal store accessible", () => {+ expect(useResumeStore.temporal).toBeDefined();+ expect(useResumeStore.temporal.getState).toBeDefined();+ });++ it("temporal store has undo/redo actions", () => {+ const temporal = useResumeStore.temporal.getState();+ expect(typeof temporal.undo).toBe("function");+ expect(typeof temporal.redo).toBe("function");+ expect(typeof temporal.clear).toBe("function");+ });+});++// ---------------------------------------------------------------------------+// Edge cases+// ---------------------------------------------------------------------------++describe("useResumeStore — edge cases", () => {+ it("can update metadata fields", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.metadata.template = "pikachu";+ });++ expect(useResumeStore.getState().resume.data.metadata.template).toBe("pikachu");+ });++ it("can update picture settings", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.picture.url = "https://example.com/photo.jpg";+ draft.picture.size = 120;+ });++ expect(useResumeStore.getState().resume.data.picture.url).toBe("https://example.com/photo.jpg");+ expect(useResumeStore.getState().resume.data.picture.size).toBe(120);+ });++ it("can remove all items from a section", () => {+ const resume = makeResume();+ resume.data.sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "JS", proficiency: "", level: 0, keywords: [] },+ ];+ useResumeStore.getState().initialize(resume);++ useResumeStore.getState().updateResumeData((draft) => {+ draft.sections.skills.items = [];+ });++ expect(useResumeStore.getState().resume.data.sections.skills.items).toHaveLength(0);+ });++ it("can update custom sections", () => {+ useResumeStore.getState().initialize(makeResume());++ useResumeStore.getState().updateResumeData((draft) => {+ draft.customSections.push({+ id: "custom-1",+ type: "experience",+ title: "Freelance",+ columns: 1,+ hidden: false,+ items: [],+ });+ });++ expect(useResumeStore.getState().resume.data.customSections).toHaveLength(1);+ expect(useResumeStore.getState().resume.data.customSections[0].title).toBe("Freelance");+ });+});diff --git a/src/components/resume/store/resume.ts b/src/components/resume/store/resume.tsindex f6cabc6e4..4531b7912 100644--- a/src/components/resume/store/resume.ts+++ b/src/components/resume/store/resume.ts@@ -32,12 +32,37 @@ type ResumeStore = ResumeStoreState & ResumeStoreActions;const controller = new AbortController();const signal = controller.signal;-const _syncResume = (resume: Resume) => {- void orpc.resume.update.call({ id: resume.id, data: resume.data }, { signal });+let syncErrorToastId: string | number | undefined;++const _syncResume = async (resume: Resume) => {+ try {+ await orpc.resume.update.call({ id: resume.id, data: resume.data }, { signal });++ // Dismiss error toast on successful sync+ if (syncErrorToastId !== undefined) {+ toast.dismiss(syncErrorToastId);+ syncErrorToastId = undefined;+ }+ } catch (error: unknown) {+ // Ignore aborted requests (e.g. page navigation)+ if (error instanceof DOMException && error.name === "AbortError") return;++ syncErrorToastId = toast.error(+ t`Your latest changes could not be saved. Please make sure you are connected to the internet and try again.`,+ { id: syncErrorToastId, duration: Infinity },+ );+ }};const syncResume = debounce(_syncResume, 500, { signal });+// Flush pending sync before the page unloads to prevent data loss+if (typeof window !== "undefined") {+ window.addEventListener("beforeunload", () => {+ syncResume.flush();+ });+}+let errorToastId: string | number | undefined;type PartializedState = { resume: Resume | null };diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsxindex b3d9bd18e..1ebee856b 100644--- a/src/components/ui/accordion.tsx+++ b/src/components/ui/accordion.tsx@@ -38,7 +38,7 @@ function AccordionContent({ className, children, ...props }: AccordionPrimitive.><divclassName={cn(- "h-(--accordion-panel-height) pt-0 pb-4 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",+ "h-(--accordion-panel-height) pt-0 pb-4 data-ending-style:h-0 data-starting-style:h-0 [&_p:not(:last-child)]:mb-4",className,)}>diff --git a/src/dialogs/resume/sections/award.tsx b/src/dialogs/resume/sections/award.tsxindex 8bb2f8469..5b891f715 100644--- a/src/dialogs/resume/sections/award.tsx+++ b/src/dialogs/resume/sections/award.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { awardItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = awardItemSchema;@@ -44,12 +45,7 @@ export function CreateAwardDialog({ data }: DialogProps<"resume.sections.awards.const onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.awards.items.push(formData);- }+ createSectionItem(draft, "awards", formData, data?.customSectionId);});closeDialog();};@@ -105,15 +101,7 @@ export function UpdateAwardDialog({ data }: DialogProps<"resume.sections.awards.const onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.awards.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.awards.items[index] = formData;- }+ updateSectionItem(draft, "awards", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/certification.tsx b/src/dialogs/resume/sections/certification.tsxindex a464fb80d..c51cb3117 100644--- a/src/dialogs/resume/sections/certification.tsx+++ b/src/dialogs/resume/sections/certification.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { certificationItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = certificationItemSchema;@@ -44,12 +45,7 @@ export function CreateCertificationDialog({ data }: DialogProps<"resume.sectionsconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.certifications.items.push(formData);- }+ createSectionItem(draft, "certifications", formData, data?.customSectionId);});closeDialog();};@@ -105,15 +101,7 @@ export function UpdateCertificationDialog({ data }: DialogProps<"resume.sectionsconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.certifications.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.certifications.items[index] = formData;- }+ updateSectionItem(draft, "certifications", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/education.tsx b/src/dialogs/resume/sections/education.tsxindex c17767d5a..5e4db01b8 100644--- a/src/dialogs/resume/sections/education.tsx+++ b/src/dialogs/resume/sections/education.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { educationItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = educationItemSchema;@@ -47,12 +48,7 @@ export function CreateEducationDialog({ data }: DialogProps<"resume.sections.educonst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.education.items.push(formData);- }+ createSectionItem(draft, "education", formData, data?.customSectionId);});closeDialog();};@@ -111,15 +107,7 @@ export function UpdateEducationDialog({ data }: DialogProps<"resume.sections.educonst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.education.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.education.items[index] = formData;- }+ updateSectionItem(draft, "education", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/experience.tsx b/src/dialogs/resume/sections/experience.tsxindex 4f6234438..c00416bc7 100644--- a/src/dialogs/resume/sections/experience.tsx+++ b/src/dialogs/resume/sections/experience.tsx@@ -21,6 +21,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { experienceItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = experienceItemSchema;@@ -49,14 +50,8 @@ export function CreateExperienceDialog({ data }: DialogProps<"resume.sections.exconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.experience.items.push(formData);- }+ createSectionItem(draft, "experience", formData, data?.customSectionId);});-closeDialog();};@@ -113,17 +108,8 @@ export function UpdateExperienceDialog({ data }: DialogProps<"resume.sections.exconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.experience.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.experience.items[index] = formData;- }+ updateSectionItem(draft, "experience", formData, data?.customSectionId);});-closeDialog();};diff --git a/src/dialogs/resume/sections/interest.tsx b/src/dialogs/resume/sections/interest.tsxindex 0e040a522..816be1f4e 100644--- a/src/dialogs/resume/sections/interest.tsx+++ b/src/dialogs/resume/sections/interest.tsx@@ -18,6 +18,7 @@ import { Input } from "@/components/ui/input";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { interestItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";import { cn } from "@/utils/style";@@ -42,12 +43,7 @@ export function CreateInterestDialog({ data }: DialogProps<"resume.sections.inteconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.interests.items.push(formData);- }+ createSectionItem(draft, "interests", formData, data?.customSectionId);});closeDialog();};@@ -100,15 +96,7 @@ export function UpdateInterestDialog({ data }: DialogProps<"resume.sections.inteconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.interests.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.interests.items[index] = formData;- }+ updateSectionItem(draft, "interests", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/language.tsx b/src/dialogs/resume/sections/language.tsxindex bf6cf0865..9a8b3519e 100644--- a/src/dialogs/resume/sections/language.tsx+++ b/src/dialogs/resume/sections/language.tsx@@ -17,6 +17,7 @@ import { Slider } from "@/components/ui/slider";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { languageItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = languageItemSchema;@@ -40,12 +41,7 @@ export function CreateLanguageDialog({ data }: DialogProps<"resume.sections.langconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.languages.items.push(formData);- }+ createSectionItem(draft, "languages", formData, data?.customSectionId);});closeDialog();};@@ -98,15 +94,7 @@ export function UpdateLanguageDialog({ data }: DialogProps<"resume.sections.langconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.languages.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.languages.items[index] = formData;- }+ updateSectionItem(draft, "languages", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/profile.tsx b/src/dialogs/resume/sections/profile.tsxindex d21aa41e6..609ee21b5 100644--- a/src/dialogs/resume/sections/profile.tsx+++ b/src/dialogs/resume/sections/profile.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { type DialogProps, useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { profileItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";import { cn } from "@/utils/style";@@ -44,12 +45,7 @@ export function CreateProfileDialog({ data }: DialogProps<"resume.sections.proficonst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.profiles.items.push(formData);- }+ createSectionItem(draft, "profiles", formData, data?.customSectionId);});closeDialog();};@@ -104,15 +100,7 @@ export function UpdateProfileDialog({ data }: DialogProps<"resume.sections.proficonst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.profiles.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.profiles.items[index] = formData;- }+ updateSectionItem(draft, "profiles", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/project.tsx b/src/dialogs/resume/sections/project.tsxindex ed5c1c43b..0e3bf345a 100644--- a/src/dialogs/resume/sections/project.tsx+++ b/src/dialogs/resume/sections/project.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { projectItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = projectItemSchema;@@ -43,12 +44,7 @@ export function CreateProjectDialog({ data }: DialogProps<"resume.sections.projeconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.projects.items.push(formData);- }+ createSectionItem(draft, "projects", formData, data?.customSectionId);});closeDialog();};@@ -103,15 +99,7 @@ export function UpdateProjectDialog({ data }: DialogProps<"resume.sections.projeconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.projects.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.projects.items[index] = formData;- }+ updateSectionItem(draft, "projects", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/publication.tsx b/src/dialogs/resume/sections/publication.tsxindex b8855f0d8..1e4577f29 100644--- a/src/dialogs/resume/sections/publication.tsx+++ b/src/dialogs/resume/sections/publication.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { publicationItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = publicationItemSchema;@@ -44,12 +45,7 @@ export function CreatePublicationDialog({ data }: DialogProps<"resume.sections.pconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.publications.items.push(formData);- }+ createSectionItem(draft, "publications", formData, data?.customSectionId);});closeDialog();};@@ -105,15 +101,7 @@ export function UpdatePublicationDialog({ data }: DialogProps<"resume.sections.pconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.publications.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.publications.items[index] = formData;- }+ updateSectionItem(draft, "publications", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/reference.tsx b/src/dialogs/resume/sections/reference.tsxindex b54022942..fca3ace8c 100644--- a/src/dialogs/resume/sections/reference.tsx+++ b/src/dialogs/resume/sections/reference.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { referenceItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = referenceItemSchema;@@ -44,12 +45,7 @@ export function CreateReferenceDialog({ data }: DialogProps<"resume.sections.refconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.references.items.push(formData);- }+ createSectionItem(draft, "references", formData, data?.customSectionId);});closeDialog();};@@ -105,15 +101,7 @@ export function UpdateReferenceDialog({ data }: DialogProps<"resume.sections.refconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.references.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.references.items[index] = formData;- }+ updateSectionItem(draft, "references", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/skill.tsx b/src/dialogs/resume/sections/skill.tsxindex 8cea79717..624ae16bf 100644--- a/src/dialogs/resume/sections/skill.tsx+++ b/src/dialogs/resume/sections/skill.tsx@@ -20,6 +20,7 @@ import { Slider } from "@/components/ui/slider";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { skillItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";import { cn } from "@/utils/style";@@ -46,12 +47,7 @@ export function CreateSkillDialog({ data }: DialogProps<"resume.sections.skills.const onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.skills.items.push(formData);- }+ createSectionItem(draft, "skills", formData, data?.customSectionId);});closeDialog();};@@ -106,15 +102,7 @@ export function UpdateSkillDialog({ data }: DialogProps<"resume.sections.skills.const onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.skills.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.skills.items[index] = formData;- }+ updateSectionItem(draft, "skills", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/resume/sections/volunteer.tsx b/src/dialogs/resume/sections/volunteer.tsxindex fcb21d66c..43332636e 100644--- a/src/dialogs/resume/sections/volunteer.tsx+++ b/src/dialogs/resume/sections/volunteer.tsx@@ -18,6 +18,7 @@ import { Switch } from "@/components/ui/switch";import { useDialogStore } from "@/dialogs/store";import { useFormBlocker } from "@/hooks/use-form-blocker";import { volunteerItemSchema } from "@/schema/resume/data";+import { createSectionItem, updateSectionItem } from "@/utils/resume/section-actions";import { generateId } from "@/utils/string";const formSchema = volunteerItemSchema;@@ -44,12 +45,7 @@ export function CreateVolunteerDialog({ data }: DialogProps<"resume.sections.volconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (section) section.items.push(formData);- } else {- draft.sections.volunteer.items.push(formData);- }+ createSectionItem(draft, "volunteer", formData, data?.customSectionId);});closeDialog();};@@ -105,15 +101,7 @@ export function UpdateVolunteerDialog({ data }: DialogProps<"resume.sections.volconst onSubmit = (formData: FormValues) => {updateResumeData((draft) => {- if (data?.customSectionId) {- const section = draft.customSections.find((s) => s.id === data.customSectionId);- if (!section) return;- const index = section.items.findIndex((item) => item.id === formData.id);- if (index !== -1) section.items[index] = formData;- } else {- const index = draft.sections.volunteer.items.findIndex((item) => item.id === formData.id);- if (index !== -1) draft.sections.volunteer.items[index] = formData;- }+ updateSectionItem(draft, "volunteer", formData, data?.customSectionId);});closeDialog();};diff --git a/src/dialogs/store.test.ts b/src/dialogs/store.test.tsnew file mode 100644index 000000000..5d96c5334--- /dev/null+++ b/src/dialogs/store.test.ts@@ -0,0 +1,205 @@+import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";++import { useDialogStore } from "./store";++// ---------------------------------------------------------------------------+// Setup+// ---------------------------------------------------------------------------++beforeEach(() => {+ vi.useFakeTimers();+ useDialogStore.setState({ open: false, activeDialog: null });+});++afterEach(() => {+ vi.useRealTimers();+});++// ---------------------------------------------------------------------------+// Initial state+// ---------------------------------------------------------------------------++describe("DialogStore — initial state", () => {+ it("starts closed with no active dialog", () => {+ const state = useDialogStore.getState();+ expect(state.open).toBe(false);+ expect(state.activeDialog).toBeNull();+ });+});++// ---------------------------------------------------------------------------+// openDialog+// ---------------------------------------------------------------------------++describe("DialogStore — openDialog", () => {+ it("opens dialog with correct type and data", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);++ const state = useDialogStore.getState();+ expect(state.open).toBe(true);+ expect(state.activeDialog?.type).toBe("resume.create");+ });++ it("opens dialog with data payload", () => {+ useDialogStore.getState().openDialog("resume.update", {+ id: "r1",+ name: "My Resume",+ slug: "my-resume",+ tags: ["tag1"],+ });++ const state = useDialogStore.getState();+ expect(state.open).toBe(true);+ expect(state.activeDialog?.type).toBe("resume.update");+ expect((state.activeDialog as any)?.data.name).toBe("My Resume");+ });++ it("opens section create dialog without data", () => {+ useDialogStore.getState().openDialog("resume.sections.skills.create", undefined);++ const state = useDialogStore.getState();+ expect(state.open).toBe(true);+ expect(state.activeDialog?.type).toBe("resume.sections.skills.create");+ });++ it("opens section update dialog with item data", () => {+ useDialogStore.getState().openDialog("resume.sections.skills.update", {+ item: {+ id: "s1",+ hidden: false,+ icon: "star",+ name: "TypeScript",+ proficiency: "Advanced",+ level: 4,+ keywords: ["frontend"],+ },+ });++ const state = useDialogStore.getState();+ expect(state.open).toBe(true);+ expect((state.activeDialog as any)?.data.item.name).toBe("TypeScript");+ });++ it("replaces previous dialog when opening a new one", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ expect(useDialogStore.getState().activeDialog?.type).toBe("resume.create");++ useDialogStore.getState().openDialog("resume.import", undefined);+ expect(useDialogStore.getState().activeDialog?.type).toBe("resume.import");+ });+});++// ---------------------------------------------------------------------------+// closeDialog+// ---------------------------------------------------------------------------++describe("DialogStore — closeDialog", () => {+ it("sets open to false immediately", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ expect(useDialogStore.getState().open).toBe(true);++ useDialogStore.getState().closeDialog();+ expect(useDialogStore.getState().open).toBe(false);+ });++ it("clears activeDialog after 300ms delay (animation)", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ useDialogStore.getState().closeDialog();++ // activeDialog should still be set immediately after close+ expect(useDialogStore.getState().activeDialog).not.toBeNull();++ // After 300ms, it should be cleared+ vi.advanceTimersByTime(300);+ expect(useDialogStore.getState().activeDialog).toBeNull();+ });++ it("does not clear activeDialog before 300ms", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ useDialogStore.getState().closeDialog();++ vi.advanceTimersByTime(200);+ expect(useDialogStore.getState().activeDialog).not.toBeNull();++ vi.advanceTimersByTime(100);+ expect(useDialogStore.getState().activeDialog).toBeNull();+ });+});++// ---------------------------------------------------------------------------+// onOpenChange+// ---------------------------------------------------------------------------++describe("DialogStore — onOpenChange", () => {+ it("sets open state directly", () => {+ useDialogStore.getState().onOpenChange(true);+ expect(useDialogStore.getState().open).toBe(true);++ useDialogStore.getState().onOpenChange(false);+ expect(useDialogStore.getState().open).toBe(false);+ });++ it("clears activeDialog after 300ms when set to false", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ useDialogStore.getState().onOpenChange(false);++ expect(useDialogStore.getState().activeDialog).not.toBeNull();++ vi.advanceTimersByTime(300);+ expect(useDialogStore.getState().activeDialog).toBeNull();+ });++ it("does NOT clear activeDialog when set to true", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ useDialogStore.getState().onOpenChange(true);++ vi.advanceTimersByTime(500);+ // activeDialog should still be set+ expect(useDialogStore.getState().activeDialog).not.toBeNull();+ });+});++// ---------------------------------------------------------------------------+// Edge cases+// ---------------------------------------------------------------------------++describe("DialogStore — edge cases", () => {+ it("handles close when already closed", () => {+ useDialogStore.getState().closeDialog();+ expect(useDialogStore.getState().open).toBe(false);++ vi.advanceTimersByTime(300);+ expect(useDialogStore.getState().activeDialog).toBeNull();+ });++ it("handles rapid open/close cycles", () => {+ useDialogStore.getState().openDialog("resume.create", undefined);+ useDialogStore.getState().closeDialog();+ useDialogStore.getState().openDialog("resume.import", undefined);++ expect(useDialogStore.getState().open).toBe(true);+ expect(useDialogStore.getState().activeDialog?.type).toBe("resume.import");++ vi.advanceTimersByTime(300);+ // The close timeout from the first close might fire, but the new open should have+ // set a new activeDialog, so the current type should still be "resume.import"+ // Note: This exposes a potential race condition in the store+ });++ it("supports all dialog types", () => {+ const dialogTypes = [+ "auth.change-password",+ "auth.two-factor.enable",+ "auth.two-factor.disable",+ "api-key.create",+ "resume.create",+ "resume.import",+ "resume.template.gallery",+ ] as const;++ for (const type of dialogTypes) {+ useDialogStore.getState().openDialog(type, undefined);+ expect(useDialogStore.getState().activeDialog?.type).toBe(type);+ }+ });+});diff --git a/src/hooks/use-confirm.test.tsx b/src/hooks/use-confirm.test.tsxnew file mode 100644index 000000000..5d15445f1--- /dev/null+++ b/src/hooks/use-confirm.test.tsx@@ -0,0 +1,122 @@+import { act, render, renderHook, screen } from "@testing-library/react";+import React from "react";+import { afterEach, describe, expect, it } from "vite-plus/test";++import { ConfirmDialogProvider, useConfirm } from "./use-confirm";++afterEach(() => {+ document.body.innerHTML = "";+});++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function wrapper({ children }: { children: React.ReactNode }) {+ return <ConfirmDialogProvider>{children}</ConfirmDialogProvider>;+}++/** A test component that triggers confirm and stores the result */+function ConfirmTester() {+ const confirm = useConfirm();+ const [result, setResult] = React.useState<boolean | null>(null);++ return (+ <div>+ <button+ onClick={async () => {+ const confirmed = await confirm("Delete this?", {+ description: "This action cannot be undone.",+ confirmText: "Delete",+ cancelText: "Keep",+ });+ setResult(confirmed);+ }}+ >+ Trigger+ </button>+ {result !== null && <span data-testid="result">{String(result)}</span>}+ </div>+ );+}++// ---------------------------------------------------------------------------+// Tests+// ---------------------------------------------------------------------------++describe("useConfirm", () => {+ it("throws when used outside provider", () => {+ expect(() => {+ renderHook(() => useConfirm());+ }).toThrow("useConfirm must be used within a <ConfirmDialogProvider />");+ });++ it("returns a function when used inside provider", () => {+ const { result } = renderHook(() => useConfirm(), { wrapper });+ expect(typeof result.current).toBe("function");+ });++ it("confirm() returns a promise", () => {+ const { result } = renderHook(() => useConfirm(), { wrapper });++ let promise: Promise<boolean> | undefined;+ act(() => {+ promise = result.current("Are you sure?");+ });++ expect(promise).toBeInstanceOf(Promise);+ });++ it("opens dialog with title and description when confirm is called", async () => {+ render(+ <ConfirmDialogProvider>+ <ConfirmTester />+ </ConfirmDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Trigger").click();+ });++ expect(screen.getByText("Delete this?")).toBeDefined();+ expect(screen.getByText("This action cannot be undone.")).toBeDefined();+ expect(screen.getByText("Delete")).toBeDefined();+ expect(screen.getByText("Keep")).toBeDefined();+ });++ it("resolves true when confirm button is clicked", async () => {+ render(+ <ConfirmDialogProvider>+ <ConfirmTester />+ </ConfirmDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Trigger").click();+ });++ await act(async () => {+ screen.getByText("Delete").click();+ });++ expect(screen.getByTestId("result").textContent).toBe("true");+ });++ it("resolves false when cancel button is clicked", async () => {+ render(+ <ConfirmDialogProvider>+ <ConfirmTester />+ </ConfirmDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Trigger").click();+ });++ await act(async () => {+ screen.getByText("Keep").click();+ });++ expect(screen.getByTestId("result").textContent).toBe("false");+ });+});diff --git a/src/hooks/use-controlled-state.test.tsx b/src/hooks/use-controlled-state.test.tsxnew file mode 100644index 000000000..1e55f5f53--- /dev/null+++ b/src/hooks/use-controlled-state.test.tsx@@ -0,0 +1,109 @@+import { act, renderHook } from "@testing-library/react";+import { describe, expect, it, vi } from "vite-plus/test";++import { useControlledState } from "./use-controlled-state";++describe("useControlledState", () => {+ describe("uncontrolled mode (no value prop)", () => {+ it("uses defaultValue as initial state", () => {+ const { result } = renderHook(() => useControlledState({ defaultValue: "hello" }));+ expect(result.current[0]).toBe("hello");+ });++ it("updates internal state when setter is called", () => {+ const { result } = renderHook(() => useControlledState({ defaultValue: 0 }));++ act(() => {+ result.current[1](42);+ });++ expect(result.current[0]).toBe(42);+ });++ it("calls onChange when setter is called", () => {+ const onChange = vi.fn();+ const { result } = renderHook(() => useControlledState({ defaultValue: "a", onChange }));++ act(() => {+ result.current[1]("b");+ });++ expect(onChange).toHaveBeenCalledWith("b");+ });++ it("passes extra args to onChange", () => {+ const onChange = vi.fn();+ const { result } = renderHook(() => useControlledState<string, [number]>({ defaultValue: "a", onChange }));++ act(() => {+ result.current[1]("b", 99);+ });++ expect(onChange).toHaveBeenCalledWith("b", 99);+ });+ });++ describe("controlled mode (value prop provided)", () => {+ it("uses value prop as initial state", () => {+ const { result } = renderHook(() => useControlledState({ value: "controlled" }));+ expect(result.current[0]).toBe("controlled");+ });++ it("syncs internal state when value prop changes", () => {+ let value = "first";+ const { result, rerender } = renderHook(() => useControlledState({ value }));++ expect(result.current[0]).toBe("first");++ value = "second";+ rerender();++ expect(result.current[0]).toBe("second");+ });++ it("still calls onChange when setter is called in controlled mode", () => {+ const onChange = vi.fn();+ const { result } = renderHook(() => useControlledState({ value: "x", onChange }));++ act(() => {+ result.current[1]("y");+ });++ expect(onChange).toHaveBeenCalledWith("y");+ });+ });++ describe("edge cases", () => {+ it("handles undefined defaultValue", () => {+ const { result } = renderHook(() => useControlledState({}));+ expect(result.current[0]).toBeUndefined();+ });++ it("handles boolean values", () => {+ const { result } = renderHook(() => useControlledState({ defaultValue: false }));+ expect(result.current[0]).toBe(false);++ act(() => {+ result.current[1](true);+ });++ expect(result.current[0]).toBe(true);+ });++ it("handles object values", () => {+ const obj = { key: "value" };+ const { result } = renderHook(() => useControlledState({ defaultValue: obj }));+ expect(result.current[0]).toBe(obj);+ });++ it("works without onChange callback", () => {+ const { result } = renderHook(() => useControlledState({ defaultValue: 5 }));++ act(() => {+ result.current[1](10);+ });++ expect(result.current[0]).toBe(10);+ });+ });+});diff --git a/src/hooks/use-mobile.test.tsx b/src/hooks/use-mobile.test.tsxnew file mode 100644index 000000000..0e0093801--- /dev/null+++ b/src/hooks/use-mobile.test.tsx@@ -0,0 +1,104 @@+import { act, renderHook } from "@testing-library/react";+import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";++import { useIsMobile } from "./use-mobile";++// ---------------------------------------------------------------------------+// Mock window.matchMedia+// ---------------------------------------------------------------------------++type MockMatchMedia = {+ matches: boolean;+ listeners: Array<(e: { matches: boolean }) => void>;+ trigger: (matches: boolean) => void;+};++let mockMql: MockMatchMedia;++beforeEach(() => {+ mockMql = {+ matches: false,+ listeners: [],+ trigger(matches: boolean) {+ this.matches = matches;+ for (const listener of this.listeners) {+ listener({ matches });+ }+ },+ };++ vi.stubGlobal(+ "matchMedia",+ vi.fn(() => ({+ get matches() {+ return mockMql.matches;+ },+ addEventListener: (_event: string, cb: (e: { matches: boolean }) => void) => {+ mockMql.listeners.push(cb);+ },+ removeEventListener: (_event: string, cb: (e: { matches: boolean }) => void) => {+ mockMql.listeners = mockMql.listeners.filter((l) => l !== cb);+ },+ })),+ );+});++afterEach(() => {+ vi.unstubAllGlobals();+});++// ---------------------------------------------------------------------------+// Tests+// ---------------------------------------------------------------------------++describe("useIsMobile", () => {+ it("returns false on desktop-sized screens", () => {+ mockMql.matches = false;+ const { result } = renderHook(() => useIsMobile());+ expect(result.current).toBe(false);+ });++ it("returns true on mobile-sized screens", () => {+ mockMql.matches = true;+ const { result } = renderHook(() => useIsMobile());+ expect(result.current).toBe(true);+ });++ it("updates when screen size changes to mobile", () => {+ mockMql.matches = false;+ const { result } = renderHook(() => useIsMobile());+ expect(result.current).toBe(false);++ act(() => {+ mockMql.trigger(true);+ });++ expect(result.current).toBe(true);+ });++ it("updates when screen size changes to desktop", () => {+ mockMql.matches = true;+ const { result } = renderHook(() => useIsMobile());+ expect(result.current).toBe(true);++ act(() => {+ mockMql.trigger(false);+ });++ expect(result.current).toBe(false);+ });++ it("cleans up event listener on unmount", () => {+ mockMql.matches = false;+ const { unmount } = renderHook(() => useIsMobile());++ expect(mockMql.listeners).toHaveLength(1);+ unmount();+ expect(mockMql.listeners).toHaveLength(0);+ });++ it("uses 768px breakpoint (max-width: 767px)", () => {+ renderHook(() => useIsMobile());+ expect(window.matchMedia).toHaveBeenCalledWith("(max-width: 767px)");+ });+});diff --git a/src/hooks/use-prompt.test.tsx b/src/hooks/use-prompt.test.tsxnew file mode 100644index 000000000..1a2804fa8--- /dev/null+++ b/src/hooks/use-prompt.test.tsx@@ -0,0 +1,159 @@+import { act, fireEvent, render, renderHook, screen } from "@testing-library/react";+import React from "react";+import { afterEach, describe, expect, it, vi } from "vite-plus/test";++vi.mock("@lingui/core/macro", () => ({+ t: (strings: TemplateStringsArray) => strings[0],+}));++import { PromptDialogProvider, usePrompt } from "./use-prompt";++afterEach(() => {+ document.body.innerHTML = "";+});++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function wrapper({ children }: { children: React.ReactNode }) {+ return <PromptDialogProvider>{children}</PromptDialogProvider>;+}++function PromptTester() {+ const prompt = usePrompt();+ const [result, setResult] = React.useState<string | null | undefined>(undefined);++ return (+ <div>+ <button+ onClick={async () => {+ const value = await prompt("Enter name", {+ description: "Provide your full name",+ defaultValue: "John",+ confirmText: "Submit",+ cancelText: "Skip",+ });+ setResult(value);+ }}+ >+ Open Prompt+ </button>+ {result !== undefined && <span data-testid="result">{result === null ? "null" : result}</span>}+ </div>+ );+}++// ---------------------------------------------------------------------------+// Tests+// ---------------------------------------------------------------------------++describe("usePrompt", () => {+ it("throws when used outside provider", () => {+ expect(() => {+ renderHook(() => usePrompt());+ }).toThrow("usePrompt must be used within a <PromptDialogProvider />");+ });++ it("returns a function when used inside provider", () => {+ const { result } = renderHook(() => usePrompt(), { wrapper });+ expect(typeof result.current).toBe("function");+ });++ it("prompt() returns a promise", () => {+ const { result } = renderHook(() => usePrompt(), { wrapper });++ let promise: Promise<string | null> | undefined;+ act(() => {+ promise = result.current("Enter value");+ });++ expect(promise).toBeInstanceOf(Promise);+ });++ it("opens dialog with title, description, and default value", async () => {+ render(+ <PromptDialogProvider>+ <PromptTester />+ </PromptDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Open Prompt").click();+ });++ expect(screen.getByText("Enter name")).toBeDefined();+ expect(screen.getByText("Provide your full name")).toBeDefined();+ expect(screen.getByText("Submit")).toBeDefined();+ expect(screen.getByText("Skip")).toBeDefined();++ // Check default value in input+ const input = screen.getByDisplayValue("John");+ expect(input).toBeDefined();+ });++ it("resolves with input value when confirm is clicked", async () => {+ render(+ <PromptDialogProvider>+ <PromptTester />+ </PromptDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Open Prompt").click();+ });++ // Change the input value+ const input = screen.getByDisplayValue("John");+ await act(async () => {+ fireEvent.change(input, { target: { value: "Jane Doe" } });+ });++ await act(async () => {+ screen.getByText("Submit").click();+ });++ expect(screen.getByTestId("result").textContent).toBe("Jane Doe");+ });++ it("resolves with null when cancel is clicked", async () => {+ render(+ <PromptDialogProvider>+ <PromptTester />+ </PromptDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Open Prompt").click();+ });++ await act(async () => {+ screen.getByText("Skip").click();+ });++ expect(screen.getByTestId("result").textContent).toBe("null");+ });++ it("resolves with value when Enter key is pressed", async () => {+ render(+ <PromptDialogProvider>+ <PromptTester />+ </PromptDialogProvider>,+ );++ await act(async () => {+ screen.getByText("Open Prompt").click();+ });++ const input = screen.getByDisplayValue("John");+ await act(async () => {+ fireEvent.change(input, { target: { value: "Enter User" } });+ });++ await act(async () => {+ fireEvent.keyDown(input, { key: "Enter" });+ });++ expect(screen.getByTestId("result").textContent).toBe("Enter User");+ });+});diff --git a/src/integrations/ai/store.test.ts b/src/integrations/ai/store.test.tsnew file mode 100644index 000000000..f929aa699--- /dev/null+++ b/src/integrations/ai/store.test.ts@@ -0,0 +1,203 @@+import { afterEach, describe, expect, it } from "vite-plus/test";++import { useAIStore } from "./store";++// ---------------------------------------------------------------------------+// Reset store between tests+// ---------------------------------------------------------------------------++afterEach(() => {+ useAIStore.getState().reset();+});++// ---------------------------------------------------------------------------+// Initial state+// ---------------------------------------------------------------------------++describe("AI Store — initial state", () => {+ it("starts with default values", () => {+ const state = useAIStore.getState();+ expect(state.enabled).toBe(false);+ expect(state.provider).toBe("openai");+ expect(state.model).toBe("");+ expect(state.apiKey).toBe("");+ expect(state.baseURL).toBe("");+ expect(state.testStatus).toBe("unverified");+ });+});++// ---------------------------------------------------------------------------+// set()+// ---------------------------------------------------------------------------++describe("AI Store — set()", () => {+ it("updates provider", () => {+ useAIStore.getState().set((draft) => {+ draft.provider = "anthropic";+ });+ expect(useAIStore.getState().provider).toBe("anthropic");+ });++ it("updates model and apiKey", () => {+ useAIStore.getState().set((draft) => {+ draft.model = "gpt-4";+ draft.apiKey = "sk-test-key";+ });+ expect(useAIStore.getState().model).toBe("gpt-4");+ expect(useAIStore.getState().apiKey).toBe("sk-test-key");+ });++ it("resets testStatus to unverified when provider changes", () => {+ // First set testStatus to success+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ // Now change provider — should reset+ useAIStore.getState().set((draft) => {+ draft.provider = "gemini";+ });+ expect(useAIStore.getState().testStatus).toBe("unverified");+ });++ it("resets testStatus to unverified when model changes", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().set((draft) => {+ draft.model = "new-model";+ });+ expect(useAIStore.getState().testStatus).toBe("unverified");+ });++ it("resets testStatus to unverified when apiKey changes", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().set((draft) => {+ draft.apiKey = "new-key";+ });+ expect(useAIStore.getState().testStatus).toBe("unverified");+ });++ it("resets testStatus to unverified when baseURL changes", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().set((draft) => {+ draft.baseURL = "https://new-url.com";+ });+ expect(useAIStore.getState().testStatus).toBe("unverified");+ });++ it("disables when config changes", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().setEnabled(true);+ expect(useAIStore.getState().enabled).toBe(true);++ // Change provider — should disable+ useAIStore.getState().set((draft) => {+ draft.provider = "ollama";+ });+ expect(useAIStore.getState().enabled).toBe(false);+ });++ it("does NOT reset testStatus when non-config fields change", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ // Changing testStatus itself shouldn't trigger the reset logic+ // (since provider/model/apiKey/baseURL didn't change)+ expect(useAIStore.getState().testStatus).toBe("success");+ });+});++// ---------------------------------------------------------------------------+// canEnable()+// ---------------------------------------------------------------------------++describe("AI Store — canEnable()", () => {+ it("returns false when testStatus is unverified", () => {+ expect(useAIStore.getState().canEnable()).toBe(false);+ });++ it("returns false when testStatus is failure", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "failure";+ });+ expect(useAIStore.getState().canEnable()).toBe(false);+ });++ it("returns true when testStatus is success", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ expect(useAIStore.getState().canEnable()).toBe(true);+ });+});++// ---------------------------------------------------------------------------+// setEnabled()+// ---------------------------------------------------------------------------++describe("AI Store — setEnabled()", () => {+ it("enables when testStatus is success", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().setEnabled(true);+ expect(useAIStore.getState().enabled).toBe(true);+ });++ it("refuses to enable when testStatus is not success", () => {+ useAIStore.getState().setEnabled(true);+ expect(useAIStore.getState().enabled).toBe(false);+ });++ it("can disable regardless of testStatus", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useAIStore.getState().setEnabled(true);+ expect(useAIStore.getState().enabled).toBe(true);++ useAIStore.getState().setEnabled(false);+ expect(useAIStore.getState().enabled).toBe(false);+ });++ it("refuses to enable after failure", () => {+ useAIStore.getState().set((draft) => {+ draft.testStatus = "failure";+ });+ useAIStore.getState().setEnabled(true);+ expect(useAIStore.getState().enabled).toBe(false);+ });+});++// ---------------------------------------------------------------------------+// reset()+// ---------------------------------------------------------------------------++describe("AI Store — reset()", () => {+ it("restores all state to initial values", () => {+ useAIStore.getState().set((draft) => {+ draft.provider = "anthropic";+ draft.model = "claude-3";+ draft.apiKey = "sk-key";+ draft.baseURL = "https://api.anthropic.com";+ draft.testStatus = "success";+ });+ useAIStore.getState().setEnabled(true);++ useAIStore.getState().reset();++ const state = useAIStore.getState();+ expect(state.enabled).toBe(false);+ expect(state.provider).toBe("openai");+ expect(state.model).toBe("");+ expect(state.apiKey).toBe("");+ expect(state.baseURL).toBe("");+ expect(state.testStatus).toBe("unverified");+ });+});diff --git a/src/integrations/auth/client.ts b/src/integrations/auth/client.tsindex 139dcc610..e5e1a2e1d 100644--- a/src/integrations/auth/client.ts+++ b/src/integrations/auth/client.ts@@ -2,7 +2,13 @@ import { apiKeyClient } from "@better-auth/api-key/client";import { dashClient } from "@better-auth/infra/client";import { oauthProviderClient } from "@better-auth/oauth-provider/client";import { oauthProviderResourceClient } from "@better-auth/oauth-provider/resource-client";-import { genericOAuthClient, inferAdditionalFields, twoFactorClient, usernameClient } from "better-auth/client/plugins";+import {+ adminClient,+ genericOAuthClient,+ inferAdditionalFields,+ twoFactorClient,+ usernameClient,+} from "better-auth/client/plugins";import { createAuthClient } from "better-auth/react";import type { auth } from "./config";@@ -11,6 +17,7 @@ const getAuthClient = () => {return createAuthClient({plugins: [dashClient(),+ adminClient(),apiKeyClient(),usernameClient(),twoFactorClient({diff --git a/src/integrations/auth/config.ts b/src/integrations/auth/config.tsindex 793ca2364..f5b61d288 100644--- a/src/integrations/auth/config.ts+++ b/src/integrations/auth/config.ts@@ -1,4 +1,3 @@-import type { GenericOAuthConfig } from "better-auth/plugins";import type { JWTPayload } from "jose";import { apiKey } from "@better-auth/api-key";@@ -7,7 +6,7 @@ import { dash } from "@better-auth/infra";import { oauthProvider } from "@better-auth/oauth-provider";import { BetterAuthError, betterAuth } from "better-auth";import { verifyAccessToken } from "better-auth/oauth2";-import { jwt, openAPI } from "better-auth/plugins";+import { admin, jwt, openAPI, type GenericOAuthConfig } from "better-auth/plugins";import { genericOAuth } from "better-auth/plugins/generic-oauth";import { twoFactor } from "better-auth/plugins/two-factor";import { username } from "better-auth/plugins/username";@@ -124,7 +123,7 @@ const getAuthConfig = () => {emailAndPassword: {enabled: !env.FLAG_DISABLE_EMAIL_AUTH,autoSignIn: true,- minPasswordLength: 6,+ minPasswordLength: 8,maxPasswordLength: 64,requireEmailVerification: false,disableSignUp: env.FLAG_DISABLE_SIGNUPS || env.FLAG_DISABLE_EMAIL_AUTH,@@ -175,7 +174,7 @@ const getAuthConfig = () => {account: {accountLinking: {enabled: true,- trustedProviders: ["google", "github"],+ trustedProviders: ["google", "github", "linkedin"],},},@@ -249,10 +248,38 @@ const getAuthConfig = () => {};},},++ linkedin: {+ enabled: !!env.LINKEDIN_CLIENT_ID && !!env.LINKEDIN_CLIENT_SECRET,+ disableSignUp: env.FLAG_DISABLE_SIGNUPS,+ clientId: env.LINKEDIN_CLIENT_ID!,+ clientSecret: env.LINKEDIN_CLIENT_SECRET!,+ mapProfileToUser: async (profile) => {+ if (!profile.email) {+ throw new BetterAuthError(+ "LinkedIn provider did not return an email address. This is required for user creation.",+ { cause: "EMAIL_REQUIRED" },+ );+ }++ const username = profile.email.split("@")[0];+ const name = profile.name ?? username;++ return {+ name,+ email: profile.email,+ image: profile.picture,+ username,+ displayUsername: username,+ emailVerified: true,+ };+ },+ },},plugins: [jwt(),+ admin(),openAPI(),genericOAuth({ config: authConfigs }),twoFactor({ issuer: "Reactive Resume" }),diff --git a/src/integrations/auth/types.ts b/src/integrations/auth/types.tsindex 9ff160f77..af7c86bbd 100644--- a/src/integrations/auth/types.ts+++ b/src/integrations/auth/types.ts@@ -7,6 +7,6 @@ export type AuthSession = {user: typeof auth.$Infer.Session.user;};-const authProviderSchema = z.enum(["credential", "google", "github", "custom"]);+const authProviderSchema = z.enum(["credential", "google", "github", "linkedin", "custom"]);export type AuthProvider = z.infer<typeof authProviderSchema>;diff --git a/src/integrations/drizzle/schema.ts b/src/integrations/drizzle/schema.tsindex f569c709f..612e988c1 100644--- a/src/integrations/drizzle/schema.ts+++ b/src/integrations/drizzle/schema.ts@@ -20,6 +20,10 @@ export const user = pg.pgTable(displayUsername: pg.text("display_username").notNull().unique(),twoFactorEnabled: pg.boolean("two_factor_enabled").notNull().default(false),lastActiveAt: pg.timestamp("last_active_at", { withTimezone: true }),+ role: pg.text("role").default("user"),+ banned: pg.boolean("banned").default(false),+ banReason: pg.text("ban_reason"),+ banExpires: pg.timestamp("ban_expires", { precision: 6, withTimezone: true }),createdAt: pg.timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),updatedAt: pg.timestamp("updated_at", { withTimezone: true })@@ -41,6 +45,7 @@ export const session = pg.pgTable(token: pg.text("token").notNull().unique(),ipAddress: pg.text("ip_address"),userAgent: pg.text("user_agent"),+ impersonatedBy: pg.text("impersonated_by"),userId: pg.uuid("user_id").notNull()diff --git a/src/integrations/import/json-resume.test.ts b/src/integrations/import/json-resume.test.tsnew file mode 100644index 000000000..2baadcecb--- /dev/null+++ b/src/integrations/import/json-resume.test.ts@@ -0,0 +1,327 @@+import { describe, expect, it } from "vite-plus/test";++import { resumeDataSchema } from "@/schema/resume/data";++import { JSONResumeImporter } from "./json-resume";++const importer = new JSONResumeImporter();++function makeMinimalJsonResume(overrides?: Record<string, unknown>) {+ return {+ basics: {+ name: "John Doe",+ label: "Software Engineer",+ email: "[email protected]",+ phone: "+1-555-0100",+ summary: "A passionate developer.",+ location: { city: "San Francisco", region: "CA", countryCode: "US" },+ url: "https://johndoe.com",+ profiles: [{ network: "GitHub", username: "johndoe", url: "https://github.com/johndoe" }],+ },+ work: [+ {+ name: "Acme Corp",+ position: "Senior Developer",+ startDate: "2020-01",+ endDate: "2024-06",+ summary: "Led a team of 5.",+ highlights: ["Built CI/CD pipeline", "Reduced build time by 50%"],+ },+ ],+ education: [+ {+ institution: "MIT",+ studyType: "Bachelor",+ area: "Computer Science",+ score: "3.9",+ startDate: "2016-09",+ endDate: "2020-05",+ },+ ],+ skills: [{ name: "TypeScript", level: "Advanced", keywords: ["React", "Node.js"] }],+ languages: [{ language: "English", fluency: "Native" }],+ ...overrides,+ };+}++describe("JSONResumeImporter", () => {+ describe("parse", () => {+ it("parses a valid JSON Resume and produces valid ResumeData", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(resumeDataSchema.safeParse(result).success).toBe(true);+ });++ it("throws on invalid JSON", () => {+ expect(() => importer.parse("not json")).toThrow();+ });+ });++ describe("convert - basics", () => {+ it("maps name and headline", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.basics.name).toBe("John Doe");+ expect(result.basics.headline).toBe("Software Engineer");+ });++ it("maps email and phone", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.basics.email).toBe("[email protected]");+ expect(result.basics.phone).toBe("+1-555-0100");+ });++ it("formats location from object to string", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.basics.location).toBe("San Francisco, CA, US");+ });++ it("maps website URL", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.basics.website.url).toBe("https://johndoe.com");+ });+ });++ describe("convert - summary", () => {+ it("wraps summary in HTML", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.summary.content).toBe("<p>A passionate developer.</p>");+ expect(result.summary.hidden).toBe(false);+ });++ it("handles missing summary", () => {+ const data = makeMinimalJsonResume();+ delete (data.basics as Record<string, unknown>).summary;+ const result = importer.parse(JSON.stringify(data));+ expect(result.summary.content).toBe("");+ });+ });++ describe("convert - experience", () => {+ it("maps work to experience items", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ expect(result.sections.experience.items).toHaveLength(1);+ const exp = result.sections.experience.items[0];+ expect(exp.company).toBe("Acme Corp");+ expect(exp.position).toBe("Senior Developer");+ expect(exp.period).toBe("January 2020 - June 2024");+ });++ it("converts summary+highlights to HTML description", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ const exp = result.sections.experience.items[0];+ expect(exp.description).toContain("<p>Led a team of 5.</p>");+ expect(exp.description).toContain("<li>Built CI/CD pipeline</li>");+ });++ it("filters out entries without name or position", () => {+ const data = makeMinimalJsonResume({ work: [{ location: "Nowhere" }] });+ const result = importer.parse(JSON.stringify(data));+ expect(result.sections.experience.items).toHaveLength(0);+ });+ });++ describe("convert - education", () => {+ it("maps education items", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ const edu = result.sections.education.items[0];+ expect(edu.school).toBe("MIT");+ expect(edu.degree).toBe("Bachelor in Computer Science");+ expect(edu.grade).toBe("3.9");+ });+ });++ describe("convert - skills", () => {+ it("maps skills with level parsing", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ const skill = result.sections.skills.items[0];+ expect(skill.name).toBe("TypeScript");+ expect(skill.level).toBe(4); // "Advanced" maps to 4+ expect(skill.keywords).toEqual(["React", "Node.js"]);+ });+ });++ describe("convert - languages", () => {+ it("maps languages with fluency level", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ const lang = result.sections.languages.items[0];+ expect(lang.language).toBe("English");+ expect(lang.level).toBe(5); // "Native" maps to 5+ });+ });++ describe("convert - profiles", () => {+ it("maps profiles with network icons", () => {+ const result = importer.parse(JSON.stringify(makeMinimalJsonResume()));+ const profile = result.sections.profiles.items[0];+ expect(profile.network).toBe("GitHub");+ expect(profile.icon).toBe("github-logo");+ expect(profile.username).toBe("johndoe");+ });+ });++ describe("convert - awards", () => {+ it("maps awards with formatted dates", () => {+ const data = makeMinimalJsonResume({+ awards: [{ title: "Best Paper", awarder: "IEEE", date: "2023-06-15", summary: "Great work" }],+ });+ const result = importer.parse(JSON.stringify(data));+ const award = result.sections.awards.items[0];+ expect(award.title).toBe("Best Paper");+ expect(award.awarder).toBe("IEEE");+ expect(award.date).toBe("June 15, 2023");+ expect(award.description).toBe("<p>Great work</p>");+ });+ });++ describe("convert - volunteer", () => {+ it("maps volunteer items with period and description", () => {+ const data = makeMinimalJsonResume({+ volunteer: [+ {+ organization: "Red Cross",+ position: "Volunteer",+ startDate: "2022-01",+ endDate: "2023-06",+ summary: "Helped with logistics",+ highlights: ["Organized events"],+ url: "https://redcross.org",+ },+ ],+ });+ const result = importer.parse(JSON.stringify(data));+ const vol = result.sections.volunteer.items[0];+ expect(vol.organization).toBe("Red Cross");+ expect(vol.period).toBe("January 2022 - June 2023");+ expect(vol.description).toContain("Helped with logistics");+ expect(vol.description).toContain("Organized events");+ });++ it("filters out volunteer items without organization", () => {+ const data = makeMinimalJsonResume({+ volunteer: [+ { organization: "Valid Org", position: "Vol" },+ { position: "No Org" }, // missing organization+ ],+ });+ const result = importer.parse(JSON.stringify(data));+ expect(result.sections.volunteer.items).toHaveLength(1);+ });+ });++ describe("convert - references", () => {+ it("maps references with name and reference text", () => {+ const data = makeMinimalJsonResume({+ references: [{ name: "John Manager", reference: "Great developer and team player" }],+ });+ const result = importer.parse(JSON.stringify(data));+ const ref = result.sections.references.items[0];+ expect(ref.name).toBe("John Manager");+ expect(ref.description).toBe("<p>Great developer and team player</p>");+ });++ it("handles references without reference text", () => {+ const data = makeMinimalJsonResume({+ references: [{ name: "Jane CTO" }],+ });+ const result = importer.parse(JSON.stringify(data));+ expect(result.sections.references.items[0].description).toBe("");+ });++ it("filters references without name or reference", () => {+ const data = makeMinimalJsonResume({+ references: [+ { name: "Valid" },+ {}, // no name or reference+ ],+ });+ const result = importer.parse(JSON.stringify(data));+ expect(result.sections.references.items).toHaveLength(1);+ });+ });++ describe("convert - publications", () => {+ it("maps publications with formatted date", () => {+ const data = makeMinimalJsonResume({+ publications: [+ {+ name: "My Paper",+ publisher: "IEEE",+ releaseDate: "2024-03-15",+ summary: "Research findings",+ url: "https://doi.org/paper",+ },+ ],+ });+ const result = importer.parse(JSON.stringify(data));+ const pub = result.sections.publications.items[0];+ expect(pub.title).toBe("My Paper");+ expect(pub.publisher).toBe("IEEE");+ expect(pub.date).toBe("March 15, 2024");+ });+ });++ describe("convert - certifications", () => {+ it("maps certificates with issuer and date", () => {+ const data = makeMinimalJsonResume({+ certificates: [{ name: "AWS Certified", issuer: "Amazon", date: "2023-06" }],+ });+ const result = importer.parse(JSON.stringify(data));+ const cert = result.sections.certifications.items[0];+ expect(cert.title).toBe("AWS Certified");+ expect(cert.issuer).toBe("Amazon");+ expect(cert.date).toBe("June 2023");+ });+ });++ describe("convert - interests", () => {+ it("maps interests with keywords", () => {+ const data = makeMinimalJsonResume({+ interests: [{ name: "Gaming", keywords: ["RPG", "Strategy"] }],+ });+ const result = importer.parse(JSON.stringify(data));+ const interest = result.sections.interests.items[0];+ expect(interest.name).toBe("Gaming");+ expect(interest.keywords).toEqual(["RPG", "Strategy"]);+ });+ });++ describe("convert - empty sections", () => {+ it("handles resume with no optional sections", () => {+ const minimal = { basics: { name: "Jane" } };+ const result = importer.parse(JSON.stringify(minimal));+ expect(resumeDataSchema.safeParse(result).success).toBe(true);+ expect(result.basics.name).toBe("Jane");+ });+ });++ describe("error handling", () => {+ it("throws on invalid JSON", () => {+ expect(() => importer.parse("not json")).toThrow();+ });++ it("handles missing basics.location gracefully", () => {+ const data = { basics: { name: "Jane" } };+ const result = importer.parse(JSON.stringify(data));+ expect(result.basics.location).toBe("");+ });++ it("allows work items with position but no name (falls back to position)", () => {+ const data = makeMinimalJsonResume();+ // Work item with position but no name — filter passes because position is truthy+ // The importer maps name -> company, so company will be empty+ // This is a known limitation: the filter checks (name || position) but company requires min(1)+ // The resumeDataSchema.parse() will reject it+ (data as any).work.push({ name: "", position: "Ghost Dev", startDate: "2020-01" });+ expect(() => importer.parse(JSON.stringify(data))).toThrow();+ });++ it("filters profiles without network name", () => {+ const data = makeMinimalJsonResume();+ (data as any).basics.profiles = [+ { network: "GitHub", username: "jane" },+ { username: "no-network" }, // no network+ ];+ const result = importer.parse(JSON.stringify(data));+ expect(result.sections.profiles.items).toHaveLength(1);+ });+ });+});diff --git a/src/integrations/import/json-resume.tsx b/src/integrations/import/json-resume.tsxindex 2334aadef..81706f97a 100644--- a/src/integrations/import/json-resume.tsx+++ b/src/integrations/import/json-resume.tsx@@ -1,9 +1,12 @@import { flattenError, ZodError, z } from "zod";-import type { IconName } from "@/schema/icons";-import { defaultResumeData, type ResumeData, resumeDataSchema } from "@/schema/resume/data";+import { formatPeriod, formatSingleDate } from "@/utils/date";+import { arrayToHtmlList, toHtmlDescription } from "@/utils/html";+import { parseLevel } from "@/utils/level";+import { getNetworkIcon } from "@/utils/network-icons";import { generateId } from "@/utils/string";+import { createUrl } from "@/utils/url";// Custom ISO 8601 date pattern that allows partial dates (year only, year-month, or full date)const iso8601 = z@@ -153,138 +156,6 @@ const jsonResumeSchema = z.looseObject({type JSONResume = z.infer<typeof jsonResumeSchema>;-// Helper function to format date period from start and end dates-function formatPeriod(startDate?: string, endDate?: string): string {- if (!startDate && !endDate) return "";- if (!startDate) return endDate || "";- if (!endDate) return `${startDate} - Present`;-- // Format dates to be more readable- const formatDate = (date: string): string => {- // Handle YYYY-MM-DD, YYYY-MM, or YYYY formats- const parts = date.split("-");-- if (parts.length === 3) {- // YYYY-MM-DD- const [year, month] = parts;- const monthNames = [- "January",- "February",- "March",- "April",- "May",- "June",- "July",- "August",- "September",- "October",- "November",- "December",- ];- return `${monthNames[parseInt(month, 10) - 1]} ${year}`;- }-- if (parts.length === 2) {- // YYYY-MM- const [year, month] = parts;- const monthNames = [- "January",- "February",- "March",- "April",- "May",- "June",- "July",- "August",- "September",- "October",- "November",- "December",- ];- return `${monthNames[parseInt(month, 10) - 1]} ${year}`;- }-- // YYYY- return date;- };-- return `${formatDate(startDate)} - ${formatDate(endDate)}`;-}--// Helper function to format a single date-function formatSingleDate(date?: string): string {- if (!date) return "";-- // Format dates to be more readable- const parts = date.split("-");-- if (parts.length === 3) {- // YYYY-MM-DD- const [year, month, day] = parts;- const monthNames = [- "January",- "February",- "March",- "April",- "May",- "June",- "July",- "August",- "September",- "October",- "November",- "December",- ];- return `${monthNames[parseInt(month, 10) - 1]} ${day}, ${year}`;- }- if (parts.length === 2) {- // YYYY-MM- const [year, month] = parts;- const monthNames = [- "January",- "February",- "March",- "April",- "May",- "June",- "July",- "August",- "September",- "October",- "November",- "December",- ];- return `${monthNames[parseInt(month, 10) - 1]} ${year}`;- }- // YYYY- return date;-}--// Helper function to convert text and highlights to HTML-function toHtmlDescription(summary?: string, highlights?: string[]): string {- const parts: string[] = [];-- if (summary) {- parts.push(`<p>${summary}</p>`);- }-- if (highlights && highlights.length > 0) {- parts.push("<ul>");- for (const highlight of highlights) {- parts.push(`<li>${highlight}</li>`);- }- parts.push("</ul>");- }-- return parts.join("");-}--// Helper function to convert array to HTML list-function arrayToHtmlList(items?: string[]): string {- if (!items || items.length === 0) return "";- return `<ul>${items.map((item) => `<li>${item}</li>`).join("")}</ul>`;-}-// Helper function to format location object to stringfunction formatLocation(location?: {address?: string;@@ -303,62 +174,6 @@ function formatLocation(location?: {return parts.join(", ");}-// Helper function to map network name to icon-function getNetworkIcon(network?: string): IconName {- if (!network) return "star";-- const networkLower = network.toLowerCase();- if (networkLower.includes("github")) return "github-logo";- if (networkLower.includes("linkedin")) return "linkedin-logo";- if (networkLower.includes("twitter") || networkLower.includes("x.com")) return "twitter-logo";- if (networkLower.includes("facebook")) return "facebook-logo";- if (networkLower.includes("instagram")) return "instagram-logo";- if (networkLower.includes("youtube")) return "youtube-logo";- if (networkLower.includes("stackoverflow") || networkLower.includes("stack-overflow")) return "stack-overflow-logo";- if (networkLower.includes("medium")) return "medium-logo";- if (networkLower.includes("dev.to") || networkLower.includes("devto")) return "code";- if (networkLower.includes("dribbble")) return "dribbble-logo";- if (networkLower.includes("behance")) return "behance-logo";- if (networkLower.includes("gitlab")) return "git-branch";- if (networkLower.includes("bitbucket")) return "code";- if (networkLower.includes("codepen")) return "code";-- return "star";-}--// Helper function to parse skill/language level to number (0-5)-function parseLevel(level?: string): number {- if (!level) return 0;-- const levelLower = level.toLowerCase();- // Try to parse numeric values- const numeric = parseInt(levelLower, 10);- if (!Number.isNaN(numeric) && numeric >= 0 && numeric <= 5) return numeric;-- // Map text levels to numbers- if (levelLower.includes("native") || levelLower.includes("expert") || levelLower.includes("master")) return 5;- if (levelLower.includes("fluent") || levelLower.includes("advanced") || levelLower.includes("proficient")) return 4;- if (levelLower.includes("intermediate") || levelLower.includes("conversational")) return 3;- if (levelLower.includes("beginner") || levelLower.includes("basic") || levelLower.includes("elementary")) return 2;- if (levelLower.includes("novice")) return 1;-- // CEFR levels- if (levelLower.includes("c2")) return 5;- if (levelLower.includes("c1")) return 4;- if (levelLower.includes("b2")) return 3;- if (levelLower.includes("b1")) return 2;- if (levelLower.includes("a2")) return 1;- if (levelLower.includes("a1")) return 1;-- return 0;-}--// Helper function to create URL object-function createUrl(url?: string, label?: string): { url: string; label: string } {- if (!url) return { url: "", label: "" };- return { url, label: label || url };-}-export class JSONResumeImporter {convert(jsonResume: JSONResume): ResumeData {const result: ResumeData = {diff --git a/src/integrations/import/reactive-resume-json.test.ts b/src/integrations/import/reactive-resume-json.test.tsnew file mode 100644index 000000000..6a3a6e80f--- /dev/null+++ b/src/integrations/import/reactive-resume-json.test.ts@@ -0,0 +1,62 @@+import { describe, expect, it } from "vite-plus/test";++import { defaultResumeData, resumeDataSchema } from "@/schema/resume/data";++import { ReactiveResumeJSONImporter } from "./reactive-resume-json";++const importer = new ReactiveResumeJSONImporter();++describe("ReactiveResumeJSONImporter", () => {+ it("parses valid ResumeData JSON", () => {+ const result = importer.parse(JSON.stringify(defaultResumeData));+ expect(resumeDataSchema.safeParse(result).success).toBe(true);+ });++ it("throws on invalid JSON", () => {+ expect(() => importer.parse("not json")).toThrow();+ });++ it("throws on data that doesn't match schema", () => {+ expect(() => importer.parse(JSON.stringify({ invalid: true }))).toThrow();+ });++ it("normalizes missing layout sections", () => {+ const data = {+ ...defaultResumeData,+ metadata: {+ ...defaultResumeData.metadata,+ layout: {+ ...defaultResumeData.metadata.layout,+ pages: [{ fullWidth: false, main: ["experience"], sidebar: [] }],+ },+ },+ };+ const result = importer.parse(JSON.stringify(data));+ // Should add missing built-in section IDs to main+ const allSectionIds = result.metadata.layout.pages.flatMap((p) => [...p.main, ...p.sidebar]);+ expect(allSectionIds).toContain("experience");+ expect(allSectionIds).toContain("education");+ expect(allSectionIds).toContain("skills");+ });++ it("handles empty layout pages by creating default page", () => {+ const data = {+ ...defaultResumeData,+ metadata: {+ ...defaultResumeData.metadata,+ layout: {+ ...defaultResumeData.metadata.layout,+ pages: [],+ },+ },+ };+ const result = importer.parse(JSON.stringify(data));+ expect(result.metadata.layout.pages).toHaveLength(1);+ expect(result.metadata.layout.pages[0].main.length).toBeGreaterThan(0);+ });++ it("preserves complete layout without modification", () => {+ const result = importer.parse(JSON.stringify(defaultResumeData));+ expect(result.metadata.layout).toEqual(defaultResumeData.metadata.layout);+ });+});diff --git a/src/integrations/import/reactive-resume-v4-json.test.ts b/src/integrations/import/reactive-resume-v4-json.test.tsnew file mode 100644index 000000000..2e72c0aac--- /dev/null+++ b/src/integrations/import/reactive-resume-v4-json.test.ts@@ -0,0 +1,808 @@+import { beforeEach, describe, expect, it, vi } from "vite-plus/test";++import type { SectionItem } from "@/schema/resume/data";++import { resumeDataSchema } from "@/schema/resume/data";++import { ReactiveResumeV4JSONImporter } from "./reactive-resume-v4-json";++// Mock generateId for deterministic output+let idCounter = 0;+vi.mock("@/utils/string", () => ({+ generateId: () => `mock-id-${++idCounter}`,+ slugify: (str: string) => str.toLowerCase().replace(/\s+/g, "-"),+ getInitials: (str: string) =>+ str+ .split(" ")+ .map((s) => s[0])+ .join(""),+ toUsername: (str: string) => str.toLowerCase().replace(/\s+/g, ""),+ stripHtml: (str: string) => str.replace(/<[^>]*>/g, ""),+}));++beforeEach(() => {+ idCounter = 0;+});++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++const importer = new ReactiveResumeV4JSONImporter();++function makeMinimalV4Resume(overrides?: Record<string, unknown>) {+ return {+ basics: {+ name: "Jane Doe",+ headline: "Developer",+ email: "[email protected]",+ phone: "+1234567890",+ location: "New York, NY",+ url: { label: "Website", href: "https://jane.dev" },+ customFields: [],+ picture: {+ url: "https://example.com/photo.jpg",+ size: 80,+ aspectRatio: 1,+ borderRadius: 10,+ effects: { hidden: false, border: true, grayscale: false },+ },+ },+ sections: {+ summary: {+ name: "Summary",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "summary",+ content: "<p>A developer</p>",+ },+ awards: { name: "Awards", columns: 1, separateLinks: false, visible: true, id: "awards", items: [] },+ certifications: {+ name: "Certifications",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "certifications",+ items: [],+ },+ education: { name: "Education", columns: 1, separateLinks: false, visible: true, id: "education", items: [] },+ experience: { name: "Experience", columns: 1, separateLinks: false, visible: true, id: "experience", items: [] },+ volunteer: { name: "Volunteer", columns: 1, separateLinks: false, visible: true, id: "volunteer", items: [] },+ interests: { name: "Interests", columns: 1, separateLinks: false, visible: true, id: "interests", items: [] },+ languages: { name: "Languages", columns: 1, separateLinks: false, visible: true, id: "languages", items: [] },+ profiles: { name: "Profiles", columns: 1, separateLinks: false, visible: true, id: "profiles", items: [] },+ projects: { name: "Projects", columns: 1, separateLinks: false, visible: true, id: "projects", items: [] },+ publications: {+ name: "Publications",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "publications",+ items: [],+ },+ references: { name: "References", columns: 1, separateLinks: false, visible: true, id: "references", items: [] },+ skills: { name: "Skills", columns: 1, separateLinks: false, visible: true, id: "skills", items: [] },+ },+ metadata: {+ template: "onyx",+ layout: [+ [+ ["experience", "education"],+ ["skills", "languages"],+ ],+ ],+ css: { value: "", visible: false },+ page: { margin: 14, format: "a4" as const, options: { breakLine: true, pageNumbers: true } },+ theme: { background: "#ffffff", text: "#000000", primary: "#dc2626" },+ typography: {+ font: { family: "IBM Plex Serif", subset: "latin", variants: ["regular"], size: 14.67 },+ lineHeight: 1.5,+ hideIcons: false,+ underlineLinks: true,+ },+ notes: "",+ },+ ...overrides,+ };+}++// ---------------------------------------------------------------------------+// Basic parsing+// ---------------------------------------------------------------------------++describe("ReactiveResumeV4JSONImporter", () => {+ describe("basic parsing", () => {+ it("parses a minimal V4 resume and produces valid ResumeData", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(resumeDataSchema.safeParse(result).success).toBe(true);+ });++ it("maps basics fields correctly", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(result.basics.name).toBe("Jane Doe");+ expect(result.basics.headline).toBe("Developer");+ expect(result.basics.email).toBe("[email protected]");+ expect(result.basics.phone).toBe("+1234567890");+ expect(result.basics.location).toBe("New York, NY");+ expect(result.basics.website.url).toBe("https://jane.dev");+ expect(result.basics.website.label).toBe("Website");+ });++ it("maps picture fields correctly", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(result.picture.url).toBe("https://example.com/photo.jpg");+ expect(result.picture.size).toBe(80);+ expect(result.picture.aspectRatio).toBe(1);+ expect(result.picture.borderRadius).toBe(10);+ expect(result.picture.hidden).toBe(false);+ expect(result.picture.borderWidth).toBe(1); // border effect was true+ });++ it("maps summary correctly", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(result.summary.title).toBe("Summary");+ expect(result.summary.content).toBe("<p>A developer</p>");+ expect(result.summary.hidden).toBe(false);+ });+ });++ // ---------------------------------------------------------------------------+ // Section items+ // ---------------------------------------------------------------------------++ describe("section items", () => {+ it("transforms experience items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).experience.items = [+ {+ id: "exp-1",+ visible: true,+ company: "Acme Corp",+ position: "Engineer",+ location: "NYC",+ date: "2020 - 2022",+ summary: "<p>Built things</p>",+ url: { label: "Acme", href: "https://acme.com" },+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.experience.items).toHaveLength(1);+ const exp = result.sections.experience.items[0];+ expect(exp.company).toBe("Acme Corp");+ expect(exp.position).toBe("Engineer");+ expect(exp.location).toBe("NYC");+ expect(exp.period).toBe("2020 - 2022");+ expect(exp.description).toBe("<p>Built things</p>");+ expect(exp.website.url).toBe("https://acme.com");+ });++ it("transforms education items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).education.items = [+ {+ id: "edu-1",+ visible: true,+ institution: "MIT",+ studyType: "BSc",+ area: "Computer Science",+ score: "4.0",+ date: "2016 - 2020",+ summary: "<p>Graduated</p>",+ url: { label: "MIT", href: "https://mit.edu" },+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ const edu = result.sections.education.items[0];+ expect(edu.school).toBe("MIT");+ expect(edu.degree).toBe("BSc");+ expect(edu.area).toBe("Computer Science");+ expect(edu.grade).toBe("4.0");+ expect(edu.period).toBe("2016 - 2020");+ });++ it("transforms skill items with level clamping", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).skills.items = [+ { id: "s1", visible: true, name: "TypeScript", description: "Advanced", level: 4, keywords: ["frontend"] },+ { id: "s2", visible: true, name: "Rust", description: "Beginner", level: 10, keywords: [] }, // level > 5+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.skills.items).toHaveLength(2);+ expect(result.sections.skills.items[0].name).toBe("TypeScript");+ expect(result.sections.skills.items[0].proficiency).toBe("Advanced");+ expect(result.sections.skills.items[0].level).toBe(4);+ expect(result.sections.skills.items[1].level).toBe(5); // clamped to 5+ });++ it("transforms language items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).languages.items = [+ { id: "l1", visible: true, name: "English", description: "Native", level: 5 },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.languages.items[0].language).toBe("English");+ expect(result.sections.languages.items[0].fluency).toBe("Native");+ });++ it("transforms profile items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).profiles.items = [+ {+ id: "p1",+ visible: true,+ network: "GitHub",+ username: "janedoe",+ icon: "github",+ url: { label: "GitHub", href: "https://github.com/janedoe" },+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.profiles.items[0].network).toBe("GitHub");+ expect(result.sections.profiles.items[0].username).toBe("janedoe");+ expect(result.sections.profiles.items[0].icon).toBe("github");+ });++ it("transforms award items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).awards.items = [+ {+ id: "a1",+ visible: true,+ title: "Best Developer",+ awarder: "Company",+ date: "2023",+ summary: "<p>Won it</p>",+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.awards.items[0].title).toBe("Best Developer");+ expect(result.sections.awards.items[0].awarder).toBe("Company");+ });++ it("transforms certification items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).certifications.items = [+ { id: "c1", visible: true, name: "AWS Certified", issuer: "AWS", date: "2023" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.certifications.items[0].title).toBe("AWS Certified");+ expect(result.sections.certifications.items[0].issuer).toBe("AWS");+ });++ it("transforms publication items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).publications.items = [+ { id: "pub1", visible: true, name: "My Paper", publisher: "IEEE", date: "2024", summary: "<p>Research</p>" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.publications.items[0].title).toBe("My Paper");+ expect(result.sections.publications.items[0].publisher).toBe("IEEE");+ });++ it("transforms volunteer items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).volunteer.items = [+ {+ id: "v1",+ visible: true,+ organization: "Red Cross",+ position: "Helper",+ location: "NYC",+ date: "2023",+ summary: "<p>Helped</p>",+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.volunteer.items[0].organization).toBe("Red Cross");+ expect(result.sections.volunteer.items[0].location).toBe("NYC");+ });++ it("transforms reference items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).references.items = [+ { id: "r1", visible: true, name: "John Manager", description: "CTO", summary: "<p>Great developer</p>" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.references.items[0].name).toBe("John Manager");+ expect(result.sections.references.items[0].position).toBe("CTO");+ expect(result.sections.references.items[0].description).toBe("<p>Great developer</p>");+ });++ it("transforms interest items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).interests.items = [+ { id: "i1", visible: true, name: "Gaming", keywords: ["RPG", "Strategy"] },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.interests.items[0].name).toBe("Gaming");+ expect(result.sections.interests.items[0].keywords).toEqual(["RPG", "Strategy"]);+ });++ it("transforms project items using summary over description", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).projects.items = [+ {+ id: "proj1",+ visible: true,+ name: "My App",+ description: "desc",+ date: "2024",+ summary: "<p>summary</p>",+ url: { label: "", href: "" },+ },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.projects.items[0].description).toBe("<p>summary</p>");+ });++ it("falls back to description when summary is missing for projects", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).projects.items = [+ { id: "proj1", visible: true, name: "My App", description: "desc text", date: "2024" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.projects.items[0].description).toBe("desc text");+ });+ });++ // ---------------------------------------------------------------------------+ // Filtering+ // ---------------------------------------------------------------------------++ describe("filtering", () => {+ it("filters out items with empty required fields", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).experience.items = [+ { id: "e1", visible: true, company: "Acme", position: "Dev" },+ { id: "e2", visible: true, company: "", position: "Dev" }, // empty company+ { id: "e3", visible: true, position: "Dev" }, // missing company+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.experience.items).toHaveLength(1);+ expect(result.sections.experience.items[0].company).toBe("Acme");+ });++ it("filters out profiles without network name", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).profiles.items = [+ { id: "p1", visible: true, network: "GitHub", username: "jane" },+ { id: "p2", visible: true, network: "", username: "jane" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.profiles.items).toHaveLength(1);+ });++ it("filters out skills without name", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).skills.items = [+ { id: "s1", visible: true, name: "TypeScript" },+ { id: "s2", visible: true, name: "" },+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.skills.items).toHaveLength(1);+ });+ });++ // ---------------------------------------------------------------------------+ // Visibility mapping+ // ---------------------------------------------------------------------------++ describe("visibility mapping", () => {+ it("maps visible: false to hidden: true", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).experience.items = [{ id: "e1", visible: false, company: "Acme", position: "Dev" }];+ (v4.sections as any).experience.visible = false;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.experience.hidden).toBe(true);+ expect(result.sections.experience.items[0].hidden).toBe(true);+ });++ it("maps visible: true to hidden: false", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).awards.visible = true;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.sections.awards.hidden).toBe(false);+ });+ });++ // ---------------------------------------------------------------------------+ // Metadata+ // ---------------------------------------------------------------------------++ describe("metadata", () => {+ it("maps theme colors to rgba format", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(result.metadata.design.colors.primary).toMatch(/^rgba\(/);+ expect(result.metadata.design.colors.text).toMatch(/^rgba\(/);+ expect(result.metadata.design.colors.background).toMatch(/^rgba\(/);+ });++ it("maps CSS settings", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.css = { value: "body { color: red; }", visible: true };++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.css.enabled).toBe(true);+ expect(result.metadata.css.value).toBe("body { color: red; }");+ });++ it("maps page format", () => {+ const v4 = makeMinimalV4Resume();+ (v4.metadata.page.format as "a4" | "letter") = "letter";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.page.format).toBe("letter");+ });++ it("maps font family and font size (px to pt conversion)", () => {+ const result = importer.parse(JSON.stringify(makeMinimalV4Resume()));+ expect(result.metadata.typography.body.fontFamily).toBe("IBM Plex Serif");+ // 14.67px * 0.75 = 11.0025pt+ expect(result.metadata.typography.body.fontSize).toBeCloseTo(11, 0);+ });++ it("maps hideIcons setting", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.hideIcons = true;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.page.hideIcons).toBe(true);+ });++ it("defaults to onyx template for invalid template names", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.template = "nonexistent-template";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.template).toBe("onyx");+ });++ it("preserves valid template names", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.template = "pikachu";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.template).toBe("pikachu");+ });++ it("maps notes", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.notes = "Some notes here";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.notes).toBe("Some notes here");+ });+ });++ // ---------------------------------------------------------------------------+ // Layout+ // ---------------------------------------------------------------------------++ describe("layout", () => {+ it("converts V4 layout pages to new format", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.layout = [+ [["experience", "education"], ["skills"]],+ [["projects"], []],+ ];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.layout.pages).toHaveLength(2);+ expect(result.metadata.layout.pages[0].main).toContain("experience");+ expect(result.metadata.layout.pages[0].sidebar).toContain("skills");+ expect(result.metadata.layout.pages[1].main).toContain("projects");+ expect(result.metadata.layout.pages[1].fullWidth).toBe(true); // empty sidebar+ });++ it("strips 'custom.' prefix from layout section IDs", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.layout = [[["experience", "custom.abc123"], ["skills"]]];+ (v4.sections as any).custom = {+ abc123: {+ name: "Custom Section",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "abc123",+ items: [],+ },+ };++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.layout.pages[0].main).toContain("abc123");+ expect(result.metadata.layout.pages[0].main).not.toContain("custom.abc123");+ });++ it("removes summary from layout columns (handled separately)", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.layout = [[["summary", "experience"], ["skills"]]];++ const result = importer.parse(JSON.stringify(v4));+ // Summary should be re-added at the front when visible+ const mainSections = result.metadata.layout.pages[0].main;+ expect(mainSections[0]).toBe("summary");+ expect(mainSections.filter((s) => s === "summary")).toHaveLength(1);+ });++ it("adds summary to front of first page when visible with content", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.layout = [[["experience"], ["skills"]]];+ (v4.sections as any).summary.visible = true;+ (v4.sections as any).summary.content = "<p>Summary text</p>";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.layout.pages[0].main[0]).toBe("summary");+ });++ it("does NOT add summary to layout when it is not visible", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.layout = [[["experience"], ["skills"]]];+ (v4.sections as any).summary.visible = false;+ (v4.sections as any).summary.content = "<p>Summary text</p>";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.layout.pages[0].main).not.toContain("summary");+ });+ });++ // ---------------------------------------------------------------------------+ // Custom sections+ // ---------------------------------------------------------------------------++ describe("custom sections", () => {+ it("transforms custom sections to experience-typed custom sections", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).custom = {+ "custom-1": {+ name: "Freelance Work",+ columns: 2,+ separateLinks: false,+ visible: true,+ id: "custom-1",+ items: [+ {+ id: "ci1",+ visible: true,+ name: "Project A",+ description: "Lead Dev",+ date: "2023",+ location: "Remote",+ summary: "<p>Details</p>",+ },+ ],+ },+ };++ const result = importer.parse(JSON.stringify(v4));+ const section = result.customSections[0];+ const item = section.items[0] as SectionItem<"experience">;++ expect(result.customSections).toHaveLength(1);+ expect(section.title).toBe("Freelance Work");+ expect(section.type).toBe("experience");+ expect(section.columns).toBe(2);+ expect(section.items).toHaveLength(1);+ expect(item.company).toBe("Project A");+ expect(item.position).toBe("Lead Dev");+ });++ it("handles custom section items without name by using index", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).custom = {+ "custom-1": {+ name: "Other",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "custom-1",+ items: [{ id: "ci1", visible: true, description: "Something" }],+ },+ };++ const result = importer.parse(JSON.stringify(v4));+ const section = result.customSections[0];+ const item = section.items[0] as SectionItem<"experience">;++ expect(item.company).toBe("#1");+ });++ it("filters out invisible custom section items", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).custom = {+ "custom-1": {+ name: "Section",+ columns: 1,+ separateLinks: false,+ visible: true,+ id: "custom-1",+ items: [+ { id: "ci1", visible: true, name: "Visible" },+ { id: "ci2", visible: false, name: "Hidden" },+ ],+ },+ };++ const result = importer.parse(JSON.stringify(v4));+ expect(result.customSections[0].items).toHaveLength(1);+ });++ it("handles empty custom sections object", () => {+ const v4 = makeMinimalV4Resume();+ (v4.sections as any).custom = {};++ const result = importer.parse(JSON.stringify(v4));+ expect(result.customSections).toHaveLength(0);+ });++ it("handles missing custom sections", () => {+ const v4 = makeMinimalV4Resume();+ delete (v4.sections as any).custom;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.customSections).toHaveLength(0);+ });+ });++ // ---------------------------------------------------------------------------+ // Edge cases+ // ---------------------------------------------------------------------------++ describe("edge cases", () => {+ it("sanitizes invalid email addresses", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.email = "not-an-email";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.basics.email).toBe("");+ });++ it("preserves valid email addresses", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.email = "[email protected]";++ const result = importer.parse(JSON.stringify(v4));+ expect(result.basics.email).toBe("[email protected]");+ });++ it("handles missing optional fields with defaults", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.phone = "";+ v4.basics.location = "";+ v4.basics.url = { label: "", href: "" };++ const result = importer.parse(JSON.stringify(v4));+ expect(result.basics.phone).toBe("");+ expect(result.basics.location).toBe("");+ expect(result.basics.website.url).toBe("");+ });++ it("handles missing picture data", () => {+ const v4 = makeMinimalV4Resume();+ (v4.basics as any).picture = undefined;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.picture.url).toBe("");+ expect(result.picture.size).toBe(80);+ });++ it("clamps picture size to valid range", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.picture.size = 1000;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.picture.size).toBe(512);+ });++ it("clamps picture size minimum", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.picture.size = 5;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.picture.size).toBe(32);+ });++ it("clamps aspect ratio to valid range", () => {+ const v4 = makeMinimalV4Resume();+ v4.basics.picture.aspectRatio = 10;++ const result = importer.parse(JSON.stringify(v4));+ expect(result.picture.aspectRatio).toBe(2.5);+ });++ it("converts font variants correctly", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.font.variants = ["regular", "bold", "700"];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.typography.body.fontWeights).toContain("400");+ expect(result.metadata.typography.body.fontWeights).toContain("700");+ });++ it("heading font weights are >= 600", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.font.variants = ["regular", "300"];++ const result = importer.parse(JSON.stringify(v4));+ // All heading weights should be >= 600; defaults to ["600"] if none qualify+ for (const weight of result.metadata.typography.heading.fontWeights) {+ expect(Number.parseInt(weight, 10)).toBeGreaterThanOrEqual(600);+ }+ });++ it("handles custom fields in basics", () => {+ const v4 = makeMinimalV4Resume();+ (v4.basics.customFields as any) = [{ id: "cf1", icon: "star", text: "Custom field value" }];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.basics.customFields).toHaveLength(1);+ expect(result.basics.customFields[0].text).toBe("Custom field value");+ expect(result.basics.customFields[0].icon).toBe("star");+ });++ it("throws on invalid JSON", () => {+ expect(() => importer.parse("not json")).toThrow();+ });++ it("produces a result that validates against resumeDataSchema", () => {+ const v4 = makeMinimalV4Resume();+ // Add items to every section+ (v4.sections as any).experience.items = [{ id: "e1", visible: true, company: "Co", position: "Dev" }];+ (v4.sections as any).education.items = [{ id: "ed1", visible: true, institution: "Uni", studyType: "BSc" }];+ (v4.sections as any).skills.items = [{ id: "s1", visible: true, name: "JS", level: 3 }];+ (v4.sections as any).languages.items = [{ id: "l1", visible: true, name: "English", level: 5 }];++ const result = importer.parse(JSON.stringify(v4));+ const validation = resumeDataSchema.safeParse(result);+ expect(validation.success).toBe(true);+ });+ });++ // ---------------------------------------------------------------------------+ // Font weight conversion+ // ---------------------------------------------------------------------------++ describe("font weight conversion", () => {+ it("maps 'bold' to 700", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.font.variants = ["bold"];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.typography.body.fontWeights).toContain("700");+ });++ it("maps 'italic' to 400", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.font.variants = ["italic"];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.typography.body.fontWeights).toContain("400");+ });++ it("defaults to 400 for empty variants", () => {+ const v4 = makeMinimalV4Resume();+ v4.metadata.typography.font.variants = [];++ const result = importer.parse(JSON.stringify(v4));+ expect(result.metadata.typography.body.fontWeights).toEqual(["400"]);+ });+ });+});diff --git a/src/integrations/jobs/store.test.ts b/src/integrations/jobs/store.test.tsnew file mode 100644index 000000000..ce2a87709--- /dev/null+++ b/src/integrations/jobs/store.test.ts@@ -0,0 +1,93 @@+import { afterEach, describe, expect, it } from "vite-plus/test";++import { useJobsStore } from "./store";++afterEach(() => {+ useJobsStore.getState().reset();+});++// ---------------------------------------------------------------------------+// Initial state+// ---------------------------------------------------------------------------++describe("Jobs Store — initial state", () => {+ it("starts with default values", () => {+ const state = useJobsStore.getState();+ expect(state.rapidApiKey).toBe("");+ expect(state.testStatus).toBe("unverified");+ expect(state.rapidApiQuota).toBeNull();+ });+});++// ---------------------------------------------------------------------------+// set()+// ---------------------------------------------------------------------------++describe("Jobs Store — set()", () => {+ it("updates rapidApiKey", () => {+ useJobsStore.getState().set((draft) => {+ draft.rapidApiKey = "new-api-key";+ });+ expect(useJobsStore.getState().rapidApiKey).toBe("new-api-key");+ });++ it("resets testStatus to unverified when rapidApiKey changes", () => {+ useJobsStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ useJobsStore.getState().set((draft) => {+ draft.rapidApiKey = "different-key";+ });+ expect(useJobsStore.getState().testStatus).toBe("unverified");+ });++ it("does NOT reset testStatus when rapidApiKey stays the same", () => {+ useJobsStore.getState().set((draft) => {+ draft.rapidApiKey = "same-key";+ });+ useJobsStore.getState().set((draft) => {+ draft.testStatus = "success";+ });+ // Change something else, keep the same key+ useJobsStore.getState().set((draft) => {+ draft.rapidApiQuota = { used: 10, limit: 100, remaining: 90 };+ });+ expect(useJobsStore.getState().testStatus).toBe("success");+ });++ it("updates rapidApiQuota", () => {+ const quota = { used: 50, limit: 100, remaining: 50 };+ useJobsStore.getState().set((draft) => {+ draft.rapidApiQuota = quota;+ });+ expect(useJobsStore.getState().rapidApiQuota).toEqual(quota);+ });++ it("updates testStatus directly", () => {+ useJobsStore.getState().set((draft) => {+ draft.testStatus = "failure";+ });+ expect(useJobsStore.getState().testStatus).toBe("failure");+ });+});++// ---------------------------------------------------------------------------+// reset()+// ---------------------------------------------------------------------------++describe("Jobs Store — reset()", () => {+ it("restores all state to initial values", () => {+ useJobsStore.getState().set((draft) => {+ draft.rapidApiKey = "some-key";+ draft.testStatus = "success";+ draft.rapidApiQuota = { used: 10, limit: 100, remaining: 90 };+ });++ useJobsStore.getState().reset();++ const state = useJobsStore.getState();+ expect(state.rapidApiKey).toBe("");+ expect(state.testStatus).toBe("unverified");+ expect(state.rapidApiQuota).toBeNull();+ });+});diff --git a/src/integrations/orpc/context.ts b/src/integrations/orpc/context.tsindex 9906b05b8..6640072f1 100644--- a/src/integrations/orpc/context.ts+++ b/src/integrations/orpc/context.ts@@ -26,7 +26,8 @@ async function getUserFromBearerToken(headers: Headers): Promise<User | null> {const [userResult] = await db.select().from(user).where(eq(user.id, payload.sub)).limit(1);return userResult ?? null;- } catch {+ } catch (error) {+ console.warn("Bearer token verification failed:", error);return null;}}@@ -37,7 +38,8 @@ async function getUserFromHeaders(headers: Headers): Promise<User | null> {if (!result || !result.user) return null;return result.user;- } catch {+ } catch (error) {+ console.warn("Session verification failed:", error);return null;}}@@ -51,7 +53,8 @@ async function getUserFromApiKey(apiKey: string): Promise<User | null> {if (!userResult) return null;return userResult;- } catch {+ } catch (error) {+ console.warn("API key verification failed:", error);return null;}}diff --git a/src/integrations/orpc/helpers/resume-access.test.ts b/src/integrations/orpc/helpers/resume-access.test.tsnew file mode 100644index 000000000..d614a2fb4--- /dev/null+++ b/src/integrations/orpc/helpers/resume-access.test.ts@@ -0,0 +1,106 @@+import { createHash } from "node:crypto";+import { describe, expect, it } from "vite-plus/test";++// ---------------------------------------------------------------------------+// We test the pure crypto helpers directly (signResumeAccessToken, safeEquals)+// since they don't depend on cookies or env.+// The actual module uses private functions, so we reimplement and test the algorithm.+// ---------------------------------------------------------------------------++function signResumeAccessToken(resumeId: string, passwordHash: string): string {+ return createHash("sha256").update(`${resumeId}:${passwordHash}`).digest("hex");+}++function safeEquals(value: string, expected: string): boolean {+ const { timingSafeEqual } = require("node:crypto");+ const valueBuffer = Buffer.from(value);+ const expectedBuffer = Buffer.from(expected);+ if (valueBuffer.length !== expectedBuffer.length) return false;+ return timingSafeEqual(valueBuffer, expectedBuffer);+}++function getResumeAccessCookieName(resumeId: string): string {+ return `resume_access_${resumeId}`;+}++// ---------------------------------------------------------------------------+// signResumeAccessToken+// ---------------------------------------------------------------------------++describe("signResumeAccessToken", () => {+ it("produces a hex SHA256 hash", () => {+ const token = signResumeAccessToken("resume-123", "hashed-password");+ expect(token).toMatch(/^[0-9a-f]{64}$/);+ });++ it("produces consistent results for same inputs", () => {+ const t1 = signResumeAccessToken("resume-1", "pw-hash");+ const t2 = signResumeAccessToken("resume-1", "pw-hash");+ expect(t1).toBe(t2);+ });++ it("produces different tokens for different resume IDs", () => {+ const t1 = signResumeAccessToken("resume-1", "pw-hash");+ const t2 = signResumeAccessToken("resume-2", "pw-hash");+ expect(t1).not.toBe(t2);+ });++ it("produces different tokens for different password hashes", () => {+ const t1 = signResumeAccessToken("resume-1", "hash-a");+ const t2 = signResumeAccessToken("resume-1", "hash-b");+ expect(t1).not.toBe(t2);+ });++ it("handles empty inputs", () => {+ const token = signResumeAccessToken("", "");+ expect(token).toMatch(/^[0-9a-f]{64}$/);+ });+});++// ---------------------------------------------------------------------------+// safeEquals+// ---------------------------------------------------------------------------++describe("safeEquals", () => {+ it("returns true for equal strings", () => {+ expect(safeEquals("abc123", "abc123")).toBe(true);+ });++ it("returns false for different strings of same length", () => {+ expect(safeEquals("abc123", "abc456")).toBe(false);+ });++ it("returns false for strings of different lengths", () => {+ expect(safeEquals("short", "much-longer-string")).toBe(false);+ });++ it("returns true for empty strings", () => {+ expect(safeEquals("", "")).toBe(true);+ });++ it("returns false for empty vs non-empty", () => {+ expect(safeEquals("", "notempty")).toBe(false);+ });++ it("handles long hex strings (like SHA256 hashes)", () => {+ const hash = signResumeAccessToken("id", "pw");+ expect(safeEquals(hash, hash)).toBe(true);+ expect(safeEquals(hash, hash.replace(/.$/, "0"))).toBe(false);+ });+});++// ---------------------------------------------------------------------------+// getResumeAccessCookieName+// ---------------------------------------------------------------------------++describe("getResumeAccessCookieName", () => {+ it("prefixes resume ID with resume_access_", () => {+ expect(getResumeAccessCookieName("abc-123")).toBe("resume_access_abc-123");+ });++ it("handles various ID formats", () => {+ expect(getResumeAccessCookieName("01234567-89ab-cdef-0123-456789abcdef")).toBe(+ "resume_access_01234567-89ab-cdef-0123-456789abcdef",+ );+ });+});diff --git a/src/integrations/orpc/router/auth.ts b/src/integrations/orpc/router/auth.tsindex 164a1808d..5853a1e71 100644--- a/src/integrations/orpc/router/auth.ts+++ b/src/integrations/orpc/router/auth.ts@@ -11,7 +11,7 @@ export const authRouter = {operationId: "listAuthProviders",summary: "List authentication providers",description:- "Returns a list of all authentication providers enabled on this Reactive Resume instance, along with their display names. Possible providers include password-based credentials, Google, GitHub, and custom OAuth. No authentication required.",+ "Returns a list of all authentication providers enabled on this Reactive Resume instance, along with their display names. Possible providers include password-based credentials, Google, GitHub, LinkedIn, and custom OAuth. No authentication required.",successDescription: "A map of enabled authentication provider identifiers to their display names.",}).handler((): ProviderList => {diff --git a/src/integrations/orpc/services/ai.ts b/src/integrations/orpc/services/ai.tsindex 43e4c1dc6..8370298f5 100644--- a/src/integrations/orpc/services/ai.ts+++ b/src/integrations/orpc/services/ai.ts@@ -33,108 +33,10 @@ import {} from "@/integrations/ai/tools/patch-resume";import { defaultResumeData, resumeDataSchema } from "@/schema/resume/data";import { type TailorOutput, tailorOutputSchema } from "@/schema/tailor";+import { buildAiExtractionTemplate } from "@/utils/ai-template";import { isObject } from "@/utils/sanitize";-const aiExtractionTemplate = {- ...defaultResumeData,- basics: {- ...defaultResumeData.basics,- customFields: [{ id: "", icon: "", text: "", link: "" }],- },- sections: {- ...defaultResumeData.sections,- profiles: {- ...defaultResumeData.sections.profiles,- items: [{ id: "", hidden: false, icon: "", network: "", username: "", website: { url: "", label: "" } }],- },- experience: {- ...defaultResumeData.sections.experience,- items: [- {- id: "",- hidden: false,- company: "",- position: "",- location: "",- period: "",- website: { url: "", label: "" },- description: "",- },- ],- },- education: {- ...defaultResumeData.sections.education,- items: [- {- id: "",- hidden: false,- school: "",- degree: "",- area: "",- grade: "",- location: "",- period: "",- website: { url: "", label: "" },- description: "",- },- ],- },- projects: {- ...defaultResumeData.sections.projects,- items: [{ id: "", hidden: false, name: "", period: "", website: { url: "", label: "" }, description: "" }],- },- skills: {- ...defaultResumeData.sections.skills,- items: [{ id: "", hidden: false, icon: "", name: "", proficiency: "", level: 0, keywords: [] }],- },- languages: {- ...defaultResumeData.sections.languages,- items: [{ id: "", hidden: false, language: "", fluency: "", level: 0 }],- },- interests: {- ...defaultResumeData.sections.interests,- items: [{ id: "", hidden: false, icon: "", name: "", keywords: [] }],- },- awards: {- ...defaultResumeData.sections.awards,- items: [- { id: "", hidden: false, title: "", awarder: "", date: "", website: { url: "", label: "" }, description: "" },- ],- },- certifications: {- ...defaultResumeData.sections.certifications,- items: [- { id: "", hidden: false, title: "", issuer: "", date: "", website: { url: "", label: "" }, description: "" },- ],- },- publications: {- ...defaultResumeData.sections.publications,- items: [- { id: "", hidden: false, title: "", publisher: "", date: "", website: { url: "", label: "" }, description: "" },- ],- },- volunteer: {- ...defaultResumeData.sections.volunteer,- items: [- {- id: "",- hidden: false,- organization: "",- location: "",- period: "",- website: { url: "", label: "" },- description: "",- },- ],- },- references: {- ...defaultResumeData.sections.references,- items: [- { id: "", hidden: false, name: "", position: "", website: { url: "", label: "" }, phone: "", description: "" },- ],- },- },-};+const aiExtractionTemplate = buildAiExtractionTemplate();/*** Merges two objects recursively, filling in missing properties in the target objectdiff --git a/src/integrations/orpc/services/auth.ts b/src/integrations/orpc/services/auth.tsindex a1b11cd9d..205bd5ad6 100644--- a/src/integrations/orpc/services/auth.ts+++ b/src/integrations/orpc/services/auth.ts@@ -17,6 +17,7 @@ const providers = {if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) providers.google = "Google";if (env.GITHUB_CLIENT_ID && env.GITHUB_CLIENT_SECRET) providers.github = "GitHub";+ if (env.LINKEDIN_CLIENT_ID && env.LINKEDIN_CLIENT_SECRET) providers.linkedin = "LinkedIn";if (env.OAUTH_CLIENT_ID && env.OAUTH_CLIENT_SECRET) providers.custom = env.OAUTH_PROVIDER_NAME ?? "Custom OAuth";return providers;diff --git a/src/integrations/orpc/services/printer.ts b/src/integrations/orpc/services/printer.tsindex c68d941c6..fb861e0f2 100644--- a/src/integrations/orpc/services/printer.ts+++ b/src/integrations/orpc/services/printer.ts@@ -3,7 +3,7 @@ import type { InferSelectModel } from "drizzle-orm";import { ORPCError } from "@orpc/server";import dns from "node:dns/promises";import { isIP } from "node:net";-import puppeteer, { type Browser, type ConnectOptions, type Page } from "puppeteer-core";+import puppeteer, { type Browser, type BrowserContext, type ConnectOptions, type Page } from "puppeteer-core";import type { schema } from "@/integrations/drizzle";@@ -16,6 +16,10 @@ import { getStorageService, uploadFile } from "./storage";const SCREENSHOT_TTL = 1000 * 60 * 60 * 6; // 6 hours+// Deduplicate concurrent requests for the same resume+const activePrintJobs = new Map<string, Promise<string>>();+const activeScreenshotJobs = new Map<string, Promise<string>>();+// Singleton browser instance for connection reuselet browserInstance: Browser | null = null;@@ -59,324 +63,360 @@ async function closeBrowser(): Promise<void> {}// Close browser on process termination-process.on("SIGINT", async () => {- await closeBrowser();- process.exit(0);-});--process.on("SIGTERM", async () => {+process.on("exit", async () => {await closeBrowser();process.exit(0);});-export const printerService = {- healthcheck: async (): Promise<object> => {- const headers = new Headers({ Accept: "application/json" });- const endpoint = await normalizePrinterEndpoint(env.PRINTER_ENDPOINT);-- endpoint.protocol = endpoint.protocol.replace("ws", "http");- endpoint.pathname = "/json/version";-- const response = await fetch(endpoint, { headers });- const data = await response.json();-- return data;- },+/**+ * Generates a PDF from a resume and uploads it to storage.+ *+ * The process:+ * 1. Clean up any existing PDF for this resume+ * 2. Navigate to the printer route which renders the resume+ * 3. Calculate PDF margins (some templates require margins to be applied via PDF)+ * 4. Adjust CSS variables so content fits within printable area (accounting for margins)+ * 5. Add page break CSS to ensure each visual resume page becomes a PDF page+ * 6. Generate the PDF with proper dimensions and margins+ * 7. Upload to storage and return the URL+ */+async function doPrintResumeAsPDF(+ input: Pick<InferSelectModel<typeof schema.resume>, "id" | "data" | "userId">,+): Promise<string> {+ const { id, data, userId } = input;++ // Step 1: Delete any existing PDF for this resume to ensure fresh generation+ const storageService = getStorageService();+ const pdfPrefix = `uploads/${userId}/pdfs/${id}`;+ await storageService.delete(pdfPrefix);++ // Step 2: Prepare the URL and authentication for the printer route+ // The printer route renders the resume in a format optimized for PDF generation+ const baseUrl = env.PRINTER_APP_URL ?? env.APP_URL;+ const domain = new URL(baseUrl).hostname;++ const format = data.metadata.page.format;+ const locale = data.metadata.page.locale;+ const template = data.metadata.template;++ // Generate a secure token to authenticate the printer request+ const token = generatePrinterToken(id);+ const url = `${baseUrl}/printer/${id}?token=${token}`;++ // Step 3: Calculate print paddings for templates that disable CSS padding in print mode.+ // We render these margins inside the page (not via Puppeteer's PDF margins), so the margin+ // area matches the resume background color instead of staying white.+ let pagePaddingX = 0;+ let pagePaddingY = 0;++ if (printMarginTemplates.includes(template)) {+ pagePaddingX = data.metadata.page.marginX;+ pagePaddingY = data.metadata.page.marginY;+ }- /**- * Generates a PDF from a resume and uploads it to storage.- *- * The process:- * 1. Clean up any existing PDF for this resume- * 2. Navigate to the printer route which renders the resume- * 3. Calculate PDF margins (some templates require margins to be applied via PDF)- * 4. Adjust CSS variables so content fits within printable area (accounting for margins)- * 5. Add page break CSS to ensure each visual resume page becomes a PDF page- * 6. Generate the PDF with proper dimensions and margins- * 7. Upload to storage and return the URL- */- printResumeAsPDF: async (- input: Pick<InferSelectModel<typeof schema.resume>, "id" | "data" | "userId">,- ): Promise<string> => {- const { id, data, userId } = input;-- // Step 1: Delete any existing PDF for this resume to ensure fresh generation- const storageService = getStorageService();- const pdfPrefix = `uploads/${userId}/pdfs/${id}`;- await storageService.delete(pdfPrefix);-- // Step 2: Prepare the URL and authentication for the printer route- // The printer route renders the resume in a format optimized for PDF generation- const baseUrl = env.PRINTER_APP_URL ?? env.APP_URL;- const domain = new URL(baseUrl).hostname;-- const format = data.metadata.page.format;- const locale = data.metadata.page.locale;- const template = data.metadata.template;-- // Generate a secure token to authenticate the printer request- const token = generatePrinterToken(id);- const url = `${baseUrl}/printer/${id}?token=${token}`;-- // Step 3: Calculate print paddings for templates that disable CSS padding in print mode.- // We render these margins inside the page (not via Puppeteer's PDF margins), so the margin- // area matches the resume background color instead of staying white.- let pagePaddingX = 0;- let pagePaddingY = 0;-- if (printMarginTemplates.includes(template)) {- pagePaddingX = data.metadata.page.marginX;- pagePaddingY = data.metadata.page.marginY;- }+ let context: BrowserContext | null = null;+ let page: Page | null = null;++ try {+ // Step 4: Connect to the browser and navigate to the printer route+ // Use an isolated browser context so concurrent requests with different locales don't interfere+ const browser = await getBrowser();+ context = await browser.createBrowserContext();++ await context.setCookie({ name: "locale", value: locale, domain });++ page = await context.newPage();++ // Wait for the page to fully load (network idle + custom loaded attribute)+ await page.emulateMediaType("print");+ await page.setViewport(pageDimensionsAsPixels[format]);+ await page.goto(url, { waitUntil: "networkidle0" });+ await page.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 });++ // Step 5a: Prepare the DOM for PDF rendering (background colors, reset margins, print padding)+ await page.evaluate(+ (pagePaddingX: number, pagePaddingY: number, backgroundColor: string) => {+ const root = document.documentElement;+ const body = document.body;+ const pageElements = document.querySelectorAll("[data-page-index]");+ const pageContentElements = document.querySelectorAll(".page-content");++ // Ensure PDF margins inherit the resume background color instead of defaulting to white.+ root.style.backgroundColor = backgroundColor;+ body.style.backgroundColor = backgroundColor;+ root.style.margin = "0";+ body.style.margin = "0";+ root.style.padding = "0";+ body.style.padding = "0";++ for (const el of pageElements) {+ const pageWrapper = el as HTMLElement;+ const pageSurface = pageWrapper.querySelector(".page") as HTMLElement | null;++ pageWrapper.style.backgroundColor = backgroundColor;+ pageWrapper.style.breakInside = "auto";++ if (pageSurface) pageSurface.style.backgroundColor = backgroundColor;+ }- let browser: Browser | null = null;- let page: Page | null = null;-- try {- // Step 4: Connect to the browser and navigate to the printer route- browser = await getBrowser();-- // Set locale cookie so the resume renders in the correct language- await browser.setCookie({ name: "locale", value: locale, domain });-- page = await browser.newPage();-- // Wait for the page to fully load (network idle + custom loaded attribute)- await page.emulateMediaType("print");- await page.setViewport(pageDimensionsAsPixels[format]);- await page.goto(url, { waitUntil: "networkidle0" });- await page.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 });-- // Step 5: Adjust the DOM for proper PDF pagination- // This runs in the browser context to modify CSS before PDF generation- // For free-form: measure actual content height, don't add page breaks- // For A4/Letter: adjust page height for margins, add page breaks- const isFreeForm = format === "free-form";-- const contentHeight = await page.evaluate(- (- pagePaddingX: number,- pagePaddingY: number,- isFreeForm: boolean,- minPageHeight: number,- backgroundColor: string,- ) => {- const root = document.documentElement;- const body = document.body;+ // Apply print-only margins as padding inside each page's content surface.+ if (pagePaddingX > 0 || pagePaddingY > 0) {+ for (const el of pageContentElements) {+ const pageContent = el as HTMLElement;++ pageContent.style.boxSizing = "border-box";+ // Ensure padding is repeated on every printed fragment when content+ // flows across physical PDF pages (not just the first fragment).+ pageContent.style.boxDecorationBreak = "clone";+ pageContent.style.setProperty("-webkit-box-decoration-break", "clone");+ if (pagePaddingX > 0) {+ pageContent.style.paddingLeft = `${pagePaddingX}pt`;+ pageContent.style.paddingRight = `${pagePaddingX}pt`;+ }+ if (pagePaddingY > 0) {+ pageContent.style.paddingTop = `${pagePaddingY}pt`;+ pageContent.style.paddingBottom = `${pagePaddingY}pt`;+ }+ }+ }+ },+ pagePaddingX,+ pagePaddingY,+ data.metadata.design.colors.background,+ );++ // Step 5b: Format-specific layout adjustments+ const isFreeForm = format === "free-form";+ let contentHeight: number | null = null;++ if (isFreeForm) {+ // Free-form: measure actual content height after adding inter-page margins+ contentHeight = await page.evaluate(+ (pagePaddingY: number, minPageHeight: number) => {const pageElements = document.querySelectorAll("[data-page-index]");- const pageContentElements = document.querySelectorAll(".page-content");- const container = document.querySelector(".resume-preview-container") as HTMLElement | null;+ const numberOfPages = pageElements.length;- // Ensure PDF margins inherit the resume background color instead of defaulting to white.- root.style.backgroundColor = backgroundColor;- body.style.backgroundColor = backgroundColor;- root.style.margin = "0";- body.style.margin = "0";- root.style.padding = "0";- body.style.padding = "0";-- for (const el of pageElements) {- const pageWrapper = el as HTMLElement;- const pageSurface = pageWrapper.querySelector(".page") as HTMLElement | null;+ // Add margin between pages (except the last one)+ for (let i = 0; i < numberOfPages - 1; i++) {+ const pageEl = pageElements[i] as HTMLElement;+ if (pagePaddingY > 0) pageEl.style.marginBottom = `${pagePaddingY}pt`;+ }- pageWrapper.style.backgroundColor = backgroundColor;- pageWrapper.style.breakInside = "auto";+ // Measure the total height (margins are now part of the DOM)+ let totalHeight = 0;- if (pageSurface) pageSurface.style.backgroundColor = backgroundColor;+ for (const el of pageElements) {+ const pageEl = el as HTMLElement;+ const style = getComputedStyle(pageEl);+ const marginBottom = Number.parseFloat(style.marginBottom) || 0;+ totalHeight += pageEl.offsetHeight + marginBottom;}- // Apply print-only margins as padding inside each page's content surface.- if (pagePaddingX > 0 || pagePaddingY > 0) {- for (const el of pageContentElements) {- const pageContent = el as HTMLElement;-- pageContent.style.boxSizing = "border-box";- // Ensure padding is repeated on every printed fragment when content- // flows across physical PDF pages (not just the first fragment).- pageContent.style.boxDecorationBreak = "clone";- pageContent.style.setProperty("-webkit-box-decoration-break", "clone");- if (pagePaddingX > 0) {- pageContent.style.paddingLeft = `${pagePaddingX}pt`;- pageContent.style.paddingRight = `${pagePaddingX}pt`;- }- if (pagePaddingY > 0) {- pageContent.style.paddingTop = `${pagePaddingY}pt`;- pageContent.style.paddingBottom = `${pagePaddingY}pt`;- }- }+ return Math.max(totalHeight, minPageHeight);+ },+ pagePaddingY,+ pageDimensionsAsPixels[format].height,+ );+ } else {+ // A4/Letter: set fixed page height and add page breaks between pages+ await page.evaluate((pageHeight: number) => {+ const root = document.documentElement;+ const pageElements = document.querySelectorAll("[data-page-index]");+ const container = document.querySelector(".resume-preview-container") as HTMLElement | null;++ const newHeight = `${pageHeight}px`;+ if (container) container.style.setProperty("--page-height", newHeight);+ root.style.setProperty("--page-height", newHeight);++ for (const el of pageElements) {+ const element = el as HTMLElement;+ const index = Number.parseInt(element.getAttribute("data-page-index") ?? "0", 10);++ // Force a page break before each page except the first+ if (index > 0) {+ element.style.breakBefore = "page";+ element.style.pageBreakBefore = "always";}- if (isFreeForm) {- const numberOfPages = pageElements.length;+ // Allow content within a page to break naturally if it overflows+ element.style.breakInside = "auto";+ }+ }, pageDimensionsAsPixels[format].height);+ }- // Add margin between pages (except the last one)- for (let i = 0; i < numberOfPages - 1; i++) {- const pageEl = pageElements[i] as HTMLElement;- if (pagePaddingY > 0) pageEl.style.marginBottom = `${pagePaddingY}pt`;- }+ // Step 6: Generate the PDF with the specified dimensions and margins+ // For free-form: use measured content height (with minimum constraint)+ // For A4/Letter: use fixed dimensions from pageDimensionsAsPixels+ const pdfHeight = isFreeForm && contentHeight ? contentHeight : pageDimensionsAsPixels[format].height;++ const pdfBuffer = await page.pdf({+ width: `${pageDimensionsAsPixels[format].width}px`,+ height: `${pdfHeight}px`,+ tagged: true, // Adds accessibility tags to the PDF+ waitForFonts: true, // Ensures all fonts are loaded before rendering+ printBackground: true, // Includes background colors and images+ margin: {+ bottom: 0,+ top: 0,+ right: 0,+ left: 0,+ },+ });++ // Step 7: Upload the generated PDF to storage+ const result = await uploadFile({+ userId,+ resumeId: id,+ data: new Uint8Array(pdfBuffer),+ contentType: "application/pdf",+ type: "pdf",+ });++ return result.url;+ } catch (error) {+ throw new ORPCError("INTERNAL_SERVER_ERROR", { message: "Failed to generate PDF", cause: error });+ } finally {+ if (page) await page.close().catch(() => null);+ if (context) await context.close().catch(() => null);+ }+}- // Now measure the total height (margins are now part of the DOM)- let totalHeight = 0;+/**+ * Captures a screenshot of the first page of a resume as WebP.+ *+ * Uses a timestamp-based cache (6-hour TTL) to avoid regenerating screenshots+ * for resumes that haven't changed. Old screenshots are cleaned up on regeneration.+ */+async function doGetResumeScreenshot(+ input: Pick<InferSelectModel<typeof schema.resume>, "userId" | "id" | "data" | "updatedAt">,+): Promise<string> {+ const { id, userId, data, updatedAt } = input;++ const storageService = getStorageService();+ const screenshotPrefix = `uploads/${userId}/screenshots/${id}`;++ const existingScreenshots = await storageService.list(screenshotPrefix);+ const now = Date.now();+ const resumeUpdatedAt = updatedAt.getTime();++ if (existingScreenshots.length > 0) {+ const sortedFiles = existingScreenshots+ .map((path) => {+ const filename = path.split("/").pop();+ const match = filename?.match(/^(\d+)\.webp$/);+ return match ? { path, timestamp: Number(match[1]) } : null;+ })+ .filter((item): item is { path: string; timestamp: number } => item !== null)+ .sort((a, b) => b.timestamp - a.timestamp);++ if (sortedFiles.length > 0) {+ const latest = sortedFiles[0];+ const age = now - latest.timestamp;++ // Return existing screenshot if it's still fresh (within TTL)+ if (age < SCREENSHOT_TTL) return new URL(latest.path, env.APP_URL).toString();++ // Screenshot is stale (past TTL), but only regenerate if the resume+ // was updated after the screenshot was taken. If the resume hasn't+ // changed, keep using the existing screenshot to avoid unnecessary work.+ if (resumeUpdatedAt <= latest.timestamp) {+ return new URL(latest.path, env.APP_URL).toString();+ }- for (const el of pageElements) {- const pageEl = el as HTMLElement;- // offsetHeight includes padding and border, but not margin- const style = getComputedStyle(pageEl);- const marginBottom = Number.parseFloat(style.marginBottom) || 0;- totalHeight += pageEl.offsetHeight + marginBottom;- }+ // Resume was updated after the screenshot - delete old ones and regenerate+ await Promise.all(sortedFiles.map((file) => storageService.delete(file.path)));+ }+ }- return Math.max(totalHeight, minPageHeight);- }+ const baseUrl = env.PRINTER_APP_URL ?? env.APP_URL;+ const domain = new URL(baseUrl).hostname;- // For A4/Letter- const heightValue = minPageHeight;+ const locale = data.metadata.page.locale;- // Keep page height fixed and let in-page padding (if any) define content bounds.- const newHeight = `${heightValue}px`;- if (container) container.style.setProperty("--page-height", newHeight);- root.style.setProperty("--page-height", newHeight);+ const token = generatePrinterToken(id);+ const url = `${baseUrl}/printer/${id}?token=${token}`;- // Add page break CSS to each resume page element (identified by data-page-index attribute)- // This ensures each visual resume page starts a new PDF page- for (const el of pageElements) {- const element = el as HTMLElement;- const index = Number.parseInt(element.getAttribute("data-page-index") ?? "0", 10);+ let context: BrowserContext | null = null;+ let page: Page | null = null;- // Force a page break before each page except the first- if (index > 0) {- element.style.breakBefore = "page";- element.style.pageBreakBefore = "always";- }+ try {+ const browser = await getBrowser();+ context = await browser.createBrowserContext();- // Allow content within a page to break naturally if it overflows- // (e.g., if a single page has more content than fits on one PDF page)- element.style.breakInside = "auto";- }+ await context.setCookie({ name: "locale", value: locale, domain });- return null; // Fixed height from pageDimensionsAsPixels for A4/Letter- },- pagePaddingX,- pagePaddingY,- isFreeForm,- pageDimensionsAsPixels[format].height,- data.metadata.design.colors.background,- );+ page = await context.newPage();- // Step 6: Generate the PDF with the specified dimensions and margins- // For free-form: use measured content height (with minimum constraint)- // For A4/Letter: use fixed dimensions from pageDimensionsAsPixels- const pdfHeight = isFreeForm && contentHeight ? contentHeight : pageDimensionsAsPixels[format].height;-- const pdfBuffer = await page.pdf({- width: `${pageDimensionsAsPixels[format].width}px`,- height: `${pdfHeight}px`,- tagged: true, // Adds accessibility tags to the PDF- waitForFonts: true, // Ensures all fonts are loaded before rendering- printBackground: true, // Includes background colors and images- margin: {- bottom: 0,- top: 0,- right: 0,- left: 0,- },- });-- // Step 7: Upload the generated PDF to storage- const result = await uploadFile({- userId,- resumeId: id,- data: new Uint8Array(pdfBuffer),- contentType: "application/pdf",- type: "pdf",- });-- return result.url;- } catch (error) {- throw new ORPCError("INTERNAL_SERVER_ERROR", error as Error);- } finally {- if (page) await page.close().catch(() => null);- }- },+ await page.setViewport(pageDimensionsAsPixels.a4);+ await page.goto(url, { waitUntil: "networkidle0" });+ await page.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 });- getResumeScreenshot: async (- input: Pick<InferSelectModel<typeof schema.resume>, "userId" | "id" | "data" | "updatedAt">,- ): Promise<string> => {- const { id, userId, data, updatedAt } = input;-- const storageService = getStorageService();- const screenshotPrefix = `uploads/${userId}/screenshots/${id}`;-- const existingScreenshots = await storageService.list(screenshotPrefix);- const now = Date.now();- const resumeUpdatedAt = updatedAt.getTime();-- if (existingScreenshots.length > 0) {- const sortedFiles = existingScreenshots- .map((path) => {- const filename = path.split("/").pop();- const match = filename?.match(/^(\d+)\.webp$/);- return match ? { path, timestamp: Number(match[1]) } : null;- })- .filter((item): item is { path: string; timestamp: number } => item !== null)- .sort((a, b) => b.timestamp - a.timestamp);-- if (sortedFiles.length > 0) {- const latest = sortedFiles[0];- const age = now - latest.timestamp;-- // Return existing screenshot if it's still fresh (within TTL)- if (age < SCREENSHOT_TTL) return new URL(latest.path, env.APP_URL).toString();-- // Screenshot is stale (past TTL), but only regenerate if the resume- // was updated after the screenshot was taken. If the resume hasn't- // changed, keep using the existing screenshot to avoid unnecessary work.- if (resumeUpdatedAt <= latest.timestamp) {- return new URL(latest.path, env.APP_URL).toString();- }+ const screenshotBuffer = await page.screenshot({ type: "webp", quality: 80 });- // Resume was updated after the screenshot - delete old ones and regenerate- await Promise.all(sortedFiles.map((file) => storageService.delete(file.path)));- }- }+ const result = await uploadFile({+ userId,+ resumeId: id,+ data: new Uint8Array(screenshotBuffer),+ contentType: "image/webp",+ type: "screenshot",+ });++ return result.url;+ } catch (error) {+ throw new ORPCError("INTERNAL_SERVER_ERROR", { message: "Failed to capture screenshot", cause: error });+ } finally {+ if (page) await page.close().catch(() => null);+ if (context) await context.close().catch(() => null);+ }+}- const baseUrl = env.PRINTER_APP_URL ?? env.APP_URL;- const domain = new URL(baseUrl).hostname;+export const printerService = {+ healthcheck: async (): Promise<object> => {+ const headers = new Headers({ Accept: "application/json" });+ const endpoint = await normalizePrinterEndpoint(env.PRINTER_ENDPOINT);- const locale = data.metadata.page.locale;+ endpoint.protocol = endpoint.protocol.replace("ws", "http");+ endpoint.pathname = "/json/version";- const token = generatePrinterToken(id);- const url = `${baseUrl}/printer/${id}?token=${token}`;+ const response = await fetch(endpoint, { headers });+ const data = await response.json();- let browser: Browser | null = null;- let page: Page | null = null;+ return data;+ },++ /** Generates a PDF, deduplicating concurrent requests for the same resume. */+ printResumeAsPDF: async (+ input: Pick<InferSelectModel<typeof schema.resume>, "id" | "data" | "userId">,+ ): Promise<string> => {+ const { id } = input;- try {- browser = await getBrowser();+ // Deduplicate concurrent requests for the same resume+ const existing = activePrintJobs.get(id);+ if (existing) return existing;- await browser.setCookie({ name: "locale", value: locale, domain });+ const job = doPrintResumeAsPDF(input).finally(() => {+ activePrintJobs.delete(id);+ });- page = await browser.newPage();+ activePrintJobs.set(id, job);+ return job;+ },- await page.setViewport(pageDimensionsAsPixels.a4);- await page.goto(url, { waitUntil: "networkidle0" });- await page.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 });+ /** Captures a resume screenshot, deduplicating concurrent requests for the same resume. */+ getResumeScreenshot: async (+ input: Pick<InferSelectModel<typeof schema.resume>, "userId" | "id" | "data" | "updatedAt">,+ ): Promise<string> => {+ const { id } = input;- const screenshotBuffer = await page.screenshot({ type: "webp", quality: 80 });+ // Deduplicate concurrent requests for the same resume+ const existing = activeScreenshotJobs.get(id);+ if (existing) return existing;- const result = await uploadFile({- userId,- resumeId: id,- data: new Uint8Array(screenshotBuffer),- contentType: "image/webp",- type: "screenshot",- });+ const job = doGetResumeScreenshot(input).finally(() => {+ activeScreenshotJobs.delete(id);+ });- return result.url;- } catch (error) {- throw new ORPCError("INTERNAL_SERVER_ERROR", error as Error);- } finally {- if (page) await page.close().catch(() => null);- }+ activeScreenshotJobs.set(id, job);+ return job;},};diff --git a/src/integrations/orpc/services/resume.ts b/src/integrations/orpc/services/resume.tsindex a144ce481..5e41f51eb 100644--- a/src/integrations/orpc/services/resume.ts+++ b/src/integrations/orpc/services/resume.ts@@ -269,7 +269,8 @@ export const resumeService = {throw new ORPCError("RESUME_SLUG_ALREADY_EXISTS", { status: 400 });}- throw error;+ console.error("Failed to create resume:", error);+ throw new ORPCError("INTERNAL_SERVER_ERROR", { message: "Failed to create resume" });}},@@ -325,7 +326,8 @@ export const resumeService = {throw new ORPCError("RESUME_SLUG_ALREADY_EXISTS", { status: 400 });}- throw error;+ console.error("Failed to update resume:", error);+ throw new ORPCError("INTERNAL_SERVER_ERROR", { message: "Failed to update resume" });}},@@ -426,26 +428,23 @@ export const resumeService = {},delete: async (input: { id: string; userId: string }) => {- const [resume] = await db- .select({ isLocked: schema.resume.isLocked })- .from(schema.resume)- .where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)));+ await db.transaction(async (tx) => {+ const [resume] = await tx+ .select({ isLocked: schema.resume.isLocked })+ .from(schema.resume)+ .where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)));- if (!resume) throw new ORPCError("NOT_FOUND");- if (resume.isLocked) throw new ORPCError("RESUME_LOCKED");-- const storageService = getStorageService();+ if (!resume) throw new ORPCError("NOT_FOUND");+ if (resume.isLocked) throw new ORPCError("RESUME_LOCKED");- const deleteResumePromise = db- .delete(schema.resume)- .where(- and(eq(schema.resume.id, input.id), eq(schema.resume.isLocked, false), eq(schema.resume.userId, input.userId)),- );-- // Delete screenshots and PDFs using the new key format- const deleteScreenshotsPromise = storageService.delete(`uploads/${input.userId}/screenshots/${input.id}`);- const deletePdfsPromise = storageService.delete(`uploads/${input.userId}/pdfs/${input.id}`);+ await tx.delete(schema.resume).where(and(eq(schema.resume.id, input.id), eq(schema.resume.userId, input.userId)));+ });- await Promise.allSettled([deleteResumePromise, deleteScreenshotsPromise, deletePdfsPromise]);+ // Clean up storage files after the DB transaction succeeds+ const storageService = getStorageService();+ await Promise.allSettled([+ storageService.delete(`uploads/${input.userId}/screenshots/${input.id}`),+ storageService.delete(`uploads/${input.userId}/pdfs/${input.id}`),+ ]);},};diff --git a/src/routes/_home/-sections/faq.tsx b/src/routes/_home/-sections/faq.tsxindex f6f276128..797a24bce 100644--- a/src/routes/_home/-sections/faq.tsx+++ b/src/routes/_home/-sections/faq.tsx@@ -70,14 +70,13 @@ export function FAQ() {><motion.h2className={cn(- "flex-1 text-2xl font-semibold tracking-tight md:text-4xl xl:text-5xl",+ "flex-1 text-2xl font-semibold tracking-tight will-change-[transform,opacity] md:text-4xl xl:text-5xl","flex shrink-0 flex-wrap items-center gap-x-1.5 lg:flex-col lg:items-start",)}initial={{ opacity: 0, x: -20 }}whileInView={{ opacity: 1, x: 0 }}viewport={{ once: true }}transition={{ duration: 0.45 }}- style={{ willChange: "transform, opacity" }}><Trans context="Every word needs to be wrapped in a tag"><span>Frequently</span>@@ -87,12 +86,11 @@ export function FAQ() {</motion.h2><motion.div- className="max-w-2xl flex-2 lg:ml-auto 2xl:max-w-3xl"initial={{ opacity: 0, y: 20 }}whileInView={{ opacity: 1, y: 0 }}viewport={{ once: true }}transition={{ duration: 0.45, delay: 0.08 }}- style={{ willChange: "transform, opacity" }}+ className="max-w-2xl flex-2 will-change-[transform,opacity] lg:ml-auto 2xl:max-w-3xl"><Accordion multiple>{faqItems.map((item, index) => (@@ -112,12 +110,11 @@ type FAQItemComponentProps = {function FAQItemComponent({ item, index }: FAQItemComponentProps) {return (<motion.div- className="last:border-b"+ className="will-change-[transform,opacity] last:border-b"initial={{ opacity: 0, y: 10 }}whileInView={{ opacity: 1, y: 0 }}viewport={{ once: true }}transition={{ duration: 0.24, delay: Math.min(0.16, index * 0.03) }}- style={{ willChange: "transform, opacity" }}><AccordionItem value={item.question} className="group border-t"><AccordionTrigger className="py-5">{item.question}</AccordionTrigger>diff --git a/src/routes/_home/-sections/features.tsx b/src/routes/_home/-sections/features.tsxindex 30c1d1dfd..e8080af18 100644--- a/src/routes/_home/-sections/features.tsx+++ b/src/routes/_home/-sections/features.tsx@@ -136,7 +136,7 @@ function FeatureCard({ icon: Icon, title, description }: FeatureCardProps) {return (<motion.divclassName={cn(- "group relative flex min-h-48 flex-col gap-4 overflow-hidden border-b bg-background p-6 transition-[background-color] duration-300",+ "group relative flex min-h-48 flex-col gap-4 overflow-hidden border-b bg-background p-6 transition-[background-color] duration-300 will-change-[transform,opacity]","not-nth-[2n]:border-r xl:not-nth-[4n]:border-r","hover:bg-secondary/30",)}@@ -146,7 +146,6 @@ function FeatureCard({ icon: Icon, title, description }: FeatureCardProps) {transition={{ duration: 0.35, ease: "easeOut" }}whileHover={{ y: -3, scale: 1.01 }}whileTap={{ scale: 0.995 }}- style={{ willChange: "transform, opacity" }}>{/* Hover gradient overlay */}<div@@ -177,12 +176,11 @@ export function Features() {<section id="features">{/* Header */}<motion.div- className="space-y-4 p-4 md:p-8 xl:py-16"+ className="space-y-4 p-4 will-change-[transform,opacity] md:p-8 xl:py-16"initial={{ opacity: 0, y: 20 }}whileInView={{ opacity: 1, y: 0 }}viewport={{ once: true }}transition={{ duration: 0.45 }}- style={{ willChange: "transform, opacity" }}><h2 className="text-2xl font-semibold tracking-tight md:text-4xl xl:text-5xl"><Trans>Features</Trans>diff --git a/src/routes/_home/-sections/footer.tsx b/src/routes/_home/-sections/footer.tsxindex 4798eb041..bc9e02a48 100644--- a/src/routes/_home/-sections/footer.tsx+++ b/src/routes/_home/-sections/footer.tsx@@ -50,12 +50,11 @@ export function Footer() {return (<motion.footerid="footer"- className="p-4 pb-8 md:p-8 md:pb-12"+ className="p-4 pb-8 will-change-[opacity] md:p-8 md:pb-12"initial={{ opacity: 0 }}whileInView={{ opacity: 1 }}viewport={{ once: true }}transition={{ duration: 0.45 }}- style={{ willChange: "opacity" }}><div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4">{/* Brand Column */}@@ -143,8 +142,7 @@ function FooterLink({ url, label }: FooterLinkItem) {initial={{ width: 0, opacity: 0 }}animate={isHovered ? { width: "100%", opacity: 1 } : { width: 0, opacity: 0 }}transition={{ duration: 0.2, ease: "easeOut" }}- className="pointer-events-none absolute inset-s-0 -bottom-0.5 h-px rounded-md bg-primary"- style={{ willChange: "width, opacity" }}+ className="pointer-events-none absolute inset-s-0 -bottom-0.5 h-px rounded-md bg-primary will-change-[width,opacity]"/></a></li>diff --git a/src/routes/_home/-sections/hero.tsx b/src/routes/_home/-sections/hero.tsxindex f961613c2..e12799af3 100644--- a/src/routes/_home/-sections/hero.tsx+++ b/src/routes/_home/-sections/hero.tsx@@ -18,10 +18,10 @@ export function Hero() {<Spotlight /><motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: 100 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 1.1, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><CometCard glareOpacity={0} className="3xl:max-w-7xl relative -mb-12 max-w-4xl px-8 md:-mb-24 md:px-12 lg:px-0"><video@@ -46,12 +46,12 @@ export function Hero() {<div className="xs:px-0 relative z-10 flex max-w-2xl flex-col items-center gap-y-6 px-4 text-center">{/* Badge */}<motion.a+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.45, delay: 0.55 }}whileHover={{ y: -2, scale: 1.01 }}whileTap={{ scale: 0.985 }}- style={{ willChange: "transform, opacity" }}target="_blank"rel="noopener noreferrer"href="https://docs.rxresu.me/getting-started"@@ -64,10 +64,10 @@ export function Hero() {{/* Headline */}<motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.45, delay: 0.7 }}- style={{ willChange: "transform, opacity" }}><Trans><p className="font-medium tracking-tight text-muted-foreground md:text-lg">Finally,</p>@@ -79,11 +79,10 @@ export function Hero() {{/* Description */}<motion.p- className="max-w-xl text-base leading-relaxed text-muted-foreground md:text-lg"+ className="max-w-xl text-base leading-relaxed text-muted-foreground will-change-[transform,opacity] md:text-lg"initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.45, delay: 0.82 }}- style={{ willChange: "transform, opacity" }}><Trans>Reactive Resume is a free and open-source resume builder that simplifies the process of creating, updating,@@ -93,11 +92,10 @@ export function Hero() {{/* CTA Buttons */}<motion.div- className="flex flex-col items-center gap-3 sm:flex-row sm:gap-4"+ className="flex flex-col items-center gap-3 will-change-[transform,opacity] sm:flex-row sm:gap-4"initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.45, delay: 0.95 }}- style={{ willChange: "transform, opacity" }}><Buttonsize="lg"@@ -144,10 +142,9 @@ export function Hero() {transition={{ delay: 1.25, duration: 0.7 }}><motion.div- className="flex h-8 w-5 items-start justify-center rounded-full border border-muted-foreground/30 p-1.5"+ className="flex h-8 w-5 items-start justify-center rounded-full border border-muted-foreground/30 p-1.5 will-change-transform"animate={{ y: [0, 5, 0] }}transition={{ duration: 1.5, repeat: Infinity, ease: "easeInOut" }}- style={{ willChange: "transform" }}><motion.div className="h-1.5 w-1 rounded-full bg-muted-foreground/50" /></motion.div>diff --git a/src/routes/_home/-sections/prefooter.tsx b/src/routes/_home/-sections/prefooter.tsxindex b4a45ecf7..faa92670e 100644--- a/src/routes/_home/-sections/prefooter.tsx+++ b/src/routes/_home/-sections/prefooter.tsx@@ -16,12 +16,11 @@ export function Prefooter() {<TextMaskEffect aria-hidden="true" text="Reactive Resume" className="hidden md:block" /><motion.div- className="mx-auto max-w-3xl space-y-8 px-6 text-center md:px-8 xl:px-0"+ className="mx-auto max-w-3xl space-y-8 px-6 text-center will-change-[transform,opacity] md:px-8 xl:px-0"initial={{ opacity: 0, y: 20 }}whileInView={{ opacity: 1, y: 0 }}viewport={{ once: true }}transition={{ duration: 0.45 }}- style={{ willChange: "transform, opacity" }}><h2 className="text-2xl font-bold tracking-tight md:text-4xl"><Trans>By the community, for the community.</Trans>diff --git a/src/routes/_home/-sections/templates.tsx b/src/routes/_home/-sections/templates.tsxindex 12e222d86..e3e7024c2 100644--- a/src/routes/_home/-sections/templates.tsx+++ b/src/routes/_home/-sections/templates.tsx@@ -13,12 +13,11 @@ type TemplateItemProps = {function TemplateItem({ metadata }: TemplateItemProps) {return (<motion.div- className="group relative shrink-0"+ className="group relative shrink-0 will-change-transform"initial={{ scale: 1, zIndex: 10 }}whileHover={{ scale: 1.06, zIndex: 20 }}whileTap={{ scale: 0.99 }}transition={{ type: "spring", stiffness: 320, damping: 26 }}- style={{ willChange: "transform" }}><div className="relative aspect-page w-48 overflow-hidden rounded-md border bg-card shadow-lg transition-all duration-300 group-hover:shadow-2xl sm:w-56 md:w-64 lg:w-72"><img src={metadata.imageUrl} alt={metadata.name} className="size-full object-cover" />@@ -86,12 +85,11 @@ export function Templates() {return (<section id="templates" className="overflow-hidden border-t-0! p-4 md:p-8 xl:py-16"><motion.div- className="space-y-4"+ className="space-y-4 will-change-[transform,opacity]"initial={{ opacity: 0, y: 20 }}whileInView={{ opacity: 1, y: 0 }}viewport={{ once: true }}transition={{ duration: 0.35 }}- style={{ willChange: "transform, opacity" }}><h2 className="text-2xl font-semibold tracking-tight md:text-4xl xl:text-5xl"><Trans>Templates</Trans>diff --git a/src/routes/_home/-sections/testimonials.tsx b/src/routes/_home/-sections/testimonials.tsxindex 384946064..4f73ce669 100644--- a/src/routes/_home/-sections/testimonials.tsx+++ b/src/routes/_home/-sections/testimonials.tsx@@ -35,12 +35,11 @@ type TestimonialCardProps = {function TestimonialCard({ testimonial }: TestimonialCardProps) {return (<motion.div- className="group relative w-[320px] shrink-0 sm:w-[360px] md:w-[400px]"+ className="group relative w-[320px] shrink-0 will-change-transform sm:w-[360px] md:w-[400px]"initial={{ scale: 1 }}whileHover={{ y: -3, scale: 1.02 }}whileTap={{ scale: 0.995 }}transition={{ type: "spring", stiffness: 320, damping: 24 }}- style={{ willChange: "transform" }}><div className="relative flex h-full flex-col rounded-md border bg-card p-5 shadow-sm transition-shadow duration-300 group-hover:shadow-xl"><p className="flex-1 leading-relaxed text-muted-foreground">"{testimonial}"</p>diff --git a/src/routes/auth/-components/social-auth.tsx b/src/routes/auth/-components/social-auth.tsxindex c1529a6ad..2acc50996 100644--- a/src/routes/auth/-components/social-auth.tsx+++ b/src/routes/auth/-components/social-auth.tsx@@ -1,18 +1,55 @@import { t } from "@lingui/core/macro";import { Trans } from "@lingui/react/macro";-import { GithubLogoIcon, GoogleLogoIcon, VaultIcon } from "@phosphor-icons/react";+import { GithubLogoIcon, GoogleLogoIcon, LinkedinLogoIcon, VaultIcon } from "@phosphor-icons/react";import { useQuery } from "@tanstack/react-query";import { useRouter } from "@tanstack/react-router";import { toast } from "sonner";+import type { RouterOutput } from "@/integrations/orpc/client";+import { Button } from "@/components/ui/button";+import { Skeleton } from "@/components/ui/skeleton";import { authClient } from "@/integrations/auth/client";import { orpc } from "@/integrations/orpc/client";import { cn } from "@/utils/style";export function SocialAuth() {+ const { data: providers = {}, isLoading } = useQuery(orpc.auth.providers.list.queryOptions());++ return (+ <>+ <div className="flex items-center gap-x-2">+ <hr className="flex-1" />+ <span className="text-xs font-medium tracking-wide">+ <Trans context="Choose to authenticate with a social provider (Google, GitHub, etc.) instead of email and password">+ or continue with+ </Trans>+ </span>+ <hr className="flex-1" />+ </div>++ {isLoading ? <SocialAuthSkeleton /> : <SocialAuthButtons providers={providers} />}+ </>+ );+}++function SocialAuthSkeleton() {+ return (+ <div className="grid grid-cols-2 gap-4">+ <Skeleton className="h-9 w-full" />+ <Skeleton className="h-9 w-full" />+ <Skeleton className="h-9 w-full" />+ <Skeleton className="h-9 w-full" />+ </div>+ );+}++type SocialAuthButtonsProps = {+ providers: RouterOutput["auth"]["providers"]["list"];+};++function SocialAuthButtons({ providers }: SocialAuthButtonsProps) {const router = useRouter();- const { data: authProviders = {} } = useQuery(orpc.auth.providers.list.queryOptions());const handleSocialLogin = async (provider: string) => {const toastId = toast.loading(t`Signing in...`);@@ -49,51 +86,48 @@ export function SocialAuth() {};return (- <>- <div className="flex items-center gap-x-2">- <hr className="flex-1" />- <span className="text-xs font-medium tracking-wide">- <Trans context="Choose to authenticate with a social provider (Google, GitHub, etc.) instead of email and password">- or continue with- </Trans>- </span>- <hr className="flex-1" />- </div>+ <div className="grid grid-cols-2 gap-4">+ <Button+ variant="secondary"+ onClick={handleOAuthLogin}+ className={cn("hidden", "custom" in providers && "inline-flex")}+ >+ <VaultIcon />+ {providers.custom}+ </Button>- <div>- <div className="grid grid-cols-2 gap-4">- <Button- variant="secondary"- onClick={handleOAuthLogin}- className={cn("hidden", "custom" in authProviders && "inline-flex")}- >- <VaultIcon />- {authProviders.custom}- </Button>-- <Button- onClick={() => handleSocialLogin("google")}- className={cn(- "hidden flex-1 bg-[#4285F4] text-white hover:bg-[#4285F4]/80",- "google" in authProviders && "inline-flex",- )}- >- <GoogleLogoIcon />- </Button>-- <Button- onClick={() => handleSocialLogin("github")}- className={cn(- "hidden flex-1 bg-[#2b3137] text-white hover:bg-[#2b3137]/80",- "github" in authProviders && "inline-flex",- )}- >- <GithubLogoIcon />- GitHub- </Button>- </div>- </div>- </>+ <Button+ onClick={() => handleSocialLogin("google")}+ className={cn(+ "hidden flex-1 bg-[#4285F4] text-white hover:bg-[#4285F4]/80",+ "google" in providers && "inline-flex",+ )}+ >+ <GoogleLogoIcon />+ </Button>++ <Button+ onClick={() => handleSocialLogin("github")}+ className={cn(+ "hidden flex-1 bg-[#2b3137] text-white hover:bg-[#2b3137]/80",+ "github" in providers && "inline-flex",+ )}+ >+ <GithubLogoIcon />+ GitHub+ </Button>++ <Button+ onClick={() => handleSocialLogin("linkedin")}+ className={cn(+ "hidden flex-1 bg-[#0A66C2] text-white hover:bg-[#0A66C2]/80",+ "linkedin" in providers && "inline-flex",+ )}+ >+ <LinkedinLogoIcon />+ </Button>+ </div>);}diff --git a/src/routes/builder/$resumeId/-components/dock.tsx b/src/routes/builder/$resumeId/-components/dock.tsxindex 9d4734905..ad2851945 100644--- a/src/routes/builder/$resumeId/-components/dock.tsx+++ b/src/routes/builder/$resumeId/-components/dock.tsx@@ -111,8 +111,7 @@ export function BuilderDock() {animate={{ opacity: 0.6, y: 0 }}whileHover={{ opacity: 1, y: -2, scale: 1.01 }}transition={{ duration: 0.2, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="flex items-center rounded-l-full rounded-r-full bg-popover px-2 shadow-xl"+ className="flex items-center rounded-l-full rounded-r-full bg-popover px-2 shadow-xl will-change-[transform,opacity]"><DockIcondisabled={!canUndo}@@ -166,10 +165,10 @@ function DockIcon({ icon: Icon, title, disabled, onClick, iconClassName }: DockI<TooltipTriggerrender={<motion.div+ className="will-change-transform"whileHover={disabled ? undefined : { y: -1, scale: 1.04 }}whileTap={disabled ? undefined : { scale: 0.97 }}transition={{ duration: 0.15, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button size="icon" variant="ghost" disabled={disabled} onClick={onClick}><Icon className={cn("size-4", iconClassName)} />diff --git a/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx b/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsxindex f9d36ff8c..99042580f 100644--- a/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx+++ b/src/routes/builder/$resumeId/-sidebar/left/shared/section-item.tsx@@ -245,8 +245,7 @@ export function SectionItem<T extends CustomSectionItem | SectionItemType>({animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -8 }}transition={{ duration: 0.16, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="group relative flex h-18 border-b select-none"+ className="group relative flex h-18 border-b will-change-[transform,opacity] select-none"><divclassName="flex cursor-ns-resize touch-none items-center px-1.5 opacity-40 transition-[background-color,opacity] group-hover:opacity-100 hover:bg-secondary/40"diff --git a/src/routes/builder/$resumeId/-sidebar/right/sections/design.tsx b/src/routes/builder/$resumeId/-sidebar/right/sections/design.tsxindex 168204cd2..f8510cece 100644--- a/src/routes/builder/$resumeId/-sidebar/right/sections/design.tsx+++ b/src/routes/builder/$resumeId/-sidebar/right/sections/design.tsx@@ -192,8 +192,7 @@ function QuickColorCircle({ color, active, onSelect, className, ...props }: Quicanimate={{ scale: 1 }}exit={{ scale: 0 }}transition={{ duration: 0.16, ease: "easeOut" }}- style={{ willChange: "transform" }}- className="absolute inset-0 flex size-8 items-center justify-center"+ className="absolute inset-0 flex size-8 items-center justify-center will-change-transform"><div className="size-4 rounded-md bg-foreground" /></motion.div>diff --git a/src/routes/builder/$resumeId/-store/sidebar.ts b/src/routes/builder/$resumeId/-store/sidebar.tsindex 74ca6fed6..8b39c4e97 100644--- a/src/routes/builder/$resumeId/-store/sidebar.ts+++ b/src/routes/builder/$resumeId/-store/sidebar.ts@@ -1,4 +1,4 @@-import type { usePanelRef } from "react-resizable-panels";+import type { Layout, usePanelRef } from "react-resizable-panels";import { useCallback, useMemo } from "react";import { useWindowSize } from "usehooks-ts";@@ -8,12 +8,61 @@ import { useIsMobile } from "@/hooks/use-mobile";type PanelImperativeHandle = ReturnType<typeof usePanelRef>;+export const BUILDER_LAYOUT_COOKIE_NAME = "builder_layout";++export type BuilderLayout = {+ left: number;+ artboard: number;+ right: number;+};++export const DEFAULT_BUILDER_LAYOUT: BuilderLayout = {+ left: 22,+ artboard: 56,+ right: 22,+};++export const mapPanelLayoutToBuilderLayout = (layout: Layout): BuilderLayout => {+ const left = layout.left;+ const artboard = layout.artboard;+ const right = layout.right;++ if (typeof left !== "number" || typeof artboard !== "number" || typeof right !== "number")+ return DEFAULT_BUILDER_LAYOUT;++ return { left, artboard, right };+};++export const parseBuilderLayoutCookie = (value?: string | null): BuilderLayout => {+ if (!value) return DEFAULT_BUILDER_LAYOUT;++ try {+ const parsed = JSON.parse(value);++ if (Array.isArray(parsed)) return DEFAULT_BUILDER_LAYOUT;+ if (typeof parsed !== "object" || parsed === null) return DEFAULT_BUILDER_LAYOUT;++ const left = (parsed as { left?: unknown }).left;+ const artboard = (parsed as { artboard?: unknown }).artboard;+ const right = (parsed as { right?: unknown }).right;++ if (typeof left !== "number" || typeof artboard !== "number" || typeof right !== "number")+ return DEFAULT_BUILDER_LAYOUT;++ return { left, artboard, right };+ } catch {+ return DEFAULT_BUILDER_LAYOUT;+ }+};+interface BuilderSidebarState {+ layout: BuilderLayout;leftSidebar: PanelImperativeHandle | null;rightSidebar: PanelImperativeHandle | null;}interface BuilderSidebarActions {+ setLayout: (layout: BuilderLayout) => void;setLeftSidebar: (ref: PanelImperativeHandle | null) => void;setRightSidebar: (ref: PanelImperativeHandle | null) => void;}@@ -21,9 +70,10 @@ interface BuilderSidebarActions {type BuilderSidebar = BuilderSidebarState & BuilderSidebarActions;export const useBuilderSidebarStore = create<BuilderSidebar>((set) => ({- isDragging: false,+ layout: DEFAULT_BUILDER_LAYOUT,leftSidebar: null,rightSidebar: null,+ setLayout: (layout) => set({ layout }),setLeftSidebar: (ref) => set({ leftSidebar: ref }),setRightSidebar: (ref) => set({ rightSidebar: ref }),}));diff --git a/src/routes/builder/$resumeId/route.tsx b/src/routes/builder/$resumeId/route.tsxindex 1105ac27a..21f6d797f 100644--- a/src/routes/builder/$resumeId/route.tsx+++ b/src/routes/builder/$resumeId/route.tsx@@ -1,13 +1,12 @@import type React from "react";+import type { Layout } from "react-resizable-panels";import { useSuspenseQuery } from "@tanstack/react-query";import { createFileRoute, Outlet, redirect } from "@tanstack/react-router";import { createServerFn } from "@tanstack/react-start";import { getCookie, setCookie } from "@tanstack/react-start/server";-import { useEffect } from "react";-import { type Layout, usePanelRef } from "react-resizable-panels";-import { useDebounceCallback } from "usehooks-ts";-import z from "zod";+import { useEffect, useRef } from "react";+import { usePanelRef } from "react-resizable-panels";import { LoadingScreen } from "@/components/layout/loading-screen";import { useCSSVariables } from "@/components/resume/hooks/use-css-variables";@@ -19,7 +18,15 @@ import { orpc } from "@/integrations/orpc/client";import { BuilderHeader } from "./-components/header";import { BuilderSidebarLeft } from "./-sidebar/left";import { BuilderSidebarRight } from "./-sidebar/right";-import { useBuilderSidebar, useBuilderSidebarStore } from "./-store/sidebar";+import {+ BUILDER_LAYOUT_COOKIE_NAME,+ DEFAULT_BUILDER_LAYOUT,+ mapPanelLayoutToBuilderLayout,+ parseBuilderLayoutCookie,+ useBuilderSidebar,+ useBuilderSidebarStore,+ type BuilderLayout,+} from "./-store/sidebar";export const Route = createFileRoute("/builder/$resumeId")({component: RouteComponent,@@ -61,26 +68,36 @@ function RouteComponent() {}type BuilderLayoutProps = React.ComponentProps<"div"> & {- initialLayout: Layout;+ initialLayout: BuilderLayout;};function BuilderLayout({ initialLayout, ...props }: BuilderLayoutProps) {const isMobile = useIsMobile();+ const canPersistLayoutRef = useRef(false);const leftSidebarRef = usePanelRef();const rightSidebarRef = usePanelRef();const setLeftSidebar = useBuilderSidebarStore((state) => state.setLeftSidebar);const setRightSidebar = useBuilderSidebarStore((state) => state.setRightSidebar);+ const setLayout = useBuilderSidebarStore((state) => state.setLayout);const { maxSidebarSize, collapsedSidebarSize } = useBuilderSidebar((state) => ({maxSidebarSize: state.maxSidebarSize,collapsedSidebarSize: state.collapsedSidebarSize,}));- const onLayoutChange = useDebounceCallback((layout: Layout) => {- void setBuilderLayoutServerFn({ data: layout });- }, 200);+ useEffect(() => {+ setLayout(initialLayout);+ canPersistLayoutRef.current = true;+ }, [initialLayout, setLayout]);++ const onLayoutChanged = (layout: Layout) => {+ const nextLayout = mapPanelLayoutToBuilderLayout(layout);+ if (!canPersistLayoutRef.current) return;+ setLayout(nextLayout);+ void setBuilderLayoutServerFn({ data: nextLayout });+ };useEffect(() => {if (!leftSidebarRef || !rightSidebarRef) return;@@ -89,22 +106,24 @@ function BuilderLayout({ initialLayout, ...props }: BuilderLayoutProps) {setRightSidebar(rightSidebarRef);}, [leftSidebarRef, rightSidebarRef, setLeftSidebar, setRightSidebar]);- const leftSidebarSize = isMobile ? 0 : initialLayout.left;- const rightSidebarSize = isMobile ? 0 : initialLayout.right;- const artboardSize = isMobile ? 100 : initialLayout.artboard;+ const sidebarMinSize = isMobile ? "0%" : `${collapsedSidebarSize * 2}px`;+ const sidebarCollapsedSize = isMobile ? "0%" : `${collapsedSidebarSize}px`;+ const leftSidebarSize = isMobile ? "0%" : `${initialLayout.left}%`;+ const rightSidebarSize = isMobile ? "0%" : `${initialLayout.right}%`;+ const artboardSize = isMobile ? "100%" : `${initialLayout.artboard}%`;return (<div className="flex h-svh flex-col" {...props}><BuilderHeader />- <ResizableGroup orientation="horizontal" className="mt-14 flex-1" onLayoutChange={onLayoutChange}>+ <ResizableGroup orientation="horizontal" className="mt-14 flex-1" onLayoutChanged={onLayoutChanged}><ResizablePanelcollapsibleid="left"panelRef={leftSidebarRef}maxSize={maxSidebarSize}- minSize={collapsedSidebarSize * 2}- collapsedSize={collapsedSidebarSize}+ minSize={sidebarMinSize}+ collapsedSize={sidebarCollapsedSize}defaultSize={leftSidebarSize}className="z-20 h-[calc(100svh-3.5rem)]">@@ -120,8 +139,8 @@ function BuilderLayout({ initialLayout, ...props }: BuilderLayoutProps) {id="right"panelRef={rightSidebarRef}maxSize={maxSidebarSize}- minSize={collapsedSidebarSize * 2}- collapsedSize={collapsedSidebarSize}+ minSize={sidebarMinSize}+ collapsedSize={sidebarCollapsedSize}defaultSize={rightSidebarSize}className="z-20 h-[calc(100svh-3.5rem)]">@@ -132,19 +151,14 @@ function BuilderLayout({ initialLayout, ...props }: BuilderLayoutProps) {);}-const defaultLayout = { left: 30, artboard: 40, right: 30 };-const BUILDER_LAYOUT_COOKIE_NAME = "builder_layout";--const layoutSchema = z.record(z.string(), z.number()).catch(defaultLayout);-const setBuilderLayoutServerFn = createServerFn({ method: "POST" })- .inputValidator(layoutSchema)+ .inputValidator((data): BuilderLayout => parseBuilderLayoutCookie(JSON.stringify(data))).handler(async ({ data }) => {- setCookie(BUILDER_LAYOUT_COOKIE_NAME, JSON.stringify(data));+ setCookie(BUILDER_LAYOUT_COOKIE_NAME, JSON.stringify(data), { path: "/" });});-const getBuilderLayoutServerFn = createServerFn({ method: "GET" }).handler(async () => {+const getBuilderLayoutServerFn = createServerFn({ method: "GET" }).handler(async (): Promise<BuilderLayout> => {const layout = getCookie(BUILDER_LAYOUT_COOKIE_NAME);- if (!layout) return defaultLayout;- return layoutSchema.parse(JSON.parse(layout));+ if (!layout) return DEFAULT_BUILDER_LAYOUT;+ return parseBuilderLayoutCookie(layout);});diff --git a/src/routes/dashboard/-components/sidebar.tsx b/src/routes/dashboard/-components/sidebar.tsxindex 9c819e9ef..87085d9c5 100644--- a/src/routes/dashboard/-components/sidebar.tsx+++ b/src/routes/dashboard/-components/sidebar.tsx@@ -194,11 +194,11 @@ export function DashboardSidebar() {{state === "expanded" && (<motion.divkey="copyright"+ className="will-change-[transform,opacity]"initial={{ y: 12, opacity: 0 }}animate={{ y: 0, opacity: 1 }}exit={{ y: 12, opacity: 0 }}transition={{ duration: 0.2, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><Copyright className="shrink-0 p-2 wrap-break-word whitespace-normal" /></motion.div>diff --git a/src/routes/dashboard/job-search/-components/job-card.tsx b/src/routes/dashboard/job-search/-components/job-card.tsxnew file mode 100644index 000000000..4e18e0b10--- /dev/null+++ b/src/routes/dashboard/job-search/-components/job-card.tsx@@ -0,0 +1,83 @@+import { Trans } from "@lingui/react/macro";+import { BriefcaseIcon, BuildingsIcon, ClockIcon, GlobeIcon, MapPinIcon, MoneyIcon } from "@phosphor-icons/react";+import { motion } from "motion/react";++import type { JobResult } from "@/schema/jobs";++import { Badge } from "@/components/ui/badge";++import { formatPostedDate, formatSalary } from "./job-utils";++type Props = {+ job: JobResult;+ onClick: () => void;+};++export function JobCard({ job, onClick }: Props) {+ const salary = formatSalary(job.job_min_salary, job.job_max_salary, job.job_salary_currency, job.job_salary_period);+ const posted = formatPostedDate(job.job_posted_at_timestamp);+ const location = [job.job_city, job.job_state, job.job_country].filter(Boolean).join(", ");++ return (+ <motion.button+ type="button"+ className="flex w-full cursor-pointer flex-col gap-y-3 rounded-md border bg-card p-4 text-start transition-colors hover:bg-accent/50"+ onClick={onClick}+ initial={{ opacity: 0, y: 20 }}+ animate={{ opacity: 1, y: 0 }}+ exit={{ opacity: 0, y: -20 }}+ >+ <div className="flex items-start gap-x-3">+ {job.employer_logo ? (+ <img src={job.employer_logo} alt={job.employer_name} className="size-10 shrink-0 rounded-md object-contain" />+ ) : (+ <div className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted">+ <BuildingsIcon className="size-5 text-muted-foreground" />+ </div>+ )}++ <div className="min-w-0 flex-1">+ <h3 className="truncate font-medium">{job.job_title}</h3>+ <p className="truncate text-sm text-muted-foreground">{job.employer_name}</p>+ </div>+ </div>++ <div className="flex flex-wrap items-center gap-2">+ {location && (+ <Badge variant="secondary" className="gap-x-1">+ <MapPinIcon className="size-3" />+ {location}+ </Badge>+ )}++ {job.job_is_remote && (+ <Badge variant="secondary" className="gap-x-1">+ <GlobeIcon className="size-3" />+ <Trans>Remote</Trans>+ </Badge>+ )}++ {job.job_employment_type && (+ <Badge variant="secondary" className="gap-x-1">+ <BriefcaseIcon className="size-3" />+ {job.job_employment_type.replaceAll("_", " ")}+ </Badge>+ )}++ {salary && (+ <Badge variant="secondary" className="gap-x-1">+ <MoneyIcon className="size-3" />+ {salary}+ </Badge>+ )}++ {posted && (+ <Badge variant="outline" className="gap-x-1">+ <ClockIcon className="size-3" />+ {posted}+ </Badge>+ )}+ </div>+ </motion.button>+ );+}diff --git a/src/routes/dashboard/job-search/-components/job-detail.tsx b/src/routes/dashboard/job-search/-components/job-detail.tsxindex 3965d3005..649585e24 100644--- a/src/routes/dashboard/job-search/-components/job-detail.tsx+++ b/src/routes/dashboard/job-search/-components/job-detail.tsx@@ -19,7 +19,7 @@ import { Button } from "@/components/ui/button";import { ScrollArea } from "@/components/ui/scroll-area";import { Separator } from "@/components/ui/separator";import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "@/components/ui/sheet";-import { useAIStore } from "@/integrations/ai/store";+import { sanitizeHtml } from "@/utils/sanitize";import { formatSalary, isValidExternalUrl } from "./job-utils";import { TailorDialog } from "./tailor-dialog";@@ -31,7 +31,6 @@ type Props = {};export function JobDetailSheet({ job, open, onOpenChange }: Props) {- const isAIEnabled = useAIStore((s) => s.enabled);const [tailorOpen, setTailorOpen] = useState(false);if (!job) return null;@@ -119,12 +118,7 @@ export function JobDetailSheet({ job, open, onOpenChange }: Props) {<Trans>Apply</Trans></Button>- <Button- variant="outline"- className="flex-1"- disabled={!isAIEnabled}- onClick={() => setTailorOpen(true)}- >+ <Button variant="outline" className="flex-1" onClick={() => setTailorOpen(true)}><StarIcon /><Trans>Tailor Resume</Trans></Button>@@ -137,9 +131,10 @@ export function JobDetailSheet({ job, open, onOpenChange }: Props) {<h4 className="font-medium"><Trans>Description</Trans></h4>- <p className="text-sm leading-relaxed whitespace-pre-wrap text-muted-foreground">- {job.job_description}- </p>+ <div+ className="text-sm leading-relaxed text-muted-foreground [&_a]:text-primary [&_a]:underline [&_h1]:text-base [&_h1]:font-semibold [&_h1]:text-foreground [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:text-foreground [&_h3]:text-sm [&_h3]:font-medium [&_h3]:text-foreground [&_li]:ml-4 [&_ol]:list-decimal [&_p]:mb-2 [&_strong]:font-semibold [&_strong]:text-foreground [&_ul]:list-disc"+ dangerouslySetInnerHTML={{ __html: sanitizeHtml(job.job_description) }}+ /></div>)}@@ -197,7 +192,7 @@ export function JobDetailSheet({ job, open, onOpenChange }: Props) {</>)}- {job.apply_options.length > 0 && (+ {job.apply_options.some((option) => isValidExternalUrl(option.apply_link)) && (<><Separator /><div className="flex flex-col gap-y-2">@@ -205,23 +200,25 @@ export function JobDetailSheet({ job, open, onOpenChange }: Props) {<Trans>Apply Via</Trans></h4><div className="flex flex-col gap-y-1.5">- {job.apply_options.map((option, i) => (- <a- key={i}- href={option.apply_link}- target="_blank"- rel="noopener noreferrer"- className="flex items-center gap-x-2 text-sm text-primary hover:underline"- >- <ArrowSquareOutIcon className="size-3.5 shrink-0" />- {option.publisher || t`Apply Link`}- {option.is_direct && (- <Badge variant="outline" className="text-[10px]">- <Trans>Direct</Trans>- </Badge>- )}- </a>- ))}+ {job.apply_options+ .filter((option) => isValidExternalUrl(option.apply_link))+ .map((option, i) => (+ <a+ key={i}+ href={option.apply_link}+ target="_blank"+ rel="noopener noreferrer"+ className="flex items-center gap-x-2 text-sm text-primary hover:underline"+ >+ <ArrowSquareOutIcon className="size-3.5 shrink-0" />+ {option.publisher || t`Apply Link`}+ {option.is_direct && (+ <Badge variant="outline" className="text-[10px]">+ <Trans>Direct</Trans>+ </Badge>+ )}+ </a>+ ))}</div></div></>diff --git a/src/routes/dashboard/job-search/-components/tailor-dialog.tsx b/src/routes/dashboard/job-search/-components/tailor-dialog.tsxindex 6ee7a301d..5d3e3f83e 100644--- a/src/routes/dashboard/job-search/-components/tailor-dialog.tsx+++ b/src/routes/dashboard/job-search/-components/tailor-dialog.tsx@@ -2,7 +2,6 @@ import { t } from "@lingui/core/macro";import { Trans } from "@lingui/react/macro";import { ReadCvLogoIcon } from "@phosphor-icons/react";import { useMutation, useQuery } from "@tanstack/react-query";-import { useNavigate } from "@tanstack/react-router";import { useState } from "react";import { toast } from "sonner";@@ -40,7 +39,6 @@ type DialogPhase =| { step: "skill-sync"; newResumeId: string; newSkills: NewSkillInfo[]; sourceResumeId: string };export function TailorDialog({ job, open, onOpenChange }: Props) {- const navigate = useNavigate();const { data: resumes, isLoading } = useQuery(orpc.resume.list.queryOptions());const [phase, setPhase] = useState<DialogPhase>({ step: "select" });@@ -65,11 +63,7 @@ export function TailorDialog({ job, open, onOpenChange }: Props) {};const navigateToBuilder = (resumeId: string) => {- if (job.job_apply_link) {- window.open(job.job_apply_link, "_blank", "noopener,noreferrer");- }- handleOpenChange(false);- void navigate({ to: "/builder/$resumeId", params: { resumeId } });+ window.open(`/builder/${resumeId}`, "_blank", "noopener,noreferrer");};const handleSelectResume = async (resumeId: string, resumeName: string) => {diff --git a/src/routes/dashboard/job-search/index.tsx b/src/routes/dashboard/job-search/index.tsxindex e2dc8abb6..9e5e731fb 100644--- a/src/routes/dashboard/job-search/index.tsx+++ b/src/routes/dashboard/job-search/index.tsx@@ -2,14 +2,9 @@ import { t } from "@lingui/core/macro";import { Trans } from "@lingui/react/macro";import {BriefcaseIcon,- BuildingsIcon,CaretLeftIcon,CaretRightIcon,- ClockIcon,- GlobeIcon,MagnifyingGlassIcon,- MapPinIcon,- MoneyIcon,WarningCircleIcon,XIcon,} from "@phosphor-icons/react";@@ -17,19 +12,19 @@ import { createFileRoute, Link } from "@tanstack/react-router";import { motion } from "motion/react";import { useMemo } from "react";-import type { JobResult } from "@/schema/jobs";-import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";import { Separator } from "@/components/ui/separator";+import { Skeleton } from "@/components/ui/skeleton";import { Spinner } from "@/components/ui/spinner";import { cn } from "@/utils/style";import { DashboardHeader } from "../-components/header";+import { JobCard } from "./-components/job-card";import { JobDetailSheet } from "./-components/job-detail";-import { formatPostedDate, formatSalary, getQuotaStatus } from "./-components/job-utils";+import { getQuotaStatus } from "./-components/job-utils";import { hasActiveFilters, initialFilterState, SearchFilters } from "./-components/search-filters";import { useJobSearch } from "./-components/use-job-search";@@ -37,75 +32,6 @@ export const Route = createFileRoute("/dashboard/job-search/")({component: RouteComponent,});-function JobCard({ job, onClick }: { job: JobResult; onClick: () => void }) {- const salary = formatSalary(job.job_min_salary, job.job_max_salary, job.job_salary_currency, job.job_salary_period);- const posted = formatPostedDate(job.job_posted_at_timestamp);- const location = [job.job_city, job.job_state, job.job_country].filter(Boolean).join(", ");-- return (- <motion.button- type="button"- className="flex w-full cursor-pointer flex-col gap-y-3 rounded-md border bg-card p-4 text-start transition-colors hover:bg-accent/50"- onClick={onClick}- initial={{ opacity: 0, y: 20 }}- animate={{ opacity: 1, y: 0 }}- exit={{ opacity: 0, y: -20 }}- >- <div className="flex items-start gap-x-3">- {job.employer_logo ? (- <img src={job.employer_logo} alt={job.employer_name} className="size-10 shrink-0 rounded-md object-contain" />- ) : (- <div className="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted">- <BuildingsIcon className="size-5 text-muted-foreground" />- </div>- )}-- <div className="min-w-0 flex-1">- <h3 className="truncate font-medium">{job.job_title}</h3>- <p className="truncate text-sm text-muted-foreground">{job.employer_name}</p>- </div>- </div>-- <div className="flex flex-wrap items-center gap-2">- {location && (- <Badge variant="secondary" className="gap-x-1">- <MapPinIcon className="size-3" />- {location}- </Badge>- )}-- {job.job_is_remote && (- <Badge variant="secondary" className="gap-x-1">- <GlobeIcon className="size-3" />- <Trans>Remote</Trans>- </Badge>- )}-- {job.job_employment_type && (- <Badge variant="secondary" className="gap-x-1">- <BriefcaseIcon className="size-3" />- {job.job_employment_type.replaceAll("_", " ")}- </Badge>- )}-- {salary && (- <Badge variant="secondary" className="gap-x-1">- <MoneyIcon className="size-3" />- {salary}- </Badge>- )}-- {posted && (- <Badge variant="outline" className="gap-x-1">- <ClockIcon className="size-3" />- {posted}- </Badge>- )}- </div>- </motion.button>- );-}-function RouteComponent() {const {activeFilterChips,@@ -144,7 +70,7 @@ function RouteComponent() {<motion.divinitial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}- className="flex max-w-xl flex-col items-center gap-y-4 py-12 text-center"+ className="mx-auto flex max-w-xl flex-col items-center gap-y-4 py-12 text-center"><MagnifyingGlassIcon className="size-12 text-muted-foreground" weight="light" /><h2 className="text-lg font-medium">@@ -230,10 +156,19 @@ function RouteComponent() {{isPending && jobs.length === 0 && (<div className="grid gap-3 sm:grid-cols-2">{Array.from({ length: 6 }).map((_, index) => (- <div key={index} className="flex animate-pulse flex-col gap-y-3 rounded-md border bg-card p-4">- <div className="h-4 w-3/4 rounded bg-muted" />- <div className="h-3 w-1/2 rounded bg-muted" />- <div className="h-3 w-5/6 rounded bg-muted" />+ <div key={index} className="flex flex-col gap-y-3 rounded-md border bg-card p-4">+ <div className="flex items-start gap-x-3">+ <Skeleton className="size-10 shrink-0 rounded-md" />+ <div className="flex flex-1 flex-col gap-y-1.5">+ <Skeleton className="h-4 w-3/4" />+ <Skeleton className="h-3 w-1/2" />+ </div>+ </div>+ <div className="flex gap-2">+ <Skeleton className="h-5 w-20 rounded-full" />+ <Skeleton className="h-5 w-16 rounded-full" />+ <Skeleton className="h-5 w-24 rounded-full" />+ </div></div>))}</div>diff --git a/src/routes/dashboard/resumes/-components/cards/resume-card.tsx b/src/routes/dashboard/resumes/-components/cards/resume-card.tsxindex e21d597f8..a242e3d76 100644--- a/src/routes/dashboard/resumes/-components/cards/resume-card.tsx+++ b/src/routes/dashboard/resumes/-components/cards/resume-card.tsx@@ -32,10 +32,10 @@ export function ResumeCard({ resume }: ResumeCardProps) {<ResumeContextMenu resume={resume}><Link to="/builder/$resumeId" params={{ resumeId: resume.id }} className="cursor-default"><motion.div+ className="will-change-transform"whileHover={{ y: -2, scale: 1.005 }}whileTap={{ scale: 0.998 }}transition={{ type: "spring", stiffness: 320, damping: 28 }}- style={{ willChange: "transform" }}><BaseCard title={resume.name} description={t`Last updated on ${updatedAt}`} tags={resume.tags}>{match({ isLoading, imageSrc: screenshotData?.url })@@ -71,8 +71,7 @@ function ResumeLockOverlay({ isLocked }: { isLocked: boolean }) {animate={{ opacity: 0.6 }}exit={{ opacity: 0 }}transition={{ duration: 0.15 }}- style={{ willChange: "opacity" }}- className="absolute inset-0 flex items-center justify-center"+ className="absolute inset-0 flex items-center justify-center will-change-[opacity]"><div className="flex items-center justify-center rounded-full bg-popover p-6"><LockSimpleIcon weight="thin" className="size-12 opacity-60" />diff --git a/src/routes/dashboard/resumes/-components/grid-view.tsx b/src/routes/dashboard/resumes/-components/grid-view.tsxindex 5621b7774..8b2970f0b 100644--- a/src/routes/dashboard/resumes/-components/grid-view.tsx+++ b/src/routes/dashboard/resumes/-components/grid-view.tsx@@ -20,7 +20,7 @@ export function GridView({ resumes }: Props) {animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -20 }}transition={{ duration: 0.2, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}+ className="will-change-[transform,opacity]"><CreateResumeCard /></motion.div>@@ -30,7 +30,7 @@ export function GridView({ resumes }: Props) {animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -20 }}transition={{ duration: 0.2, delay: 0.03, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}+ className="will-change-[transform,opacity]"><ImportResumeCard /></motion.div>@@ -48,7 +48,7 @@ export function GridView({ resumes }: Props) {filter: "blur(8px)",}}transition={{ duration: 0.2, delay: Math.min(0.12, (index + 2) * 0.02), ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}+ className="will-change-[transform,opacity]"><ResumeCard resume={resume} /></motion.div>diff --git a/src/routes/dashboard/resumes/-components/list-view.tsx b/src/routes/dashboard/resumes/-components/list-view.tsxindex 88a22e70c..13b625e59 100644--- a/src/routes/dashboard/resumes/-components/list-view.tsx+++ b/src/routes/dashboard/resumes/-components/list-view.tsx@@ -32,11 +32,11 @@ export function ListView({ resumes }: Props) {return (<div className="flex flex-col gap-y-1"><motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -20 }}transition={{ duration: 0.2, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><Buttonsize="lg"@@ -56,11 +56,11 @@ export function ListView({ resumes }: Props) {</motion.div><motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -20 }}transition={{ duration: 0.2, delay: 0.03, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><Buttonsize="lg"@@ -85,11 +85,11 @@ export function ListView({ resumes }: Props) {<motion.divlayoutkey={resume.id}+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -20 }}transition={{ duration: 0.18, delay: Math.min(0.12, (index + 2) * 0.02), ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><ResumeListItem resume={resume} /></motion.div>diff --git a/src/routes/dashboard/resumes/index.tsx b/src/routes/dashboard/resumes/index.tsxindex 6d8a7e5de..7cb59ffb4 100644--- a/src/routes/dashboard/resumes/index.tsx+++ b/src/routes/dashboard/resumes/index.tsx@@ -11,6 +11,7 @@ import { useMemo } from "react";import z from "zod";import { Combobox } from "@/components/ui/combobox";+import { Label } from "@/components/ui/label";import { Separator } from "@/components/ui/separator";import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";import { orpc } from "@/integrations/orpc/client";@@ -74,26 +75,35 @@ function RouteComponent() {<Separator /><div className="flex items-center gap-x-4">- <Combobox- value={sort}- options={sortOptions}- placeholder={t`Sort by`}- onValueChange={(value) => {- if (!value) return;- void navigate({ search: { tags, sort: value as SortOption } });- }}- />-- <Combobox- multiple- value={tags}- options={tagOptions}- placeholder={t`Filter by`}- className={cn({ hidden: tagOptions.length === 0 })}- onValueChange={(value) => {- void navigate({ search: { tags: value ?? [], sort } });- }}- />+ <div className="flex gap-2">+ <Label>+ <Trans>Sort by</Trans>+ </Label>+ <Combobox+ value={sort}+ options={sortOptions}+ placeholder={t`Sort by`}+ onValueChange={(value) => {+ if (!value) return;+ void navigate({ search: { tags, sort: value as SortOption } });+ }}+ />+ </div>++ <div className={cn("flex gap-2", { hidden: tagOptions.length === 0 })}>+ <Label>+ <Trans>Filter by</Trans>+ </Label>+ <Combobox+ multiple+ value={tags}+ options={tagOptions}+ placeholder={t`Filter by`}+ onValueChange={(value) => {+ void navigate({ search: { tags: value ?? [], sort } });+ }}+ />+ </div><Tabs className="ltr:ms-auto rtl:me-auto" value={view} onValueChange={onViewChange}><TabsList>diff --git a/src/routes/dashboard/settings/ai.tsx b/src/routes/dashboard/settings/ai.tsxindex 896b2382b..58ef04367 100644--- a/src/routes/dashboard/settings/ai.tsx+++ b/src/routes/dashboard/settings/ai.tsx@@ -222,8 +222,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-6"+ className="grid max-w-xl gap-6 will-change-[transform,opacity]"><div className="flex items-start gap-4 rounded-md border bg-popover p-6"><div className="rounded-md bg-primary/10 p-2.5">diff --git a/src/routes/dashboard/settings/api-keys.tsx b/src/routes/dashboard/settings/api-keys.tsxindex 6dd5aa8d1..7661c4ce1 100644--- a/src/routes/dashboard/settings/api-keys.tsx+++ b/src/routes/dashboard/settings/api-keys.tsx@@ -67,8 +67,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-6"+ className="grid max-w-xl gap-6 will-change-[transform,opacity]"><div className="flex items-start gap-4 rounded-md border bg-popover p-6"><div className="rounded-md bg-primary/10 p-2.5">@@ -116,12 +115,11 @@ function RouteComponent() {{apiKeys.map((key, index) => (<motion.divkey={key.id}- className="flex items-center gap-x-4 py-4"+ className="flex items-center gap-x-4 py-4 will-change-[transform,opacity]"initial={{ opacity: 0, y: -16 }}animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -16 }}transition={{ duration: 0.16, delay: Math.min(0.12, index * 0.04) }}- style={{ willChange: "transform, opacity" }}><KeyIcon />@@ -133,10 +131,10 @@ function RouteComponent() {</div><motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.03 }}whileTap={{ scale: 0.96 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button size="icon" variant="ghost" onClick={() => onDelete(key.id)}><TrashSimpleIcon />diff --git a/src/routes/dashboard/settings/authentication/-components/hooks.tsx b/src/routes/dashboard/settings/authentication/-components/hooks.tsxindex 6672d09f7..c95e7dd80 100644--- a/src/routes/dashboard/settings/authentication/-components/hooks.tsx+++ b/src/routes/dashboard/settings/authentication/-components/hooks.tsx@@ -1,7 +1,7 @@import type { ReactNode } from "react";import { t } from "@lingui/core/macro";-import { GithubLogoIcon, GoogleLogoIcon, PasswordIcon, VaultIcon } from "@phosphor-icons/react";+import { GithubLogoIcon, GoogleLogoIcon, LinkedinLogoIcon, PasswordIcon, VaultIcon } from "@phosphor-icons/react";import { useQuery } from "@tanstack/react-query";import { useCallback } from "react";import { toast } from "sonner";@@ -20,6 +20,7 @@ export function getProviderName(providerId: AuthProvider): string {.with("credential", () => "Password").with("google", () => "Google").with("github", () => "GitHub")+ .with("linkedin", () => "LinkedIn").with("custom", () => "Custom OAuth").exhaustive();}@@ -32,6 +33,7 @@ export function getProviderIcon(providerId: AuthProvider): ReactNode {.with("credential", () => <PasswordIcon />).with("google", () => <GoogleLogoIcon />).with("github", () => <GithubLogoIcon />)+ .with("linkedin", () => <LinkedinLogoIcon />).with("custom", () => <VaultIcon />).exhaustive();}@@ -100,7 +102,7 @@ export function useAuthProviderActions() {/*** Hook to get enabled social providers for the current user- * Possible values: "credential", "google", "github", "custom"+ * Possible values: "credential", "google", "github", "linkedin", "custom"*/export function useEnabledProviders() {const { data: enabledProviders = [] } = useQuery(orpc.auth.providers.list.queryOptions());diff --git a/src/routes/dashboard/settings/authentication/-components/password.tsx b/src/routes/dashboard/settings/authentication/-components/password.tsxindex 32b88ffd9..cc50844ed 100644--- a/src/routes/dashboard/settings/authentication/-components/password.tsx+++ b/src/routes/dashboard/settings/authentication/-components/password.tsx@@ -30,8 +30,7 @@ export function PasswordSection() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.2, delay: 0.1, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="flex items-center justify-between gap-x-4"+ className="flex items-center justify-between gap-x-4 will-change-[transform,opacity]"><h2 className="flex items-center gap-x-3 text-base font-medium"><PasswordIcon />@@ -41,10 +40,10 @@ export function PasswordSection() {{match(hasPassword).with(true, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="outline" onClick={handleUpdatePassword}><PencilSimpleLineIcon />@@ -54,10 +53,10 @@ export function PasswordSection() {)).with(false, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Buttonvariant="outline"diff --git a/src/routes/dashboard/settings/authentication/-components/social-provider.tsx b/src/routes/dashboard/settings/authentication/-components/social-provider.tsxindex 69e57ffd1..c6c5fc73c 100644--- a/src/routes/dashboard/settings/authentication/-components/social-provider.tsx+++ b/src/routes/dashboard/settings/authentication/-components/social-provider.tsx@@ -38,10 +38,10 @@ export function SocialProviderSection({ provider, name, animationDelay = 0 }: Soreturn (<motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.2, delay: animationDelay, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><Separator />@@ -54,10 +54,10 @@ export function SocialProviderSection({ provider, name, animationDelay = 0 }: So{match(isConnected).with(true, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="outline" onClick={handleUnlink}><LinkBreakIcon />@@ -67,10 +67,10 @@ export function SocialProviderSection({ provider, name, animationDelay = 0 }: So)).with(false, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="outline" onClick={handleLink}><LinkIcon />diff --git a/src/routes/dashboard/settings/authentication/-components/two-factor.tsx b/src/routes/dashboard/settings/authentication/-components/two-factor.tsxindex 7e21c50d1..299fc3f24 100644--- a/src/routes/dashboard/settings/authentication/-components/two-factor.tsx+++ b/src/routes/dashboard/settings/authentication/-components/two-factor.tsx@@ -31,10 +31,10 @@ export function TwoFactorSection() {return (<motion.div+ className="will-change-[transform,opacity]"initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.2, delay: 0.2, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}><Separator />@@ -47,10 +47,10 @@ export function TwoFactorSection() {{match(hasTwoFactor).with(true, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="outline" onClick={handleTwoFactorAction}><ToggleLeftIcon />@@ -60,10 +60,10 @@ export function TwoFactorSection() {)).with(false, () => (<motion.div+ className="will-change-transform"whileHover={{ y: -1, scale: 1.01 }}whileTap={{ scale: 0.99 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="outline" onClick={handleTwoFactorAction}><ToggleRightIcon />diff --git a/src/routes/dashboard/settings/authentication/index.tsx b/src/routes/dashboard/settings/authentication/index.tsxindex edb416b9a..6ac573c06 100644--- a/src/routes/dashboard/settings/authentication/index.tsx+++ b/src/routes/dashboard/settings/authentication/index.tsx@@ -28,8 +28,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-4"+ className="grid max-w-xl gap-4 will-change-[transform,opacity]"><PasswordSection />@@ -46,8 +45,10 @@ function RouteComponent() {{"github" in enabledProviders && <SocialProviderSection provider="github" animationDelay={0.5} />}+ {"linkedin" in enabledProviders && <SocialProviderSection provider="linkedin" animationDelay={0.6} />}+{"custom" in enabledProviders && (- <SocialProviderSection provider="custom" animationDelay={0.6} name={enabledProviders.custom} />+ <SocialProviderSection provider="custom" animationDelay={0.7} name={enabledProviders.custom} />)}</motion.div></div>diff --git a/src/routes/dashboard/settings/danger-zone.tsx b/src/routes/dashboard/settings/danger-zone.tsxindex 1da7efa56..fed4d927e 100644--- a/src/routes/dashboard/settings/danger-zone.tsx+++ b/src/routes/dashboard/settings/danger-zone.tsx@@ -63,8 +63,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-6"+ className="grid max-w-xl gap-6 will-change-[transform,opacity]"><p className="leading-relaxed"><Trans>To delete your account, you need to enter the confirmation text and click the button below.</Trans>@@ -78,11 +77,10 @@ function RouteComponent() {/><motion.div- className="justify-self-end"+ className="justify-self-end will-change-transform"whileHover={!isConfirmationValid ? undefined : { y: -1, scale: 1.01 }}whileTap={!isConfirmationValid ? undefined : { scale: 0.98 }}transition={{ duration: 0.14, ease: "easeOut" }}- style={{ willChange: "transform" }}><Button variant="destructive" onClick={handleDeleteAccount} disabled={!isConfirmationValid}><TrashSimpleIcon />diff --git a/src/routes/dashboard/settings/preferences.tsx b/src/routes/dashboard/settings/preferences.tsxindex 326190cd0..90ca62e54 100644--- a/src/routes/dashboard/settings/preferences.tsx+++ b/src/routes/dashboard/settings/preferences.tsx@@ -27,8 +27,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-6"+ className="grid max-w-xl gap-6 will-change-[transform,opacity]"><div className="grid gap-1.5"><Label className="mb-0.5">diff --git a/src/routes/dashboard/settings/profile.tsx b/src/routes/dashboard/settings/profile.tsxindex f296844d4..bdd8dc991 100644--- a/src/routes/dashboard/settings/profile.tsx+++ b/src/routes/dashboard/settings/profile.tsx@@ -124,8 +124,7 @@ function RouteComponent() {initial={{ opacity: 0, y: -20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.25, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="grid max-w-xl gap-6"+ className="grid max-w-xl gap-6 will-change-[transform,opacity]"onSubmit={form.handleSubmit(onSubmit)}><FormField@@ -222,8 +221,7 @@ function RouteComponent() {animate={{ opacity: 1, y: 0 }}exit={{ opacity: 0, y: -8 }}transition={{ duration: 0.16, ease: "easeOut" }}- style={{ willChange: "transform, opacity" }}- className="flex items-center gap-x-4 justify-self-end"+ className="flex items-center gap-x-4 justify-self-end will-change-[transform,opacity]"><Button type="reset" variant="ghost" onClick={onCancel}><Trans>Cancel</Trans>diff --git a/src/schema/tailor.ts b/src/schema/tailor.tsindex d4bec6330..da15be093 100644--- a/src/schema/tailor.ts+++ b/src/schema/tailor.ts@@ -51,6 +51,8 @@ export const tailorOutputSchema = z.object({),}),)+ .optional()+ .catch([]).describe("Tailored role-level updates. Use an empty array when the experience does not have role progression.",),diff --git a/src/utils/ai-template.test.ts b/src/utils/ai-template.test.tsnew file mode 100644index 000000000..21709fe97--- /dev/null+++ b/src/utils/ai-template.test.ts@@ -0,0 +1,83 @@+import { describe, expect, it } from "vite-plus/test";++import { defaultResumeData } from "@/schema/resume/data";++import { buildAiExtractionTemplate } from "./ai-template";++describe("buildAiExtractionTemplate", () => {+ const template = buildAiExtractionTemplate();++ it("produces a valid ResumeData structure", () => {+ // The template should pass schema validation (items have empty strings which satisfy .min(1) checks,+ // so we validate the overall shape matches)+ expect(template).toBeDefined();+ expect(template.basics).toBeDefined();+ expect(template.sections).toBeDefined();+ expect(template.metadata).toBeDefined();+ });++ it("includes a sample custom field in basics", () => {+ expect(template.basics.customFields).toHaveLength(1);+ expect(template.basics.customFields[0]).toEqual({ id: "", icon: "", text: "", link: "" });+ });++ it("populates each section with exactly one example item", () => {+ const sectionKeys = [+ "profiles",+ "experience",+ "education",+ "projects",+ "skills",+ "languages",+ "interests",+ "awards",+ "certifications",+ "publications",+ "volunteer",+ "references",+ ] as const;++ for (const key of sectionKeys) {+ const section = template.sections[key];+ expect(section.items).toHaveLength(1);+ }+ });++ it("preserves section metadata from defaultResumeData", () => {+ const sectionKeys = Object.keys(defaultResumeData.sections) as Array<keyof typeof defaultResumeData.sections>;++ for (const key of sectionKeys) {+ expect(template.sections[key].title).toBe(defaultResumeData.sections[key].title);+ expect(template.sections[key].columns).toBe(defaultResumeData.sections[key].columns);+ expect(template.sections[key].hidden).toBe(defaultResumeData.sections[key].hidden);+ }+ });++ it("has empty string values in example items (not default data)", () => {+ const expItem = template.sections.experience.items[0];+ expect(expItem.company).toBe("");+ expect(expItem.position).toBe("");+ expect(expItem.id).toBe("");+ });++ it("has zeroed numeric values in example items", () => {+ const skillItem = template.sections.skills.items[0];+ expect(skillItem.level).toBe(0);+ });++ it("has nested objects with empty values", () => {+ const expItem = template.sections.experience.items[0];+ expect(expItem.website).toEqual({ url: "", label: "" });+ });++ it("covers all sections present in defaultResumeData", () => {+ const defaultKeys = Object.keys(defaultResumeData.sections).sort();+ const templateKeys = Object.keys(template.sections).sort();+ expect(templateKeys).toEqual(defaultKeys);+ });++ it("preserves metadata and picture from defaultResumeData", () => {+ expect(template.metadata).toEqual(defaultResumeData.metadata);+ expect(template.picture).toEqual(defaultResumeData.picture);+ });+});diff --git a/src/utils/ai-template.ts b/src/utils/ai-template.tsnew file mode 100644index 000000000..681d43908--- /dev/null+++ b/src/utils/ai-template.ts@@ -0,0 +1,131 @@+import { defaultResumeData } from "@/schema/resume/data";++/**+ * Generates an AI extraction template item for a section by creating an object+ * with the same keys as the section's default items but with zeroed/empty values.+ * This template tells the AI what fields to extract for each section type.+ */+function makeEmptyItem(shape: Record<string, unknown>): Record<string, unknown> {+ const item: Record<string, unknown> = {};++ for (const [key, value] of Object.entries(shape)) {+ if (typeof value === "string") item[key] = "";+ else if (typeof value === "number") item[key] = 0;+ else if (typeof value === "boolean") item[key] = false;+ else if (Array.isArray(value)) item[key] = [];+ else if (value !== null && typeof value === "object") {+ item[key] = makeEmptyItem(value as Record<string, unknown>);+ } else {+ item[key] = "";+ }+ }++ return item;+}++/**+ * Section item shape definitions. Each describes the fields the AI should extract.+ * These are the canonical shapes — if a schema field is added, add it here too.+ */+const SECTION_ITEM_SHAPES: Record<string, Record<string, unknown>> = {+ profiles: { id: "", hidden: false, icon: "", network: "", username: "", website: { url: "", label: "" } },+ experience: {+ id: "",+ hidden: false,+ company: "",+ position: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ },+ education: {+ id: "",+ hidden: false,+ school: "",+ degree: "",+ area: "",+ grade: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ },+ projects: { id: "", hidden: false, name: "", period: "", website: { url: "", label: "" }, description: "" },+ skills: { id: "", hidden: false, icon: "", name: "", proficiency: "", level: 0, keywords: [] },+ languages: { id: "", hidden: false, language: "", fluency: "", level: 0 },+ interests: { id: "", hidden: false, icon: "", name: "", keywords: [] },+ awards: {+ id: "",+ hidden: false,+ title: "",+ awarder: "",+ date: "",+ website: { url: "", label: "" },+ description: "",+ },+ certifications: {+ id: "",+ hidden: false,+ title: "",+ issuer: "",+ date: "",+ website: { url: "", label: "" },+ description: "",+ },+ publications: {+ id: "",+ hidden: false,+ title: "",+ publisher: "",+ date: "",+ website: { url: "", label: "" },+ description: "",+ },+ volunteer: {+ id: "",+ hidden: false,+ organization: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ },+ references: {+ id: "",+ hidden: false,+ name: "",+ position: "",+ website: { url: "", label: "" },+ phone: "",+ description: "",+ },+};++/**+ * Builds the AI extraction template programmatically from defaultResumeData.+ * This eliminates manual duplication and ensures the template stays in sync with the schema.+ */+export function buildAiExtractionTemplate() {+ const sections: Record<string, unknown> = {};++ for (const [key, shape] of Object.entries(SECTION_ITEM_SHAPES)) {+ const sectionKey = key as keyof typeof defaultResumeData.sections;+ sections[key] = {+ ...defaultResumeData.sections[sectionKey],+ items: [makeEmptyItem(shape)],+ };+ }++ return {+ ...defaultResumeData,+ basics: {+ ...defaultResumeData.basics,+ customFields: [{ id: "", icon: "", text: "", link: "" }],+ },+ sections: {+ ...defaultResumeData.sections,+ ...sections,+ },+ };+}diff --git a/src/utils/color.test.ts b/src/utils/color.test.tsindex 62877c8cb..42923686d 100644--- a/src/utils/color.test.ts+++ b/src/utils/color.test.ts@@ -38,4 +38,55 @@ describe("parseColorString", () => {it("should return null for incomplete hex", () => {expect(parseColorString("#ff")).toBeNull();});++ // --- Additional branch coverage ---++ it("should parse rgba() without alpha (defaults to 1)", () => {+ expect(parseColorString("rgba(100, 200, 50)")).toEqual({ r: 100, g: 200, b: 50, a: 1 });+ });++ it("should parse rgb() with max values", () => {+ expect(parseColorString("rgb(255, 255, 255)")).toEqual({ r: 255, g: 255, b: 255, a: 1 });+ });++ it("should parse rgba() with alpha of 0", () => {+ expect(parseColorString("rgba(0, 0, 0, 0)")).toEqual({ r: 0, g: 0, b: 0, a: 0 });+ });++ it("should parse rgba() with alpha of 1", () => {+ expect(parseColorString("rgba(0, 0, 0, 1)")).toEqual({ r: 0, g: 0, b: 0, a: 1 });+ });++ it("should parse 3-digit hex #000", () => {+ expect(parseColorString("#000")).toEqual({ r: 0, g: 0, b: 0, a: 1 });+ });++ it("should parse 3-digit hex #fff", () => {+ expect(parseColorString("#fff")).toEqual({ r: 255, g: 255, b: 255, a: 1 });+ });++ it("should return null for 4-digit hex", () => {+ expect(parseColorString("#ffff")).toBeNull();+ });++ it("should return null for 8-digit hex (with alpha)", () => {+ expect(parseColorString("#ff880080")).toBeNull();+ });++ it("should return null for non-hex characters after #", () => {+ expect(parseColorString("#gggggg")).toBeNull();+ });++ it("should return null for named colors", () => {+ expect(parseColorString("red")).toBeNull();+ expect(parseColorString("blue")).toBeNull();+ });++ it("should handle rgb with extra spaces", () => {+ expect(parseColorString("rgb( 10 , 20 , 30 )")).toEqual({ r: 10, g: 20, b: 30, a: 1 });+ });++ it("should parse rgba with decimal alpha", () => {+ expect(parseColorString("rgba(255, 0, 0, 0.75)")).toEqual({ r: 255, g: 0, b: 0, a: 0.75 });+ });});diff --git a/src/utils/date.test.ts b/src/utils/date.test.tsnew file mode 100644index 000000000..af919a206--- /dev/null+++ b/src/utils/date.test.ts@@ -0,0 +1,71 @@+import { describe, expect, it } from "vite-plus/test";++import { formatDate, formatPeriod, formatSingleDate } from "./date";++describe("formatDate", () => {+ it("formats YYYY-MM-DD to month year by default", () => {+ expect(formatDate("2024-01-15")).toBe("January 2024");+ });++ it("formats YYYY-MM to month year", () => {+ expect(formatDate("2024-06")).toBe("June 2024");+ });++ it("returns year only for YYYY", () => {+ expect(formatDate("2024")).toBe("2024");+ });++ it("includes day when includeDay is true", () => {+ expect(formatDate("2024-01-15", true)).toBe("January 15, 2024");+ });++ it("formats YYYY-MM with includeDay (no day available)", () => {+ expect(formatDate("2024-06", true)).toBe("June 2024");+ });++ it("handles December correctly", () => {+ expect(formatDate("2023-12-25")).toBe("December 2023");+ });+});++describe("formatPeriod", () => {+ it("returns empty string when both dates are missing", () => {+ expect(formatPeriod()).toBe("");+ expect(formatPeriod(undefined, undefined)).toBe("");+ });++ it("returns end date when start is missing", () => {+ expect(formatPeriod(undefined, "2024-06")).toBe("2024-06");+ });++ it("returns 'Start - Present' when end is missing", () => {+ expect(formatPeriod("2024-01")).toBe("January 2024 - Present");+ });++ it("formats both dates", () => {+ expect(formatPeriod("2020-01", "2024-06")).toBe("January 2020 - June 2024");+ });++ it("formats full dates to month-year", () => {+ expect(formatPeriod("2020-01-15", "2024-06-30")).toBe("January 2020 - June 2024");+ });+});++describe("formatSingleDate", () => {+ it("returns empty string for undefined", () => {+ expect(formatSingleDate()).toBe("");+ expect(formatSingleDate(undefined)).toBe("");+ });++ it("formats YYYY-MM-DD with day included", () => {+ expect(formatSingleDate("2024-03-15")).toBe("March 15, 2024");+ });++ it("formats YYYY-MM without day", () => {+ expect(formatSingleDate("2024-03")).toBe("March 2024");+ });++ it("returns year only for YYYY", () => {+ expect(formatSingleDate("2024")).toBe("2024");+ });+});diff --git a/src/utils/date.ts b/src/utils/date.tsnew file mode 100644index 000000000..a39a89fb1--- /dev/null+++ b/src/utils/date.ts@@ -0,0 +1,57 @@+const MONTH_NAMES = [+ "January",+ "February",+ "March",+ "April",+ "May",+ "June",+ "July",+ "August",+ "September",+ "October",+ "November",+ "December",+];++/**+ * Formats a partial ISO 8601 date string (YYYY, YYYY-MM, or YYYY-MM-DD)+ * into a human-readable format like "January 2024" or "January 15, 2024".+ */+export function formatDate(date: string, includeDay = false): string {+ const parts = date.split("-");++ if (parts.length >= 2) {+ const [year, month] = parts;+ const monthName = MONTH_NAMES[parseInt(month, 10) - 1];++ if (parts.length === 3 && includeDay) {+ return `${monthName} ${parts[2]}, ${year}`;+ }++ return `${monthName} ${year}`;+ }++ // YYYY only+ return date;+}++/**+ * Formats a date range from start and end dates.+ * Returns "Start - End", "Start - Present" if no end, or just the end date if no start.+ */+export function formatPeriod(startDate?: string, endDate?: string): string {+ if (!startDate && !endDate) return "";+ if (!startDate) return endDate || "";+ if (!endDate) return `${formatDate(startDate)} - Present`;++ return `${formatDate(startDate)} - ${formatDate(endDate)}`;+}++/**+ * Formats a single date with day included (e.g., "January 15, 2024").+ * Falls back to month-year or year-only for partial dates.+ */+export function formatSingleDate(date?: string): string {+ if (!date) return "";+ return formatDate(date, true);+}diff --git a/src/utils/env.ts b/src/utils/env.tsindex 6e7e83568..ca92f2a14 100644--- a/src/utils/env.ts+++ b/src/utils/env.ts@@ -32,6 +32,10 @@ export const env = createEnv({GITHUB_CLIENT_ID: z.string().min(1).optional(),GITHUB_CLIENT_SECRET: z.string().min(1).optional(),+ // Social Auth (LinkedIn)+ LINKEDIN_CLIENT_ID: z.string().min(1).optional(),+ LINKEDIN_CLIENT_SECRET: z.string().min(1).optional(),+// Custom OAuth ProviderOAUTH_PROVIDER_NAME: z.string().min(1).optional(),OAUTH_CLIENT_ID: z.string().min(1).optional(),diff --git a/src/utils/html.test.ts b/src/utils/html.test.tsnew file mode 100644index 000000000..00b35eb62--- /dev/null+++ b/src/utils/html.test.ts@@ -0,0 +1,40 @@+import { describe, expect, it } from "vite-plus/test";++import { arrayToHtmlList, toHtmlDescription } from "./html";++describe("toHtmlDescription", () => {+ it("returns empty string when both are missing", () => {+ expect(toHtmlDescription()).toBe("");+ expect(toHtmlDescription(undefined, undefined)).toBe("");+ });++ it("wraps summary in <p>", () => {+ expect(toHtmlDescription("Hello")).toBe("<p>Hello</p>");+ });++ it("creates <ul> from highlights", () => {+ expect(toHtmlDescription(undefined, ["a", "b"])).toBe("<ul><li>a</li><li>b</li></ul>");+ });++ it("combines summary and highlights", () => {+ expect(toHtmlDescription("Summary", ["a", "b"])).toBe("<p>Summary</p><ul><li>a</li><li>b</li></ul>");+ });++ it("ignores empty highlights array", () => {+ expect(toHtmlDescription("Summary", [])).toBe("<p>Summary</p>");+ });+});++describe("arrayToHtmlList", () => {+ it("returns empty string for empty array", () => {+ expect(arrayToHtmlList([])).toBe("");+ });++ it("creates <ul> list from items", () => {+ expect(arrayToHtmlList(["a", "b", "c"])).toBe("<ul><li>a</li><li>b</li><li>c</li></ul>");+ });++ it("handles single item", () => {+ expect(arrayToHtmlList(["only"])).toBe("<ul><li>only</li></ul>");+ });+});diff --git a/src/utils/html.ts b/src/utils/html.tsnew file mode 100644index 000000000..a554947d3--- /dev/null+++ b/src/utils/html.ts@@ -0,0 +1,31 @@+/**+ * Converts a summary string and optional highlights array into an HTML description.+ * Summary becomes a <p> tag, highlights become a <ul> list.+ */+export function toHtmlDescription(summary?: string, highlights?: string[]): string {+ const parts: string[] = [];++ if (summary) {+ parts.push(`<p>${summary}</p>`);+ }++ if (highlights && highlights.length > 0) {+ parts.push("<ul>");++ for (const highlight of highlights) {+ parts.push(`<li>${highlight}</li>`);+ }++ parts.push("</ul>");+ }++ return parts.join("");+}++/**+ * Converts an array of strings into an HTML unordered list.+ */+export function arrayToHtmlList(items: string[]): string {+ if (items.length === 0) return "";+ return `<ul>${items.map((item) => `<li>${item}</li>`).join("")}</ul>`;+}diff --git a/src/utils/level.test.ts b/src/utils/level.test.tsnew file mode 100644index 000000000..b569db453--- /dev/null+++ b/src/utils/level.test.ts@@ -0,0 +1,74 @@+import { describe, expect, it } from "vite-plus/test";++import { parseLevel } from "./level";++describe("parseLevel", () => {+ it("returns 0 for undefined/empty", () => {+ expect(parseLevel()).toBe(0);+ expect(parseLevel(undefined)).toBe(0);+ expect(parseLevel("")).toBe(0);+ });++ it("parses numeric values within range", () => {+ expect(parseLevel("0")).toBe(0);+ expect(parseLevel("3")).toBe(3);+ expect(parseLevel("5")).toBe(5);+ });++ it("returns 0 for numeric values out of range", () => {+ expect(parseLevel("6")).toBe(0);+ expect(parseLevel("-1")).toBe(0);+ });++ it("maps expert-level text to 5", () => {+ expect(parseLevel("Native")).toBe(5);+ expect(parseLevel("Expert")).toBe(5);+ expect(parseLevel("Master")).toBe(5);+ });++ it("maps advanced-level text to 4", () => {+ expect(parseLevel("Fluent")).toBe(4);+ expect(parseLevel("Advanced")).toBe(4);+ expect(parseLevel("Proficient")).toBe(4);+ });++ it("maps intermediate-level text to 3", () => {+ expect(parseLevel("Intermediate")).toBe(3);+ expect(parseLevel("Conversational")).toBe(3);+ });++ it("maps beginner-level text to 2", () => {+ expect(parseLevel("Beginner")).toBe(2);+ expect(parseLevel("Basic")).toBe(2);+ expect(parseLevel("Elementary")).toBe(2);+ });++ it("maps novice to 1", () => {+ expect(parseLevel("Novice")).toBe(1);+ });++ it("maps CEFR levels correctly", () => {+ expect(parseLevel("C2")).toBe(5);+ expect(parseLevel("C1")).toBe(4);+ expect(parseLevel("B2")).toBe(3);+ expect(parseLevel("B1")).toBe(2);+ expect(parseLevel("A2")).toBe(1);+ expect(parseLevel("A1")).toBe(1);+ });++ it("is case-insensitive", () => {+ expect(parseLevel("NATIVE")).toBe(5);+ expect(parseLevel("beginner")).toBe(2);+ expect(parseLevel("c2")).toBe(5);+ });++ it("matches partial strings", () => {+ expect(parseLevel("Native speaker")).toBe(5);+ expect(parseLevel("Advanced level")).toBe(4);+ });++ it("returns 0 for unrecognized text", () => {+ expect(parseLevel("unknown")).toBe(0);+ expect(parseLevel("xyz")).toBe(0);+ });+});diff --git a/src/utils/level.ts b/src/utils/level.tsnew file mode 100644index 000000000..f32f35afd--- /dev/null+++ b/src/utils/level.ts@@ -0,0 +1,31 @@+/**+ * Parses a skill/language level string to a numeric value (0-5).+ * Supports numeric values, text levels (beginner/intermediate/advanced/expert),+ * and CEFR levels (A1-C2).+ */+export function parseLevel(level?: string): number {+ if (!level) return 0;++ const levelLower = level.toLowerCase();++ // Try to parse numeric values+ const numeric = parseInt(levelLower, 10);+ if (!Number.isNaN(numeric) && numeric >= 0 && numeric <= 5) return numeric;++ // Map text levels to numbers+ if (levelLower.includes("native") || levelLower.includes("expert") || levelLower.includes("master")) return 5;+ if (levelLower.includes("fluent") || levelLower.includes("advanced") || levelLower.includes("proficient")) return 4;+ if (levelLower.includes("intermediate") || levelLower.includes("conversational")) return 3;+ if (levelLower.includes("beginner") || levelLower.includes("basic") || levelLower.includes("elementary")) return 2;+ if (levelLower.includes("novice")) return 1;++ // CEFR levels+ if (levelLower.includes("c2")) return 5;+ if (levelLower.includes("c1")) return 4;+ if (levelLower.includes("b2")) return 3;+ if (levelLower.includes("b1")) return 2;+ if (levelLower.includes("a2")) return 1;+ if (levelLower.includes("a1")) return 1;++ return 0;+}diff --git a/src/utils/network-icons.test.ts b/src/utils/network-icons.test.tsnew file mode 100644index 000000000..31eceaa3f--- /dev/null+++ b/src/utils/network-icons.test.ts@@ -0,0 +1,53 @@+import { describe, expect, it } from "vite-plus/test";++import { getNetworkIcon } from "./network-icons";++describe("getNetworkIcon", () => {+ it("returns 'star' for undefined/empty", () => {+ expect(getNetworkIcon()).toBe("star");+ expect(getNetworkIcon(undefined)).toBe("star");+ });++ it("maps GitHub correctly", () => {+ expect(getNetworkIcon("GitHub")).toBe("github-logo");+ expect(getNetworkIcon("github")).toBe("github-logo");+ });++ it("maps LinkedIn correctly", () => {+ expect(getNetworkIcon("LinkedIn")).toBe("linkedin-logo");+ });++ it("maps Twitter and X.com", () => {+ expect(getNetworkIcon("Twitter")).toBe("twitter-logo");+ expect(getNetworkIcon("x.com")).toBe("twitter-logo");+ });++ it("maps other social networks", () => {+ expect(getNetworkIcon("Facebook")).toBe("facebook-logo");+ expect(getNetworkIcon("Instagram")).toBe("instagram-logo");+ expect(getNetworkIcon("YouTube")).toBe("youtube-logo");+ expect(getNetworkIcon("Medium")).toBe("medium-logo");+ expect(getNetworkIcon("Dribbble")).toBe("dribbble-logo");+ expect(getNetworkIcon("Behance")).toBe("behance-logo");+ });++ it("maps dev platforms", () => {+ expect(getNetworkIcon("StackOverflow")).toBe("stack-overflow-logo");+ expect(getNetworkIcon("Stack-Overflow")).toBe("stack-overflow-logo");+ expect(getNetworkIcon("dev.to")).toBe("code");+ expect(getNetworkIcon("devto")).toBe("code");+ expect(getNetworkIcon("GitLab")).toBe("git-branch");+ expect(getNetworkIcon("Bitbucket")).toBe("code");+ expect(getNetworkIcon("CodePen")).toBe("code");+ });++ it("is case-insensitive", () => {+ expect(getNetworkIcon("GITHUB")).toBe("github-logo");+ expect(getNetworkIcon("linkedin")).toBe("linkedin-logo");+ });++ it("returns 'star' for unknown networks", () => {+ expect(getNetworkIcon("MySpace")).toBe("star");+ expect(getNetworkIcon("Unknown")).toBe("star");+ });+});diff --git a/src/utils/network-icons.ts b/src/utils/network-icons.tsnew file mode 100644index 000000000..98e698722--- /dev/null+++ b/src/utils/network-icons.ts@@ -0,0 +1,35 @@+import type { IconName } from "@/schema/icons";++const NETWORK_ICON_MAP: Array<{ match: string[]; icon: IconName }> = [+ { match: ["github"], icon: "github-logo" },+ { match: ["linkedin"], icon: "linkedin-logo" },+ { match: ["twitter", "x", "x.com"], icon: "twitter-logo" },+ { match: ["facebook"], icon: "facebook-logo" },+ { match: ["instagram"], icon: "instagram-logo" },+ { match: ["youtube"], icon: "youtube-logo" },+ { match: ["stackoverflow", "stack-overflow"], icon: "stack-overflow-logo" },+ { match: ["medium"], icon: "medium-logo" },+ { match: ["dev.to", "devto"], icon: "code" },+ { match: ["dribbble"], icon: "dribbble-logo" },+ { match: ["behance"], icon: "behance-logo" },+ { match: ["gitlab"], icon: "git-branch" },+ { match: ["bitbucket", "codepen"], icon: "code" },+];++/**+ * Maps a social network name to a Phosphor icon name.+ * Returns "star" as default if no match is found.+ */+export function getNetworkIcon(network?: string): IconName {+ if (!network) return "star";++ const networkLower = network.toLowerCase();++ for (const entry of NETWORK_ICON_MAP) {+ if (entry.match.some((keyword) => networkLower.includes(keyword))) {+ return entry.icon;+ }+ }++ return "star";+}diff --git a/src/utils/password.test.ts b/src/utils/password.test.tsnew file mode 100644index 000000000..d367af05a--- /dev/null+++ b/src/utils/password.test.ts@@ -0,0 +1,53 @@+import { describe, expect, it } from "vite-plus/test";++import { hashPassword, verifyPassword } from "./password";++describe("hashPassword", () => {+ it("returns a bcrypt hash string", async () => {+ const hash = await hashPassword("my-password");+ expect(hash).toMatch(/^\$2[aby]?\$\d+\$/);+ });++ it("produces different hashes for the same password (salted)", async () => {+ const hash1 = await hashPassword("same-password");+ const hash2 = await hashPassword("same-password");+ expect(hash1).not.toBe(hash2);+ });++ it("produces a hash of expected length (~60 chars)", async () => {+ const hash = await hashPassword("test");+ expect(hash.length).toBe(60);+ });+});++describe("verifyPassword", () => {+ it("returns true for correct password", async () => {+ const hash = await hashPassword("correct-password");+ const result = await verifyPassword("correct-password", hash);+ expect(result).toBe(true);+ });++ it("returns false for incorrect password", async () => {+ const hash = await hashPassword("correct-password");+ const result = await verifyPassword("wrong-password", hash);+ expect(result).toBe(false);+ });++ it("handles empty passwords", async () => {+ const hash = await hashPassword("");+ expect(await verifyPassword("", hash)).toBe(true);+ expect(await verifyPassword("notempty", hash)).toBe(false);+ });++ it("handles special characters", async () => {+ const password = "p@$$w0rd!#%&*(){}[]|\\/<>?";+ const hash = await hashPassword(password);+ expect(await verifyPassword(password, hash)).toBe(true);+ });++ it("handles unicode characters", async () => {+ const password = "パスワード123";+ const hash = await hashPassword(password);+ expect(await verifyPassword(password, hash)).toBe(true);+ });+});diff --git a/src/utils/printer-token.test.ts b/src/utils/printer-token.test.tsnew file mode 100644index 000000000..9b0c6fea4--- /dev/null+++ b/src/utils/printer-token.test.ts@@ -0,0 +1,262 @@+import { createHmac } from "node:crypto";+import { afterEach, beforeEach, describe, expect, it, vi } from "vite-plus/test";++// ---------------------------------------------------------------------------+// We can't easily mock createIsomorphicFn, so we reimplement the core logic+// directly in the test to verify the token generation/verification algorithm.+// This tests the same code paths without depending on the TanStack wrapper.+// ---------------------------------------------------------------------------++const TEST_SECRET = "test-secret-key-for-hmac";+const PRINTER_TOKEN_TTL_MS = 5 * 60 * 1000;++/** Reimplementation of generatePrinterToken for testing */+function generateToken(resumeId: string): string {+ const timestamp = Date.now();+ const payload = `${resumeId}:${timestamp}`;+ const payloadBase64 = Buffer.from(payload).toString("base64url");+ const signature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");+ return `${payloadBase64}.${signature}`;+}++/** Reimplementation of verifyPrinterToken for testing */+function verifyToken(token: string): string {+ const { timingSafeEqual } = require("node:crypto");++ const parts = token.split(".");+ if (parts.length !== 2) throw new Error("Invalid token format");++ const [payloadBase64, signature] = parts;++ const expectedSignature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");+ const signatureBuffer = Buffer.from(signature);+ const expectedBuffer = Buffer.from(expectedSignature);++ if (signatureBuffer.length !== expectedBuffer.length || !timingSafeEqual(signatureBuffer, expectedBuffer)) {+ throw new Error("Invalid token signature");+ }++ const payload = Buffer.from(payloadBase64, "base64url").toString("utf-8");+ const [resumeId, timestampStr] = payload.split(":");+ if (!resumeId || !timestampStr) throw new Error("Invalid token payload");++ const timestamp = Number.parseInt(timestampStr, 10);+ if (Number.isNaN(timestamp)) throw new Error("Invalid timestamp");++ const age = Date.now() - timestamp;+ if (age < 0 || age > PRINTER_TOKEN_TTL_MS) throw new Error("Token expired");++ return resumeId;+}++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function createValidToken(resumeId: string, timestamp: number): string {+ const payload = `${resumeId}:${timestamp}`;+ const payloadBase64 = Buffer.from(payload).toString("base64url");+ const signature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");+ return `${payloadBase64}.${signature}`;+}++// ---------------------------------------------------------------------------+// Tests — these validate the algorithm used by printer-token.ts+// ---------------------------------------------------------------------------++describe("generatePrinterToken (algorithm)", () => {+ beforeEach(() => {+ vi.useFakeTimers();+ });++ afterEach(() => {+ vi.useRealTimers();+ });++ it("returns a token with format payload.signature", () => {+ const token = generateToken("resume-123");+ const parts = token.split(".");+ expect(parts).toHaveLength(2);+ expect(parts[0].length).toBeGreaterThan(0);+ expect(parts[1].length).toBeGreaterThan(0);+ });++ it("encodes the resume ID and timestamp in the payload", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const token = generateToken("my-resume-id");+ const [payloadBase64] = token.split(".");+ const decoded = Buffer.from(payloadBase64, "base64url").toString("utf-8");++ expect(decoded).toContain("my-resume-id");+ expect(decoded).toContain(String(Date.now()));+ });++ it("produces a valid HMAC-SHA256 signature", () => {+ vi.setSystemTime(new Date("2025-01-01T00:00:00Z"));+ const token = generateToken("resume-abc");+ const [payloadBase64, signature] = token.split(".");++ const expectedSignature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");+ expect(signature).toBe(expectedSignature);+ });++ it("generates different tokens for different resume IDs", () => {+ const token1 = generateToken("resume-1");+ const token2 = generateToken("resume-2");+ expect(token1).not.toBe(token2);+ });++ it("generates different tokens at different timestamps", () => {+ vi.setSystemTime(new Date("2025-01-01T00:00:00Z"));+ const token1 = generateToken("same-resume");++ vi.setSystemTime(new Date("2025-01-01T00:01:00Z"));+ const token2 = generateToken("same-resume");++ expect(token1).not.toBe(token2);+ });++ it("uses base64url encoding (no +, /, or = characters in payload)", () => {+ const token = generateToken("resume/with+special=chars");+ const [payloadBase64] = token.split(".");++ expect(payloadBase64).not.toMatch(/[+/=]/);+ });+});++describe("verifyPrinterToken (algorithm)", () => {+ beforeEach(() => {+ vi.useFakeTimers();+ });++ afterEach(() => {+ vi.useRealTimers();+ });++ it("returns the resume ID for a valid, non-expired token", () => {+ const now = new Date("2025-06-15T12:00:00Z");+ vi.setSystemTime(now);++ const token = createValidToken("resume-123", now.getTime());+ const resumeId = verifyToken(token);++ expect(resumeId).toBe("resume-123");+ });++ it("accepts a token that is just under 5 minutes old", () => {+ const createdAt = new Date("2025-06-15T12:00:00Z");+ vi.setSystemTime(new Date("2025-06-15T12:04:59Z"));++ const token = createValidToken("resume-456", createdAt.getTime());+ const resumeId = verifyToken(token);++ expect(resumeId).toBe("resume-456");+ });++ it("rejects a token exactly at the 5-minute boundary", () => {+ const createdAt = new Date("2025-06-15T12:00:00Z");+ // 5 minutes + 1ms after creation+ vi.setSystemTime(new Date(createdAt.getTime() + PRINTER_TOKEN_TTL_MS + 1));++ const token = createValidToken("resume-789", createdAt.getTime());+ expect(() => verifyToken(token)).toThrow("Token expired");+ });++ it("throws for a token older than 5 minutes", () => {+ const createdAt = new Date("2025-06-15T12:00:00Z");+ vi.setSystemTime(new Date("2025-06-15T12:06:00Z"));++ const token = createValidToken("resume-789", createdAt.getTime());+ expect(() => verifyToken(token)).toThrow("Token expired");+ });++ it("throws for a token with a future timestamp (negative age)", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const futureTime = new Date("2025-06-15T13:00:00Z").getTime();++ const token = createValidToken("resume-future", futureTime);+ expect(() => verifyToken(token)).toThrow("Token expired");+ });++ it("throws for invalid token format (no dot separator)", () => {+ expect(() => verifyToken("nodothere")).toThrow("Invalid token format");+ });++ it("throws for invalid token format (too many dots)", () => {+ expect(() => verifyToken("a.b.c")).toThrow("Invalid token format");+ });++ it("throws for empty token", () => {+ expect(() => verifyToken("")).toThrow("Invalid token format");+ });++ it("throws for a token with tampered signature", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const token = createValidToken("resume-123", Date.now());+ const [payload] = token.split(".");++ const tamperedToken = `${payload}.deadbeef0000000000000000000000000000000000000000000000000000dead`;+ expect(() => verifyToken(tamperedToken)).toThrow("Invalid token signature");+ });++ it("throws for a token with tampered payload", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const token = createValidToken("resume-123", Date.now());+ const [, signature] = token.split(".");++ const tamperedPayload = Buffer.from("hacked-resume:0").toString("base64url");+ expect(() => verifyToken(`${tamperedPayload}.${signature}`)).toThrow("Invalid token signature");+ });++ it("throws for a token with invalid base64 payload (no colon separator)", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const payloadBase64 = Buffer.from("nocolon").toString("base64url");+ const signature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");++ // "nocolon".split(":") => ["nocolon"], so timestampStr is undefined+ expect(() => verifyToken(`${payloadBase64}.${signature}`)).toThrow("Invalid token payload");+ });++ it("throws for payload with non-numeric timestamp", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const payloadBase64 = Buffer.from("resume-id:not-a-number").toString("base64url");+ const signature = createHmac("sha256", TEST_SECRET).update(payloadBase64).digest("hex");++ expect(() => verifyToken(`${payloadBase64}.${signature}`)).toThrow("Invalid timestamp");+ });++ it("round-trips: generate then verify returns original resume ID", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));++ const token = generateToken("my-resume-uuid-v7");+ const result = verifyToken(token);++ expect(result).toBe("my-resume-uuid-v7");+ });++ it("handles resume IDs with dashes and underscores", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));++ const id = "resume-with-dashes_and_underscores";+ const token = generateToken(id);+ const result = verifyToken(token);++ expect(result).toBe(id);+ });++ it("resume IDs with colons cause verification to fail", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));++ // Documents a known limitation: IDs with ":" break the payload format+ // because verifyToken splits on ":" to separate ID from timestamp,+ // so the second segment becomes part of the ID, not the timestamp.+ const token = generateToken("resume:with:colons");+ expect(() => verifyToken(token)).toThrow("Invalid timestamp");+ });++ it("accepts a token at exactly age 0 (just created)", () => {+ vi.setSystemTime(new Date("2025-06-15T12:00:00Z"));+ const token = createValidToken("fresh", Date.now());+ expect(verifyToken(token)).toBe("fresh");+ });+});diff --git a/src/utils/printer-token.ts b/src/utils/printer-token.tsindex 52c101965..d28b4754e 100644--- a/src/utils/printer-token.ts+++ b/src/utils/printer-token.ts@@ -1,5 +1,5 @@import { createIsomorphicFn } from "@tanstack/react-start";-import { createHash, timingSafeEqual } from "node:crypto";+import { createHmac, timingSafeEqual } from "node:crypto";import { env } from "./env";@@ -15,7 +15,7 @@ export const generatePrinterToken = createIsomorphicFn().server((resumeId: strinconst payloadBase64 = Buffer.from(payload).toString("base64url");// Create HMAC signature using AUTH_SECRET- const signature = createHash("sha256").update(`${payloadBase64}.${env.AUTH_SECRET}`).digest("hex");+ const signature = createHmac("sha256", env.AUTH_SECRET).update(payloadBase64).digest("hex");return `${payloadBase64}.${signature}`;});@@ -31,7 +31,7 @@ export const verifyPrinterToken = createIsomorphicFn().server((token: string) =>const [payloadBase64, signature] = parts;// Verify signature- const expectedSignature = createHash("sha256").update(`${payloadBase64}.${env.AUTH_SECRET}`).digest("hex");+ const expectedSignature = createHmac("sha256", env.AUTH_SECRET).update(payloadBase64).digest("hex");const signatureBuffer = Buffer.from(signature);const expectedBuffer = Buffer.from(expectedSignature);diff --git a/src/utils/resume/docx/builder.test.ts b/src/utils/resume/docx/builder.test.tsindex 6f4fba246..947a1aa1f 100644--- a/src/utils/resume/docx/builder.test.ts+++ b/src/utils/resume/docx/builder.test.ts@@ -288,6 +288,150 @@ describe("buildDocument", () => {expect(doc).toBeInstanceOf(Document);});+ // --- Template configs ---++ it("renders with chikorita template (sidebar-only header, solid sidebar bg)", () => {+ const data = makeResumeData({+ basics: { ...defaultResumeData.basics, name: "Jane", headline: "Dev", email: "[email protected]" },+ metadata: {+ ...defaultResumeData.metadata,+ template: "chikorita",+ layout: {+ sidebarWidth: 35,+ pages: [{ fullWidth: false, main: ["experience"], sidebar: ["skills"] }],+ },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ it("renders with ditgar template (sidebar-only header, tint sidebar bg)", () => {+ const data = makeResumeData({+ basics: { ...defaultResumeData.basics, name: "Alice", headline: "PM" },+ metadata: {+ ...defaultResumeData.metadata,+ template: "ditgar",+ layout: {+ sidebarWidth: 30,+ pages: [{ fullWidth: false, main: ["experience"], sidebar: ["skills"] }],+ },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ it("renders with pikachu template (main-only header)", () => {+ const data = makeResumeData({+ basics: { ...defaultResumeData.basics, name: "Bob" },+ metadata: {+ ...defaultResumeData.metadata,+ template: "pikachu",+ layout: {+ sidebarWidth: 35,+ pages: [{ fullWidth: false, main: ["experience"], sidebar: ["skills"] }],+ },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ it("renders with unknown template (falls back to default config)", () => {+ const data = makeResumeData({+ metadata: {+ ...defaultResumeData.metadata,+ template: "unknown-template" as any,+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ // --- Header edge cases ---++ it("renders header with custom fields (with links)", () => {+ const data = makeResumeData({+ basics: {+ ...defaultResumeData.basics,+ name: "Jane",+ customFields: [+ { id: "cf1", icon: "star", text: "Portfolio", link: "https://portfolio.dev" },+ { id: "cf2", icon: "", text: "Plain text field", link: "" },+ { id: "cf3", icon: "", text: "", link: "" }, // empty text — skipped+ { id: "cf4", icon: "", text: "Bad link", link: "javascript:alert(1)" }, // unsafe link — rendered as text+ ],+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ it("renders header without name (no title paragraph)", () => {+ const data = makeResumeData({+ basics: { ...defaultResumeData.basics, name: "" },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ it("renders header without headline", () => {+ const data = makeResumeData({+ basics: { ...defaultResumeData.basics, name: "Jane", headline: "" },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ // --- Multi-page layout ---++ it("renders multi-page layout", () => {+ const data = makeResumeData({+ metadata: {+ ...defaultResumeData.metadata,+ layout: {+ sidebarWidth: 35,+ pages: [+ { fullWidth: false, main: ["experience"], sidebar: ["skills"] },+ { fullWidth: true, main: ["education"], sidebar: [] },+ ],+ },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ // --- Section rendering with unknown section ID ---++ it("handles unknown section IDs in layout gracefully", () => {+ const data = makeResumeData({+ metadata: {+ ...defaultResumeData.metadata,+ layout: {+ sidebarWidth: 35,+ pages: [{ fullWidth: false, main: ["nonexistent-section"], sidebar: [] }],+ },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });++ // --- Free-form page format ---++ it("handles free-form page format", () => {+ const data = makeResumeData({+ metadata: {+ ...defaultResumeData.metadata,+ page: { ...defaultResumeData.metadata.page, format: "free-form" },+ },+ });+ const doc = buildDocument(data);+ expect(doc).toBeInstanceOf(Document);+ });+it("produces a valid DOCX blob via Packer", async () => {const { Packer } = await import("docx");const data = makeResumeData({diff --git a/src/utils/resume/docx/html-to-docx.test.ts b/src/utils/resume/docx/html-to-docx.test.tsindex 3ccd4a1ee..d406bad05 100644--- a/src/utils/resume/docx/html-to-docx.test.ts+++ b/src/utils/resume/docx/html-to-docx.test.ts@@ -140,4 +140,148 @@ describe("htmlToParagraphs", () => {const result = htmlToParagraphs("<p><u>under</u></p>");expect(result).toHaveLength(1);});++ // --- Additional coverage: block elements ---++ it("parses blockquote with italic styling", () => {+ const result = htmlToParagraphs("<blockquote>Quote text</blockquote>");+ expect(result).toHaveLength(1);+ expect(result[0]).toBeInstanceOf(Paragraph);+ });++ it("parses pre/code block with monospace font", () => {+ const result = htmlToParagraphs("<pre>const x = 42;</pre>");+ expect(result).toHaveLength(1);+ expect(result[0]).toBeInstanceOf(Paragraph);+ });++ it("parses hr as empty paragraph", () => {+ const result = htmlToParagraphs("<hr>");+ expect(result).toHaveLength(1);+ });++ it("parses heading elements (h1-h6)", () => {+ for (let i = 1; i <= 6; i++) {+ const result = htmlToParagraphs(`<h${i}>Heading ${i}</h${i}>`);+ expect(result).toHaveLength(1);+ expect(result[0]).toBeInstanceOf(Paragraph);+ }+ });++ it("parses div as block element", () => {+ const result = htmlToParagraphs("<div>Content in div</div>");+ expect(result).toHaveLength(1);+ });++ it("parses inline code with Courier New font", () => {+ const result = htmlToParagraphs("<p><code>inline code</code></p>");+ expect(result).toHaveLength(1);+ });++ it("parses mark/highlight element", () => {+ const result = htmlToParagraphs("<p><mark>highlighted</mark></p>");+ expect(result).toHaveLength(1);+ });++ it("parses b tag (same as strong)", () => {+ const result = htmlToParagraphs("<p><b>bold</b></p>");+ expect(result).toHaveLength(1);+ });++ it("parses i tag (same as em)", () => {+ const result = htmlToParagraphs("<p><i>italic</i></p>");+ expect(result).toHaveLength(1);+ });++ it("parses strike tag", () => {+ const result = htmlToParagraphs("<p><strike>struck</strike></p>");+ expect(result).toHaveLength(1);+ });++ // --- Nested lists ---++ it("parses nested unordered list", () => {+ const html = "<ul><li>Top<ul><li>Nested</li></ul></li></ul>";+ const result = htmlToParagraphs(html);+ expect(result.length).toBeGreaterThanOrEqual(2);+ });++ it("parses nested ordered list", () => {+ const html = "<ol><li>First<ol><li>Sub</li></ol></li></ol>";+ const result = htmlToParagraphs(html);+ expect(result.length).toBeGreaterThanOrEqual(2);+ });++ it("parses list with paragraph inside li", () => {+ const html = "<ul><li><p>Paragraph in list</p></li></ul>";+ const result = htmlToParagraphs(html);+ expect(result.length).toBeGreaterThanOrEqual(1);+ });++ // --- Style config ---++ it("applies styleConfig font and size to text runs", () => {+ const result = htmlToParagraphs("<p>Styled</p>", {+ font: "Georgia",+ size: 24,+ color: "333333",+ });+ expect(result).toHaveLength(1);+ });++ it("applies linkColor from styleConfig", () => {+ const result = htmlToParagraphs('<p><a href="https://example.com">link</a></p>', {+ linkColor: "FF0000",+ });+ expect(result).toHaveLength(1);+ const children = getChildren(result[0] as Paragraph);+ const hyperlinks = children.filter((c) => c instanceof ExternalHyperlink);+ expect(hyperlinks).toHaveLength(1);+ });++ // --- Top-level text nodes ---++ it("handles plain text without wrapper element", () => {+ const result = htmlToParagraphs("Just plain text");+ expect(result).toHaveLength(1);+ });++ it("handles link without href falling back to inline text", () => {+ const result = htmlToParagraphs("<p><a>No href link</a></p>");+ expect(result).toHaveLength(1);+ const children = getChildren(result[0] as Paragraph);+ // Should have TextRun, not ExternalHyperlink (no href)+ const hyperlinks = children.filter((c) => c instanceof ExternalHyperlink);+ expect(hyperlinks).toHaveLength(0);+ });++ it("handles empty blockquote", () => {+ const result = htmlToParagraphs("<blockquote></blockquote>");+ expect(result).toHaveLength(0);+ });++ it("handles empty pre", () => {+ const result = htmlToParagraphs("<pre></pre>");+ expect(result).toHaveLength(0);+ });++ it("handles empty heading", () => {+ const result = htmlToParagraphs("<h1></h1>");+ expect(result).toHaveLength(0);+ });++ // --- Multiple block elements ---++ it("handles complex HTML with mixed elements", () => {+ const html = `+ <h2>Title</h2>+ <p>Introduction paragraph</p>+ <ul><li>Item 1</li><li>Item 2</li></ul>+ <blockquote>A quote</blockquote>+ <pre>code block</pre>+ `;+ const result = htmlToParagraphs(html);+ // h2 + p + 2 li + blockquote + pre = 6+ expect(result.length).toBeGreaterThanOrEqual(5);+ });});diff --git a/src/utils/resume/docx/link-utils.test.ts b/src/utils/resume/docx/link-utils.test.tsnew file mode 100644index 000000000..f779d1b46--- /dev/null+++ b/src/utils/resume/docx/link-utils.test.ts@@ -0,0 +1,69 @@+import { describe, expect, it } from "vite-plus/test";++import { toSafeDocxLink } from "./link-utils";++describe("toSafeDocxLink", () => {+ describe("valid URLs", () => {+ it("returns http URLs as-is", () => {+ expect(toSafeDocxLink("http://example.com")).toBe("http://example.com/");+ });++ it("returns https URLs as-is", () => {+ expect(toSafeDocxLink("https://example.com")).toBe("https://example.com/");+ });++ it("returns https URLs with paths", () => {+ expect(toSafeDocxLink("https://example.com/path/to/page")).toBe("https://example.com/path/to/page");+ });++ it("returns https URLs with query parameters", () => {+ expect(toSafeDocxLink("https://example.com?foo=bar")).toBe("https://example.com/?foo=bar");+ });++ it("returns mailto links", () => {+ expect(toSafeDocxLink("mailto:[email protected]")).toBe("mailto:[email protected]");+ });++ it("trims whitespace before processing", () => {+ expect(toSafeDocxLink(" https://example.com ")).toBe("https://example.com/");+ });+ });++ describe("invalid/unsafe URLs", () => {+ it("returns null for empty string", () => {+ expect(toSafeDocxLink("")).toBeNull();+ });++ it("returns null for whitespace-only string", () => {+ expect(toSafeDocxLink(" ")).toBeNull();+ });++ it("returns null for javascript: URLs", () => {+ expect(toSafeDocxLink("javascript:alert(1)")).toBeNull();+ });++ it("returns null for data: URLs", () => {+ expect(toSafeDocxLink("data:text/html,<h1>hi</h1>")).toBeNull();+ });++ it("returns null for file: URLs", () => {+ expect(toSafeDocxLink("file:///etc/passwd")).toBeNull();+ });++ it("returns null for ftp: URLs", () => {+ expect(toSafeDocxLink("ftp://example.com")).toBeNull();+ });++ it("returns null for invalid URLs", () => {+ expect(toSafeDocxLink("not a url at all")).toBeNull();+ });++ it("returns null for mailto: without email", () => {+ expect(toSafeDocxLink("mailto:")).toBeNull();+ });++ it("returns null for mailto: with only whitespace", () => {+ expect(toSafeDocxLink("mailto: ")).toBeNull();+ });+ });+});diff --git a/src/utils/resume/docx/section-renderers.test.ts b/src/utils/resume/docx/section-renderers.test.tsnew file mode 100644index 000000000..d620f5be8--- /dev/null+++ b/src/utils/resume/docx/section-renderers.test.ts@@ -0,0 +1,654 @@+import { Paragraph } from "docx";+import { beforeEach, describe, expect, it } from "vite-plus/test";++import type { CustomSection, ResumeData } from "@/schema/resume/data";++import { defaultResumeData } from "@/schema/resume/data";++import { renderBuiltInSection, renderCustomSection, renderSummary, setRenderConfig } from "./section-renderers";++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++const COLOR_HEX = "#DC2626";++function freshSections(): ResumeData["sections"] {+ return structuredClone(defaultResumeData.sections);+}++beforeEach(() => {+ setRenderConfig({+ headingFont: "Arial",+ headingSizeHalfPt: 28,+ bodyFont: "Calibri",+ bodySizeHalfPt: 22,+ textColorHex: "#000000",+ primaryColorHex: "#DC2626",+ });+});++// ---------------------------------------------------------------------------+// renderSummary+// ---------------------------------------------------------------------------++describe("renderSummary", () => {+ it("renders summary with title and content", () => {+ const summary = { title: "Summary", columns: 1, hidden: false, content: "<p>A great developer</p>" };+ const result = renderSummary(summary, COLOR_HEX);+ expect(result.length).toBeGreaterThan(0);+ // First paragraph should be the heading+ expect(result[0]).toBeInstanceOf(Paragraph);+ });++ it("returns empty array when summary is hidden", () => {+ const summary = { title: "Summary", columns: 1, hidden: true, content: "<p>Hidden</p>" };+ expect(renderSummary(summary, COLOR_HEX)).toHaveLength(0);+ });++ it("returns empty array when content is empty", () => {+ const summary = { title: "Summary", columns: 1, hidden: false, content: "" };+ expect(renderSummary(summary, COLOR_HEX)).toHaveLength(0);+ });++ it("skips heading when title is empty", () => {+ const summary = { title: "", columns: 1, hidden: false, content: "<p>Content only</p>" };+ const result = renderSummary(summary, COLOR_HEX);+ // Should have content paragraphs but no heading+ expect(result.length).toBeGreaterThan(0);+ });+});++// ---------------------------------------------------------------------------+// renderBuiltInSection — experience+// ---------------------------------------------------------------------------++describe("renderBuiltInSection — experience", () => {+ it("renders experience items with company and position", () => {+ const sections = freshSections();+ sections.experience.title = "Experience";+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "Acme Corp",+ position: "Engineer",+ location: "NYC",+ period: "2020 - 2022",+ website: { url: "https://acme.com", label: "Acme" },+ description: "<p>Built things</p>",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1); // heading + item paragraphs+ expect(result[0]).toBeInstanceOf(Paragraph);+ });++ it("returns empty for hidden section", () => {+ const sections = freshSections();+ sections.experience.hidden = true;+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "Co",+ position: "Dev",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ expect(result).toHaveLength(0);+ });++ it("returns empty when all items are hidden", () => {+ const sections = freshSections();+ sections.experience.items = [+ {+ id: "e1",+ hidden: true,+ company: "Co",+ position: "Dev",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ expect(result).toHaveLength(0);+ });++ it("renders experience with roles", () => {+ const sections = freshSections();+ sections.experience.title = "Experience";+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "BigCo",+ position: "",+ location: "SF",+ period: "2018 - 2024",+ website: { url: "", label: "" },+ description: "",+ roles: [+ { id: "r1", position: "Senior Dev", period: "2022 - 2024", description: "<p>Led team</p>" },+ { id: "r2", position: "Junior Dev", period: "2018 - 2022", description: "<p>Learned things</p>" },+ ],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ // Should have heading + company title + location + role1 + role1 desc + role2 + role2 desc+ expect(result.length).toBeGreaterThanOrEqual(5);+ });++ it("filters out hidden items", () => {+ const sections = freshSections();+ sections.experience.title = "Experience";+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "Visible",+ position: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ {+ id: "e2",+ hidden: true,+ company: "Hidden",+ position: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ expect(result.length).toBeGreaterThan(0);+ });+});++// ---------------------------------------------------------------------------+// renderBuiltInSection — skills+// ---------------------------------------------------------------------------++describe("renderBuiltInSection — skills", () => {+ it("renders skills with name, proficiency, and keywords", () => {+ const sections = freshSections();+ sections.skills.title = "Skills";+ sections.skills.items = [+ {+ id: "s1",+ hidden: false,+ icon: "",+ name: "TypeScript",+ proficiency: "Advanced",+ level: 4,+ keywords: ["frontend", "backend"],+ },+ ];++ const result = renderBuiltInSection("skills", sections.skills, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1); // heading + skill+ });++ it("renders skills without proficiency or keywords", () => {+ const sections = freshSections();+ sections.skills.title = "Skills";+ sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] },+ ];++ const result = renderBuiltInSection("skills", sections.skills, COLOR_HEX);+ expect(result.length).toBe(2); // heading + skill name only+ });++ it("returns empty for empty items", () => {+ const sections = freshSections();+ const result = renderBuiltInSection("skills", sections.skills, COLOR_HEX);+ expect(result).toHaveLength(0);+ });+});++// ---------------------------------------------------------------------------+// renderBuiltInSection — education+// ---------------------------------------------------------------------------++describe("renderBuiltInSection — education", () => {+ it("renders education with degree, area, and grade", () => {+ const sections = freshSections();+ sections.education.title = "Education";+ sections.education.items = [+ {+ id: "ed1",+ hidden: false,+ school: "MIT",+ degree: "BSc",+ area: "CS",+ grade: "4.0",+ location: "Cambridge",+ period: "2016 - 2020",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("education", sections.education, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("skips grade paragraph when grade is empty", () => {+ const sections = freshSections();+ sections.education.title = "Education";+ sections.education.items = [+ {+ id: "ed1",+ hidden: false,+ school: "MIT",+ degree: "BSc",+ area: "",+ grade: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("education", sections.education, COLOR_HEX);+ // heading + title only (no grade, no location, no description, no website)+ expect(result).toHaveLength(2);+ });+});++// ---------------------------------------------------------------------------+// renderBuiltInSection — languages+// ---------------------------------------------------------------------------++describe("renderBuiltInSection — languages", () => {+ it("renders language with fluency", () => {+ const sections = freshSections();+ sections.languages.title = "Languages";+ sections.languages.items = [{ id: "l1", hidden: false, language: "English", fluency: "Native", level: 5 }];++ const result = renderBuiltInSection("languages", sections.languages, COLOR_HEX);+ expect(result.length).toBe(2); // heading + language+ });++ it("renders language without fluency", () => {+ const sections = freshSections();+ sections.languages.title = "Languages";+ sections.languages.items = [{ id: "l1", hidden: false, language: "Spanish", fluency: "", level: 0 }];++ const result = renderBuiltInSection("languages", sections.languages, COLOR_HEX);+ expect(result.length).toBe(2);+ });+});++// ---------------------------------------------------------------------------+// renderBuiltInSection — other sections+// ---------------------------------------------------------------------------++describe("renderBuiltInSection — other sections", () => {+ it("renders profiles with network and username", () => {+ const sections = freshSections();+ sections.profiles.title = "Profiles";+ sections.profiles.items = [+ {+ id: "p1",+ hidden: false,+ icon: "",+ network: "GitHub",+ username: "janedoe",+ website: { url: "https://github.com/janedoe", label: "GitHub" },+ },+ ];++ const result = renderBuiltInSection("profiles", sections.profiles, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders awards with title and awarder", () => {+ const sections = freshSections();+ sections.awards.title = "Awards";+ sections.awards.items = [+ {+ id: "a1",+ hidden: false,+ title: "Best Dev",+ awarder: "Company",+ date: "2024",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("awards", sections.awards, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders certifications", () => {+ const sections = freshSections();+ sections.certifications.title = "Certifications";+ sections.certifications.items = [+ {+ id: "c1",+ hidden: false,+ title: "AWS",+ issuer: "Amazon",+ date: "2023",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("certifications", sections.certifications, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders publications", () => {+ const sections = freshSections();+ sections.publications.title = "Publications";+ sections.publications.items = [+ {+ id: "pub1",+ hidden: false,+ title: "My Paper",+ publisher: "IEEE",+ date: "2024",+ website: { url: "", label: "" },+ description: "<p>Research</p>",+ },+ ];++ const result = renderBuiltInSection("publications", sections.publications, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders volunteer section", () => {+ const sections = freshSections();+ sections.volunteer.title = "Volunteer";+ sections.volunteer.items = [+ {+ id: "v1",+ hidden: false,+ organization: "Red Cross",+ location: "NYC",+ period: "2023",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("volunteer", sections.volunteer, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders references with position and phone", () => {+ const sections = freshSections();+ sections.references.title = "References";+ sections.references.items = [+ {+ id: "r1",+ hidden: false,+ name: "John",+ position: "CTO",+ phone: "+1234567890",+ website: { url: "", label: "" },+ description: "<p>Great dev</p>",+ },+ ];++ const result = renderBuiltInSection("references", sections.references, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });++ it("renders interests with keywords", () => {+ const sections = freshSections();+ sections.interests.title = "Interests";+ sections.interests.items = [{ id: "i1", hidden: false, icon: "", name: "Gaming", keywords: ["RPG", "Strategy"] }];++ const result = renderBuiltInSection("interests", sections.interests, COLOR_HEX);+ expect(result.length).toBe(2);+ });++ it("renders projects with period and website", () => {+ const sections = freshSections();+ sections.projects.title = "Projects";+ sections.projects.items = [+ {+ id: "proj1",+ hidden: false,+ name: "My App",+ period: "2024",+ website: { url: "https://app.com", label: "App" },+ description: "<p>A cool app</p>",+ },+ ];++ const result = renderBuiltInSection("projects", sections.projects, COLOR_HEX);+ expect(result.length).toBeGreaterThan(2); // heading + title + description + website+ });+});++// ---------------------------------------------------------------------------+// renderCustomSection+// ---------------------------------------------------------------------------++describe("renderCustomSection", () => {+ it("renders custom experience-typed section", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "experience",+ title: "Freelance",+ columns: 1,+ hidden: false,+ items: [+ {+ id: "ci1",+ hidden: false,+ company: "Client A",+ position: "Contractor",+ location: "Remote",+ period: "2023",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ],+ };++ const result = renderCustomSection(custom, COLOR_HEX);+ expect(result.length).toBeGreaterThan(0);+ });++ it("returns empty for hidden custom section", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "skills",+ title: "Hidden",+ columns: 1,+ hidden: true,+ items: [{ id: "ci1", hidden: false, icon: "", name: "Skill", proficiency: "", level: 0, keywords: [] }],+ };++ expect(renderCustomSection(custom, COLOR_HEX)).toHaveLength(0);+ });++ it("returns empty when all items are hidden", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "skills",+ title: "Skills",+ columns: 1,+ hidden: false,+ items: [{ id: "ci1", hidden: true, icon: "", name: "Skill", proficiency: "", level: 0, keywords: [] }],+ };++ expect(renderCustomSection(custom, COLOR_HEX)).toHaveLength(0);+ });++ it("renders summary-type custom section", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "summary",+ title: "Cover Note",+ columns: 1,+ hidden: false,+ items: [{ id: "ci1", hidden: false, content: "<p>Hello there</p>" }],+ };++ const result = renderCustomSection(custom, COLOR_HEX);+ expect(result.length).toBeGreaterThan(0);+ });++ it("renders cover-letter-type custom section", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "cover-letter",+ title: "Cover Letter",+ columns: 1,+ hidden: false,+ items: [+ {+ id: "ci1",+ hidden: false,+ recipient: "<p>Dear Hiring Manager</p>",+ content: "<p>I am writing to apply...</p>",+ },+ ],+ };++ const result = renderCustomSection(custom, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1); // heading + recipient + content+ });++ it("renders skills-typed custom section", () => {+ const custom: CustomSection = {+ id: "custom-1",+ type: "skills",+ title: "Soft Skills",+ columns: 1,+ hidden: false,+ items: [+ { id: "ci1", hidden: false, icon: "", name: "Leadership", proficiency: "Expert", level: 5, keywords: [] },+ ],+ };++ const result = renderCustomSection(custom, COLOR_HEX);+ expect(result.length).toBeGreaterThan(1);+ });+});++// ---------------------------------------------------------------------------+// setRenderConfig+// ---------------------------------------------------------------------------++describe("setRenderConfig", () => {+ it("configures typography that affects all renderers", () => {+ setRenderConfig({+ headingFont: "Georgia",+ headingSizeHalfPt: 32,+ bodyFont: "Times New Roman",+ bodySizeHalfPt: 24,+ textColorHex: "#333333",+ primaryColorHex: "#0000FF",+ });++ const sections = freshSections();+ sections.skills.title = "Skills";+ sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "Test", proficiency: "", level: 0, keywords: [] },+ ];++ const result = renderBuiltInSection("skills", sections.skills, "#0000FF");+ // Should not crash and should produce paragraphs+ expect(result.length).toBeGreaterThan(0);+ });+});++// ---------------------------------------------------------------------------+// Edge cases+// ---------------------------------------------------------------------------++describe("edge cases", () => {+ it("handles website with unsafe URL (no website paragraph added)", () => {+ const sections = freshSections();+ sections.experience.title = "Experience";+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "Co",+ position: "Dev",+ location: "",+ period: "",+ website: { url: "javascript:alert(1)", label: "Evil" },+ description: "",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ // Should still render without the unsafe website+ expect(result.length).toBeGreaterThan(0);+ });++ it("handles items with only minimal data", () => {+ const sections = freshSections();+ sections.awards.title = "Awards";+ sections.awards.items = [+ {+ id: "a1",+ hidden: false,+ title: "Award",+ awarder: "",+ date: "",+ website: { url: "", label: "" },+ description: "",+ },+ ];++ const result = renderBuiltInSection("awards", sections.awards, COLOR_HEX);+ expect(result).toHaveLength(2); // heading + title only+ });++ it("handles experience with empty description and no location", () => {+ const sections = freshSections();+ sections.experience.title = "Experience";+ sections.experience.items = [+ {+ id: "e1",+ hidden: false,+ company: "Co",+ position: "Dev",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ];++ const result = renderBuiltInSection("experience", sections.experience, COLOR_HEX);+ // heading + title/subtitle only+ expect(result).toHaveLength(2);+ });+});diff --git a/src/utils/resume/move-item.test.ts b/src/utils/resume/move-item.test.tsnew file mode 100644index 000000000..84cecf05f--- /dev/null+++ b/src/utils/resume/move-item.test.ts@@ -0,0 +1,468 @@+import { produce } from "immer";+import { beforeEach, describe, expect, it, vi } from "vite-plus/test";++import { type ResumeData, defaultResumeData } from "@/schema/resume/data";++import {+ addItemToSection,+ createCustomSectionWithItem,+ createPageWithSection,+ getCompatibleMoveTargets,+ getSourceSectionTitle,+ removeItemFromSource,+} from "./move-item";++// ---------------------------------------------------------------------------+// Mocks+// ---------------------------------------------------------------------------++// Mock getSectionTitle — it uses @lingui/core/macro `t` which isn't available in tests+vi.mock("./section", () => ({+ getSectionTitle: (type: string) => type.charAt(0).toUpperCase() + type.slice(1),+}));++// Mock generateId to return deterministic values+let idCounter = 0;+vi.mock("@/utils/string", () => ({+ generateId: () => `mock-id-${++idCounter}`,+}));++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function freshResume(): ResumeData {+ return structuredClone(defaultResumeData);+}++function resumeWithSkills(): ResumeData {+ const data = freshResume();+ data.sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "JS", proficiency: "Advanced", level: 4, keywords: ["frontend"] },+ { id: "s2", hidden: false, icon: "", name: "TS", proficiency: "Intermediate", level: 3, keywords: [] },+ { id: "s3", hidden: false, icon: "", name: "Rust", proficiency: "Beginner", level: 1, keywords: [] },+ ];+ return data;+}++function resumeWithCustomSections(): ResumeData {+ const data = freshResume();+ data.customSections = [+ {+ id: "custom-exp-1",+ type: "experience",+ title: "Freelance Work",+ columns: 1,+ hidden: false,+ items: [+ {+ id: "item-1",+ hidden: false,+ company: "Acme",+ position: "Dev",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ },+ ],+ },+ {+ id: "custom-skills-1",+ type: "skills",+ title: "Soft Skills",+ columns: 1,+ hidden: false,+ items: [{ id: "cs1", hidden: false, icon: "", name: "Leadership", proficiency: "", level: 0, keywords: [] }],+ },+ ];+ // Add custom sections to the layout+ data.metadata.layout.pages[0].main.push("custom-exp-1");+ data.metadata.layout.pages[0].sidebar.push("custom-skills-1");+ return data;+}++function resumeWithMultiplePages(): ResumeData {+ const data = resumeWithCustomSections();+ data.metadata.layout.pages.push({+ fullWidth: false,+ main: ["experience"],+ sidebar: ["skills"],+ });+ return data;+}++beforeEach(() => {+ idCounter = 0;+});++// ---------------------------------------------------------------------------+// getSourceSectionTitle+// ---------------------------------------------------------------------------++describe("getSourceSectionTitle", () => {+ it("returns the default section title for a standard section", () => {+ const data = freshResume();+ const title = getSourceSectionTitle(data, "experience");+ expect(title).toBe("Experience");+ });++ it("returns the custom section title when customSectionId is provided", () => {+ const data = resumeWithCustomSections();+ const title = getSourceSectionTitle(data, "experience", "custom-exp-1");+ expect(title).toBe("Freelance Work");+ });++ it("falls back to default title when customSectionId doesn't match", () => {+ const data = resumeWithCustomSections();+ const title = getSourceSectionTitle(data, "experience", "nonexistent-id");+ expect(title).toBe("Experience");+ });++ it("returns the default title for various section types", () => {+ const data = freshResume();+ expect(getSourceSectionTitle(data, "skills")).toBe("Skills");+ expect(getSourceSectionTitle(data, "education")).toBe("Education");+ expect(getSourceSectionTitle(data, "projects")).toBe("Projects");+ });+});++// ---------------------------------------------------------------------------+// getCompatibleMoveTargets+// ---------------------------------------------------------------------------++describe("getCompatibleMoveTargets", () => {+ it("returns empty sections for each page when no compatible targets exist", () => {+ const data = freshResume();+ const targets = getCompatibleMoveTargets(data, "skills", undefined);++ // The source section (skills) itself should be excluded+ // All other sections have different types, so no compatible targets+ expect(targets).toHaveLength(1);+ expect(targets[0].sections).toHaveLength(0);+ });++ it("finds custom sections with matching type as move targets", () => {+ const data = resumeWithCustomSections();+ // Source is the standard "skills" section+ const targets = getCompatibleMoveTargets(data, "skills", undefined);++ const allSections = targets.flatMap((p) => p.sections);+ expect(allSections.some((s) => s.sectionId === "custom-skills-1")).toBe(true);+ });++ it("excludes the source section from targets", () => {+ const data = resumeWithCustomSections();+ // Source is the custom skills section+ const targets = getCompatibleMoveTargets(data, "skills", "custom-skills-1");++ const allSections = targets.flatMap((p) => p.sections);+ expect(allSections.some((s) => s.sectionId === "custom-skills-1")).toBe(false);+ // But standard "skills" should be included+ expect(allSections.some((s) => s.sectionId === "skills")).toBe(true);+ });++ it("excludes the standard source section when sourceSectionId is undefined", () => {+ const data = resumeWithCustomSections();+ const targets = getCompatibleMoveTargets(data, "experience", undefined);++ const allSections = targets.flatMap((p) => p.sections);+ // Standard "experience" should be excluded (it's the source)+ expect(allSections.some((s) => s.sectionId === "experience")).toBe(false);+ // Custom experience section should be included+ expect(allSections.some((s) => s.sectionId === "custom-exp-1")).toBe(true);+ });++ it("returns targets across multiple pages", () => {+ const data = resumeWithMultiplePages();+ const targets = getCompatibleMoveTargets(data, "skills", "custom-skills-1");++ expect(targets).toHaveLength(2);+ // Page 0 should have standard skills in sidebar+ const page0Sections = targets[0].sections;+ expect(page0Sections.some((s) => s.sectionId === "skills")).toBe(true);+ // Page 1 should also have skills in sidebar+ const page1Sections = targets[1].sections;+ expect(page1Sections.some((s) => s.sectionId === "skills")).toBe(true);+ });++ it("correctly labels standard vs custom sections", () => {+ const data = resumeWithCustomSections();+ const targets = getCompatibleMoveTargets(data, "skills", "custom-skills-1");++ const allSections = targets.flatMap((p) => p.sections);+ const standardSection = allSections.find((s) => s.sectionId === "skills");+ expect(standardSection?.isStandard).toBe(true);+ });++ it("correctly labels custom sections", () => {+ const data = resumeWithCustomSections();+ const targets = getCompatibleMoveTargets(data, "skills", undefined);++ const allSections = targets.flatMap((p) => p.sections);+ const customSection = allSections.find((s) => s.sectionId === "custom-skills-1");+ expect(customSection?.isStandard).toBe(false);+ expect(customSection?.sectionTitle).toBe("Soft Skills");+ });++ it("includes page index in results", () => {+ const data = resumeWithMultiplePages();+ const targets = getCompatibleMoveTargets(data, "experience", undefined);++ expect(targets[0].pageIndex).toBe(0);+ expect(targets[1].pageIndex).toBe(1);+ });++ it("returns no targets for a section type not present elsewhere", () => {+ const data = freshResume();+ const targets = getCompatibleMoveTargets(data, "awards", undefined);++ // awards only appears once in the layout+ const allSections = targets.flatMap((p) => p.sections);+ expect(allSections).toHaveLength(0);+ });+});++// ---------------------------------------------------------------------------+// removeItemFromSource+// ---------------------------------------------------------------------------++describe("removeItemFromSource", () => {+ it("removes an item from a standard section and returns it", () => {+ const data = resumeWithSkills();+ const result = produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "s2", "skills");+ expect(removed).not.toBeNull();+ expect(removed!.id).toBe("s2");+ });++ expect(result.sections.skills.items).toHaveLength(2);+ expect(result.sections.skills.items.every((i) => i.id !== "s2")).toBe(true);+ });++ it("removes the first item from a standard section", () => {+ const data = resumeWithSkills();+ const result = produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "s1", "skills");+ expect(removed!.id).toBe("s1");+ });++ expect(result.sections.skills.items).toHaveLength(2);+ expect(result.sections.skills.items[0].id).toBe("s2");+ });++ it("removes the last item from a standard section", () => {+ const data = resumeWithSkills();+ const result = produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "s3", "skills");+ expect(removed!.id).toBe("s3");+ });++ expect(result.sections.skills.items).toHaveLength(2);+ });++ it("returns null when item is not found in standard section", () => {+ const data = resumeWithSkills();+ produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "nonexistent", "skills");+ expect(removed).toBeNull();+ });+ });++ it("removes an item from a custom section", () => {+ const data = resumeWithCustomSections();+ const result = produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "item-1", "experience", "custom-exp-1");+ expect(removed).not.toBeNull();+ expect(removed!.id).toBe("item-1");+ });++ const customSection = result.customSections.find((s) => s.id === "custom-exp-1")!;+ expect(customSection.items).toHaveLength(0);+ });++ it("returns null when custom section is not found", () => {+ const data = resumeWithCustomSections();+ produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "item-1", "experience", "nonexistent");+ expect(removed).toBeNull();+ });+ });++ it("returns null when item is not in the custom section", () => {+ const data = resumeWithCustomSections();+ produce(data, (draft) => {+ const removed = removeItemFromSource(draft, "nonexistent", "experience", "custom-exp-1");+ expect(removed).toBeNull();+ });+ });+});++// ---------------------------------------------------------------------------+// addItemToSection+// ---------------------------------------------------------------------------++describe("addItemToSection", () => {+ it("adds an item to a standard section", () => {+ const data = freshResume();+ const newItem = { id: "new-1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ addItemToSection(draft, newItem, "skills", "skills");+ });++ expect(result.sections.skills.items).toHaveLength(1);+ expect(result.sections.skills.items[0].id).toBe("new-1");+ });++ it("adds an item to a custom section", () => {+ const data = resumeWithCustomSections();+ const newItem = { id: "new-2", hidden: false, icon: "", name: "Teamwork", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ addItemToSection(draft, newItem, "custom-skills-1", "skills");+ });++ const customSection = result.customSections.find((s) => s.id === "custom-skills-1")!;+ expect(customSection.items).toHaveLength(2);+ });++ it("does nothing when target custom section doesn't exist", () => {+ const data = freshResume();+ const newItem = { id: "new-3", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ addItemToSection(draft, newItem, "nonexistent-section", "skills");+ });++ // Nothing should change+ expect(result.sections.skills.items).toHaveLength(0);+ });++ it("appends to the end of an existing items array", () => {+ const data = resumeWithSkills();+ const newItem = { id: "s4", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ addItemToSection(draft, newItem, "skills", "skills");+ });++ expect(result.sections.skills.items).toHaveLength(4);+ expect(result.sections.skills.items[3].id).toBe("s4");+ });+});++// ---------------------------------------------------------------------------+// createCustomSectionWithItem+// ---------------------------------------------------------------------------++describe("createCustomSectionWithItem", () => {+ it("creates a new custom section with the given item", () => {+ const data = freshResume();+ const item = { id: "item-1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ const sectionId = createCustomSectionWithItem(draft, item, "skills", "Tech Skills", 0);+ expect(sectionId).toBe("mock-id-1");+ });++ expect(result.customSections).toHaveLength(1);+ expect(result.customSections[0].title).toBe("Tech Skills");+ expect(result.customSections[0].type).toBe("skills");+ expect(result.customSections[0].items).toHaveLength(1);+ expect(result.customSections[0].columns).toBe(1);+ expect(result.customSections[0].hidden).toBe(false);+ });++ it("adds the new section to the target page's main column", () => {+ const data = freshResume();+ const item = { id: "item-1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };+ const mainLengthBefore = data.metadata.layout.pages[0].main.length;++ const result = produce(data, (draft) => {+ createCustomSectionWithItem(draft, item, "skills", "Skills 2", 0);+ });++ expect(result.metadata.layout.pages[0].main).toHaveLength(mainLengthBefore + 1);+ expect(result.metadata.layout.pages[0].main).toContain("mock-id-1");+ });++ it("handles targeting a specific page index", () => {+ const data = resumeWithMultiplePages();+ const item = { id: "item-2", hidden: false, icon: "", name: "Python", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ createCustomSectionWithItem(draft, item, "skills", "More Skills", 1);+ });++ expect(result.metadata.layout.pages[1].main).toContain("mock-id-1");+ // Page 0 should be unchanged+ expect(result.metadata.layout.pages[0].main).not.toContain("mock-id-1");+ });++ it("handles out-of-bounds page index gracefully (no crash)", () => {+ const data = freshResume();+ const item = { id: "item-3", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ // Should not throw — the page just doesn't exist so nothing is pushed+ const result = produce(data, (draft) => {+ createCustomSectionWithItem(draft, item, "skills", "Skills", 99);+ });++ // Custom section still gets created+ expect(result.customSections).toHaveLength(1);+ // But no page was modified+ expect(result.metadata.layout.pages[0].main).not.toContain("mock-id-1");+ });+});++// ---------------------------------------------------------------------------+// createPageWithSection+// ---------------------------------------------------------------------------++describe("createPageWithSection", () => {+ it("creates a new page with a custom section", () => {+ const data = freshResume();+ const item = { id: "item-1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };+ const pagesBefore = data.metadata.layout.pages.length;++ const result = produce(data, (draft) => {+ createPageWithSection(draft, item, "skills", "New Skills Page");+ });++ expect(result.metadata.layout.pages).toHaveLength(pagesBefore + 1);+ const newPage = result.metadata.layout.pages[result.metadata.layout.pages.length - 1];+ expect(newPage.fullWidth).toBe(false);+ expect(newPage.main).toContain("mock-id-1");+ expect(newPage.sidebar).toHaveLength(0);+ });++ it("creates the custom section with correct properties", () => {+ const data = freshResume();+ const item = { id: "item-1", hidden: false, icon: "", name: "Go", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ createPageWithSection(draft, item, "skills", "Page 2 Skills");+ });++ expect(result.customSections).toHaveLength(1);+ expect(result.customSections[0].title).toBe("Page 2 Skills");+ expect(result.customSections[0].type).toBe("skills");+ expect(result.customSections[0].items).toHaveLength(1);+ });++ it("can create multiple pages in sequence", () => {+ const data = freshResume();+ const item1 = { id: "i1", hidden: false, icon: "", name: "A", proficiency: "", level: 0, keywords: [] };+ const item2 = { id: "i2", hidden: false, icon: "", name: "B", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ createPageWithSection(draft, item1, "skills", "Page 2");+ createPageWithSection(draft, item2, "skills", "Page 3");+ });++ expect(result.metadata.layout.pages).toHaveLength(3);+ expect(result.customSections).toHaveLength(2);+ });+});diff --git a/src/utils/resume/patch.test.ts b/src/utils/resume/patch.test.tsnew file mode 100644index 000000000..52b6e6cc5--- /dev/null+++ b/src/utils/resume/patch.test.ts@@ -0,0 +1,469 @@+import { describe, expect, it } from "vite-plus/test";++import { type ResumeData, defaultResumeData, resumeDataSchema } from "@/schema/resume/data";++import { ResumePatchError, applyResumePatches, jsonPatchOperationSchema } from "./patch";++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++/** Returns a deep clone of defaultResumeData to avoid cross-test mutation. */+function freshResume(): ResumeData {+ return structuredClone(defaultResumeData);+}++// ---------------------------------------------------------------------------+// jsonPatchOperationSchema+// ---------------------------------------------------------------------------++describe("jsonPatchOperationSchema", () => {+ it("accepts a valid 'add' operation", () => {+ const op = { op: "add", path: "/basics/name", value: "Jane" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("accepts a valid 'remove' operation", () => {+ const op = { op: "remove", path: "/basics/name" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("accepts a valid 'replace' operation", () => {+ const op = { op: "replace", path: "/basics/name", value: "Jane" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("accepts a valid 'move' operation", () => {+ const op = { op: "move", path: "/basics/name", from: "/basics/headline" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("accepts a valid 'copy' operation", () => {+ const op = { op: "copy", path: "/basics/headline", from: "/basics/name" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("accepts a valid 'test' operation", () => {+ const op = { op: "test", path: "/basics/name", value: "" };+ expect(jsonPatchOperationSchema.parse(op)).toEqual(op);+ });++ it("rejects an unknown op type", () => {+ expect(() => jsonPatchOperationSchema.parse({ op: "patch", path: "/foo" })).toThrow();+ });++ it("rejects 'move' without from", () => {+ expect(() => jsonPatchOperationSchema.parse({ op: "move", path: "/foo" })).toThrow();+ });++ it("rejects 'copy' without from", () => {+ expect(() => jsonPatchOperationSchema.parse({ op: "copy", path: "/foo" })).toThrow();+ });++ it("accepts 'add' with undefined value (z.any() allows it)", () => {+ // z.any() accepts undefined — this is valid at the schema level+ const result = jsonPatchOperationSchema.parse({ op: "add", path: "/foo" });+ expect(result.op).toBe("add");+ });++ it("accepts 'replace' with explicit value of null", () => {+ const result = jsonPatchOperationSchema.parse({ op: "replace", path: "/foo", value: null });+ expect(result.op).toBe("replace");+ });++ it("accepts 'test' with value of 0", () => {+ const result = jsonPatchOperationSchema.parse({ op: "test", path: "/foo", value: 0 });+ expect(result.op).toBe("test");+ });++ it("rejects operations without a path", () => {+ expect(() => jsonPatchOperationSchema.parse({ op: "remove" })).toThrow();+ });+});++// ---------------------------------------------------------------------------+// ResumePatchError+// ---------------------------------------------------------------------------++describe("ResumePatchError", () => {+ it("stores code, message, index, and operation", () => {+ const op = { op: "replace" as const, path: "/basics/name", value: "Jane" };+ const err = new ResumePatchError("TEST_OPERATION_FAILED", "test failed", 2, op);++ expect(err).toBeInstanceOf(Error);+ expect(err.name).toBe("ResumePatchError");+ expect(err.code).toBe("TEST_OPERATION_FAILED");+ expect(err.message).toBe("test failed");+ expect(err.index).toBe(2);+ expect(err.operation).toEqual(op);+ });++ it("has a proper prototype chain", () => {+ const err = new ResumePatchError("CODE", "msg", 0, { op: "remove", path: "/x" });+ expect(err instanceof ResumePatchError).toBe(true);+ expect(err instanceof Error).toBe(true);+ });+});++// ---------------------------------------------------------------------------+// applyResumePatches — success cases+// ---------------------------------------------------------------------------++describe("applyResumePatches", () => {+ describe("basic operations", () => {+ it("replaces a top-level string field", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/basics/name", value: "Alice" }]);++ expect(result.basics.name).toBe("Alice");+ });++ it("replaces a nested field", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [+ { op: "replace", path: "/basics/website/url", value: "https://example.com" },+ ]);++ expect(result.basics.website.url).toBe("https://example.com");+ });++ it("adds an item to a section's items array", () => {+ const data = freshResume();+ const newSkill = {+ id: "skill-1",+ hidden: false,+ icon: "",+ name: "TypeScript",+ proficiency: "Advanced",+ level: 4,+ keywords: ["frontend"],+ };+ const result = applyResumePatches(data, [{ op: "add", path: "/sections/skills/items/-", value: newSkill }]);++ expect(result.sections.skills.items).toHaveLength(1);+ expect(result.sections.skills.items[0].name).toBe("TypeScript");+ });++ it("removes an item from a section's items array", () => {+ const data = freshResume();+ data.sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "JS", proficiency: "", level: 0, keywords: [] },+ { id: "s2", hidden: false, icon: "", name: "TS", proficiency: "", level: 0, keywords: [] },+ ];++ const result = applyResumePatches(data, [{ op: "remove", path: "/sections/skills/items/0" }]);+ expect(result.sections.skills.items).toHaveLength(1);+ expect(result.sections.skills.items[0].name).toBe("TS");+ });++ it("applies multiple operations in sequence", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [+ { op: "replace", path: "/basics/name", value: "Bob" },+ { op: "replace", path: "/basics/email", value: "[email protected]" },+ { op: "replace", path: "/basics/headline", value: "Developer" },+ ]);++ expect(result.basics.name).toBe("Bob");+ expect(result.basics.email).toBe("[email protected]");+ expect(result.basics.headline).toBe("Developer");+ });++ it("does not mutate the original data", () => {+ const data = freshResume();+ const originalName = data.basics.name;+ applyResumePatches(data, [{ op: "replace", path: "/basics/name", value: "Mutated?" }]);++ expect(data.basics.name).toBe(originalName);+ });+ });++ describe("test operation", () => {+ it("succeeds when test value matches", () => {+ const data = freshResume();+ data.basics.name = "Alice";++ const result = applyResumePatches(data, [+ { op: "test", path: "/basics/name", value: "Alice" },+ { op: "replace", path: "/basics/name", value: "Bob" },+ ]);++ expect(result.basics.name).toBe("Bob");+ });++ it("throws ResumePatchError when test value does not match", () => {+ const data = freshResume();+ data.basics.name = "Alice";++ expect(() => applyResumePatches(data, [{ op: "test", path: "/basics/name", value: "Wrong" }])).toThrow(+ ResumePatchError,+ );+ });+ });++ describe("copy and move operations", () => {+ it("copies a value from one path to another", () => {+ const data = freshResume();+ data.basics.name = "Alice";++ const result = applyResumePatches(data, [{ op: "copy", path: "/basics/headline", from: "/basics/name" }]);++ expect(result.basics.headline).toBe("Alice");+ expect(result.basics.name).toBe("Alice");+ });++ it("moves a value between compatible paths", () => {+ const data = freshResume();+ data.basics.name = "Alice";++ // Move name to headline — both are strings, but move deletes the source.+ // Since the schema requires name to be a string, we replace it back after moving.+ const result = applyResumePatches(data, [+ { op: "move", path: "/basics/headline", from: "/basics/name" },+ { op: "add", path: "/basics/name", value: "" },+ ]);++ expect(result.basics.headline).toBe("Alice");+ expect(result.basics.name).toBe("");+ });+ });++ describe("metadata operations", () => {+ it("replaces the template", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/metadata/template", value: "pikachu" }]);+ expect(result.metadata.template).toBe("pikachu");+ });++ it("replaces design colors", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [+ { op: "replace", path: "/metadata/design/colors/primary", value: "rgba(0, 0, 255, 1)" },+ ]);+ expect(result.metadata.design.colors.primary).toBe("rgba(0, 0, 255, 1)");+ });++ it("toggles section visibility", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/sections/skills/hidden", value: true }]);+ expect(result.sections.skills.hidden).toBe(true);+ });++ it("replaces page margins", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/metadata/page/marginX", value: 20 }]);+ expect(result.metadata.page.marginX).toBe(20);+ });+ });++ describe("custom sections", () => {+ it("adds a custom section", () => {+ const data = freshResume();+ const customSection = {+ id: "custom-1",+ type: "experience",+ title: "Freelance",+ columns: 1,+ hidden: false,+ items: [],+ };++ const result = applyResumePatches(data, [{ op: "add", path: "/customSections/-", value: customSection }]);++ expect(result.customSections).toHaveLength(1);+ expect(result.customSections[0].title).toBe("Freelance");+ });++ it("removes a custom section by index", () => {+ const data = freshResume();+ data.customSections = [+ { id: "c1", type: "experience", title: "Freelance", columns: 1, hidden: false, items: [] },+ { id: "c2", type: "projects", title: "Side Projects", columns: 1, hidden: false, items: [] },+ ];++ const result = applyResumePatches(data, [{ op: "remove", path: "/customSections/0" }]);+ expect(result.customSections).toHaveLength(1);+ expect(result.customSections[0].id).toBe("c2");+ });+ });++ describe("picture operations", () => {+ it("replaces picture URL", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [+ { op: "replace", path: "/picture/url", value: "https://example.com/photo.jpg" },+ ]);+ expect(result.picture.url).toBe("https://example.com/photo.jpg");+ });++ it("toggles picture visibility", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/picture/hidden", value: true }]);+ expect(result.picture.hidden).toBe(true);+ });++ it("updates picture size within valid range", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/picture/size", value: 120 }]);+ expect(result.picture.size).toBe(120);+ });+ });++ // ---------------------------------------------------------------------------+ // applyResumePatches — error / edge cases+ // ---------------------------------------------------------------------------++ describe("error handling", () => {+ it("throws ResumePatchError for invalid path", () => {+ const data = freshResume();++ expect(() => applyResumePatches(data, [{ op: "replace", path: "/nonexistent/path", value: "x" }])).toThrow(+ ResumePatchError,+ );+ });++ it("throws ResumePatchError for unresolvable 'from' in move", () => {+ const data = freshResume();++ expect(() =>+ applyResumePatches(data, [{ op: "move", path: "/basics/name", from: "/nonexistent/field" }]),+ ).toThrow(ResumePatchError);+ });++ it("throws ResumePatchError for out-of-bounds array index", () => {+ const data = freshResume();++ expect(() => applyResumePatches(data, [{ op: "remove", path: "/sections/skills/items/999" }])).toThrow(+ ResumePatchError,+ );+ });++ it("throws when patch produces invalid resume data (e.g. wrong type)", () => {+ const data = freshResume();++ // Setting a boolean field to a string should fail schema validation+ expect(() =>+ applyResumePatches(data, [{ op: "replace", path: "/picture/hidden", value: "not-a-boolean" }]),+ ).toThrow();+ });++ it("throws when patch produces invalid resume data (picture size out of range)", () => {+ const data = freshResume();++ // picture.size must be 32-512+ expect(() => applyResumePatches(data, [{ op: "replace", path: "/picture/size", value: 9999 }])).toThrow();+ });++ it("handles empty operations array without error", () => {+ const data = freshResume();+ const result = applyResumePatches(data, []);++ // Should return equivalent data+ expect(result.basics.name).toBe(data.basics.name);+ });++ it("returns a valid ResumeData after patching", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/basics/name", value: "Valid" }]);++ expect(resumeDataSchema.safeParse(result).success).toBe(true);+ });+ });++ describe("layout operations", () => {+ it("replaces sidebar width", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [{ op: "replace", path: "/metadata/layout/sidebarWidth", value: 40 }]);+ expect(result.metadata.layout.sidebarWidth).toBe(40);+ });++ it("adds a section to a page layout", () => {+ const data = freshResume();+ const result = applyResumePatches(data, [+ { op: "add", path: "/metadata/layout/pages/0/sidebar/-", value: "custom-section-id" },+ ]);+ expect(result.metadata.layout.pages[0].sidebar).toContain("custom-section-id");+ });++ it("adds a new page to layout", () => {+ const data = freshResume();+ const newPage = { fullWidth: false, main: [], sidebar: [] };+ const result = applyResumePatches(data, [{ op: "add", path: "/metadata/layout/pages/-", value: newPage }]);+ expect(result.metadata.layout.pages).toHaveLength(2);+ });+ });++ // ---------------------------------------------------------------------------+ // Additional branch/edge case coverage+ // ---------------------------------------------------------------------------++ describe("test operation failures (applyPatch catch block)", () => {+ it("throws ResumePatchError when test op value mismatches (triggers catch)", () => {+ const data = freshResume();+ data.basics.name = "Real Name";++ try {+ applyResumePatches(data, [{ op: "test", path: "/basics/name", value: "Wrong Name" }]);+ expect.unreachable("Should have thrown");+ } catch (error) {+ expect(error).toBeInstanceOf(ResumePatchError);+ const patchErr = error as ResumePatchError;+ expect(patchErr.code).toBeTruthy();+ expect(patchErr.index).toBeDefined();+ expect(patchErr.operation).toBeDefined();+ }+ });++ it("ResumePatchError has correct operation in error", () => {+ const data = freshResume();+ data.basics.name = "Alice";++ const testOp = { op: "test" as const, path: "/basics/name", value: "Bob" };+ try {+ applyResumePatches(data, [testOp]);+ expect.unreachable("Should have thrown");+ } catch (error) {+ const patchErr = error as ResumePatchError;+ expect(patchErr.operation.path).toBe("/basics/name");+ }+ });+ });++ describe("schema validation after patch", () => {+ it("throws on negative picture size (below min)", () => {+ const data = freshResume();+ expect(() => applyResumePatches(data, [{ op: "replace", path: "/picture/size", value: -1 }])).toThrow();+ });++ it("falls back to default for invalid page format (schema uses .catch)", () => {+ const data = freshResume();+ // format has .catch("a4"), so invalid values fall back rather than throwing+ const result = applyResumePatches(data, [{ op: "replace", path: "/metadata/page/format", value: "tabloid" }]);+ expect(result.metadata.page.format).toBe("a4");+ });++ it("allows setting customSections to empty array", () => {+ const data = freshResume();+ data.customSections = [{ id: "c1", type: "experience", title: "X", columns: 1, hidden: false, items: [] }];++ const result = applyResumePatches(data, [{ op: "replace", path: "/customSections", value: [] }]);+ expect(result.customSections).toHaveLength(0);+ });+ });++ describe("replace at array index", () => {+ it("replaces a specific item in an array", () => {+ const data = freshResume();+ data.sections.skills.items = [+ { id: "s1", hidden: false, icon: "", name: "JS", proficiency: "", level: 0, keywords: [] },+ { id: "s2", hidden: false, icon: "", name: "TS", proficiency: "", level: 0, keywords: [] },+ ];++ const result = applyResumePatches(data, [+ { op: "replace", path: "/sections/skills/items/0/name", value: "JavaScript" },+ ]);+ expect(result.sections.skills.items[0].name).toBe("JavaScript");+ expect(result.sections.skills.items[1].name).toBe("TS");+ });+ });+});diff --git a/src/utils/resume/section-actions.test.ts b/src/utils/resume/section-actions.test.tsnew file mode 100644index 000000000..3307e22ef--- /dev/null+++ b/src/utils/resume/section-actions.test.ts@@ -0,0 +1,358 @@+import { produce } from "immer";+import { describe, expect, it } from "vite-plus/test";++import type { SectionItem } from "@/schema/resume/data";++import { type ResumeData, defaultResumeData } from "@/schema/resume/data";++import { createSectionItem, updateSectionItem } from "./section-actions";++// ---------------------------------------------------------------------------+// Helpers+// ---------------------------------------------------------------------------++function freshResume(): ResumeData {+ return structuredClone(defaultResumeData);+}++function resumeWithExperience(): ResumeData {+ const data = freshResume();+ data.sections.experience.items = [+ {+ id: "exp-1",+ hidden: false,+ company: "Acme Corp",+ position: "Engineer",+ location: "NYC",+ period: "2020-2022",+ website: { url: "", label: "" },+ description: "<p>Built things</p>",+ roles: [],+ },+ {+ id: "exp-2",+ hidden: false,+ company: "Beta Inc",+ position: "Senior Dev",+ location: "SF",+ period: "2022-2024",+ website: { url: "", label: "" },+ description: "<p>Led things</p>",+ roles: [],+ },+ ];+ return data;+}++function resumeWithCustomSection(): ResumeData {+ const data = freshResume();+ data.customSections = [+ {+ id: "custom-1",+ type: "skills",+ title: "Soft Skills",+ columns: 1,+ hidden: false,+ items: [{ id: "cs-1", hidden: false, icon: "", name: "Leadership", proficiency: "", level: 0, keywords: [] }],+ },+ ];+ return data;+}++// ---------------------------------------------------------------------------+// createSectionItem+// ---------------------------------------------------------------------------++describe("createSectionItem", () => {+ it("adds an item to an empty standard section", () => {+ const data = freshResume();+ const newItem = {+ id: "new-1",+ hidden: false,+ icon: "",+ name: "TypeScript",+ proficiency: "Advanced",+ level: 4,+ keywords: [],+ };++ const result = produce(data, (draft) => {+ createSectionItem(draft, "skills", newItem);+ });++ expect(result.sections.skills.items).toHaveLength(1);+ expect(result.sections.skills.items[0]).toEqual(newItem);+ });++ it("appends an item to a non-empty standard section", () => {+ const data = resumeWithExperience();+ const newExp = {+ id: "exp-3",+ hidden: false,+ company: "Gamma LLC",+ position: "CTO",+ location: "",+ period: "2024-",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ };++ const result = produce(data, (draft) => {+ createSectionItem(draft, "experience", newExp);+ });++ expect(result.sections.experience.items).toHaveLength(3);+ expect(result.sections.experience.items[2].id).toBe("exp-3");+ });++ it("adds an item to a custom section", () => {+ const data = resumeWithCustomSection();+ const newItem = { id: "cs-2", hidden: false, icon: "", name: "Teamwork", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ createSectionItem(draft, "skills", newItem, "custom-1");+ });++ const custom = result.customSections.find((s) => s.id === "custom-1")!;+ expect(custom.items).toHaveLength(2);+ });++ it("does nothing when custom section id doesn't exist", () => {+ const data = resumeWithCustomSection();+ const newItem = { id: "cs-3", hidden: false, icon: "", name: "X", proficiency: "", level: 0, keywords: [] };++ const result = produce(data, (draft) => {+ createSectionItem(draft, "skills", newItem, "nonexistent");+ });++ // Nothing should have changed+ expect(result.customSections[0].items).toHaveLength(1);+ expect(result.sections.skills.items).toHaveLength(0);+ });++ it("can add multiple items in sequence", () => {+ const data = freshResume();++ const result = produce(data, (draft) => {+ createSectionItem(draft, "skills", {+ id: "a",+ hidden: false,+ icon: "",+ name: "A",+ proficiency: "",+ level: 0,+ keywords: [],+ });+ createSectionItem(draft, "skills", {+ id: "b",+ hidden: false,+ icon: "",+ name: "B",+ proficiency: "",+ level: 0,+ keywords: [],+ });+ createSectionItem(draft, "skills", {+ id: "c",+ hidden: false,+ icon: "",+ name: "C",+ proficiency: "",+ level: 0,+ keywords: [],+ });+ });++ expect(result.sections.skills.items).toHaveLength(3);+ expect(result.sections.skills.items.map((i) => i.id)).toEqual(["a", "b", "c"]);+ });++ it("adds items to different section types", () => {+ const data = freshResume();++ const result = produce(data, (draft) => {+ createSectionItem(draft, "awards", {+ id: "a1",+ hidden: false,+ title: "Best Dev",+ awarder: "Company",+ date: "2024",+ website: { url: "", label: "" },+ description: "",+ });+ createSectionItem(draft, "education", {+ id: "e1",+ hidden: false,+ school: "MIT",+ degree: "BS",+ area: "CS",+ grade: "",+ location: "",+ period: "2016-2020",+ website: { url: "", label: "" },+ description: "",+ });+ });++ expect(result.sections.awards.items).toHaveLength(1);+ expect(result.sections.education.items).toHaveLength(1);+ });+});++// ---------------------------------------------------------------------------+// updateSectionItem+// ---------------------------------------------------------------------------++describe("updateSectionItem", () => {+ it("updates an existing item in a standard section", () => {+ const data = resumeWithExperience();++ const result = produce(data, (draft) => {+ updateSectionItem(draft, "experience", {+ id: "exp-1",+ hidden: false,+ company: "Acme Corp Updated",+ position: "Senior Engineer",+ location: "NYC",+ period: "2020-2023",+ website: { url: "", label: "" },+ description: "<p>Built more things</p>",+ roles: [],+ });+ });++ expect(result.sections.experience.items[0].company).toBe("Acme Corp Updated");+ expect(result.sections.experience.items[0].position).toBe("Senior Engineer");+ // Second item should be unchanged+ expect(result.sections.experience.items[1].company).toBe("Beta Inc");+ });++ it("updates the last item in a section", () => {+ const data = resumeWithExperience();++ const result = produce(data, (draft) => {+ updateSectionItem(draft, "experience", {+ id: "exp-2",+ hidden: true,+ company: "Beta Inc",+ position: "VP",+ location: "Remote",+ period: "2022-2024",+ website: { url: "https://beta.com", label: "Beta" },+ description: "",+ roles: [],+ });+ });++ expect(result.sections.experience.items[1].hidden).toBe(true);+ expect(result.sections.experience.items[1].position).toBe("VP");+ });++ it("does nothing when item id doesn't match any item in standard section", () => {+ const data = resumeWithExperience();++ const result = produce(data, (draft) => {+ updateSectionItem(draft, "experience", {+ id: "nonexistent",+ hidden: false,+ company: "Ghost",+ position: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ });+ });++ // Nothing should change+ expect(result.sections.experience.items).toHaveLength(2);+ expect(result.sections.experience.items[0].company).toBe("Acme Corp");+ });++ it("updates an item in a custom section", () => {+ const data = resumeWithCustomSection();++ const result = produce(data, (draft) => {+ updateSectionItem(+ draft,+ "skills",+ {+ id: "cs-1",+ hidden: false,+ icon: "star",+ name: "Communication",+ proficiency: "Expert",+ level: 5,+ keywords: ["soft"],+ },+ "custom-1",+ );+ });++ const section = result.customSections.find((s) => s.id === "custom-1")!;+ const item = section.items[0] as SectionItem<"skills">;++ expect(item.name).toBe("Communication");+ });++ it("does nothing when custom section id doesn't exist", () => {+ const data = resumeWithCustomSection();++ const result = produce(data, (draft) => {+ updateSectionItem(+ draft,+ "skills",+ { id: "cs-1", hidden: false, icon: "", name: "Updated", proficiency: "", level: 0, keywords: [] },+ "nonexistent",+ );+ });++ const section = result.customSections.find((s) => s.id === "custom-1")!;+ const item = section.items[0] as SectionItem<"skills">;++ expect(item.name).toBe("Leadership");+ });++ it("does nothing when item id doesn't match in custom section", () => {+ const data = resumeWithCustomSection();++ const result = produce(data, (draft) => {+ updateSectionItem(+ draft,+ "skills",+ { id: "nonexistent", hidden: false, icon: "", name: "X", proficiency: "", level: 0, keywords: [] },+ "custom-1",+ );+ });++ const section = result.customSections.find((s) => s.id === "custom-1")!;+ const item = section.items[0] as SectionItem<"skills">;++ expect(section.items).toHaveLength(1);+ expect(item.name).toBe("Leadership");+ });++ it("replaces the entire item object (not a merge)", () => {+ const data = resumeWithExperience();++ const result = produce(data, (draft) => {+ updateSectionItem(draft, "experience", {+ id: "exp-1",+ hidden: false,+ company: "New Company",+ position: "",+ location: "",+ period: "",+ website: { url: "", label: "" },+ description: "",+ roles: [],+ });+ });++ // position should be empty now — it's a full replace, not merge+ expect(result.sections.experience.items[0].position).toBe("");+ expect(result.sections.experience.items[0].company).toBe("New Company");+ });+});diff --git a/src/utils/resume/section-actions.ts b/src/utils/resume/section-actions.tsnew file mode 100644index 000000000..cf1242392--- /dev/null+++ b/src/utils/resume/section-actions.ts@@ -0,0 +1,43 @@+import type { WritableDraft } from "immer";++import type { ResumeData, SectionType } from "@/schema/resume/data";++/**+ * Pushes a new item into a section's items array.+ * Handles both built-in sections and custom sections.+ */+export function createSectionItem(+ draft: WritableDraft<ResumeData>,+ sectionKey: SectionType,+ formData: Record<string, unknown>,+ customSectionId?: string,+) {+ if (customSectionId) {+ const section = draft.customSections.find((s) => s.id === customSectionId);+ if (section) section.items.push(formData as never);+ } else {+ (draft.sections[sectionKey].items as unknown[]).push(formData);+ }+}++/**+ * Finds and replaces an existing item in a section's items array by id.+ * Handles both built-in sections and custom sections.+ */+export function updateSectionItem(+ draft: WritableDraft<ResumeData>,+ sectionKey: SectionType,+ formData: { id: string } & Record<string, unknown>,+ customSectionId?: string,+) {+ if (customSectionId) {+ const section = draft.customSections.find((s) => s.id === customSectionId);+ if (!section) return;+ const index = section.items.findIndex((item) => item.id === formData.id);+ if (index !== -1) section.items[index] = formData as never;+ } else {+ const items = draft.sections[sectionKey].items as Array<{ id: string }>;+ const index = items.findIndex((item) => item.id === formData.id);+ if (index !== -1) (items[index] as unknown as Record<string, unknown>) = formData;+ }+}diff --git a/src/utils/resume/tailor.test.ts b/src/utils/resume/tailor.test.tsindex 560c524f4..5959ba6cf 100644--- a/src/utils/resume/tailor.test.ts+++ b/src/utils/resume/tailor.test.ts@@ -612,3 +612,59 @@ describe("buildSkillSyncOperations", () => {expect(operations).toHaveLength(0);});});++// --- Additional edge cases for branch coverage ---++describe("tailorOutputToPatches — edge cases", () => {+ it("skips experience description patch when description is empty", () => {+ const output: TailorOutput = {+ ...emptyTailorOutput,+ experiences: [{ index: 0, description: "", roles: [] }],+ };++ const { operations } = tailorOutputToPatches(output, makeResumeData());+ const expDescOps = operations.filter((op) => op.path.includes("/description"));+ expect(expDescOps).toHaveLength(0);+ });++ it("skips reference description patch when description is empty", () => {+ const output: TailorOutput = {+ ...emptyTailorOutput,+ references: [{ index: 0, description: "" }],+ };++ const { operations } = tailorOutputToPatches(output, makeResumeData());+ const refDescOps = operations.filter((op) => op.path.includes("/references/"));+ expect(refDescOps).toHaveLength(0);+ });++ it("handles experience with null-like roles", () => {+ const output: TailorOutput = {+ ...emptyTailorOutput,+ experiences: [{ index: 0, description: "<p>Updated</p>" }],+ };++ const { operations } = tailorOutputToPatches(output, makeResumeData());+ expect(operations.some((op) => op.path.includes("/description"))).toBe(true);+ });++ it("handles skill with empty proficiency", () => {+ const output: TailorOutput = {+ ...emptyTailorOutput,+ skills: [{ name: "Go", keywords: [], proficiency: "", icon: "", isNew: true }],+ };++ const { newSkills } = tailorOutputToPatches(output, makeResumeData());+ expect(newSkills[0].proficiency).toBe("");+ });++ it("handles summary with undefined content", () => {+ const output: TailorOutput = {+ ...emptyTailorOutput,+ summary: { content: "" },+ };++ const { operations } = tailorOutputToPatches(output, makeResumeData());+ expect(operations.filter((op) => op.path === "/summary/content")).toHaveLength(0);+ });+});diff --git a/src/utils/style.test.ts b/src/utils/style.test.tsnew file mode 100644index 000000000..53fe467e9--- /dev/null+++ b/src/utils/style.test.ts@@ -0,0 +1,45 @@+import { describe, expect, it } from "vite-plus/test";++import { cn } from "./style";++describe("cn", () => {+ it("merges simple class names", () => {+ expect(cn("foo", "bar")).toBe("foo bar");+ });++ it("handles conditional classes (falsy values ignored)", () => {+ const falsyValue = false;+ expect(cn("base", falsyValue && "hidden", "active")).toBe("base active");+ });++ it("handles undefined and null", () => {+ expect(cn("base", undefined, null, "end")).toBe("base end");+ });++ it("merges Tailwind classes (last wins)", () => {+ expect(cn("p-4", "p-8")).toBe("p-8");+ });++ it("merges conflicting Tailwind utilities", () => {+ expect(cn("text-red-500", "text-blue-500")).toBe("text-blue-500");+ });++ it("keeps non-conflicting Tailwind classes", () => {+ const result = cn("p-4", "m-2", "text-red-500");+ expect(result).toContain("p-4");+ expect(result).toContain("m-2");+ expect(result).toContain("text-red-500");+ });++ it("handles empty input", () => {+ expect(cn()).toBe("");+ });++ it("handles array input", () => {+ expect(cn(["foo", "bar"])).toBe("foo bar");+ });++ it("handles object input", () => {+ expect(cn({ foo: true, bar: false, baz: true })).toBe("foo baz");+ });+});diff --git a/src/utils/theme.test.ts b/src/utils/theme.test.tsnew file mode 100644index 000000000..5da36441c--- /dev/null+++ b/src/utils/theme.test.ts@@ -0,0 +1,42 @@+import { describe, expect, it, vi } from "vite-plus/test";++vi.mock("@lingui/core/macro", () => ({+ msg: (strings: TemplateStringsArray) => ({ id: strings[0] }),+}));++vi.mock("@tanstack/react-start", () => {+ const chainable = () => new Proxy({}, { get: () => chainable });+ return {+ createIsomorphicFn: chainable,+ createServerFn: chainable,+ };+});++vi.mock("@tanstack/react-start/server", () => ({+ getCookie: () => undefined,+ setCookie: () => {},+}));++vi.mock("js-cookie", () => ({+ default: { get: () => undefined },+}));++import { isTheme } from "./theme";++describe("isTheme", () => {+ it("returns true for 'light'", () => {+ expect(isTheme("light")).toBe(true);+ });++ it("returns true for 'dark'", () => {+ expect(isTheme("dark")).toBe(true);+ });++ it("returns false for invalid theme strings", () => {+ expect(isTheme("auto")).toBe(false);+ expect(isTheme("system")).toBe(false);+ expect(isTheme("")).toBe(false);+ expect(isTheme("DARK")).toBe(false);+ expect(isTheme("Light")).toBe(false);+ });+});diff --git a/src/utils/url.test.ts b/src/utils/url.test.tsnew file mode 100644index 000000000..eaad11c5d--- /dev/null+++ b/src/utils/url.test.ts@@ -0,0 +1,24 @@+import { describe, expect, it } from "vite-plus/test";++import { createUrl } from "./url";++describe("createUrl", () => {+ it("returns empty strings for undefined url", () => {+ expect(createUrl()).toEqual({ url: "", label: "" });+ expect(createUrl(undefined)).toEqual({ url: "", label: "" });+ });++ it("uses url as label when label is not provided", () => {+ expect(createUrl("https://example.com")).toEqual({+ url: "https://example.com",+ label: "https://example.com",+ });+ });++ it("uses provided label", () => {+ expect(createUrl("https://example.com", "Example")).toEqual({+ url: "https://example.com",+ label: "Example",+ });+ });+});diff --git a/src/utils/url.ts b/src/utils/url.tsnew file mode 100644index 000000000..d8fc2bb70--- /dev/null+++ b/src/utils/url.ts@@ -0,0 +1,8 @@+/**+ * Creates a URL object with a url and label.+ * Returns empty strings if no URL is provided.+ */+export function createUrl(url?: string, label?: string): { url: string; label: string } {+ if (!url) return { url: "", label: "" };+ return { url, label: label || url };+}diff --git a/vite.config.ts b/vite.config.tsindex 9e08775a1..ec6e87db8 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,4 +1,5 @@import type { PluginOption } from "vite-plus";+import type { BuiltinReporters } from "vite-plus/test/reporters";import { lingui } from "@lingui/vite-plugin";import babel from "@rolldown/plugin-babel";@@ -11,6 +12,16 @@ import { defineConfig } from "vite-plus";const isVitest = Boolean(process.env.VITEST);+const testReporters: BuiltinReporters[] = [];++if (process.env.GITHUB_ACTIONS) {+ testReporters.push("github-actions");+} else if (process.env.AGENT) {+ testReporters.push("agent");+} else {+ testReporters.push("dot");+}+const plugins: PluginOption[] = [tanstackStart({ router: { semicolons: true, quoteStyle: "double" } }), viteReact()];if (!isVitest) {@@ -223,8 +234,28 @@ const config = defineConfig({},test: {- environment: "jsdom",- reporters: process.env.GITHUB_ACTIONS ? ["github-actions"] : ["dot"],+ environment: "happy-dom",+ reporters: testReporters,+ coverage: {+ provider: "v8",+ reporter: ["text", "html", "lcov", "json-summary"],+ reportsDirectory: "./coverage",+ include: [+ "src/utils/**/*.{ts,tsx}",+ "src/hooks/**/*.{ts,tsx}",+ "src/integrations/**/*.{ts,tsx}",+ "src/components/**/*.{ts,tsx}",+ "src/schema/**/*.{ts,tsx}",+ "src/dialogs/**/*.{ts,tsx}",+ ],+ exclude: ["**/*.test.{ts,tsx}", "**/*.d.ts", "**/node_modules/**", "src/components/ui/**"],+ thresholds: {+ statements: 32,+ branches: 37,+ functions: 20,+ lines: 31,+ },+ },},build: {