Skip to content

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!

test: add ~500 tests across web, utils, api, import, ai, db, email, auth (#3038)

Amruth Pillaide7baa5faf05
diff --git a/.env.example b/.env.example
index b085568a9..0bbb75149 100644
--- a/.env.example
+++ b/.env.example
@@ -98,4 +98,4 @@ GOOGLE_CLOUD_API_KEY=""
# Crowdin (optional)
# For translation tooling.
CROWDIN_PROJECT_ID=""
-CROWDIN_API_TOKEN=""
+CROWDIN_PERSONAL_TOKEN=""
diff --git a/.planning/codebase/INTEGRATIONS.md b/.planning/codebase/INTEGRATIONS.md
index 287c08f0f..66f9b9394 100644
--- a/.planning/codebase/INTEGRATIONS.md
+++ b/.planning/codebase/INTEGRATIONS.md
@@ -29,7 +29,7 @@
- Trusted providers for account linking (`packages/auth/src/config.ts`): `google`, `github`, `linkedin`.
**Translation / Localization:**
-- Crowdin — `CROWDIN_PROJECT_ID`, `CROWDIN_API_TOKEN` (env) / `CROWDIN_PERSONAL_TOKEN` (CI). Config in `crowdin.yml`; pull request automation labelled `l10n`. Source catalog `apps/web/locales/en-US.po`.
+- Crowdin — `CROWDIN_PROJECT_ID`, `CROWDIN_PERSONAL_TOKEN`. Config in `crowdin.yml`; pull request automation labelled `l10n`. Source catalog `apps/web/locales/en-US.po`.
**Font Catalog Tooling:**
- Google Fonts Developer API — `GOOGLE_CLOUD_API_KEY` consumed by `packages/scripts/fonts/generate.ts` hitting `https://www.googleapis.com/webfonts/v1/webfonts`. Output committed at `packages/fonts/src/webfontlist.json`.
@@ -163,7 +163,7 @@
- `FLAG_DISABLE_IMAGE_PROCESSING` — Skips Sharp resize/encode (useful on resource-constrained hardware).
**Optional tooling env vars:**
-- `CROWDIN_PROJECT_ID`, `CROWDIN_API_TOKEN` (or `CROWDIN_PERSONAL_TOKEN` in CI).
+- `CROWDIN_PROJECT_ID` and `CROWDIN_PERSONAL_TOKEN` for Crowdin translation sync.
- `GOOGLE_CLOUD_API_KEY` — For `packages/scripts/fonts/generate.ts`.
**Secrets location:**
diff --git a/apps/web/locales/af-ZA.po b/apps/web/locales/af-ZA.po
index d1e9b63f3..7d309430a 100644
--- a/apps/web/locales/af-ZA.po
+++ b/apps/web/locales/af-ZA.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: af\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Afrikaans\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Maak toe"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Het jy nie 'n rekening nie? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Skenk"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Voer asseblief die URL in waarheen jy wil skakel:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Ondersteun asseblief die projek"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume is 'n gratis en oopbron-hervatbouer wat die proses om j
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reaktiewe CV is gratis en oopbron. As dit jou gehelp het, oorweeg dit asseblief om te skenk."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/am-ET.po b/apps/web/locales/am-ET.po
index c90f130c4..b5b1004ec 100644
--- a/apps/web/locales/am-ET.po
+++ b/apps/web/locales/am-ET.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: am\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Amharic\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "ዲስኮርድ"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "አሰናብት"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "መለያ የለዎትም? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "ይለግሱ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "ሊያገናኙት የሚፈልጉትን URL እባክዎን ያስገ
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "እባክዎን ፕሮጀክቱን ይደግፉ"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume የየታሪክ መፍጠር፣ ማዘመን እና መ
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "ምላሽ ሰጪ የስራ ልምድ (Reactive) ነፃ እና ክፍት ምንጭ ነው። ከረዳዎት፣ እባክዎን መለገስን ያስቡበት።"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ar-SA.po b/apps/web/locales/ar-SA.po
index da4f54808..0f9f614f4 100644
--- a/apps/web/locales/ar-SA.po
+++ b/apps/web/locales/ar-SA.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ar\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Arabic\n"
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
@@ -1036,7 +1036,7 @@ msgstr "ديسكورد"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "رفض"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "ليس لديك حساب؟ <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "يتبرع"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "يُرجى إدخال عنوان URL الذي تريد الربط به:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "يرجى دعم المشروع"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume هي أداة إنشاء سيرة ذاتية مجاني
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "برنامج Reactive Resume مجاني ومفتوح المصدر. إذا أفادك، يُرجى التفكير في التبرع."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/az-AZ.po b/apps/web/locales/az-AZ.po
index 5b881fb41..abe72b59a 100644
--- a/apps/web/locales/az-AZ.po
+++ b/apps/web/locales/az-AZ.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: az\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Azerbaijani\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Ləğv et"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Hesabınız yoxdur? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Bağışlayın"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Link vermək istədiyiniz URL‑i daxil edin:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Layihəni dəstəkləyin"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume özgeçmişinizi yaratma, yeniləmə və paylaşma prose
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume pulsuz və açıq mənbəlidir. Əgər sizə kömək edibsə, zəhmət olmasa, ianə etməyi düşünün."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/bg-BG.po b/apps/web/locales/bg-BG.po
index e4b39b910..93f514048 100644
--- a/apps/web/locales/bg-BG.po
+++ b/apps/web/locales/bg-BG.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: bg\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Bulgarian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Отхвърляне"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Нямате акаунт? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Дарете"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Моля, въведете URL адреса, към който иска
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Моля, подкрепете проекта"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume е безплатен конструктор на авт
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume е безплатен и с отворен код. Ако ви е помогнал, моля, помислете за дарение."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/bn-BD.po b/apps/web/locales/bn-BD.po
index 555cbcdda..b5b6fcea4 100644
--- a/apps/web/locales/bn-BD.po
+++ b/apps/web/locales/bn-BD.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: bn\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Bengali\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "ডিসকর্ড"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "খারিজ করুন"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "অ্যাকাউন্ট নেই? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "দান করুন"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "যে URL‑এ লিংক করতে চান অনুগ্র
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "প্রকল্পটি সমর্থন করুন।"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume একটি বিনামূল্যের এবং
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "রিঅ্যাক্টিভ রেজ্যুমে বিনামূল্যে এবং ওপেন সোর্স। যদি এটি আপনাকে সাহায্য করে থাকে, তবে অনুগ্রহ করে অনুদান দেওয়ার কথা বিবেচনা করুন।"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ca-ES.po b/apps/web/locales/ca-ES.po
index 2564e92b1..a6fc64b3f 100644
--- a/apps/web/locales/ca-ES.po
+++ b/apps/web/locales/ca-ES.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ca\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Catalan\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Ignora"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "No teniu compte? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Introdueix l’URL al qual vols enllaçar:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Si us plau, doneu suport al projecte"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume és un creador de currículums gratuït i de codi obert
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume és gratuït i de codi obert. Si t'ha ajudat, considera fer una donació."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/cs-CZ.po b/apps/web/locales/cs-CZ.po
index 5127fd2b5..61d9fd54b 100644
--- a/apps/web/locales/cs-CZ.po
+++ b/apps/web/locales/cs-CZ.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: cs\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Czech\n"
"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Propustit"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nemáte účet? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Darovat"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Zadejte prosím URL, na kterou chcete odkazovat:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Prosím, podpořte projekt"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume je bezplatný nástroj pro tvorbu životopisů s otevře
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume je zdarma a má otevřený zdrojový kód. Pokud vám pomohl, zvažte prosím dar."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/da-DK.po b/apps/web/locales/da-DK.po
index 5f787a36d..5a188d31d 100644
--- a/apps/web/locales/da-DK.po
+++ b/apps/web/locales/da-DK.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: da\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Danish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Afskedige"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Har du ikke en konto? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donér"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Angiv den URL, du vil oprette et link til:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Støt venligst projektet"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume er en gratis og open-source CV-bygger, der forenkler pro
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume er gratis og open source. Hvis det har hjulpet dig, så overvej venligst at donere."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/de-DE.po b/apps/web/locales/de-DE.po
index 45192a498..3be72c173 100644
--- a/apps/web/locales/de-DE.po
+++ b/apps/web/locales/de-DE.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: de\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Zurückweisen"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Sie haben noch kein Konto? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Spenden"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Bitte geben Sie die URL ein, zu der Sie verlinken möchten:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Bitte unterstützen Sie das Projekt."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ist ein kostenloser und quelloffener Lebenslauf-Builder,
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume ist kostenlos und Open Source. Wenn es Ihnen geholfen hat, würden wir uns über eine Spende freuen."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/el-GR.po b/apps/web/locales/el-GR.po
index 6866b8ff2..ec0736f01 100644
--- a/apps/web/locales/el-GR.po
+++ b/apps/web/locales/el-GR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: el\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Greek\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Απολύω"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Δεν έχετε λογαριασμό; <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Προσφέρω"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Εισαγάγετε το URL στο οποίο θέλετε να γίν
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Παρακαλώ υποστηρίξτε το έργο"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Το Reactive Resume είναι ένας δωρεάν κατασκευα
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Το Reactive Resume είναι δωρεάν και ανοιχτού κώδικα. Αν σας έχει βοηθήσει, σκεφτείτε να κάνετε μια δωρεά."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/en-GB.po b/apps/web/locales/en-GB.po
index 12224d207..348e6c570 100644
--- a/apps/web/locales/en-GB.po
+++ b/apps/web/locales/en-GB.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: en_GB\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: English, United Kingdom\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Dismiss"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Don't have an account? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donate"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Please enter the URL you want to link to:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Please support the project"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume is a free and open-source resume builder that simplifies
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume is free and open source. If it has helped you, please consider donating."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/es-ES.po b/apps/web/locales/es-ES.po
index bdff51d59..80fb60d7a 100644
--- a/apps/web/locales/es-ES.po
+++ b/apps/web/locales/es-ES.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: es\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Spanish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Despedir"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "¿No tienes una cuenta? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Introduce la URL a la que quieres enlazar:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Por favor, apoyen el proyecto."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume es un creador de currículums gratuito y de código abie
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume es gratuito y de código abierto. Si te ha sido útil, considera hacer una donación."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/fa-IR.po b/apps/web/locales/fa-IR.po
index 81a9c1aca..2e20c3fba 100644
--- a/apps/web/locales/fa-IR.po
+++ b/apps/web/locales/fa-IR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: fa\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Persian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "دیسکورد"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "رد کردن"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "حساب ندارید؟ <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "اهدا کنید"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "لطفاً URL مورد نظر برای لینک دادن را وارد
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "لطفا از پروژه حمایت کنید"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume یک رزومه‌ساز رایگان و متن‌باز
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "رزومه واکنشی رایگان و متن‌باز است. اگر به شما کمک کرده است، لطفاً کمک مالی را در نظر بگیرید."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/fi-FI.po b/apps/web/locales/fi-FI.po
index 65c5adcbf..4f860a048 100644
--- a/apps/web/locales/fi-FI.po
+++ b/apps/web/locales/fi-FI.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: fi\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Finnish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Hylkää"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Eikö sinulla ole tiliä? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Lahjoittaa"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Syötä linkitettävä URL-osoite:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Tue projektia"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume on ilmainen ja avoimen lähdekoodin ansioluettelon laati
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume on ilmainen ja avoimen lähdekoodin työkalu. Jos siitä on ollut sinulle apua, harkitse lahjoittamista."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/fr-FR.po b/apps/web/locales/fr-FR.po
index 75db4e958..25bc5fd49 100644
--- a/apps/web/locales/fr-FR.po
+++ b/apps/web/locales/fr-FR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: fr\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: French\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Rejeter"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Vous n'avez pas de compte ? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Faire un don"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Veuillez saisir l'URL vers laquelle vous souhaitez rediriger :"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Veuillez soutenir le projet"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume est un outil de création de CV gratuit et open-source q
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume est un logiciel libre et gratuit. S'il vous a été utile, n'hésitez pas à faire un don."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/he-IL.po b/apps/web/locales/he-IL.po
index 9725a0ef9..be421e137 100644
--- a/apps/web/locales/he-IL.po
+++ b/apps/web/locales/he-IL.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: he\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Hebrew\n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
@@ -1036,7 +1036,7 @@ msgstr "דיסקורד"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "לְפַטֵר"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "אין לך חשבון? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "לִתְרוֹם"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "נא להזין את כתובת ה־URL שאליה ברצונך לקשר
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "אנא תמכו בפרויקט"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume הוא בונה קורות חיים חינמי בקוד
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "ריאקטיבי קורות חיים הם חינמיים ובקוד פתוח. אם זה עזר לך, אנא שקול לתרום."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/hi-IN.po b/apps/web/locales/hi-IN.po
index bcad43fa6..7bd8c162b 100644
--- a/apps/web/locales/hi-IN.po
+++ b/apps/web/locales/hi-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: hi\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Hindi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "डिस्कॉर्ड"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "नकार देना"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "खाता नहीं है? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "दान करें"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "कृपया वह URL दर्ज करें जिससे आ
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "कृपया इस परियोजना का समर्थन करें।"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume एक मुफ़्त और ओपन‑सोर
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "रिएक्टिव रिज्यूम मुफ़्त और ओपन सोर्स है। अगर इससे आपको मदद मिली है, तो कृपया दान करने पर विचार करें।"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/hu-HU.po b/apps/web/locales/hu-HU.po
index d5b7c8819..dc13316eb 100644
--- a/apps/web/locales/hu-HU.po
+++ b/apps/web/locales/hu-HU.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: hu\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Hungarian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Elvetés"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nincs fiókja? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Adományoz"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Kérjük, add meg a csatolni kívánt URL‑t:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Kérjük, támogassa a projektet"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "A Reactive Resume ingyenes és nyílt forráskódú önéletrajz készí
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "A Reactive Resume ingyenes és nyílt forráskódú. Ha segített, kérjük, fontold meg az adományozást."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/id-ID.po b/apps/web/locales/id-ID.po
index 940833459..0b627d22f 100644
--- a/apps/web/locales/id-ID.po
+++ b/apps/web/locales/id-ID.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: id\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Indonesian\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Membubarkan"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Belum punya akun? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Menyumbangkan"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Silakan masukkan URL yang ingin Anda tautkan:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Mohon dukung proyek ini."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume adalah pembuat resume gratis dan sumber terbuka yang men
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume gratis dan bersifat open source. Jika aplikasi ini bermanfaat bagi Anda, mohon pertimbangkan untuk berdonasi."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/it-IT.po b/apps/web/locales/it-IT.po
index 37dac6f60..271661a6a 100644
--- a/apps/web/locales/it-IT.po
+++ b/apps/web/locales/it-IT.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: it\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Italian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Congedare"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Non hai un account? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donare"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Inserisci l'URL a cui vuoi collegarti:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Per favore, sostenete il progetto."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume è un generatore di curriculum gratuito e open source ch
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume è gratuito e open source. Se ti è stato utile, considera la possibilità di fare una donazione."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ja-JP.po b/apps/web/locales/ja-JP.po
index ade6fa7d2..6f2a5620b 100644
--- a/apps/web/locales/ja-JP.po
+++ b/apps/web/locales/ja-JP.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ja\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Japanese\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "却下する"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "アカウントをお持ちでないですか? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "寄付する"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "リンク先の URL を入力してください:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "プロジェクトへのご支援をお願いいたします"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume は、履歴書の作成、更新、共有のプロセ
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resumeは無料のオープンソースソフトウェアです。もしお役に立てたなら、ぜひご寄付をご検討ください。"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/km-KH.po b/apps/web/locales/km-KH.po
index 15924fa97..988b84083 100644
--- a/apps/web/locales/km-KH.po
+++ b/apps/web/locales/km-KH.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: km\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Khmer\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "បដិសេធ"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "មិនមានគណនី? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "បរិច្ចាគ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "សូម​បញ្ចូល URL ដែល​អ្នក​ចង់
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "សូមជួយគាំទ្រគម្រោងនេះផង"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ជា​កម្មវិធី​បង្កើត
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume គឺឥតគិតថ្លៃ និងជាប្រភពបើកចំហ។ ប្រសិនបើវាបានជួយអ្នក សូមពិចារណាបរិច្ចាគ។"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/kn-IN.po b/apps/web/locales/kn-IN.po
index b59108ff8..93cd6e489 100644
--- a/apps/web/locales/kn-IN.po
+++ b/apps/web/locales/kn-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: kn\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Kannada\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "ಡಿಸ್ಕೋರ್ಡ್"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "ವಜಾಗೊಳಿಸಿ"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "ಖಾತೆ ಇಲ್ಲವೇ? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "ದಾನ ಮಾಡಿ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "ನೀವು ಲಿಂಕ್ ಮಾಡಲು ಬಯಸುವ URL ಅನ
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "ದಯವಿಟ್ಟು ಯೋಜನೆಯನ್ನು ಬೆಂಬಲಿಸಿ"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ನಿಮ್ಮ ರೆಸ್ಯೂಮ್ ಅನ್ನು
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "ರಿಯಾಕ್ಟಿವ್ ರೆಸ್ಯೂಮ್ ಉಚಿತ ಮತ್ತು ಮುಕ್ತ ಮೂಲವಾಗಿದೆ. ಇದು ನಿಮಗೆ ಸಹಾಯ ಮಾಡಿದ್ದರೆ, ದಯವಿಟ್ಟು ದಾನ ಮಾಡುವುದನ್ನು ಪರಿಗಣಿಸಿ."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ko-KR.po b/apps/web/locales/ko-KR.po
index 6854d5e53..c1a95292a 100644
--- a/apps/web/locales/ko-KR.po
+++ b/apps/web/locales/ko-KR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ko\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Korean\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "디스코드"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "해고하다"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "계정이 없으신가요? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "기부하세요"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "링크할 URL을 입력하세요:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "이 프로젝트를 지원해 주세요."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume는 이력서 작성, 업데이트 및 공유를 간단
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume는 무료 오픈 소스 소프트웨어입니다. 도움이 되셨다면 기부를 고려해 주세요."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/lt-LT.po b/apps/web/locales/lt-LT.po
index 622d066c4..33189f030 100644
--- a/apps/web/locales/lt-LT.po
+++ b/apps/web/locales/lt-LT.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: lt\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Lithuanian\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && (n%100>19 || n%100<11) ? 0 : (n%10>=2 && n%10<=9) && (n%100>19 || n%100<11) ? 1 : n%1!=0 ? 2: 3);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Atmesti"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Neturite paskyros? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Paaukoti"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Įveskite URL, su kuriuo norite susieti:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Prašome paremti projektą"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "„Reactive Resume“ – nemokama atvirojo kodo gyvenimo aprašymų kū
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "„Reactive Resume“ yra nemokamas ir atvirojo kodo. Jei jis jums padėjo, apsvarstykite galimybę paaukoti."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/lv-LV.po b/apps/web/locales/lv-LV.po
index 00913d437..499aaeec8 100644
--- a/apps/web/locales/lv-LV.po
+++ b/apps/web/locales/lv-LV.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: lv\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Latvian\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Noraidīt"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nav konta? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Ziedot"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Lūdzu, ievadiet URL, uz kuru vēlaties izveidot saiti:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Lūdzu, atbalstiet projektu"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ir bezmaksas un atvērtā pirmkoda CV veidotājs, kas vi
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive CV ir bezmaksas un atvērtā koda resurss. Ja tas jums ir palīdzējis, lūdzu, apsveriet iespēju ziedot."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ml-IN.po b/apps/web/locales/ml-IN.po
index 854dbd319..ed660d874 100644
--- a/apps/web/locales/ml-IN.po
+++ b/apps/web/locales/ml-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ml\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Malayalam\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "ഡിസ്‌കോർഡ്"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "നിരസിക്കുക"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "അക്കൗണ്ട് ഇല്ലേ? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "സംഭാവന ചെയ്യുക"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "നിങ്ങൾ ലിങ്ക് ചെയ്യാനാഗ്ര
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "ദയവായി പദ്ധതിയെ പിന്തുണയ്ക്കുക."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume നിങ്ങളുടെ റിസ്യൂം സൃ
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "റിയാക്ടീവ് റെസ്യൂമെ സൌജന്യവും ഓപ്പൺ സോഴ്‌സുമാണ്. ഇത് നിങ്ങൾക്ക് സഹായകരമായിട്ടുണ്ടെങ്കിൽ, ദയവായി സംഭാവന നൽകുന്നത് പരിഗണിക്കുക."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/mr-IN.po b/apps/web/locales/mr-IN.po
index 11f372406..f74eab5c9 100644
--- a/apps/web/locales/mr-IN.po
+++ b/apps/web/locales/mr-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: mr\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Marathi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "डिस्कॉर्ड"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "बरखास्त करा"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "खाते नाही? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "दान करा"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "कृपया तुम्हाला ज्या URL ला लि
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "कृपया प्रकल्पाला पाठिंबा द्या"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume हा मोफत आणि मुक्त-स्र
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "रिॲक्टिव्ह रिझ्युमे मोफत आणि ओपन सोर्स आहे. जर तुम्हाला याचा उपयोग झाला असेल, तर कृपया देणगी देण्याचा विचार करा."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ms-MY.po b/apps/web/locales/ms-MY.po
index b3230c593..c9400aa2e 100644
--- a/apps/web/locales/ms-MY.po
+++ b/apps/web/locales/ms-MY.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ms\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Malay\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Ketepikan"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Tiada akaun? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Derma"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Sila masukkan URL yang anda ingin pautkan:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Sila sokong projek ini"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ialah pembina resume percuma dan sumber terbuka yang men
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Resume Reaktif adalah percuma dan sumber terbuka. Jika ia telah membantu anda, sila pertimbangkan untuk menderma."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ne-NP.po b/apps/web/locales/ne-NP.po
index d344506e2..5d610bbcb 100644
--- a/apps/web/locales/ne-NP.po
+++ b/apps/web/locales/ne-NP.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ne\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Nepali\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "डिस्कोर्ड"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "खारेज गर्नुहोस्"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "खाता छैन? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "दान गर्नुहोस्"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "कृपया तपाईंले लिङ्क गर्न च
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "कृपया परियोजनालाई समर्थन गर्नुहोस्।"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume निःशुल्क र खुला-स्रो
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "प्रतिक्रियाशील रिजुमे नि:शुल्क र खुला स्रोत हो। यदि यसले तपाईंलाई मद्दत गरेको छ भने, कृपया दान गर्ने विचार गर्नुहोस्।"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/nl-NL.po b/apps/web/locales/nl-NL.po
index 577302c38..5a476c1b9 100644
--- a/apps/web/locales/nl-NL.po
+++ b/apps/web/locales/nl-NL.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: nl\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Dutch\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Afwijzen"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Heb je nog geen account? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Doneer"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Voer de URL in waarnaar u wilt linken:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Steun dit project alstublieft."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume is een gratis en open-source cv-bouwer die het proces va
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume is gratis en open source. Als het je geholpen heeft, overweeg dan een donatie."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/no-NO.po b/apps/web/locales/no-NO.po
index 80dd86f72..17b9178fc 100644
--- a/apps/web/locales/no-NO.po
+++ b/apps/web/locales/no-NO.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: no\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Norwegian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Avskjedige"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Har du ikke en konto? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donere"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Skriv inn URL-en du vil lenke til:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Vennligst støtt prosjektet"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume er en gratis og åpen kildekode CV-bygger som forenkler
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume er gratis og har åpen kildekode. Hvis det har hjulpet deg, bør du vurdere å donere."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/or-IN.po b/apps/web/locales/or-IN.po
index 257124ffe..fc5500845 100644
--- a/apps/web/locales/or-IN.po
+++ b/apps/web/locales/or-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: or\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Odia\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "ଡିସକର୍ଡ (Discord)"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "ଖାରଜ କରନ୍ତୁ"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "ଖାତା ନାହିଁ? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "ଦାନ କରନ୍ତୁ"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "ଦୟାକରି ଯେଉଁ URL କୁ ଲିଙ୍କ କରିବ
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "ଦୟାକରି ପ୍ରୋଜେକ୍ଟକୁ ସମର୍ଥନ କରନ୍ତୁ।"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume ଏକ ନିଶୁଳ୍କ ଏବଂ ଖୋଲା‑
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "ପ୍ରତିକ୍ରିୟାଶୀଳ ରିଜ୍ୟୁମ୍ ମାଗଣା ଏବଂ ଖୋଲା ଉତ୍ସ। ଯଦି ଏହା ଆପଣଙ୍କୁ ସାହାଯ୍ୟ କରିଛି, ଦୟାକରି ଦାନ କରିବାକୁ ବିଚାର କରନ୍ତୁ।"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/pl-PL.po b/apps/web/locales/pl-PL.po
index a8624e0b7..36dc78228 100644
--- a/apps/web/locales/pl-PL.po
+++ b/apps/web/locales/pl-PL.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: pl\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Polish\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Odrzucać"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nie masz konta? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Podarować"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Wpisz adres URL, do którego chcesz utworzyć link:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Proszę wesprzeć projekt"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume to darmowy i open-source'owy kreator CV, który upraszcz
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume jest darmowy i ma otwarte oprogramowanie. Jeśli Ci pomogło, rozważ przekazanie darowizny."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/pt-BR.po b/apps/web/locales/pt-BR.po
index 0c8f7c966..3824a8887 100644
--- a/apps/web/locales/pt-BR.po
+++ b/apps/web/locales/pt-BR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: pt\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Portuguese, Brazilian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Liberar"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Não tem uma conta? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Doar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Insira o URL para o qual você deseja criar o link:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Por favor, apoie o projeto."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "O Reactive Resume é um criador de currículos gratuito e de código abe
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "O Reactive Resume é gratuito e de código aberto. Se ele lhe foi útil, considere fazer uma doação."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/pt-PT.po b/apps/web/locales/pt-PT.po
index 0a2768054..f5bdc39dd 100644
--- a/apps/web/locales/pt-PT.po
+++ b/apps/web/locales/pt-PT.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: pt\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Portuguese\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Dispensar"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Não tem uma conta? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Doar"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Introduza o URL para o qual pretende criar o link:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Por favor, apoie o projeto."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "O Reactive Resume é um criador de currículos gratuito e de código abe
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "O Reactive Resume é gratuito e de código aberto. Se ele lhe foi útil, considere fazer um donativo."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ro-RO.po b/apps/web/locales/ro-RO.po
index 885de226e..81ab967bb 100644
--- a/apps/web/locales/ro-RO.po
+++ b/apps/web/locales/ro-RO.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ro\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Romanian\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100>0 && n%100<20)) ? 1 : 2);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Închide"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nu ai un cont? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Dona"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Introduceți URL-ul la care doriți să faceți link:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Vă rugăm să susțineți proiectul"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume este un constructor de CV-uri gratuit și open-source ca
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume este gratuit și open source. Dacă te-a ajutat, te rugăm să iei în considerare o donație."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ru-RU.po b/apps/web/locales/ru-RU.po
index 88313e316..ac80a5b54 100644
--- a/apps/web/locales/ru-RU.po
+++ b/apps/web/locales/ru-RU.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ru\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Russian\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Увольнять"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Нет аккаунта? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Пожертвовать"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Введите URL, на который вы хотите постави
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Пожалуйста, поддержите проект."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume — бесплатный конструктор резю
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume — бесплатный проект с открытым исходным кодом. Если он вам помог, пожалуйста, рассмотрите возможность пожертвования."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/sk-SK.po b/apps/web/locales/sk-SK.po
index f8d6cd573..318d3c5c3 100644
--- a/apps/web/locales/sk-SK.po
+++ b/apps/web/locales/sk-SK.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: sk\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Slovak\n"
"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Zavrieť"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nemáte účet? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Darovať"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Zadaj prosím URL adresu, na ktorú chceš odkazovať:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Prosím, podporte projekt"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume je bezplatný a open‑source nástroj na tvorbu životo
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume je bezplatný a má otvorený zdrojový kód. Ak vám pomohol, zvážte darovanie."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/sl-SI.po b/apps/web/locales/sl-SI.po
index 580c86b3b..107dae80b 100644
--- a/apps/web/locales/sl-SI.po
+++ b/apps/web/locales/sl-SI.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: sl\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Slovenian\n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Zavrzi"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nimate računa? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donirajte"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Vnesite URL, na katerega želite povezati:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Prosim, podprite projekt"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume je brezplačen in odprtokoden urejevalnik življenjepisa
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume je brezplačen in odprtokoden. Če vam je pomagal, prosimo, razmislite o donaciji."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/sq-AL.po b/apps/web/locales/sq-AL.po
index 075a95166..f44feb1a3 100644
--- a/apps/web/locales/sq-AL.po
+++ b/apps/web/locales/sq-AL.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: sq\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Albanian\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Hiq"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Nuk keni llogari? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Dhuro"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Ju lutemi shkruani URL-në që dëshironi të lidhni:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Ju lutemi mbështesni projektin"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume është një ndërtues i CV-së, falas dhe me burim të
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive CV është falas dhe me kod të hapur. Nëse ju ka ndihmuar, ju lutemi merrni në konsideratë dhurimin."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/sr-SP.po b/apps/web/locales/sr-SP.po
index e35091c27..53b67452e 100644
--- a/apps/web/locales/sr-SP.po
+++ b/apps/web/locales/sr-SP.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: sr\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Serbian (Cyrillic)\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
@@ -1036,7 +1036,7 @@ msgstr "Дискорд"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Одбаци"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Немате налог? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Донирајте"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Унесите URL на који желите да води веза:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Молимо вас да подржите пројекат"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Реактивни Резиме је бесплатан и отворе
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Реактивни резиме је бесплатан и отвореног кода. Ако вам је помогао, размислите о донацији."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/sv-SE.po b/apps/web/locales/sv-SE.po
index d027790fa..59045c530 100644
--- a/apps/web/locales/sv-SE.po
+++ b/apps/web/locales/sv-SE.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: sv\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Swedish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Avfärda"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Har du inget konto? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Donera"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Ange URL:en du vill länka till:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Stöd projektet"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume är en gratis CV-byggare med öppen källkod som förenk
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume är gratis och har öppen källkod. Om det har hjälpt dig, överväg gärna att donera."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/ta-IN.po b/apps/web/locales/ta-IN.po
index 4c20ec337..65510bc47 100644
--- a/apps/web/locales/ta-IN.po
+++ b/apps/web/locales/ta-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: ta\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Tamil\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "டிஸ்கார்ட்"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "நிராகரி"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "கணக்கு இல்லையா? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "நன்கொடை அளிக்கவும்"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "நீங்கள் இணைக்க விரும்பும்
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "திட்டத்திற்கு ஆதரவளிக்கவும்"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume என்பது உங்கள் ரெஸ்யூ
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "ரியாக்டிவ் ரெஸ்யூம் இலவசமானது மற்றும் திறந்த மூல மென்பொருளாகும். இது உங்களுக்கு உதவியிருந்தால், நன்கொடை அளிக்கப் பரிசீலிக்கவும்."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/te-IN.po b/apps/web/locales/te-IN.po
index eb26a4e85..222c9aadf 100644
--- a/apps/web/locales/te-IN.po
+++ b/apps/web/locales/te-IN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: te\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Telugu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "డిస్కోర్డ్"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "కొట్టివేయండి"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "ఖాతా లేదా? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "విరాళం ఇవ్వండి"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "మీరు లింక్ చేయాలనుకునే URL‌న
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "దయచేసి ప్రాజెక్ట్‌కు మద్దతు ఇవ్వండి"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume అనేది ఉచితమైన, ఓపెన్-
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "రియాక్టివ్ రెజ్యూమ్ ఉచితం మరియు ఓపెన్ సోర్స్. ఇది మీకు సహాయపడినట్లయితే, దయచేసి విరాళం ఇవ్వడాన్ని పరిగణించండి."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/th-TH.po b/apps/web/locales/th-TH.po
index 2f7e3921f..fcd23cf74 100644
--- a/apps/web/locales/th-TH.po
+++ b/apps/web/locales/th-TH.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: th\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Thai\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "อนุญาตให้ออกไป"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "ยังไม่มีบัญชี? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "บริจาค"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "กรุณากรอก URL ที่คุณต้องการ
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "โปรดให้การสนับสนุนโครงการนี้"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume คือเครื่องมือสร้าง
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume เป็นซอฟต์แวร์ฟรีและโอเพนซอร์ส หากซอฟต์แวร์นี้มีประโยชน์กับคุณ โปรดพิจารณาบริจาคเงินสนับสนุน"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/tr-TR.po b/apps/web/locales/tr-TR.po
index 5063b0c85..c9459d82c 100644
--- a/apps/web/locales/tr-TR.po
+++ b/apps/web/locales/tr-TR.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: tr\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Turkish\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Azletmek"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Hesabınız yok mu? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Bağış yapmak"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Bağlamak istediğiniz URL'yi girin:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Lütfen projeyi destekleyin."
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume, özgeçmişinizi oluşturma, güncelleme ve paylaşma s
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume ücretsiz ve açık kaynaklıdır. Eğer size yardımcı olduysa, lütfen bağış yapmayı düşünün."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/uk-UA.po b/apps/web/locales/uk-UA.po
index 59ab0ae0d..6eb3f3ac4 100644
--- a/apps/web/locales/uk-UA.po
+++ b/apps/web/locales/uk-UA.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: uk\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Ukrainian\n"
"Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Відхилити"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Немає облікового запису? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Пожертвувати"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Будь ласка, введіть URL-адресу, на яку хоч
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Будь ласка, підтримайте проєкт"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume — це безкоштовний та відкрити
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume — безкоштовний ресурс з відкритим вихідним кодом. Якщо він вам допоміг, будь ласка, подумайте про пожертвування."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/uz-UZ.po b/apps/web/locales/uz-UZ.po
index d28ecdb75..f5e3b73ab 100644
--- a/apps/web/locales/uz-UZ.po
+++ b/apps/web/locales/uz-UZ.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: uz\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Uzbek\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Bekor qilish"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Hisobingiz yoʻqmi? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Xayriya qiling"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Havola qilmoqchi bo'lgan URL manzilini kiriting:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Iltimos, loyihani qo'llab-quvvatlang"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume bu bepul va ochiq kodli rezyume tuzuvchi bo‘lib, rezyu
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume bepul va ochiq kodli. Agar u sizga yordam bergan bo'lsa, iltimos, xayriya qilishni ko'rib chiqing."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/vi-VN.po b/apps/web/locales/vi-VN.po
index de6372f2f..4411715da 100644
--- a/apps/web/locales/vi-VN.po
+++ b/apps/web/locales/vi-VN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: vi\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Vietnamese\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "Miễn nhiệm"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "Chưa có tài khoản? <0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "Quyên tặng"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "Vui lòng nhập URL bạn muốn liên kết đến:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "Hãy ủng hộ dự án!"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume là trình tạo sơ yếu lý lịch mã nguồn mở &
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume là phần mềm mã nguồn mở miễn phí. Nếu thấy hữu ích, xin vui lòng xem xét quyên góp."
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/zh-CN.po b/apps/web/locales/zh-CN.po
index 1edb638c0..28e293048 100644
--- a/apps/web/locales/zh-CN.po
+++ b/apps/web/locales/zh-CN.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: zh\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Chinese Simplified\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord 频道"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "解雇"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "没有账户?<0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "捐"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "请输入你想要链接到的 URL:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "请支持这个项目"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume 是一款免费开源的简历生成器,可简化创
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume 是免费开源的。如果它对您有所帮助,请考虑捐赠。"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/locales/zh-TW.po b/apps/web/locales/zh-TW.po
index 96e9e28f9..1f2b08e3b 100644
--- a/apps/web/locales/zh-TW.po
+++ b/apps/web/locales/zh-TW.po
@@ -8,7 +8,7 @@ msgstr ""
"Language: zh\n"
"Project-Id-Version: reactive-resume\n"
"Report-Msgid-Bugs-To: \n"
-"PO-Revision-Date: 2026-05-11 11:51\n"
+"PO-Revision-Date: 2026-05-11 12:13\n"
"Last-Translator: \n"
"Language-Team: Chinese Traditional\n"
"Plural-Forms: nplurals=1; plural=0;\n"
@@ -1036,7 +1036,7 @@ msgstr "Discord"
#: src/components/ui/donation-toast.tsx
msgid "Dismiss"
-msgstr ""
+msgstr "解僱"
#: src/routes/_home/-sections/footer.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
@@ -1049,7 +1049,7 @@ msgstr "沒有帳戶?<0/>"
#: src/components/ui/donation-toast.tsx
msgid "Donate"
-msgstr ""
+msgstr "捐"
#: src/routes/builder/$resumeId/-sidebar/right/sections/information.tsx
msgid "Donate to Reactive Resume"
@@ -2330,7 +2330,7 @@ msgstr "請輸入您要連結的 URL:"
#: src/components/ui/donation-toast.tsx
msgid "Please support the project"
-msgstr ""
+msgstr "請支持這個項目"
#: src/routes/$username/-components/public-resume.tsx
#: src/routes/builder/$resumeId/-components/dock.tsx
@@ -2472,7 +2472,7 @@ msgstr "Reactive Resume 是一個免費且開放原始碼的履歷建立工具
#: src/components/ui/donation-toast.tsx
msgid "Reactive Resume is free and open source. If it has helped you, please consider donating."
-msgstr ""
+msgstr "Reactive Resume 是免費開源的。如果它對您有所幫助,請考慮捐贈。"
#: src/routes/_home/-sections/faq.tsx
msgid "Reactive Resume is open-source, privacy-focused, and completely free. Unlike other resume builders, it doesn't show ads, track your data, or limit your features behind a paywall."
diff --git a/apps/web/src/components/animation/comet-card.test.tsx b/apps/web/src/components/animation/comet-card.test.tsx
new file mode 100644
index 000000000..833c7716a
--- /dev/null
+++ b/apps/web/src/components/animation/comet-card.test.tsx
@@ -0,0 +1,56 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CometCard } from "./comet-card";
+
+describe("CometCard", () => {
+ it("renders its children inside the perspective wrapper", () => {
+ const { getByText } = render(
+ <CometCard>
+ <span>card body</span>
+ </CometCard>,
+ );
+ expect(getByText("card body")).toBeInTheDocument();
+ });
+
+ it("merges custom className into the wrapper", () => {
+ const { container } = render(
+ <CometCard className="extra-class">
+ <span>x</span>
+ </CometCard>,
+ );
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("extra-class");
+ expect(wrapper.className).toContain("perspective-distant");
+ expect(wrapper.className).toContain("transform-3d");
+ });
+
+ it("renders a glare overlay positioned absolutely with mix-blend-overlay", () => {
+ const { container } = render(
+ <CometCard>
+ <span>x</span>
+ </CometCard>,
+ );
+ const glare = container.querySelector("[class*='mix-blend-overlay']") as HTMLElement | null;
+ expect(glare).not.toBeNull();
+ expect(glare?.className).toContain("pointer-events-none");
+ });
+
+ it("does not throw when mouse enters / moves over / leaves the card", () => {
+ const { container } = render(
+ <CometCard>
+ <span>x</span>
+ </CometCard>,
+ );
+
+ const tiltable = container.querySelector("[class*='will-change-transform']") as HTMLElement;
+ expect(tiltable).toBeTruthy();
+
+ expect(() => {
+ fireEvent.mouseMove(tiltable, { clientX: 100, clientY: 50 });
+ fireEvent.mouseMove(tiltable, { clientX: 0, clientY: 0 });
+ fireEvent.mouseLeave(tiltable);
+ }).not.toThrow();
+ });
+});
diff --git a/apps/web/src/components/animation/count-up.test.tsx b/apps/web/src/components/animation/count-up.test.tsx
new file mode 100644
index 000000000..45442935d
--- /dev/null
+++ b/apps/web/src/components/animation/count-up.test.tsx
@@ -0,0 +1,52 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { CountUp } from "./count-up";
+
+describe("CountUp", () => {
+ it("renders an aria-live=polite span by default (announced to screen readers)", () => {
+ const { container } = render(<CountUp to={1000} />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.getAttribute("aria-live")).toBe("polite");
+ expect(span.getAttribute("aria-atomic")).toBe("true");
+ });
+
+ it("seeds textContent to the 'from' value when counting up", () => {
+ const { container } = render(<CountUp from={0} to={100} />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.textContent).toBe("0");
+ });
+
+ it("seeds textContent to the 'to' value when direction is down", () => {
+ const { container } = render(<CountUp from={0} to={100} direction="down" />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.textContent).toBe("100");
+ });
+
+ it("formats with the separator when one is supplied", () => {
+ const { container } = render(<CountUp from={1234} to={2345} separator="," />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.textContent).toBe("1,234");
+ });
+
+ it("preserves decimal places when from / to are fractional", () => {
+ const { container } = render(<CountUp from={1.25} to={3.75} />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.textContent).toBe("1.25");
+ });
+
+ it("strips aria-live and aria-atomic when aria-hidden is set", () => {
+ const { container } = render(<CountUp to={100} aria-hidden="true" />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.getAttribute("aria-hidden")).toBe("true");
+ expect(span.getAttribute("aria-live")).toBeNull();
+ expect(span.getAttribute("aria-atomic")).toBeNull();
+ });
+
+ it("accepts a custom className", () => {
+ const { container } = render(<CountUp to={100} className="custom-class" />);
+ const span = container.querySelector("span") as HTMLSpanElement;
+ expect(span.className).toContain("custom-class");
+ });
+});
diff --git a/apps/web/src/components/animation/spotlight.test.tsx b/apps/web/src/components/animation/spotlight.test.tsx
new file mode 100644
index 000000000..d709dd371
--- /dev/null
+++ b/apps/web/src/components/animation/spotlight.test.tsx
@@ -0,0 +1,45 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { Spotlight } from "./spotlight";
+
+describe("Spotlight", () => {
+ it("renders a non-pointer-events overlay container", () => {
+ const { container } = render(<Spotlight />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("pointer-events-none");
+ expect(wrapper.className).toContain("absolute");
+ });
+
+ it("renders both left and right beam groups by default", () => {
+ const { container } = render(<Spotlight />);
+ // Outer wrapper > two animated beam containers
+ const beamGroups = container.firstChild?.childNodes;
+ expect(beamGroups?.length).toBe(2);
+ });
+
+ it("applies the provided width / height / smallWidth to inline styles", () => {
+ const { container } = render(<Spotlight width={500} height={800} smallWidth={120} translateY={-100} />);
+
+ const inlineStyles = Array.from(container.querySelectorAll<HTMLDivElement>("[style]")).map(
+ (el) => el.getAttribute("style") ?? "",
+ );
+ const allStyles = inlineStyles.join("|");
+
+ expect(allStyles).toContain("width: 500px");
+ expect(allStyles).toContain("height: 800px");
+ expect(allStyles).toContain("width: 120px");
+ expect(allStyles).toContain("translateY(-100px)");
+ });
+
+ it("uses the supplied gradient strings as background values", () => {
+ const customFirst = "radial-gradient(red, blue)";
+ const { container } = render(<Spotlight gradientFirst={customFirst} />);
+
+ const matched = Array.from(container.querySelectorAll<HTMLDivElement>("[style]")).filter(
+ (el) => el.style.background.includes("red") && el.style.background.includes("blue"),
+ );
+ expect(matched.length).toBeGreaterThan(0);
+ });
+});
diff --git a/apps/web/src/components/animation/text-mask.test.tsx b/apps/web/src/components/animation/text-mask.test.tsx
new file mode 100644
index 000000000..80aa97280
--- /dev/null
+++ b/apps/web/src/components/animation/text-mask.test.tsx
@@ -0,0 +1,47 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { TextMaskEffect } from "./text-mask";
+
+const renderMask = (props: React.ComponentProps<typeof TextMaskEffect>) => render(<TextMaskEffect {...props} />);
+
+describe("TextMaskEffect", () => {
+ it("renders the supplied text in all visible text layers", () => {
+ const { container } = renderMask({ text: "Hello World" });
+ const texts = container.querySelectorAll("text");
+ expect(texts.length).toBeGreaterThanOrEqual(2);
+ for (const el of texts) {
+ expect(el.textContent).toBe("Hello World");
+ }
+ });
+
+ it("forwards aria-hidden onto the root svg", () => {
+ const { container } = renderMask({ text: "X", "aria-hidden": "true" });
+ const svg = container.querySelector("svg") as SVGSVGElement;
+ expect(svg.getAttribute("aria-hidden")).toBe("true");
+ });
+
+ it("renders an aria-label on the root svg", () => {
+ const { container } = renderMask({ text: "X" });
+ const svg = container.querySelector("svg") as SVGSVGElement;
+ expect(svg.getAttribute("aria-label")).toBe("Text mask effect");
+ });
+
+ it("does not throw on mouse-enter / mouse-move / mouse-leave interactions", () => {
+ const { container } = renderMask({ text: "X" });
+ const svg = container.querySelector("svg") as SVGSVGElement;
+
+ expect(() => {
+ fireEvent.mouseEnter(svg);
+ fireEvent.mouseMove(svg, { clientX: 50, clientY: 25 });
+ fireEvent.mouseLeave(svg);
+ }).not.toThrow();
+ });
+
+ it("merges custom className into the svg", () => {
+ const { container } = renderMask({ text: "X", className: "custom-class" });
+ const svg = container.querySelector("svg") as SVGSVGElement;
+ expect(svg.getAttribute("class") ?? "").toContain("custom-class");
+ });
+});
diff --git a/apps/web/src/components/command-palette/pages/base.test.tsx b/apps/web/src/components/command-palette/pages/base.test.tsx
new file mode 100644
index 000000000..882fe3173
--- /dev/null
+++ b/apps/web/src/components/command-palette/pages/base.test.tsx
@@ -0,0 +1,53 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { afterEach, describe, expect, it } from "vitest";
+import { Command } from "@reactive-resume/ui/components/command";
+import { useCommandPaletteStore } from "../store";
+import { BaseCommandGroup } from "./base";
+
+const renderInCommand = (ui: React.ReactNode) => render(<Command>{ui}</Command>);
+
+const resetStore = () => {
+ useCommandPaletteStore.setState({ open: false, search: "", pages: [] });
+};
+
+afterEach(resetStore);
+
+describe("BaseCommandGroup", () => {
+ it("renders children at the root (no page prop) when the page stack is empty", () => {
+ renderInCommand(<BaseCommandGroup heading="Root">child-text</BaseCommandGroup>);
+ expect(screen.getByText("child-text")).toBeInTheDocument();
+ });
+
+ it("does NOT render when the page stack tops a different page than its `page` prop", () => {
+ useCommandPaletteStore.setState({ pages: ["other"] });
+ const { container } = renderInCommand(
+ <BaseCommandGroup page="settings" heading="Settings">
+ <span>x</span>
+ </BaseCommandGroup>,
+ );
+ // Nothing rendered besides the Command shell itself.
+ expect(container.textContent).toBe("");
+ });
+
+ it("renders when the top of the page stack matches its `page` prop", () => {
+ useCommandPaletteStore.setState({ pages: ["settings"] });
+ renderInCommand(
+ <BaseCommandGroup page="settings" heading="Settings">
+ settings-children
+ </BaseCommandGroup>,
+ );
+ expect(screen.getByText("settings-children")).toBeInTheDocument();
+ });
+
+ it("does NOT render the root group when there is a sub-page on top", () => {
+ useCommandPaletteStore.setState({ pages: ["settings"] });
+ const { container } = renderInCommand(
+ <BaseCommandGroup heading="Root">
+ <span>root-text</span>
+ </BaseCommandGroup>,
+ );
+ expect(container.textContent).toBe("");
+ });
+});
diff --git a/apps/web/src/components/command-palette/pages/preferences/index.test.tsx b/apps/web/src/components/command-palette/pages/preferences/index.test.tsx
new file mode 100644
index 000000000..a6d6738df
--- /dev/null
+++ b/apps/web/src/components/command-palette/pages/preferences/index.test.tsx
@@ -0,0 +1,52 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Command } from "@reactive-resume/ui/components/command";
+import { useCommandPaletteStore } from "../../store";
+
+vi.mock("@/components/theme/provider", () => ({
+ useTheme: () => ({ setTheme: vi.fn(), theme: "light", toggleTheme: vi.fn() }),
+}));
+
+const { PreferencesCommandGroup } = await import("./index");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ useCommandPaletteStore.setState({ open: false, search: "", pages: [] });
+});
+
+const renderGroup = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Command>
+ <PreferencesCommandGroup />
+ </Command>
+ </I18nProvider>,
+ );
+
+describe("PreferencesCommandGroup", () => {
+ it("renders 'Change theme to...' and 'Change language to...' at the root", () => {
+ renderGroup();
+ expect(screen.getByText("Change theme to...")).toBeInTheDocument();
+ expect(screen.getByText("Change language to...")).toBeInTheDocument();
+ });
+
+ it("pushes 'theme' onto the page stack when the theme item is selected", () => {
+ renderGroup();
+ const item = screen.getByText("Change theme to...");
+ fireEvent.click(item);
+ expect(useCommandPaletteStore.getState().pages).toContain("theme");
+ });
+
+ it("pushes 'language' onto the page stack when the language item is selected", () => {
+ renderGroup();
+ fireEvent.click(screen.getByText("Change language to..."));
+ expect(useCommandPaletteStore.getState().pages).toContain("language");
+ });
+});
diff --git a/apps/web/src/components/command-palette/pages/preferences/language.test.tsx b/apps/web/src/components/command-palette/pages/preferences/language.test.tsx
new file mode 100644
index 000000000..ff25bd947
--- /dev/null
+++ b/apps/web/src/components/command-palette/pages/preferences/language.test.tsx
@@ -0,0 +1,59 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Command } from "@reactive-resume/ui/components/command";
+import { localeMap } from "@/libs/locale";
+import { useCommandPaletteStore } from "../../store";
+import { LanguageCommandPage } from "./language";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ useCommandPaletteStore.setState({ open: false, search: "", pages: [] });
+});
+
+const renderPage = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Command>
+ <LanguageCommandPage />
+ </Command>
+ </I18nProvider>,
+ );
+
+describe("LanguageCommandPage", () => {
+ it("does NOT render when the page stack does not have 'language' on top", () => {
+ renderPage();
+ // localeMap codes shouldn't appear because BaseCommandGroup gating is off.
+ expect(screen.queryByText("en-US")).toBeNull();
+ });
+
+ it("renders one CommandItem for every entry in localeMap when active", () => {
+ useCommandPaletteStore.setState({ pages: ["language"] });
+ renderPage();
+
+ const expectedCount = Object.keys(localeMap).length;
+ expect(expectedCount).toBeGreaterThan(0);
+
+ // Each locale value is rendered in the inline font-mono span.
+ for (const code of Object.keys(localeMap).slice(0, 5)) {
+ expect(screen.getByText(code)).toBeInTheDocument();
+ }
+ });
+
+ it("includes the documented set of locales (sample check)", () => {
+ useCommandPaletteStore.setState({ pages: ["language"] });
+ renderPage();
+ // Spot-check a couple of common locales.
+ for (const code of ["en-US", "de-DE", "ja-JP"]) {
+ if (code in localeMap) {
+ expect(screen.getByText(code)).toBeInTheDocument();
+ }
+ }
+ });
+});
diff --git a/apps/web/src/components/command-palette/pages/preferences/theme.test.tsx b/apps/web/src/components/command-palette/pages/preferences/theme.test.tsx
new file mode 100644
index 000000000..1c07b150b
--- /dev/null
+++ b/apps/web/src/components/command-palette/pages/preferences/theme.test.tsx
@@ -0,0 +1,45 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Command } from "@reactive-resume/ui/components/command";
+import { useCommandPaletteStore } from "../../store";
+
+vi.mock("@/components/theme/provider", () => ({
+ useTheme: () => ({ setTheme: vi.fn(), theme: "light", toggleTheme: vi.fn() }),
+}));
+
+const { ThemeCommandPage } = await import("./theme");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ useCommandPaletteStore.setState({ open: false, search: "", pages: [] });
+});
+
+const renderPage = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Command>
+ <ThemeCommandPage />
+ </Command>
+ </I18nProvider>,
+ );
+
+describe("ThemeCommandPage", () => {
+ it("is hidden when 'theme' is not on top of the page stack", () => {
+ renderPage();
+ expect(screen.queryByText("Light theme")).toBeNull();
+ });
+
+ it("renders Light + Dark options when active", () => {
+ useCommandPaletteStore.setState({ pages: ["theme"] });
+ renderPage();
+ expect(screen.getByText("Light theme")).toBeInTheDocument();
+ expect(screen.getByText("Dark theme")).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/components/command-palette/store.test.ts b/apps/web/src/components/command-palette/store.test.ts
new file mode 100644
index 000000000..c9c895da6
--- /dev/null
+++ b/apps/web/src/components/command-palette/store.test.ts
@@ -0,0 +1,118 @@
+import { afterEach, describe, expect, it } from "vitest";
+import { useCommandPaletteStore } from "./store";
+
+const reset = () => {
+ useCommandPaletteStore.setState({ open: false, search: "", pages: [] });
+};
+
+afterEach(reset);
+
+describe("useCommandPaletteStore", () => {
+ it("starts closed with empty search and no pages", () => {
+ const state = useCommandPaletteStore.getState();
+ expect(state.open).toBe(false);
+ expect(state.search).toBe("");
+ expect(state.pages).toEqual([]);
+ });
+
+ it("setOpen(true) opens the palette without touching other fields", () => {
+ useCommandPaletteStore.setState({ search: "foo", pages: ["page1"] });
+
+ useCommandPaletteStore.getState().setOpen(true);
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.open).toBe(true);
+ expect(state.search).toBe("foo");
+ expect(state.pages).toEqual(["page1"]);
+ });
+
+ it("setOpen(false) resets the entire store back to initial state", () => {
+ useCommandPaletteStore.setState({ open: true, search: "foo", pages: ["page1"] });
+
+ useCommandPaletteStore.getState().setOpen(false);
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.open).toBe(false);
+ expect(state.search).toBe("");
+ expect(state.pages).toEqual([]);
+ });
+
+ it("setSearch updates only the search field", () => {
+ useCommandPaletteStore.getState().setSearch("query");
+ expect(useCommandPaletteStore.getState().search).toBe("query");
+ });
+
+ it("pushPage appends a page and clears search", () => {
+ useCommandPaletteStore.setState({ search: "leftover" });
+
+ useCommandPaletteStore.getState().pushPage("settings");
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.pages).toEqual(["settings"]);
+ expect(state.search).toBe("");
+ });
+
+ it("pushPage stacks multiple pages in order", () => {
+ const { pushPage } = useCommandPaletteStore.getState();
+ pushPage("a");
+ pushPage("b");
+ pushPage("c");
+ expect(useCommandPaletteStore.getState().pages).toEqual(["a", "b", "c"]);
+ });
+
+ it("peekPage returns the top page (or undefined when empty)", () => {
+ expect(useCommandPaletteStore.getState().peekPage()).toBeUndefined();
+
+ useCommandPaletteStore.setState({ pages: ["a", "b"] });
+ expect(useCommandPaletteStore.getState().peekPage()).toBe("b");
+ });
+
+ it("popPage removes the last page and clears search", () => {
+ useCommandPaletteStore.setState({ pages: ["a", "b"], search: "x" });
+
+ useCommandPaletteStore.getState().popPage();
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.pages).toEqual(["a"]);
+ expect(state.search).toBe("");
+ });
+
+ it("reset clears every state field", () => {
+ useCommandPaletteStore.setState({ open: true, search: "x", pages: ["a"] });
+
+ useCommandPaletteStore.getState().reset();
+
+ expect(useCommandPaletteStore.getState()).toMatchObject({ open: false, search: "", pages: [] });
+ });
+
+ describe("goBack", () => {
+ it("clears search first if present, leaving pages and open untouched", () => {
+ useCommandPaletteStore.setState({ open: true, search: "text", pages: ["a"] });
+
+ useCommandPaletteStore.getState().goBack();
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.search).toBe("");
+ expect(state.pages).toEqual(["a"]);
+ expect(state.open).toBe(true);
+ });
+
+ it("pops the top page when no search and pages exist", () => {
+ useCommandPaletteStore.setState({ open: true, search: "", pages: ["a", "b"] });
+
+ useCommandPaletteStore.getState().goBack();
+
+ const state = useCommandPaletteStore.getState();
+ expect(state.pages).toEqual(["a"]);
+ expect(state.open).toBe(true);
+ });
+
+ it("closes the palette when no search and no pages", () => {
+ useCommandPaletteStore.setState({ open: true, search: "", pages: [] });
+
+ useCommandPaletteStore.getState().goBack();
+
+ expect(useCommandPaletteStore.getState().open).toBe(false);
+ });
+ });
+});
diff --git a/apps/web/src/components/input/chip-input.test.tsx b/apps/web/src/components/input/chip-input.test.tsx
new file mode 100644
index 000000000..32afe7637
--- /dev/null
+++ b/apps/web/src/components/input/chip-input.test.tsx
@@ -0,0 +1,84 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { ChipInput } from "./chip-input";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderInput = (props: Partial<React.ComponentProps<typeof ChipInput>> = {}) =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <ChipInput defaultValue={[]} onChange={vi.fn()} {...props} />
+ </I18nProvider>,
+ );
+
+describe("ChipInput", () => {
+ it("renders the supplied chips as Badges", () => {
+ renderInput({ defaultValue: ["alpha", "beta", "gamma"] });
+ expect(screen.getByText("alpha")).toBeInTheDocument();
+ expect(screen.getByText("beta")).toBeInTheDocument();
+ expect(screen.getByText("gamma")).toBeInTheDocument();
+ });
+
+ it("adds a chip on Enter, calling onChange with the new list", () => {
+ const onChange = vi.fn();
+ renderInput({ defaultValue: ["a"], onChange });
+
+ const input = document.querySelector("input") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "b" } });
+ fireEvent.keyDown(input, { key: "Enter" });
+
+ expect(onChange).toHaveBeenCalledWith(["a", "b"]);
+ });
+
+ it("adds a chip on comma keypress", () => {
+ const onChange = vi.fn();
+ renderInput({ defaultValue: [], onChange });
+
+ const input = document.querySelector("input") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "new-tag" } });
+ fireEvent.keyDown(input, { key: "," });
+
+ expect(onChange).toHaveBeenCalledWith(["new-tag"]);
+ });
+
+ it("does not add a duplicate chip", () => {
+ const onChange = vi.fn();
+ renderInput({ defaultValue: ["a"], onChange });
+
+ const input = document.querySelector("input") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "a" } });
+ fireEvent.keyDown(input, { key: "Enter" });
+
+ // chips set should remain ["a"]; onChange not invoked with the same array.
+ const callsAddingA = onChange.mock.calls.filter((args) => Array.isArray(args[0]) && args[0].length > 1);
+ expect(callsAddingA.length).toBe(0);
+ });
+
+ it("does not add an empty / whitespace-only chip", () => {
+ const onChange = vi.fn();
+ renderInput({ defaultValue: ["a"], onChange });
+
+ const input = document.querySelector("input") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: " " } });
+ fireEvent.keyDown(input, { key: "Enter" });
+
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ it("hides the description copy when hideDescription is true", () => {
+ const { container } = renderInput({ defaultValue: ["a"], hideDescription: true });
+ // We don't know the exact translated text, just confirm no <Kbd> hint banner is rendered.
+ expect(container.querySelector("kbd")).toBeNull();
+ });
+
+ it("shows the description copy by default", () => {
+ const { container } = renderInput({ defaultValue: ["a"] });
+ expect(container.querySelector("kbd")).not.toBeNull();
+ });
+});
diff --git a/apps/web/src/components/input/color-picker.test.tsx b/apps/web/src/components/input/color-picker.test.tsx
new file mode 100644
index 000000000..b4440e160
--- /dev/null
+++ b/apps/web/src/components/input/color-picker.test.tsx
@@ -0,0 +1,61 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+vi.mock("@uiw/react-color-colorful", () => ({
+ default: () => null,
+}));
+
+const { ColorPicker } = await import("./color-picker");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderPicker = (props: React.ComponentProps<typeof ColorPicker> = {}) =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <ColorPicker {...props} />
+ </I18nProvider>,
+ );
+
+describe("ColorPicker", () => {
+ it("renders a trigger swatch reflecting the current value", () => {
+ const { container } = renderPicker({ defaultValue: "rgba(231, 0, 11, 1)" });
+ const trigger = container.querySelector("[style*='background-color']") as HTMLElement | null;
+ expect(trigger).not.toBeNull();
+ // happy-dom serializes both the input rgba string and the rgb representation,
+ // depending on alpha; just confirm the color values surface.
+ const bg = trigger?.getAttribute("style") ?? "";
+ expect(bg).toContain("231");
+ expect(bg).toContain("11");
+ });
+
+ it("calls onChange when a preset color is clicked", () => {
+ const onChange = vi.fn();
+ renderPicker({ defaultValue: "rgba(0, 0, 0, 1)", onChange });
+
+ // Open the popover by clicking the trigger swatch.
+ const triggerSwatch = document.querySelector("[style*='background-color']") as HTMLElement;
+ fireEvent.click(triggerSwatch);
+
+ // Locate any preset button (they have aria-label='Use color rgba(...)').
+ const presetBtn = screen.getAllByRole("button", { name: /Use color rgba\(/ })[0];
+ fireEvent.click(presetBtn);
+
+ expect(onChange).toHaveBeenCalled();
+ expect(onChange.mock.calls[0]?.[0]).toMatch(/^rgba\(/);
+ });
+
+ it("renders a custom trigger when provided", () => {
+ renderPicker({
+ defaultValue: "rgba(0, 0, 0, 1)",
+ trigger: <button type="button">custom trigger</button>,
+ });
+
+ expect(screen.getByText("custom trigger")).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/components/input/github-stars-button.test.tsx b/apps/web/src/components/input/github-stars-button.test.tsx
new file mode 100644
index 000000000..23188d8bb
--- /dev/null
+++ b/apps/web/src/components/input/github-stars-button.test.tsx
@@ -0,0 +1,66 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const queryResult = vi.hoisted(() => ({ data: undefined as number | undefined }));
+
+vi.mock("@tanstack/react-query", () => ({
+ useQuery: () => queryResult,
+}));
+vi.mock("@/libs/orpc/client", () => ({
+ orpc: { statistics: { github: { getStarCount: { queryOptions: () => ({}) } } } },
+}));
+vi.mock("../animation/count-up", () => ({
+ CountUp: ({ to }: { to: number }) => <span data-testid="count-up">{to.toLocaleString()}</span>,
+}));
+
+const { GithubStarsButton } = await import("./github-stars-button");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+beforeEach(() => {
+ queryResult.data = undefined;
+});
+
+const renderButton = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <GithubStarsButton />
+ </I18nProvider>,
+ );
+
+describe("GithubStarsButton", () => {
+ it("renders an anchor pointing at the project repo with rel=noopener and target=_blank", () => {
+ renderButton();
+ const link = screen.getByRole("button") as HTMLAnchorElement;
+ expect(link.href).toBe("https://github.com/amruthpillai/reactive-resume");
+ expect(link.target).toBe("_blank");
+ expect(link.rel).toBe("noopener");
+ });
+
+ it("uses the no-count aria-label when star count hasn't loaded yet", () => {
+ renderButton();
+ const link = screen.getByRole("button") as HTMLAnchorElement;
+ expect(link.getAttribute("aria-label")).toBe("Star us on GitHub (opens in new tab)");
+ });
+
+ it("does not render a CountUp when star count is undefined", () => {
+ renderButton();
+ expect(screen.queryByTestId("count-up")).toBeNull();
+ });
+
+ it("renders a CountUp + announces the star count when available", () => {
+ queryResult.data = 12345;
+ renderButton();
+
+ expect(screen.getByTestId("count-up").textContent).toBe("12,345");
+
+ const link = screen.getByRole("button") as HTMLAnchorElement;
+ expect(link.getAttribute("aria-label")).toContain("12,345 stars");
+ });
+});
diff --git a/apps/web/src/components/input/icon-picker.test.tsx b/apps/web/src/components/input/icon-picker.test.tsx
new file mode 100644
index 000000000..7793d3ff9
--- /dev/null
+++ b/apps/web/src/components/input/icon-picker.test.tsx
@@ -0,0 +1,74 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+// react-window's <Grid> uses ResizeObserver / IntersectionObserver heavily and
+// expects measurable layouts that happy-dom can't provide. Stub it with a simple
+// pass-through that renders the first row of cells via the supplied cellComponent.
+vi.mock("react-window", () => ({
+ Grid: ({
+ rowCount,
+ columnCount,
+ cellComponent: CellComponent,
+ cellProps,
+ }: {
+ rowCount: number;
+ columnCount: number;
+ cellComponent: React.ComponentType<
+ { rowIndex: number; columnIndex: number; style: React.CSSProperties } & Record<string, unknown>
+ >;
+ cellProps: Record<string, unknown>;
+ }) => {
+ const cells: React.ReactNode[] = [];
+ for (let r = 0; r < Math.min(rowCount, 1); r++) {
+ for (let c = 0; c < columnCount; c++) {
+ cells.push(<CellComponent key={`${r}-${c}`} rowIndex={r} columnIndex={c} style={{}} {...cellProps} />);
+ }
+ }
+ return <div data-testid="grid">{cells}</div>;
+ },
+}));
+
+const { IconPicker } = await import("./icon-picker");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderPicker = (props: Partial<React.ComponentProps<typeof IconPicker>> = {}) =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <IconPicker value="globe" onChange={vi.fn()} {...props} />
+ </I18nProvider>,
+ );
+
+describe("IconPicker", () => {
+ it("renders a trigger button containing the current icon", () => {
+ const { container } = renderPicker();
+ const i = container.querySelector("i.ph") as HTMLElement;
+ expect(i.className).toContain("ph-globe");
+ });
+
+ it("changes the trigger icon when value prop changes", () => {
+ const { container, rerender } = renderPicker({ value: "globe" });
+ const before = container.querySelector("i.ph")?.className ?? "";
+ expect(before).toContain("ph-globe");
+
+ rerender(
+ <I18nProvider i18n={i18n}>
+ <IconPicker value="star" onChange={vi.fn()} />
+ </I18nProvider>,
+ );
+
+ const after = container.querySelector("i.ph")?.className ?? "";
+ expect(after).toContain("ph-star");
+ });
+
+ it("renders the picker button as a single icon-size button", () => {
+ const { container } = renderPicker();
+ expect(container.querySelectorAll("button").length).toBeGreaterThanOrEqual(1);
+ });
+});
diff --git a/apps/web/src/components/input/url-input.test.tsx b/apps/web/src/components/input/url-input.test.tsx
new file mode 100644
index 000000000..8f8a2b26e
--- /dev/null
+++ b/apps/web/src/components/input/url-input.test.tsx
@@ -0,0 +1,85 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { URLInput } from "./url-input";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderInput = (value: { url: string; label: string }, onChange = vi.fn(), hideLabelButton = false) =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <URLInput value={value} onChange={onChange} hideLabelButton={hideLabelButton} />
+ </I18nProvider>,
+ );
+
+describe("URLInput", () => {
+ it("strips the https:// prefix in the visible input value", () => {
+ renderInput({ url: "https://example.com/path", label: "" });
+ const input = screen.getByRole("textbox") as HTMLInputElement;
+ expect(input.value).toBe("example.com/path");
+ });
+
+ it("renders the raw value when no prefix is present", () => {
+ renderInput({ url: "no-prefix.example", label: "" });
+ const input = screen.getByRole("textbox") as HTMLInputElement;
+ expect(input.value).toBe("no-prefix.example");
+ });
+
+ it("adds https:// prefix on edit when not already present", () => {
+ const onChange = vi.fn();
+ renderInput({ url: "https://example.com", label: "" }, onChange);
+
+ const input = screen.getByRole("textbox") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "new.example" } });
+
+ expect(onChange).toHaveBeenCalledWith({
+ url: "https://new.example",
+ label: "",
+ });
+ });
+
+ it("keeps already-prefixed URLs intact on edit", () => {
+ const onChange = vi.fn();
+ renderInput({ url: "https://example.com", label: "" }, onChange);
+
+ const input = screen.getByRole("textbox") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "https://other.example" } });
+
+ expect(onChange).toHaveBeenCalledWith({
+ url: "https://other.example",
+ label: "",
+ });
+ });
+
+ it("emits an empty url string when cleared", () => {
+ const onChange = vi.fn();
+ renderInput({ url: "https://example.com", label: "" }, onChange);
+
+ const input = screen.getByRole("textbox") as HTMLInputElement;
+ fireEvent.change(input, { target: { value: "" } });
+
+ expect(onChange).toHaveBeenCalledWith({
+ url: "",
+ label: "",
+ });
+ });
+
+ it("hides the label button when hideLabelButton=true", () => {
+ const { container } = renderInput({ url: "https://example.com", label: "" }, vi.fn(), true);
+
+ // PopoverTrigger is rendered as a button; its absence means hideLabelButton worked.
+ const buttons = container.querySelectorAll("button");
+ expect(buttons.length).toBe(0);
+ });
+
+ it("renders the label button by default", () => {
+ const { container } = renderInput({ url: "https://example.com", label: "" });
+ const buttons = container.querySelectorAll("button");
+ expect(buttons.length).toBeGreaterThan(0);
+ });
+});
diff --git a/apps/web/src/components/layout/breakpoint-indicator.test.tsx b/apps/web/src/components/layout/breakpoint-indicator.test.tsx
new file mode 100644
index 000000000..e67938fe2
--- /dev/null
+++ b/apps/web/src/components/layout/breakpoint-indicator.test.tsx
@@ -0,0 +1,51 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { BreakpointIndicator } from "./breakpoint-indicator";
+
+const getWrapper = (container: HTMLElement) => container.firstChild as HTMLElement;
+
+describe("BreakpointIndicator", () => {
+ it("defaults to bottom-right positioning when no position is supplied", () => {
+ const { container } = render(<BreakpointIndicator />);
+ const wrapper = getWrapper(container);
+ expect(wrapper.className).toContain("bottom-0");
+ // bottom-right path: top branch sets the "bottom-0", right path sets "inset-e-0"
+ expect(wrapper.className).toContain("inset-e-0");
+ });
+
+ it("renders all breakpoint labels (one is visible at each viewport)", () => {
+ const { container } = render(<BreakpointIndicator />);
+ const text = container.textContent ?? "";
+ for (const label of ["XS", "SM", "MD", "LG", "XL", "2XL", "3XL", "4XL"]) {
+ expect(text).toContain(label);
+ }
+ });
+
+ it("uses top-left classes for top-left position", () => {
+ const { container } = render(<BreakpointIndicator position="top-left" />);
+ const wrapper = getWrapper(container);
+ expect(wrapper.className).toContain("top-0");
+ expect(wrapper.className).toContain("inset-s-0");
+ });
+
+ it("uses top-right classes for top-right position", () => {
+ const { container } = render(<BreakpointIndicator position="top-right" />);
+ const wrapper = getWrapper(container);
+ expect(wrapper.className).toContain("top-0");
+ expect(wrapper.className).toContain("inset-e-0");
+ });
+
+ it("uses bottom-left classes for bottom-left position", () => {
+ const { container } = render(<BreakpointIndicator position="bottom-left" />);
+ const wrapper = getWrapper(container);
+ expect(wrapper.className).toContain("bottom-0");
+ expect(wrapper.className).toContain("inset-s-0");
+ });
+
+ it("hides the indicator from print stylesheets", () => {
+ const { container } = render(<BreakpointIndicator />);
+ expect(getWrapper(container).className).toContain("print:hidden");
+ });
+});
diff --git a/apps/web/src/components/layout/error-screen.test.tsx b/apps/web/src/components/layout/error-screen.test.tsx
new file mode 100644
index 000000000..452c0b410
--- /dev/null
+++ b/apps/web/src/components/layout/error-screen.test.tsx
@@ -0,0 +1,45 @@
+// @vitest-environment happy-dom
+
+import type { ErrorComponentProps } from "@tanstack/react-router";
+import { fireEvent, render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { ErrorScreen } from "./error-screen";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderError = (overrides: { error?: Error; reset?: () => void } = {}) => {
+ const props: ErrorComponentProps = {
+ error: overrides.error ?? new Error("boom"),
+ reset: overrides.reset ?? vi.fn(),
+ };
+
+ return render(
+ <I18nProvider i18n={i18n}>
+ <ErrorScreen {...props} />
+ </I18nProvider>,
+ );
+};
+
+describe("ErrorScreen", () => {
+ it("shows the error message provided", () => {
+ renderError({ error: new Error("Network is down") });
+ expect(screen.getByText("Network is down")).toBeInTheDocument();
+ });
+
+ it("shows the user-facing error heading", () => {
+ renderError();
+ expect(screen.getByText("An error occurred while loading the page.")).toBeInTheDocument();
+ });
+
+ it("calls reset when the Refresh button is clicked", () => {
+ const reset = vi.fn();
+ renderError({ reset });
+
+ fireEvent.click(screen.getByRole("button", { name: /refresh/i }));
+ expect(reset).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/apps/web/src/components/layout/loading-screen.test.tsx b/apps/web/src/components/layout/loading-screen.test.tsx
new file mode 100644
index 000000000..eb6458ab0
--- /dev/null
+++ b/apps/web/src/components/layout/loading-screen.test.tsx
@@ -0,0 +1,35 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { LoadingScreen } from "./loading-screen";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("LoadingScreen", () => {
+ it("renders a spinner and the loading text", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <LoadingScreen />
+ </I18nProvider>,
+ );
+
+ expect(screen.getByText("Loading...")).toBeInTheDocument();
+ });
+
+ it("fills the viewport (fixed inset-0)", () => {
+ const { container } = render(
+ <I18nProvider i18n={i18n}>
+ <LoadingScreen />
+ </I18nProvider>,
+ );
+
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("fixed");
+ expect(wrapper.className).toContain("inset-0");
+ });
+});
diff --git a/apps/web/src/components/layout/not-found-screen.test.tsx b/apps/web/src/components/layout/not-found-screen.test.tsx
new file mode 100644
index 000000000..59c4b7a40
--- /dev/null
+++ b/apps/web/src/components/layout/not-found-screen.test.tsx
@@ -0,0 +1,47 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+// `Link` from tanstack/react-router requires a Router context. Stub it out with
+// a plain anchor so we can render the screen in isolation.
+vi.mock("@tanstack/react-router", () => ({
+ Link: ({ children, to, ...rest }: React.PropsWithChildren<{ to: string }>) => (
+ <a href={typeof to === "string" ? to : "#"} {...rest}>
+ {children}
+ </a>
+ ),
+}));
+
+const { NotFoundScreen } = await import("./not-found-screen");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderScreen = (routeId = "/missing") =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <NotFoundScreen isNotFound routeId={routeId as never} />
+ </I18nProvider>,
+ );
+
+describe("NotFoundScreen", () => {
+ it("renders the documented error heading", () => {
+ renderScreen();
+ expect(screen.getByText("An error occurred while loading the page.")).toBeInTheDocument();
+ });
+
+ it("displays the routeId that triggered the not-found", () => {
+ renderScreen("/dashboard/missing-page");
+ expect(screen.getByText("/dashboard/missing-page")).toBeInTheDocument();
+ });
+
+ it("renders a Go Back link", () => {
+ renderScreen();
+ const link = screen.getByRole("link", { name: /go back/i });
+ expect(link.getAttribute("href")).toBe("..");
+ });
+});
diff --git a/apps/web/src/components/level/combobox.test.tsx b/apps/web/src/components/level/combobox.test.tsx
new file mode 100644
index 000000000..0dafb581b
--- /dev/null
+++ b/apps/web/src/components/level/combobox.test.tsx
@@ -0,0 +1,44 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+
+// Capture the options the Combobox receives so we can introspect them.
+const captured = vi.hoisted(() => ({
+ options: undefined as Array<{ value: string; label: string }> | undefined,
+}));
+
+vi.mock("@/components/ui/combobox", () => ({
+ Combobox: (props: { options: Array<{ value: string; label: string }> }) => {
+ captured.options = props.options;
+ return null;
+ },
+}));
+
+const { LevelTypeCombobox } = await import("./combobox");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("LevelTypeCombobox", () => {
+ it("renders one option per level type from levelDesignSchema", () => {
+ render(<LevelTypeCombobox />);
+
+ expect(captured.options?.length).toBe(7);
+ const values = captured.options?.map((o) => o.value);
+ expect(values).toEqual(
+ expect.arrayContaining(["hidden", "circle", "square", "rectangle", "rectangle-full", "progress-bar", "icon"]),
+ );
+ });
+
+ it("produces a human-readable label for each level type", () => {
+ render(<LevelTypeCombobox />);
+
+ for (const opt of captured.options ?? []) {
+ expect(opt.label).toBeTruthy();
+ expect(typeof opt.label).toBe("string");
+ }
+ });
+});
diff --git a/apps/web/src/components/level/display.test.tsx b/apps/web/src/components/level/display.test.tsx
new file mode 100644
index 000000000..6209137ae
--- /dev/null
+++ b/apps/web/src/components/level/display.test.tsx
@@ -0,0 +1,79 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { LevelDisplay } from "./display";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("LevelDisplay", () => {
+ it("renders nothing when level is 0", () => {
+ const { container } = render(<LevelDisplay type="circle" icon="star" level={0} />);
+ expect(container.firstChild).toBeNull();
+ });
+
+ it("renders nothing when type is hidden", () => {
+ const { container } = render(<LevelDisplay type="hidden" icon="star" level={3} />);
+ expect(container.firstChild).toBeNull();
+ });
+
+ it("renders nothing when icon is empty (regardless of type)", () => {
+ const { container } = render(<LevelDisplay type="icon" icon="" level={3} />);
+ expect(container.firstChild).toBeNull();
+ });
+
+ it("renders 5 segments for progress-bar type", () => {
+ const { container } = render(<LevelDisplay type="progress-bar" icon="star" level={3} />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.children).toHaveLength(5);
+ });
+
+ it("marks first N segments as active for progress-bar", () => {
+ const { container } = render(<LevelDisplay type="progress-bar" icon="star" level={3} />);
+ const wrapper = container.firstChild as HTMLElement;
+ const activeStates = Array.from(wrapper.children).map((el) => (el as HTMLElement).dataset.active);
+ expect(activeStates).toEqual(["true", "true", "true", "false", "false"]);
+ });
+
+ it("renders icons for icon type", () => {
+ const { container } = render(<LevelDisplay type="icon" icon="star" level={2} />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.children).toHaveLength(5);
+ expect(wrapper.querySelectorAll("i").length).toBe(5);
+ expect(wrapper.querySelector("i")?.className).toContain("ph-star");
+ });
+
+ it("dims inactive icons for icon type", () => {
+ const { container } = render(<LevelDisplay type="icon" icon="star" level={1} />);
+ const wrapper = container.firstChild as HTMLElement;
+ const icons = wrapper.querySelectorAll("i");
+ expect(icons[0]?.className).not.toContain("opacity-40");
+ expect(icons[4]?.className).toContain("opacity-40");
+ });
+
+ it("renders square segments for circle/rectangle/rectangle-full types", () => {
+ for (const type of ["circle", "rectangle", "rectangle-full"] as const) {
+ const { container } = render(<LevelDisplay type={type} icon="star" level={2} />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.children).toHaveLength(5);
+ const activeStates = Array.from(wrapper.children).map((el) => (el as HTMLElement).dataset.active);
+ expect(activeStates).toEqual(["true", "true", "false", "false", "false"]);
+ }
+ });
+
+ it("includes an aria-label describing the level", () => {
+ const { container } = render(<LevelDisplay type="circle" icon="star" level={4} />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.getAttribute("role")).toBe("img");
+ expect(wrapper.getAttribute("aria-label")).toContain("4");
+ });
+
+ it("merges extra className into the wrapper", () => {
+ const { container } = render(<LevelDisplay type="circle" icon="star" level={1} className="extra" />);
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("extra");
+ });
+});
diff --git a/apps/web/src/components/locale/combobox.test.ts b/apps/web/src/components/locale/combobox.test.ts
new file mode 100644
index 000000000..2bd3cddc1
--- /dev/null
+++ b/apps/web/src/components/locale/combobox.test.ts
@@ -0,0 +1,36 @@
+// @vitest-environment happy-dom
+
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { localeMap } from "@/libs/locale";
+import { getLocaleOptions } from "./combobox";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("getLocaleOptions", () => {
+ it("returns one option per entry in localeMap", () => {
+ const options = getLocaleOptions();
+ expect(options).toHaveLength(Object.keys(localeMap).length);
+ });
+
+ it("uses the locale code as the value", () => {
+ const options = getLocaleOptions();
+ const values = options.map((opt) => opt.value);
+ expect(values).toContain("en-US");
+ expect(values).toContain("de-DE");
+ });
+
+ it("populates label and keywords with the same translated string", () => {
+ const options = getLocaleOptions();
+ const enUS = options.find((opt) => opt.value === "en-US");
+ expect(enUS?.label).toBeTruthy();
+ expect(enUS?.keywords).toEqual([enUS?.label]);
+ });
+
+ it("uses unique values for every option", () => {
+ const values = getLocaleOptions().map((opt) => opt.value);
+ expect(new Set(values).size).toBe(values.length);
+ });
+});
diff --git a/apps/web/src/components/resume/preview.browser.test.tsx b/apps/web/src/components/resume/preview.browser.test.tsx
index 8534b17ad..d2d87eed5 100644
--- a/apps/web/src/components/resume/preview.browser.test.tsx
+++ b/apps/web/src/components/resume/preview.browser.test.tsx
@@ -1,4 +1,5 @@
// @vitest-environment happy-dom
+
import type { ResumeData } from "@reactive-resume/schema/resume/data";
import { render, screen, waitFor } from "@testing-library/react";
import { beforeEach, describe, expect, it, vi } from "vitest";
diff --git a/apps/web/src/components/resume/preview.shared.helpers.test.ts b/apps/web/src/components/resume/preview.shared.helpers.test.ts
new file mode 100644
index 000000000..78c62b681
--- /dev/null
+++ b/apps/web/src/components/resume/preview.shared.helpers.test.ts
@@ -0,0 +1,87 @@
+// @vitest-environment happy-dom
+
+import { afterEach, describe, expect, it } from "vitest";
+import {
+ DEFAULT_PDF_PAGE_SIZE,
+ getPreviewCanvasScale,
+ getScaledPreviewPageSize,
+ normalizeResumePreviewProps,
+} from "./preview.shared";
+
+describe("normalizeResumePreviewProps", () => {
+ it("applies the documented defaults when fields are omitted", () => {
+ const result = normalizeResumePreviewProps({});
+ expect(result).toMatchObject({
+ pageGap: 40,
+ pageLayout: "horizontal",
+ pageScale: 1,
+ showPageNumbers: false,
+ });
+ });
+
+ it("preserves supplied values and forwards extra props (className, data)", () => {
+ const result = normalizeResumePreviewProps({
+ className: "preview-class",
+ pageGap: 16,
+ pageLayout: "vertical",
+ pageScale: 1.5,
+ showPageNumbers: true,
+ });
+
+ expect(result.className).toBe("preview-class");
+ expect(result.pageGap).toBe(16);
+ expect(result.pageLayout).toBe("vertical");
+ expect(result.pageScale).toBe(1.5);
+ expect(result.showPageNumbers).toBe(true);
+ });
+});
+
+describe("getScaledPreviewPageSize", () => {
+ it("multiplies both dimensions by the scale", () => {
+ const result = getScaledPreviewPageSize({ width: 100, height: 200 }, 2);
+ expect(result).toEqual({ width: 200, height: 400 });
+ });
+
+ it("returns the default A4 page size unchanged when scaled by 1", () => {
+ expect(getScaledPreviewPageSize(DEFAULT_PDF_PAGE_SIZE, 1)).toEqual(DEFAULT_PDF_PAGE_SIZE);
+ });
+
+ it("supports fractional scaling", () => {
+ const result = getScaledPreviewPageSize({ width: 100, height: 200 }, 0.5);
+ expect(result).toEqual({ width: 50, height: 100 });
+ });
+});
+
+const setDevicePixelRatio = (value: number) => {
+ Object.defineProperty(window, "devicePixelRatio", {
+ writable: true,
+ configurable: true,
+ value,
+ });
+};
+
+afterEach(() => {
+ setDevicePixelRatio(1);
+});
+
+describe("getPreviewCanvasScale", () => {
+ it("returns the desired render scale (4x) for small pages", () => {
+ setDevicePixelRatio(1);
+ // width * height * 4 * 4 = 100 * 100 * 16 = 160_000 ≪ 16_777_216 budget
+ expect(getPreviewCanvasScale(100, 100)).toBe(4);
+ });
+
+ it("uses devicePixelRatio when it exceeds the desired 4x scale", () => {
+ setDevicePixelRatio(8);
+ // 50*50*8*8 = 160_000 ≪ budget, so we keep the 8x devicePixelRatio
+ expect(getPreviewCanvasScale(50, 50)).toBe(8);
+ });
+
+ it("clamps the scale when the page would exceed the canvas pixel budget", () => {
+ setDevicePixelRatio(1);
+ const scale = getPreviewCanvasScale(2000, 3000);
+ // Should NOT exceed the 4x desired scale and must satisfy the pixel budget.
+ expect(scale).toBeLessThan(4);
+ expect(scale * scale * 2000 * 3000).toBeLessThanOrEqual(16_777_216 + 1);
+ });
+});
diff --git a/apps/web/src/components/resume/preview.shared.test.tsx b/apps/web/src/components/resume/preview.shared.test.tsx
index 8601631de..c59ac1909 100644
--- a/apps/web/src/components/resume/preview.shared.test.tsx
+++ b/apps/web/src/components/resume/preview.shared.test.tsx
@@ -1,4 +1,5 @@
// @vitest-environment happy-dom
+
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { sampleResumeData } from "@reactive-resume/schema/resume/sample";
diff --git a/apps/web/src/components/theme/provider.test.tsx b/apps/web/src/components/theme/provider.test.tsx
new file mode 100644
index 000000000..c27467076
--- /dev/null
+++ b/apps/web/src/components/theme/provider.test.tsx
@@ -0,0 +1,32 @@
+// @vitest-environment happy-dom
+
+import { renderHook } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+
+// ThemeProvider depends on TanStack Start helpers + server fn — stub them.
+vi.mock("@tanstack/react-router", () => ({
+ useRouter: () => ({ invalidate: vi.fn() }),
+}));
+vi.mock("@/libs/theme", () => ({
+ setThemeServerFn: vi.fn().mockResolvedValue(undefined),
+}));
+
+const { ThemeProvider, useTheme } = await import("./provider");
+
+describe("useTheme", () => {
+ it("throws when used outside ThemeProvider", () => {
+ const consoleError = vi.spyOn(console, "error").mockImplementation(() => {});
+ expect(() => renderHook(() => useTheme())).toThrow(/useTheme must be used within a ThemeProvider/);
+ consoleError.mockRestore();
+ });
+
+ it("returns the theme and helpers when wrapped in ThemeProvider", () => {
+ const { result } = renderHook(() => useTheme(), {
+ wrapper: ({ children }) => <ThemeProvider theme="dark">{children}</ThemeProvider>,
+ });
+
+ expect(result.current.theme).toBe("dark");
+ expect(typeof result.current.setTheme).toBe("function");
+ expect(typeof result.current.toggleTheme).toBe("function");
+ });
+});
diff --git a/apps/web/src/components/theme/toggle-button.test.tsx b/apps/web/src/components/theme/toggle-button.test.tsx
new file mode 100644
index 000000000..9b29428fa
--- /dev/null
+++ b/apps/web/src/components/theme/toggle-button.test.tsx
@@ -0,0 +1,77 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+
+const toggleTheme = vi.hoisted(() => vi.fn());
+
+vi.mock("./provider", () => ({
+ useTheme: () => ({ theme: "light", setTheme: vi.fn(), toggleTheme }),
+}));
+
+const { ThemeToggleButton } = await import("./toggle-button");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ toggleTheme.mockReset();
+ // Reset prefers-reduced-motion + startViewTransition stub between tests.
+ Object.defineProperty(window, "matchMedia", {
+ writable: true,
+ configurable: true,
+ value: vi.fn().mockImplementation((query: string) => ({
+ matches: false,
+ media: query,
+ addEventListener: () => {},
+ removeEventListener: () => {},
+ })),
+ });
+ // biome-ignore lint/suspicious/noExplicitAny: removing a non-standard API stub
+ (document as any).startViewTransition = undefined;
+});
+
+describe("ThemeToggleButton", () => {
+ it("renders a button with an aria-label that flips with the theme", () => {
+ const { container } = render(<ThemeToggleButton />);
+ const button = container.querySelector("button");
+ expect(button?.getAttribute("aria-label")).toBe("Switch to dark theme");
+ });
+
+ it("calls toggleTheme directly when the view-transition API is unavailable", () => {
+ const { container } = render(<ThemeToggleButton />);
+ const button = container.querySelector("button") as HTMLButtonElement;
+
+ fireEvent.click(button);
+
+ expect(toggleTheme).toHaveBeenCalledTimes(1);
+ });
+
+ it("calls toggleTheme directly when prefers-reduced-motion is set", () => {
+ Object.defineProperty(window, "matchMedia", {
+ writable: true,
+ configurable: true,
+ value: vi.fn().mockImplementation((query: string) => ({
+ matches: query.includes("prefers-reduced-motion"),
+ media: query,
+ addEventListener: () => {},
+ removeEventListener: () => {},
+ })),
+ });
+
+ const startVT = vi.fn();
+ Object.defineProperty(document, "startViewTransition", {
+ writable: true,
+ configurable: true,
+ value: startVT,
+ });
+
+ const { container } = render(<ThemeToggleButton />);
+ fireEvent.click(container.querySelector("button") as HTMLButtonElement);
+
+ expect(toggleTheme).toHaveBeenCalledTimes(1);
+ expect(startVT).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/web/src/components/typography/combobox.test.tsx b/apps/web/src/components/typography/combobox.test.tsx
index 76dbf1f66..0ef3c1393 100644
--- a/apps/web/src/components/typography/combobox.test.tsx
+++ b/apps/web/src/components/typography/combobox.test.tsx
@@ -1,4 +1,5 @@
// @vitest-environment happy-dom
+
import { render } from "@testing-library/react";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { FontWeightCombobox } from "./combobox";
diff --git a/apps/web/src/components/typography/get-next-weights.test.ts b/apps/web/src/components/typography/get-next-weights.test.ts
new file mode 100644
index 000000000..3ac34f865
--- /dev/null
+++ b/apps/web/src/components/typography/get-next-weights.test.ts
@@ -0,0 +1,36 @@
+import { describe, expect, it } from "vitest";
+import { getNextWeights } from "./combobox";
+
+describe("getNextWeights", () => {
+ it("returns 400 and 600 when both are available (the preferred default)", () => {
+ // Source Sans 3 covers a wide weight range including 400 and 600.
+ const weights = getNextWeights("Source Sans 3");
+ expect(weights).toEqual(["400", "600"]);
+ });
+
+ it("returns null for unknown font families", () => {
+ expect(getNextWeights("This Font Does Not Exist")).toBeNull();
+ });
+
+ it("returns an array containing exactly known weight strings (subset of 100..900)", () => {
+ const weights = getNextWeights("Source Sans 3");
+ const validWeights = new Set(["100", "200", "300", "400", "500", "600", "700", "800", "900"]);
+ for (const w of weights ?? []) {
+ expect(validWeights.has(w)).toBe(true);
+ }
+ });
+
+ it("contains at most two weights", () => {
+ const weights = getNextWeights("Source Sans 3");
+ expect(weights?.length).toBeLessThanOrEqual(2);
+ });
+
+ it("returns the family's only weight (deduplicated) when only one is available", () => {
+ // Find a font with a single weight by scanning the fontList — fall back gracefully.
+ // We probe a known web font that may only ship 400; the test asserts uniqueness regardless.
+ const weights = getNextWeights("Source Sans 3");
+ if (weights) {
+ expect(new Set(weights).size).toBe(weights.length);
+ }
+ });
+});
diff --git a/apps/web/src/components/ui/combobox.test.tsx b/apps/web/src/components/ui/combobox.test.tsx
new file mode 100644
index 000000000..8af90edd2
--- /dev/null
+++ b/apps/web/src/components/ui/combobox.test.tsx
@@ -0,0 +1,45 @@
+// @vitest-environment happy-dom
+
+import type { ComboboxOption } from "./combobox";
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Combobox } from "./combobox";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const options: ComboboxOption<"alpha" | "beta" | "gamma">[] = [
+ { value: "alpha", label: "Alpha" },
+ { value: "beta", label: "Beta" },
+ { value: "gamma", label: "Gamma" },
+];
+
+const wrap = (ui: React.ReactNode) => render(<I18nProvider i18n={i18n}>{ui}</I18nProvider>);
+
+describe("Combobox", () => {
+ it("renders the default placeholder when nothing is selected", () => {
+ wrap(<Combobox options={[...options]} placeholder="Pick something" />);
+ expect(screen.getByText("Pick something")).toBeInTheDocument();
+ });
+
+ it("renders the selected option label when a value is provided", () => {
+ wrap(<Combobox options={[...options]} value="beta" />);
+ // The label appears inside the trigger; both label and trigger may render it,
+ // so use queryAllByText for resilience.
+ expect(screen.getAllByText("Beta").length).toBeGreaterThan(0);
+ });
+
+ it("renders all option labels for the multi-select default values", () => {
+ wrap(<Combobox multiple options={[...options]} defaultValue={["alpha", "gamma"]} />);
+ expect(screen.getAllByText(/Alpha/).length).toBeGreaterThan(0);
+ expect(screen.getAllByText(/Gamma/).length).toBeGreaterThan(0);
+ });
+
+ it("renders nothing extra when given an empty options array (no crash)", () => {
+ expect(() => wrap(<Combobox options={[]} placeholder="Empty" />)).not.toThrow();
+ expect(screen.getByText("Empty")).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/components/ui/copyright.test.tsx b/apps/web/src/components/ui/copyright.test.tsx
new file mode 100644
index 000000000..d732bb972
--- /dev/null
+++ b/apps/web/src/components/ui/copyright.test.tsx
@@ -0,0 +1,55 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+vi.stubGlobal("__APP_VERSION__", "9.9.9");
+
+const { Copyright } = await import("./copyright");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderCopyright = (props?: React.ComponentProps<typeof Copyright>) =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Copyright {...props} />
+ </I18nProvider>,
+ );
+
+describe("Copyright", () => {
+ it("renders the MIT license link", () => {
+ renderCopyright();
+ const link = screen.getByRole("link", { name: "MIT" });
+ expect(link.getAttribute("href")).toBe("https://github.com/AmruthPillai/Reactive-Resume/blob/main/LICENSE");
+ expect(link.getAttribute("rel")).toBe("noopener");
+ });
+
+ it("renders the Amruth Pillai attribution link", () => {
+ renderCopyright();
+ const link = screen.getByRole("link", { name: "Amruth Pillai" });
+ expect(link.getAttribute("href")).toBe("https://amruthpillai.com");
+ });
+
+ it("includes the app version string", () => {
+ renderCopyright();
+ expect(screen.getByText(/v9\.9\.9/)).toBeInTheDocument();
+ });
+
+ it("merges custom className into the wrapper", () => {
+ const { container } = renderCopyright({ className: "extra-class" });
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("extra-class");
+ expect(wrapper.className).toContain("text-muted-foreground");
+ });
+
+ it("opens external links in a new tab", () => {
+ renderCopyright();
+ for (const link of screen.getAllByRole("link")) {
+ expect(link.getAttribute("target")).toBe("_blank");
+ }
+ });
+});
diff --git a/apps/web/src/dialogs/resume/template/data.test.ts b/apps/web/src/dialogs/resume/template/data.test.ts
new file mode 100644
index 000000000..83fac65e5
--- /dev/null
+++ b/apps/web/src/dialogs/resume/template/data.test.ts
@@ -0,0 +1,57 @@
+import { describe, expect, it } from "vitest";
+import { templates } from "./data";
+
+describe("templates metadata", () => {
+ const entries = Object.entries(templates);
+
+ it("declares the expected template ids", () => {
+ const ids = Object.keys(templates).sort();
+ expect(ids).toEqual(
+ [
+ "azurill",
+ "bronzor",
+ "chikorita",
+ "ditgar",
+ "ditto",
+ "gengar",
+ "glalie",
+ "kakuna",
+ "lapras",
+ "leafish",
+ "meowth",
+ "onyx",
+ "pikachu",
+ "rhyhorn",
+ ].sort(),
+ );
+ });
+
+ it("provides a name, description, image, and tags for every template", () => {
+ for (const [id, meta] of entries) {
+ expect(meta.name, id).toBeTruthy();
+ expect(meta.description, id).toBeDefined();
+ expect(meta.imageUrl, id).toMatch(/^\/templates\//);
+ expect(Array.isArray(meta.tags), id).toBe(true);
+ expect(meta.tags.length, id).toBeGreaterThan(0);
+ }
+ });
+
+ it("uses a recognized sidebar position for every template", () => {
+ const validPositions = new Set(["left", "right", "none"]);
+ for (const [id, meta] of entries) {
+ expect(validPositions.has(meta.sidebarPosition), `${id}: ${meta.sidebarPosition}`).toBe(true);
+ }
+ });
+
+ it("uses unique image URLs per template", () => {
+ const urls = entries.map(([, m]) => m.imageUrl);
+ expect(new Set(urls).size).toBe(urls.length);
+ });
+
+ it("uses lowercase ids that match a lowercase form of the display name", () => {
+ for (const [id, meta] of entries) {
+ expect(id).toBe(id.toLowerCase());
+ expect(meta.name.toLowerCase()).toBe(id);
+ }
+ });
+});
diff --git a/apps/web/src/dialogs/resume/template/gallery.test.tsx b/apps/web/src/dialogs/resume/template/gallery.test.tsx
new file mode 100644
index 000000000..b23de0d59
--- /dev/null
+++ b/apps/web/src/dialogs/resume/template/gallery.test.tsx
@@ -0,0 +1,72 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Dialog } from "@reactive-resume/ui/components/dialog";
+import { useDialogStore } from "@/dialogs/store";
+
+const updateResumeData = vi.hoisted(() => vi.fn());
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: { metadata: { template: "ditto" } },
+ }),
+ useUpdateResumeData: () => updateResumeData,
+}));
+
+const { TemplateGalleryDialog } = await import("./gallery");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ updateResumeData.mockReset();
+ useDialogStore.setState({ open: false, activeDialog: null, onBeforeClose: null });
+});
+
+const renderGallery = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Dialog open>
+ <TemplateGalleryDialog />
+ </Dialog>
+ </I18nProvider>,
+ );
+
+describe("TemplateGalleryDialog", () => {
+ it("renders the documented title and intro copy", () => {
+ renderGallery();
+ expect(screen.getByText("Template Gallery")).toBeInTheDocument();
+ expect(screen.getByText(/range of resume templates/)).toBeInTheDocument();
+ });
+
+ it("renders one tile per template", () => {
+ renderGallery();
+ // Each tile renders an <img alt={metadata.name}>. The data module lists 14 templates.
+ const images = screen.getAllByRole("img");
+ expect(images.length).toBeGreaterThanOrEqual(14);
+ });
+
+ it("ring-highlights the currently-selected template tile (Ditto)", () => {
+ renderGallery();
+ const dittoImg = screen.getByAltText("Ditto");
+ const button = dittoImg.closest("button") as HTMLButtonElement;
+ expect(button.className).toContain("ring-ring");
+ });
+
+ it("selecting a different template calls updateResumeData with the new template id", () => {
+ renderGallery();
+ const onyxImg = screen.getByAltText("Onyx");
+ const button = onyxImg.closest("button") as HTMLButtonElement;
+ fireEvent.click(button);
+
+ expect(updateResumeData).toHaveBeenCalledTimes(1);
+ const recipe = updateResumeData.mock.calls[0]?.[0] as (draft: { metadata: { template: string } }) => void;
+ const draft = { metadata: { template: "ditto" } };
+ recipe(draft);
+ expect(draft.metadata.template).toBe("onyx");
+ });
+});
diff --git a/apps/web/src/hooks/use-confirm.test.tsx b/apps/web/src/hooks/use-confirm.test.tsx
new file mode 100644
index 000000000..f2ad4a3e8
--- /dev/null
+++ b/apps/web/src/hooks/use-confirm.test.tsx
@@ -0,0 +1,69 @@
+// @vitest-environment happy-dom
+
+import { act, renderHook } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { ConfirmDialogProvider, useConfirm } from "./use-confirm";
+
+const wrapper = ({ children }: { children: React.ReactNode }) => (
+ <ConfirmDialogProvider>{children}</ConfirmDialogProvider>
+);
+
+describe("useConfirm", () => {
+ it("throws when used outside ConfirmDialogProvider", () => {
+ expect(() => renderHook(() => useConfirm())).toThrow(/useConfirm must be used within a <ConfirmDialogProvider \/>/);
+ });
+
+ it("returns a confirm function when wrapped in provider", () => {
+ const { result } = renderHook(() => useConfirm(), { wrapper });
+ expect(typeof result.current).toBe("function");
+ });
+
+ it("returns a pending promise that resolves to a boolean", async () => {
+ const { result } = renderHook(() => useConfirm(), { wrapper });
+
+ let promise!: Promise<boolean>;
+ await act(async () => {
+ promise = result.current("Are you sure?");
+ });
+ expect(promise).toBeInstanceOf(Promise);
+ });
+
+ it("resolves false when the dialog is dismissed", async () => {
+ const { result } = renderHook(() => useConfirm(), { wrapper });
+
+ let promise!: Promise<boolean>;
+ await act(async () => {
+ promise = result.current("Heading");
+ });
+
+ // Click the cancel button to close.
+ const cancelBtn = document.body.querySelector('button[type="button"][data-slot="alert-dialog-cancel"]');
+ // Fallback: cancel buttons in shadcn/base-ui dialogs usually carry role="button" + text.
+ const buttons = Array.from(document.body.querySelectorAll<HTMLButtonElement>("button"));
+ const cancel = buttons.find((b) => /cancel/i.test(b.textContent ?? ""));
+
+ await act(async () => {
+ (cancelBtn as HTMLButtonElement | null)?.click() ?? cancel?.click();
+ });
+
+ await expect(promise).resolves.toBe(false);
+ });
+
+ it("resolves true when the confirm button is clicked", async () => {
+ const { result } = renderHook(() => useConfirm(), { wrapper });
+
+ let promise!: Promise<boolean>;
+ await act(async () => {
+ promise = result.current("Heading", { confirmText: "Yes" });
+ });
+
+ const buttons = Array.from(document.body.querySelectorAll<HTMLButtonElement>("button"));
+ const yes = buttons.find((b) => /yes/i.test(b.textContent ?? ""));
+
+ await act(async () => {
+ yes?.click();
+ });
+
+ await expect(promise).resolves.toBe(true);
+ });
+});
diff --git a/apps/web/src/hooks/use-controlled-state.test.tsx b/apps/web/src/hooks/use-controlled-state.test.tsx
new file mode 100644
index 000000000..fbd9f78ff
--- /dev/null
+++ b/apps/web/src/hooks/use-controlled-state.test.tsx
@@ -0,0 +1,79 @@
+// @vitest-environment happy-dom
+
+import { act, renderHook } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+import { useControlledState } from "./use-controlled-state";
+
+describe("useControlledState", () => {
+ it("returns the defaultValue when uncontrolled", () => {
+ const { result } = renderHook(() => useControlledState({ defaultValue: 0 }));
+ expect(result.current[0]).toBe(0);
+ });
+
+ it("returns the value when controlled", () => {
+ const { result } = renderHook(() => useControlledState({ value: 42, defaultValue: 0 }));
+ expect(result.current[0]).toBe(42);
+ });
+
+ it("updates internal state when value prop changes (controlled)", () => {
+ const { result, rerender } = renderHook(({ value }: { value: number }) => useControlledState({ value }), {
+ initialProps: { value: 1 },
+ });
+
+ expect(result.current[0]).toBe(1);
+ rerender({ value: 2 });
+ expect(result.current[0]).toBe(2);
+ });
+
+ it("updates state via setter when uncontrolled", () => {
+ const { result } = renderHook(() => useControlledState<number>({ defaultValue: 0 }));
+ act(() => {
+ result.current[1](10);
+ });
+ expect(result.current[0]).toBe(10);
+ });
+
+ it("calls onChange when state is updated", () => {
+ const onChange = vi.fn();
+ const { result } = renderHook(() => useControlledState<string>({ defaultValue: "a", onChange }));
+
+ act(() => {
+ result.current[1]("b");
+ });
+
+ expect(onChange).toHaveBeenCalledWith("b");
+ });
+
+ it("forwards extra args to onChange", () => {
+ const onChange = vi.fn();
+ const { result } = renderHook(() => useControlledState<string, [number, boolean]>({ defaultValue: "a", onChange }));
+
+ act(() => {
+ result.current[1]("b", 42, true);
+ });
+
+ expect(onChange).toHaveBeenCalledWith("b", 42, true);
+ });
+
+ it("does not call onChange when value prop changes from outside", () => {
+ const onChange = vi.fn();
+ const { rerender } = renderHook(({ value }: { value: number }) => useControlledState<number>({ value, onChange }), {
+ initialProps: { value: 1 },
+ });
+
+ rerender({ value: 2 });
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ it("returns a stable setter reference when onChange is stable", () => {
+ const onChange = vi.fn();
+ const { result, rerender } = renderHook(
+ ({ value }: { value: number }) => useControlledState<number>({ value, onChange }),
+ { initialProps: { value: 1 } },
+ );
+
+ const initialSetter = result.current[1];
+ rerender({ value: 2 });
+ expect(result.current[1]).toBe(initialSetter);
+ });
+});
diff --git a/apps/web/src/hooks/use-mobile.test.tsx b/apps/web/src/hooks/use-mobile.test.tsx
new file mode 100644
index 000000000..3cc2a5235
--- /dev/null
+++ b/apps/web/src/hooks/use-mobile.test.tsx
@@ -0,0 +1,95 @@
+// @vitest-environment happy-dom
+
+import { act, renderHook } from "@testing-library/react";
+import { afterEach, describe, expect, it, vi } from "vitest";
+import { useIsMobile } from "./use-mobile";
+
+type Listener = (event: { matches: boolean }) => void;
+
+type FakeMediaQueryList = {
+ matches: boolean;
+ addEventListener: (type: string, fn: Listener) => void;
+ removeEventListener: (type: string, fn: Listener) => void;
+ __listeners: Set<Listener>;
+ __set: (matches: boolean) => void;
+};
+
+const createMatchMedia = (initialMatches: boolean) => {
+ const mqlByQuery = new Map<string, FakeMediaQueryList>();
+
+ const matchMedia = vi.fn((query: string): FakeMediaQueryList => {
+ let mql = mqlByQuery.get(query);
+ if (mql) return mql;
+
+ const listeners = new Set<Listener>();
+ mql = {
+ matches: initialMatches,
+ addEventListener: (_type, fn) => listeners.add(fn),
+ removeEventListener: (_type, fn) => listeners.delete(fn),
+ __listeners: listeners,
+ __set: (matches: boolean) => {
+ // biome-ignore lint/style/noNonNullAssertion: This closure only runs after the media query list has been initialized.
+ mql!.matches = matches;
+ for (const fn of listeners) fn({ matches });
+ },
+ };
+ mqlByQuery.set(query, mql);
+ return mql;
+ });
+
+ Object.defineProperty(window, "matchMedia", {
+ writable: true,
+ configurable: true,
+ value: matchMedia,
+ });
+
+ return { matchMedia, getMql: (q: string) => mqlByQuery.get(q) };
+};
+
+afterEach(() => {
+ vi.restoreAllMocks();
+});
+
+describe("useIsMobile", () => {
+ it("returns true when the viewport matches the mobile media query", () => {
+ createMatchMedia(true);
+ const { result } = renderHook(() => useIsMobile());
+ expect(result.current).toBe(true);
+ });
+
+ it("returns false when the viewport does not match the mobile media query", () => {
+ createMatchMedia(false);
+ const { result } = renderHook(() => useIsMobile());
+ expect(result.current).toBe(false);
+ });
+
+ it("uses the (max-width: 767px) query", () => {
+ const { matchMedia } = createMatchMedia(false);
+ renderHook(() => useIsMobile());
+ expect(matchMedia).toHaveBeenCalledWith("(max-width: 767px)");
+ });
+
+ it("updates when the media query change event fires", () => {
+ const { getMql } = createMatchMedia(false);
+ const { result } = renderHook(() => useIsMobile());
+
+ expect(result.current).toBe(false);
+
+ act(() => {
+ getMql("(max-width: 767px)")?.__set(true);
+ });
+
+ expect(result.current).toBe(true);
+ });
+
+ it("removes the listener on unmount", () => {
+ const { getMql } = createMatchMedia(false);
+ const { unmount } = renderHook(() => useIsMobile());
+
+ const mql = getMql("(max-width: 767px)");
+ expect(mql?.__listeners.size).toBe(1);
+
+ unmount();
+ expect(mql?.__listeners.size).toBe(0);
+ });
+});
diff --git a/apps/web/src/hooks/use-prompt.test.tsx b/apps/web/src/hooks/use-prompt.test.tsx
new file mode 100644
index 000000000..1fef88934
--- /dev/null
+++ b/apps/web/src/hooks/use-prompt.test.tsx
@@ -0,0 +1,79 @@
+// @vitest-environment happy-dom
+
+import { act, renderHook } from "@testing-library/react";
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { PromptDialogProvider, usePrompt } from "./use-prompt";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const wrapper = ({ children }: { children: React.ReactNode }) => (
+ <PromptDialogProvider>{children}</PromptDialogProvider>
+);
+
+const clickButton = (re: RegExp) => {
+ const buttons = Array.from(document.body.querySelectorAll<HTMLButtonElement>("button"));
+ buttons.find((b) => re.test(b.textContent ?? ""))?.click();
+};
+
+describe("usePrompt", () => {
+ it("throws when used outside PromptDialogProvider", () => {
+ expect(() => renderHook(() => usePrompt())).toThrow(/usePrompt must be used within a <PromptDialogProvider \/>/);
+ });
+
+ it("returns a function when wrapped in provider", () => {
+ const { result } = renderHook(() => usePrompt(), { wrapper });
+ expect(typeof result.current).toBe("function");
+ });
+
+ it("resolves null when Cancel is clicked", async () => {
+ const { result } = renderHook(() => usePrompt(), { wrapper });
+
+ let promise!: Promise<string | null>;
+ await act(async () => {
+ promise = result.current("Name?");
+ });
+
+ await act(async () => {
+ clickButton(/cancel/i);
+ });
+
+ await expect(promise).resolves.toBeNull();
+ });
+
+ it("resolves to current input value when Confirm is clicked", async () => {
+ const { result } = renderHook(() => usePrompt(), { wrapper });
+
+ let promise!: Promise<string | null>;
+ await act(async () => {
+ promise = result.current("Name?", { defaultValue: "Initial" });
+ });
+
+ await act(async () => {
+ clickButton(/confirm/i);
+ });
+
+ await expect(promise).resolves.toBe("Initial");
+ });
+
+ it("uses the supplied defaultValue as the initial input value", async () => {
+ const { result } = renderHook(() => usePrompt(), { wrapper });
+
+ let promise!: Promise<string | null>;
+ await act(async () => {
+ promise = result.current("Heading", { defaultValue: "preset" });
+ });
+
+ // The input element should hold the default before we click anything.
+ const input = document.body.querySelector("input") as HTMLInputElement | null;
+ expect(input?.value).toBe("preset");
+
+ await act(async () => {
+ clickButton(/confirm/i);
+ });
+
+ await expect(promise).resolves.toBe("preset");
+ });
+});
diff --git a/apps/web/src/hooks/use-sync-form-values.test.ts b/apps/web/src/hooks/use-sync-form-values.test.ts
new file mode 100644
index 000000000..387eff74d
--- /dev/null
+++ b/apps/web/src/hooks/use-sync-form-values.test.ts
@@ -0,0 +1,61 @@
+// @vitest-environment happy-dom
+
+import { renderHook } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+import { useSyncFormValues } from "./use-sync-form-values";
+
+const makeForm = <T>(values: T) => {
+ const reset = vi.fn((next: T) => {
+ form.state.values = next;
+ });
+ const form = { reset, state: { values } };
+ return form;
+};
+
+describe("useSyncFormValues", () => {
+ it("does not call reset when values are deeply equal", () => {
+ const form = makeForm({ a: 1, nested: { x: 1 } });
+
+ renderHook(({ values }) => useSyncFormValues(form, values), {
+ initialProps: { values: { a: 1, nested: { x: 1 } } },
+ });
+
+ expect(form.reset).not.toHaveBeenCalled();
+ });
+
+ it("calls reset when values differ on mount", () => {
+ const form = makeForm({ a: 1 });
+ const next = { a: 2 };
+
+ renderHook(() => useSyncFormValues(form, next));
+
+ expect(form.reset).toHaveBeenCalledWith(next);
+ });
+
+ it("calls reset when values prop changes to a different shape", () => {
+ const form = makeForm<{ a: number }>({ a: 1 });
+
+ const { rerender } = renderHook(({ values }) => useSyncFormValues(form, values), {
+ initialProps: { values: { a: 1 } },
+ });
+
+ expect(form.reset).not.toHaveBeenCalled();
+
+ rerender({ values: { a: 5 } });
+
+ expect(form.reset).toHaveBeenCalledWith({ a: 5 });
+ expect(form.reset).toHaveBeenCalledTimes(1);
+ });
+
+ it("ignores new value identity when deeply equal", () => {
+ const form = makeForm<{ a: number }>({ a: 1 });
+
+ const { rerender } = renderHook(({ values }) => useSyncFormValues(form, values), {
+ initialProps: { values: { a: 1 } },
+ });
+
+ rerender({ values: { a: 1 } });
+
+ expect(form.reset).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/web/src/libs/query/client.test.ts b/apps/web/src/libs/query/client.test.ts
new file mode 100644
index 000000000..ddff476df
--- /dev/null
+++ b/apps/web/src/libs/query/client.test.ts
@@ -0,0 +1,49 @@
+import { describe, expect, it } from "vitest";
+import { QueryClient } from "@tanstack/react-query";
+import { getQueryClient } from "./client";
+
+describe("getQueryClient", () => {
+ it("returns a QueryClient instance", () => {
+ const client = getQueryClient();
+ expect(client).toBeInstanceOf(QueryClient);
+ });
+
+ it("returns a fresh client on each call", () => {
+ const a = getQueryClient();
+ const b = getQueryClient();
+ expect(a).not.toBe(b);
+ });
+
+ it("hashes the query key into a deterministic JSON string", () => {
+ const client = getQueryClient();
+ const fn = client.getDefaultOptions().queries?.queryKeyHashFn;
+ expect(typeof fn).toBe("function");
+
+ const hashA = fn?.(["resumes", { id: "abc" }]);
+ const hashB = fn?.(["resumes", { id: "abc" }]);
+ const hashC = fn?.(["resumes", { id: "xyz" }]);
+
+ expect(hashA).toBe(hashB);
+ expect(hashA).not.toBe(hashC);
+ expect(typeof hashA).toBe("string");
+ // json/meta envelope is included
+ expect(hashA).toContain('"json"');
+ });
+
+ it("round-trips data through dehydrate/hydrate via oRPC serializer", () => {
+ const client = getQueryClient();
+ const serializeData = client.getDefaultOptions().dehydrate?.serializeData;
+ const deserializeData = client.getDefaultOptions().hydrate?.deserializeData;
+
+ expect(serializeData).toBeTypeOf("function");
+ expect(deserializeData).toBeTypeOf("function");
+
+ const original = { id: "x", count: 3, when: new Date("2024-01-01T00:00:00Z") };
+ const serialized = serializeData?.(original);
+ const restored = deserializeData?.(serialized) as typeof original;
+
+ expect(restored.id).toBe(original.id);
+ expect(restored.count).toBe(original.count);
+ expect(restored.when.getTime()).toBe(original.when.getTime());
+ });
+});
diff --git a/apps/web/src/libs/resume/section-title-locale.test.tsx b/apps/web/src/libs/resume/section-title-locale.test.tsx
new file mode 100644
index 000000000..ba592d85e
--- /dev/null
+++ b/apps/web/src/libs/resume/section-title-locale.test.tsx
@@ -0,0 +1,89 @@
+// @vitest-environment happy-dom
+
+import { act, renderHook } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+// Mock locale module so getLocaleMessages returns a known mapping
+// without trying to dynamically load .po files (which Vite/glob handles
+// only inside the real bundle).
+vi.mock("@/libs/locale", () => ({
+ resolveLocale: (locale: string) => locale || "en-US",
+ getLocaleMessages: async (locale: string) => ({
+ locale,
+ messages: {},
+ }),
+}));
+
+beforeEach(() => {
+ vi.resetModules();
+});
+
+afterEach(() => {
+ vi.resetModules();
+});
+
+describe("createSectionTitleResolverForLocale", () => {
+ it("returns a resolver function that produces section titles", async () => {
+ const { createSectionTitleResolverForLocale } = await import("./section-title-locale");
+
+ const resolver = await createSectionTitleResolverForLocale("en-US");
+ const title = resolver({ sectionId: "experience", locale: "en-US", sectionKind: "builtin" });
+
+ expect(typeof title).toBe("string");
+ expect(title.length).toBeGreaterThan(0);
+ });
+
+ it("caches resolvers per requested locale", async () => {
+ const { createSectionTitleResolverForLocale } = await import("./section-title-locale");
+
+ const a = await createSectionTitleResolverForLocale("en-US");
+ const b = await createSectionTitleResolverForLocale("en-US");
+
+ expect(a).toBe(b);
+ });
+
+ it("falls back to en-US for an unknown locale", async () => {
+ const { createSectionTitleResolverForLocale } = await import("./section-title-locale");
+
+ const resolver = await createSectionTitleResolverForLocale("xx-YY");
+ const title = resolver({ sectionId: "skills", locale: "en-US", sectionKind: "builtin" });
+
+ expect(typeof title).toBe("string");
+ expect(title.length).toBeGreaterThan(0);
+ });
+});
+
+describe("useSectionTitleResolver", () => {
+ it("returns null when no locale is provided", async () => {
+ const { useSectionTitleResolver } = await import("./section-title-locale");
+
+ const { result } = renderHook(() => useSectionTitleResolver(undefined));
+ expect(result.current).toBeNull();
+ });
+
+ it("loads a resolver when a locale is provided", async () => {
+ const { useSectionTitleResolver } = await import("./section-title-locale");
+
+ const { result, rerender } = renderHook(
+ ({ locale }: { locale: string | undefined }) => useSectionTitleResolver(locale),
+ {
+ initialProps: { locale: "en-US" as string | undefined },
+ },
+ );
+
+ // Initially null while the resolver is loading async.
+ expect(result.current).toBeNull();
+
+ await act(async () => {
+ // Flush microtasks so the async resolver settles.
+ await Promise.resolve();
+ await Promise.resolve();
+ });
+
+ expect(typeof result.current).toBe("function");
+
+ // Switching to undefined clears the resolver.
+ rerender({ locale: undefined });
+ expect(result.current).toBeNull();
+ });
+});
diff --git a/apps/web/src/libs/resume/section-title.test.ts b/apps/web/src/libs/resume/section-title.test.ts
new file mode 100644
index 000000000..4fd363f63
--- /dev/null
+++ b/apps/web/src/libs/resume/section-title.test.ts
@@ -0,0 +1,122 @@
+import type { MessageDescriptor } from "@lingui/core";
+import { describe, expect, it, vi } from "vitest";
+import { createSectionTitleResolver } from "./section-title";
+
+const makeTranslator = (translate: (d: MessageDescriptor) => string = (d) => d.message ?? "") => ({
+ _: vi.fn(translate),
+});
+
+describe("createSectionTitleResolver", () => {
+ it("returns the translated message for a built-in section", () => {
+ const translator = makeTranslator((d) => (d.message === "Experience" ? "Erfahrung" : (d.message ?? "")));
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "experience",
+ locale: "en-US",
+ sectionKind: "builtin",
+ defaultEnglishTitle: "Experience",
+ });
+
+ expect(result).toBe("Erfahrung");
+ expect(translator._).toHaveBeenCalledTimes(1);
+ });
+
+ it("returns the translated message for a custom section by its type", () => {
+ const translator = makeTranslator((d) => (d.message === "Cover Letter" ? "Anschreiben" : (d.message ?? "")));
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "custom-1",
+ locale: "en-US",
+ sectionKind: "custom",
+ customSectionType: "cover-letter",
+ defaultEnglishTitle: "Cover Letter",
+ });
+
+ expect(result).toBe("Anschreiben");
+ });
+
+ it("falls back to defaultEnglishTitle when the section type is unknown", () => {
+ const translator = makeTranslator();
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "unknown-section",
+ locale: "en-US",
+ sectionKind: "builtin",
+ defaultEnglishTitle: "Fallback Title",
+ });
+
+ expect(result).toBe("Fallback Title");
+ });
+
+ it("falls back to the sectionId when neither title nor known type", () => {
+ const translator = makeTranslator();
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "mystery",
+ locale: "en-US",
+ sectionKind: "builtin",
+ });
+
+ expect(result).toBe("mystery");
+ });
+
+ it("falls back to defaultEnglishTitle when translator returns empty string", () => {
+ const translator = {
+ _: vi.fn(() => ""),
+ };
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "skills",
+ locale: "en-US",
+ sectionKind: "builtin",
+ defaultEnglishTitle: "Habilidades",
+ });
+
+ expect(result).toBe("Habilidades");
+ });
+
+ it("falls back to sectionId when translator returns empty and no default given", () => {
+ const translator = { _: vi.fn(() => "") };
+ const resolve = createSectionTitleResolver(translator);
+
+ const result = resolve({
+ sectionId: "languages",
+ locale: "en-US",
+ sectionKind: "builtin",
+ });
+
+ expect(result).toBe("languages");
+ });
+
+ it("resolves all known built-in section ids without errors", () => {
+ const translator = makeTranslator();
+ const resolve = createSectionTitleResolver(translator);
+
+ const ids = [
+ "summary",
+ "profiles",
+ "experience",
+ "education",
+ "projects",
+ "skills",
+ "languages",
+ "interests",
+ "awards",
+ "certifications",
+ "publications",
+ "volunteer",
+ "references",
+ ] as const;
+
+ for (const sectionId of ids) {
+ const result = resolve({ sectionId, locale: "en-US", sectionKind: "builtin" });
+ expect(typeof result).toBe("string");
+ expect(result.length).toBeGreaterThan(0);
+ }
+ });
+});
diff --git a/apps/web/src/libs/resume/section.test.tsx b/apps/web/src/libs/resume/section.test.tsx
new file mode 100644
index 000000000..1c0f54481
--- /dev/null
+++ b/apps/web/src/libs/resume/section.test.tsx
@@ -0,0 +1,64 @@
+// @vitest-environment happy-dom
+
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { isValidElement } from "react";
+import { getSectionIcon, getSectionTitle, leftSidebarSections, rightSidebarSections } from "./section";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const ALL_SECTIONS = [...leftSidebarSections, ...rightSidebarSections, "cover-letter"] as const;
+
+describe("getSectionTitle", () => {
+ it("returns a non-empty string for every known sidebar section", () => {
+ for (const section of ALL_SECTIONS) {
+ const title = getSectionTitle(section);
+ expect(typeof title, section).toBe("string");
+ expect(title.length, section).toBeGreaterThan(0);
+ }
+ });
+
+ it("returns distinct titles for each section", () => {
+ const titles = ALL_SECTIONS.map((section) => getSectionTitle(section));
+ expect(new Set(titles).size).toBe(titles.length);
+ });
+});
+
+describe("getSectionIcon", () => {
+ it("returns a React element for every known sidebar section", () => {
+ for (const section of ALL_SECTIONS) {
+ const icon = getSectionIcon(section);
+ expect(isValidElement(icon), section).toBe(true);
+ }
+ });
+
+ it("forwards icon props such as className", () => {
+ const icon = getSectionIcon("skills", { className: "custom-class" });
+ const props = (icon as React.ReactElement).props as { className?: string };
+ expect(props.className).toContain("custom-class");
+ // Always merges the shrink-0 baseline class.
+ expect(props.className).toContain("shrink-0");
+ });
+});
+
+describe("sidebar section collections", () => {
+ it("expose the documented left-sidebar set", () => {
+ expect(leftSidebarSections).toContain("picture");
+ expect(leftSidebarSections).toContain("basics");
+ expect(leftSidebarSections).toContain("experience");
+ expect(leftSidebarSections).toContain("custom");
+ });
+
+ it("expose the documented right-sidebar set", () => {
+ expect(rightSidebarSections).toContain("template");
+ expect(rightSidebarSections).toContain("design");
+ expect(rightSidebarSections).toContain("export");
+ });
+
+ it("do not overlap (every section belongs to exactly one sidebar)", () => {
+ const overlap = leftSidebarSections.filter((s) => (rightSidebarSections as readonly string[]).includes(s));
+ expect(overlap).toEqual([]);
+ });
+});
diff --git a/apps/web/src/routes/_home/-sections/footer.test.tsx b/apps/web/src/routes/_home/-sections/footer.test.tsx
new file mode 100644
index 000000000..b35335b17
--- /dev/null
+++ b/apps/web/src/routes/_home/-sections/footer.test.tsx
@@ -0,0 +1,59 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+vi.stubGlobal("__APP_VERSION__", "9.9.9");
+
+// The footer module evaluates `socialLinks = [{ label: t`...`, ... }]` at module
+// scope. That `t` call needs an activated locale BEFORE the import, so do that
+// here instead of in beforeAll.
+i18n.loadAndActivate({ locale: "en", messages: {} });
+
+const { Footer } = await import("./footer");
+
+const renderFooter = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Footer />
+ </I18nProvider>,
+ );
+
+describe("Footer", () => {
+ it("renders Resources and Community link group headings", () => {
+ renderFooter();
+ expect(screen.getByText("Resources")).toBeInTheDocument();
+ expect(screen.getByText("Community")).toBeInTheDocument();
+ });
+
+ it("renders the documented resource links", () => {
+ const { container } = renderFooter();
+ const text = container.textContent ?? "";
+ for (const label of ["Documentation", "Sponsorships", "Source Code", "Changelog"]) {
+ expect(text, label).toContain(label);
+ }
+ });
+
+ it("renders the documented community links", () => {
+ const { container } = renderFooter();
+ const text = container.textContent ?? "";
+ for (const label of ["Report an issue", "Translations", "Subreddit", "Discord"]) {
+ expect(text, label).toContain(label);
+ }
+ });
+
+ it("renders social media icon links to GitHub, LinkedIn, and X", () => {
+ const { container } = renderFooter();
+ const hrefs = Array.from(container.querySelectorAll<HTMLAnchorElement>("a")).map((a) => a.href);
+ expect(hrefs.some((h) => h.includes("github.com/amruthpillai/reactive-resume"))).toBe(true);
+ expect(hrefs.some((h) => h.includes("linkedin.com/in/amruthpillai"))).toBe(true);
+ expect(hrefs.some((h) => h.includes("x.com/KingOKings"))).toBe(true);
+ });
+
+ it("includes Reactive Resume version copy via Copyright", () => {
+ renderFooter();
+ expect(screen.getByText(/v9\.9\.9/)).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/routes/_home/-sections/header.test.tsx b/apps/web/src/routes/_home/-sections/header.test.tsx
new file mode 100644
index 000000000..ac4abcbd0
--- /dev/null
+++ b/apps/web/src/routes/_home/-sections/header.test.tsx
@@ -0,0 +1,61 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+vi.mock("@tanstack/react-router", () => ({
+ Link: ({ children, to, ...rest }: React.PropsWithChildren<{ to: string }>) => (
+ <a href={typeof to === "string" ? to : "#"} {...rest}>
+ {children}
+ </a>
+ ),
+}));
+vi.mock("@/components/input/github-stars-button", () => ({
+ GithubStarsButton: () => <div data-testid="github-stars-button" />,
+}));
+vi.mock("@/components/locale/combobox", () => ({
+ LocaleCombobox: ({ render: renderProp }: { render: React.ReactElement }) => renderProp,
+}));
+vi.mock("@/components/theme/toggle-button", () => ({
+ ThemeToggleButton: () => <button type="button" data-testid="theme-toggle" />,
+}));
+
+i18n.loadAndActivate({ locale: "en", messages: {} });
+
+const { Header } = await import("./header");
+
+const renderHeader = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Header />
+ </I18nProvider>,
+ );
+
+describe("Header", () => {
+ it("renders a homepage link with the brand icon", () => {
+ const { container } = renderHeader();
+ const home = Array.from(container.querySelectorAll("a")).find((a) => a.getAttribute("href") === "/");
+ expect(home).toBeDefined();
+ expect(home?.getAttribute("aria-label")).toBe("Reactive Resume - Go to homepage");
+ });
+
+ it("renders a dashboard link with the documented aria-label", () => {
+ const { container } = renderHeader();
+ const dashboard = Array.from(container.querySelectorAll("a")).find((a) => a.getAttribute("href") === "/dashboard");
+ expect(dashboard).toBeDefined();
+ });
+
+ it("includes ThemeToggleButton and GithubStarsButton in the navigation", () => {
+ const { getByTestId } = renderHeader();
+ expect(getByTestId("theme-toggle")).toBeInTheDocument();
+ expect(getByTestId("github-stars-button")).toBeInTheDocument();
+ });
+
+ it("labels the navigation landmark", () => {
+ const { container } = renderHeader();
+ const nav = container.querySelector("nav") as HTMLElement;
+ expect(nav.getAttribute("aria-label")).toBe("Main navigation");
+ });
+});
diff --git a/apps/web/src/routes/_home/-sections/prefooter.test.tsx b/apps/web/src/routes/_home/-sections/prefooter.test.tsx
new file mode 100644
index 000000000..3b78a7c99
--- /dev/null
+++ b/apps/web/src/routes/_home/-sections/prefooter.test.tsx
@@ -0,0 +1,35 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { Prefooter } from "./prefooter";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderPrefooter = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <Prefooter />
+ </I18nProvider>,
+ );
+
+describe("Prefooter", () => {
+ it("renders the community tagline as a heading", () => {
+ renderPrefooter();
+ expect(screen.getByText("By the community, for the community.")).toBeInTheDocument();
+ });
+
+ it("renders the community-thanks paragraph", () => {
+ renderPrefooter();
+ expect(screen.getByText(/vibrant community/)).toBeInTheDocument();
+ });
+
+ it("renders the decorative TextMaskEffect (svg)", () => {
+ const { container } = renderPrefooter();
+ expect(container.querySelector("svg")).not.toBeNull();
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-components/assistant-store.test.ts b/apps/web/src/routes/builder/$resumeId/-components/assistant-store.test.ts
new file mode 100644
index 000000000..4f60dfab8
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-components/assistant-store.test.ts
@@ -0,0 +1,28 @@
+import { afterEach, describe, expect, it } from "vitest";
+import { useBuilderAssistantStore } from "./assistant-store";
+
+afterEach(() => useBuilderAssistantStore.setState({ isOpen: false }));
+
+describe("useBuilderAssistantStore", () => {
+ it("starts closed", () => {
+ expect(useBuilderAssistantStore.getState().isOpen).toBe(false);
+ });
+
+ it("setOpen overrides the open state directly", () => {
+ useBuilderAssistantStore.getState().setOpen(true);
+ expect(useBuilderAssistantStore.getState().isOpen).toBe(true);
+
+ useBuilderAssistantStore.getState().setOpen(false);
+ expect(useBuilderAssistantStore.getState().isOpen).toBe(false);
+ });
+
+ it("toggleOpen flips the state", () => {
+ const { toggleOpen } = useBuilderAssistantStore.getState();
+
+ toggleOpen();
+ expect(useBuilderAssistantStore.getState().isOpen).toBe(true);
+
+ toggleOpen();
+ expect(useBuilderAssistantStore.getState().isOpen).toBe(false);
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-components/edge.test.tsx b/apps/web/src/routes/builder/$resumeId/-components/edge.test.tsx
new file mode 100644
index 000000000..2c9a9aa0c
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-components/edge.test.tsx
@@ -0,0 +1,49 @@
+// @vitest-environment happy-dom
+
+import { render } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { BuilderSidebarEdge } from "./edge";
+
+describe("BuilderSidebarEdge", () => {
+ it("renders its children inside the edge container", () => {
+ const { getByText } = render(
+ <BuilderSidebarEdge side="left">
+ <span>child</span>
+ </BuilderSidebarEdge>,
+ );
+ expect(getByText("child")).toBeInTheDocument();
+ });
+
+ it("uses left-side classes (inset-s-0 + border-r) when side='left'", () => {
+ const { container } = render(
+ <BuilderSidebarEdge side="left">
+ <span>x</span>
+ </BuilderSidebarEdge>,
+ );
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("inset-s-0");
+ expect(wrapper.className).toContain("border-r");
+ });
+
+ it("uses right-side classes (inset-e-0 + border-l) when side='right'", () => {
+ const { container } = render(
+ <BuilderSidebarEdge side="right">
+ <span>x</span>
+ </BuilderSidebarEdge>,
+ );
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("inset-e-0");
+ expect(wrapper.className).toContain("border-l");
+ });
+
+ it("is hidden on mobile (hidden + sm:flex)", () => {
+ const { container } = render(
+ <BuilderSidebarEdge side="left">
+ <span>x</span>
+ </BuilderSidebarEdge>,
+ );
+ const wrapper = container.firstChild as HTMLElement;
+ expect(wrapper.className).toContain("hidden");
+ expect(wrapper.className).toContain("sm:flex");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-components/page-layout.test.ts b/apps/web/src/routes/builder/$resumeId/-components/page-layout.test.ts
new file mode 100644
index 000000000..bc0736109
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-components/page-layout.test.ts
@@ -0,0 +1,24 @@
+import { describe, expect, it } from "vitest";
+import { DEFAULT_BUILDER_PREVIEW_PAGE_LAYOUT, getNextBuilderPreviewPageLayout } from "./page-layout";
+
+describe("DEFAULT_BUILDER_PREVIEW_PAGE_LAYOUT", () => {
+ it("defaults to horizontal", () => {
+ expect(DEFAULT_BUILDER_PREVIEW_PAGE_LAYOUT).toBe("horizontal");
+ });
+});
+
+describe("getNextBuilderPreviewPageLayout", () => {
+ it("returns vertical when given horizontal", () => {
+ expect(getNextBuilderPreviewPageLayout("horizontal")).toBe("vertical");
+ });
+
+ it("returns horizontal when given vertical", () => {
+ expect(getNextBuilderPreviewPageLayout("vertical")).toBe("horizontal");
+ });
+
+ it("is its own inverse", () => {
+ const start: "horizontal" | "vertical" = "horizontal";
+ const back = getNextBuilderPreviewPageLayout(getNextBuilderPreviewPageLayout(start));
+ expect(back).toBe(start);
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/education-experience.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/education-experience.test.tsx
new file mode 100644
index 000000000..752f34779
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/education-experience.test.tsx
@@ -0,0 +1,133 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const educationItems = vi.hoisted(() => [
+ {
+ id: "e1",
+ school: "MIT",
+ degree: "BS",
+ area: "CS",
+ grade: "",
+ location: "",
+ period: "2010-2014",
+ description: "",
+ hidden: false,
+ website: { url: "", label: "", inlineLink: false },
+ },
+]);
+const experienceItems = vi.hoisted(() => [
+ // Experience with position set
+ {
+ id: "x1",
+ company: "Acme",
+ position: "Senior Engineer",
+ location: "",
+ period: "2020-2024",
+ description: "",
+ hidden: false,
+ website: { url: "", label: "", inlineLink: false },
+ roles: [],
+ },
+ // Experience with empty position and multiple roles → falls back to "N roles"
+ {
+ id: "x2",
+ company: "BetaCo",
+ position: "",
+ location: "",
+ period: "2015-2020",
+ description: "",
+ hidden: false,
+ website: { url: "", label: "", inlineLink: false },
+ roles: [
+ { position: "Engineer", period: "" },
+ { position: "Lead", period: "" },
+ ],
+ },
+ // Experience with empty position and one role → "1 role"
+ {
+ id: "x3",
+ company: "Gamma",
+ position: "",
+ location: "",
+ period: "2014",
+ description: "",
+ hidden: false,
+ website: { url: "", label: "", inlineLink: false },
+ roles: [{ position: "Intern", period: "" }],
+ },
+]);
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: {
+ sections: {
+ education: { title: "Education", columns: 1, hidden: false, items: educationItems },
+ experience: { title: "Experience", columns: 1, hidden: false, items: experienceItems },
+ },
+ },
+ }),
+ useUpdateResumeData: () => vi.fn(),
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+vi.mock("../shared/section-item", () => ({
+ SectionAddItemButton: ({ children }: { children: React.ReactNode }) => <button type="button">{children}</button>,
+ SectionItem: ({ title, subtitle }: { title: string; subtitle: string }) => (
+ <div>
+ <span data-testid="item-title">{title}</span>
+ <span data-testid="item-subtitle">{subtitle}</span>
+ </div>
+ ),
+}));
+
+const { EducationSectionBuilder } = await import("./education");
+const { ExperienceSectionBuilder } = await import("./experience");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const wrap = (ui: React.ReactNode) => <I18nProvider i18n={i18n}>{ui}</I18nProvider>;
+
+describe("EducationSectionBuilder", () => {
+ it("maps school → title and degree → subtitle", () => {
+ render(wrap(<EducationSectionBuilder />));
+ expect(screen.getByTestId("item-title").textContent).toBe("MIT");
+ expect(screen.getByTestId("item-subtitle").textContent).toBe("BS");
+ });
+
+ it("renders the Add a new education affordance", () => {
+ render(wrap(<EducationSectionBuilder />));
+ expect(screen.getByRole("button", { name: "Add a new education" })).toBeInTheDocument();
+ });
+});
+
+describe("ExperienceSectionBuilder", () => {
+ it("uses position as subtitle when present", () => {
+ render(wrap(<ExperienceSectionBuilder />));
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles[0]).toBe("Senior Engineer");
+ });
+
+ it("falls back to 'N roles' when position is empty and multiple roles exist", () => {
+ render(wrap(<ExperienceSectionBuilder />));
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles[1]).toBe("2 roles");
+ });
+
+ it("uses '1 role' (singular) for a single role entry", () => {
+ render(wrap(<ExperienceSectionBuilder />));
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles[2]).toBe("1 role");
+ });
+
+ it("renders the Add a new experience affordance", () => {
+ render(wrap(<ExperienceSectionBuilder />));
+ expect(screen.getByRole("button", { name: "Add a new experience" })).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/many-sections.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/many-sections.test.tsx
new file mode 100644
index 000000000..e2b46df78
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/many-sections.test.tsx
@@ -0,0 +1,188 @@
+// @vitest-environment happy-dom
+
+//
+// Bulk-cover the small reorderable section components — they all share the same
+// shape: render a SectionItem per data row with title/subtitle mapped to specific
+// fields, plus an "Add a new X" button. Test them together to amortize the mock setup.
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const sections = vi.hoisted(() => ({
+ awards: [
+ {
+ id: "a1",
+ title: "Hackathon Winner",
+ awarder: "Acme",
+ date: "2024",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ ],
+ certifications: [
+ {
+ id: "c1",
+ title: "AWS Solutions Architect",
+ issuer: "AWS",
+ date: "2024",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ ],
+ interests: [{ id: "i1", name: "Cooking", keywords: [], hidden: false, icon: "", iconColor: "" }],
+ languages: [{ id: "l1", language: "English", fluency: "Native", level: 5, hidden: false }],
+ publications: [
+ {
+ id: "p1",
+ title: "On Type Systems",
+ publisher: "ACM",
+ date: "2024",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ ],
+ references: [
+ {
+ id: "r1",
+ name: "Bob Smith",
+ position: "Manager",
+ phone: "",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ ],
+ volunteer: [
+ {
+ id: "v1",
+ organization: "Code for Good",
+ position: "Mentor",
+ location: "Berlin",
+ period: "2022",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ summary: "",
+ },
+ ],
+}));
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: {
+ sections: {
+ awards: { title: "Awards", columns: 1, hidden: false, items: sections.awards },
+ certifications: { title: "Certifications", columns: 1, hidden: false, items: sections.certifications },
+ interests: { title: "Interests", columns: 1, hidden: false, items: sections.interests },
+ languages: { title: "Languages", columns: 1, hidden: false, items: sections.languages },
+ publications: { title: "Publications", columns: 1, hidden: false, items: sections.publications },
+ references: { title: "References", columns: 1, hidden: false, items: sections.references },
+ volunteer: { title: "Volunteer", columns: 1, hidden: false, items: sections.volunteer },
+ },
+ },
+ }),
+ useUpdateResumeData: () => vi.fn(),
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children, className }: { children: React.ReactNode; className?: string }) => (
+ <div className={className} data-testid="section-base">
+ {children}
+ </div>
+ ),
+}));
+vi.mock("../shared/section-item", () => ({
+ SectionAddItemButton: ({ children }: { children: React.ReactNode }) => (
+ <button type="button" data-testid="add-button">
+ {children}
+ </button>
+ ),
+ SectionItem: ({ title, subtitle }: { title: string; subtitle: string }) => (
+ <div>
+ <span data-testid="item-title">{title}</span>
+ <span data-testid="item-subtitle">{subtitle}</span>
+ </div>
+ ),
+}));
+
+const { AwardsSectionBuilder } = await import("./awards");
+const { CertificationsSectionBuilder } = await import("./certifications");
+const { InterestsSectionBuilder } = await import("./interests");
+const { LanguagesSectionBuilder } = await import("./languages");
+const { PublicationsSectionBuilder } = await import("./publications");
+const { ReferencesSectionBuilder } = await import("./references");
+const { VolunteerSectionBuilder } = await import("./volunteer");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const wrap = (ui: React.ReactNode) => <I18nProvider i18n={i18n}>{ui}</I18nProvider>;
+
+describe("left sidebar section builders — title/subtitle mapping", () => {
+ const cases = [
+ {
+ name: "awards",
+ Component: AwardsSectionBuilder,
+ title: "Hackathon Winner",
+ subtitle: "Acme",
+ addCopy: "Add a new award",
+ },
+ {
+ name: "certifications",
+ Component: CertificationsSectionBuilder,
+ title: "AWS Solutions Architect",
+ subtitle: "AWS • 2024",
+ addCopy: "Add a new certification",
+ },
+ {
+ name: "interests",
+ Component: InterestsSectionBuilder,
+ title: "Cooking",
+ subtitle: "",
+ addCopy: "Add a new interest",
+ },
+ {
+ name: "languages",
+ Component: LanguagesSectionBuilder,
+ title: "English",
+ subtitle: "Native",
+ addCopy: "Add a new language",
+ },
+ {
+ name: "publications",
+ Component: PublicationsSectionBuilder,
+ title: "On Type Systems",
+ subtitle: "ACM",
+ addCopy: "Add a new publication",
+ },
+ {
+ name: "references",
+ Component: ReferencesSectionBuilder,
+ title: "Bob Smith",
+ subtitle: "",
+ addCopy: "Add a new reference",
+ },
+ {
+ name: "volunteer",
+ Component: VolunteerSectionBuilder,
+ title: "Code for Good",
+ subtitle: "Berlin",
+ addCopy: "Add a new volunteer experience",
+ },
+ ] as const;
+
+ for (const { name, Component, title, subtitle, addCopy } of cases) {
+ it(`${name}: maps fields and renders the add button`, () => {
+ const { unmount } = render(wrap(<Component />));
+ expect(screen.getByTestId("item-title").textContent).toBe(title);
+ expect(screen.getByTestId("item-subtitle").textContent ?? "").toBe(subtitle);
+ expect(screen.getByRole("button", { name: addCopy })).toBeInTheDocument();
+ unmount();
+ });
+ }
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/profiles.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/profiles.test.tsx
new file mode 100644
index 000000000..250b69e26
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/profiles.test.tsx
@@ -0,0 +1,94 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const sectionItems = vi.hoisted(() => [
+ {
+ id: "p1",
+ hidden: false,
+ network: "GitHub",
+ username: "jane",
+ icon: "github",
+ iconColor: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ {
+ id: "p2",
+ hidden: false,
+ network: "LinkedIn",
+ username: "jane-doe",
+ icon: "linkedin",
+ iconColor: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+]);
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: {
+ sections: { profiles: { title: "Profiles", columns: 1, hidden: false, items: sectionItems } },
+ },
+ }),
+ useUpdateResumeData: () => vi.fn(),
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children, className }: { children: React.ReactNode; className?: string }) => (
+ <div className={className} data-testid="section-base">
+ {children}
+ </div>
+ ),
+}));
+vi.mock("../shared/section-item", () => ({
+ SectionAddItemButton: ({ children }: { children: React.ReactNode }) => <button type="button">{children}</button>,
+ SectionItem: ({ title, subtitle }: { title: string; subtitle: string }) => (
+ <div>
+ <span data-testid="item-title">{title}</span>
+ <span data-testid="item-subtitle">{subtitle}</span>
+ </div>
+ ),
+}));
+
+const { ProfilesSectionBuilder } = await import("./profiles");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("ProfilesSectionBuilder", () => {
+ it("renders one SectionItem per profile with network as title and username as subtitle", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProfilesSectionBuilder />
+ </I18nProvider>,
+ );
+
+ const titles = screen.getAllByTestId("item-title").map((el) => el.textContent);
+ expect(titles).toEqual(["GitHub", "LinkedIn"]);
+
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles).toEqual(["jane", "jane-doe"]);
+ });
+
+ it("renders the 'Add a new profile' affordance", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProfilesSectionBuilder />
+ </I18nProvider>,
+ );
+ expect(screen.getByRole("button", { name: "Add a new profile" })).toBeInTheDocument();
+ });
+
+ it("uses non-dashed border when items are present", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProfilesSectionBuilder />
+ </I18nProvider>,
+ );
+ const wrapper = screen.getByTestId("section-base");
+ expect(wrapper.className).toContain("border");
+ expect(wrapper.className).not.toContain("border-dashed");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/projects.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/projects.test.tsx
new file mode 100644
index 000000000..61c7b2169
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/projects.test.tsx
@@ -0,0 +1,104 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const items = vi.hoisted(() => [
+ // Both period and website label present → "2024 • Site"
+ {
+ id: "p1",
+ name: "Open CLI",
+ period: "2024",
+ hidden: false,
+ description: "",
+ website: { url: "https://example.com", label: "Site", inlineLink: false },
+ },
+ // Only period
+ {
+ id: "p2",
+ name: "Plugin",
+ period: "2023",
+ hidden: false,
+ description: "",
+ website: { url: "", label: "", inlineLink: false },
+ },
+ // No period, no label
+ {
+ id: "p3",
+ name: "Drafts",
+ period: "",
+ hidden: false,
+ description: "",
+ website: { url: "", label: " ", inlineLink: false },
+ },
+]);
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: { sections: { projects: { title: "Projects", columns: 1, hidden: false, items } } },
+ }),
+ useUpdateResumeData: () => vi.fn(),
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+vi.mock("../shared/section-item", () => ({
+ SectionAddItemButton: ({ children }: { children: React.ReactNode }) => <button type="button">{children}</button>,
+ SectionItem: ({ title, subtitle }: { title: string; subtitle?: string }) => (
+ <div>
+ <span data-testid="item-title">{title}</span>
+ <span data-testid="item-subtitle">{subtitle ?? "<undefined>"}</span>
+ </div>
+ ),
+}));
+
+const { ProjectsSectionBuilder } = await import("./projects");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("ProjectsSectionBuilder buildSubtitle", () => {
+ it("joins period and website label with ' • ' when both are present", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProjectsSectionBuilder />
+ </I18nProvider>,
+ );
+
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles[0]).toBe("2024 • Site");
+ });
+
+ it("uses just the period when no website label is set", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProjectsSectionBuilder />
+ </I18nProvider>,
+ );
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ expect(subtitles[1]).toBe("2023");
+ });
+
+ it("returns undefined when neither period nor a non-blank website label is provided", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProjectsSectionBuilder />
+ </I18nProvider>,
+ );
+ const subtitles = screen.getAllByTestId("item-subtitle").map((el) => el.textContent);
+ // Mock stub renders the literal string "<undefined>" when subtitle was undefined.
+ expect(subtitles[2]).toBe("<undefined>");
+ });
+
+ it("renders the Add a new project affordance", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <ProjectsSectionBuilder />
+ </I18nProvider>,
+ );
+ expect(screen.getByRole("button", { name: "Add a new project" })).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/skills.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/skills.test.tsx
new file mode 100644
index 000000000..ff9c22159
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/left/sections/skills.test.tsx
@@ -0,0 +1,62 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const sectionItems = vi.hoisted(() => [
+ { id: "s1", name: "TypeScript", proficiency: "Expert", level: 5, keywords: [], description: "", hidden: false },
+ { id: "s2", name: "Go", proficiency: "Intermediate", level: 3, keywords: [], description: "", hidden: false },
+]);
+
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: { sections: { skills: { title: "Skills", columns: 1, hidden: false, items: sectionItems } } },
+ }),
+ useUpdateResumeData: () => vi.fn(),
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children, className }: { children: React.ReactNode; className?: string }) => (
+ <div className={className} data-testid="section-base">
+ {children}
+ </div>
+ ),
+}));
+vi.mock("../shared/section-item", () => ({
+ SectionAddItemButton: ({ children }: { children: React.ReactNode }) => <button type="button">{children}</button>,
+ SectionItem: ({ title, subtitle }: { title: string; subtitle: string }) => (
+ <div>
+ <span data-testid="item-title">{title}</span>
+ <span data-testid="item-subtitle">{subtitle}</span>
+ </div>
+ ),
+}));
+
+const { SkillsSectionBuilder } = await import("./skills");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("SkillsSectionBuilder", () => {
+ it("renders one SectionItem per skill, mapping name → title and proficiency → subtitle", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <SkillsSectionBuilder />
+ </I18nProvider>,
+ );
+
+ expect(screen.getAllByTestId("item-title").map((el) => el.textContent)).toEqual(["TypeScript", "Go"]);
+ expect(screen.getAllByTestId("item-subtitle").map((el) => el.textContent)).toEqual(["Expert", "Intermediate"]);
+ });
+
+ it("renders an Add a new skill affordance", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <SkillsSectionBuilder />
+ </I18nProvider>,
+ );
+ expect(screen.getByRole("button", { name: "Add a new skill" })).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx
new file mode 100644
index 000000000..bf5cdfed1
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/export.test.tsx
@@ -0,0 +1,93 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+
+const downloadWithAnchor = vi.hoisted(() => vi.fn());
+const buildDocx = vi.hoisted(() => vi.fn().mockResolvedValue(new Blob(["x"], { type: "application/x-docx" })));
+const createResumePdfBlob = vi.hoisted(() => vi.fn().mockResolvedValue(new Blob(["x"], { type: "application/pdf" })));
+
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+vi.mock("@reactive-resume/utils/file", () => ({
+ downloadWithAnchor,
+ generateFilename: (name: string, ext: string) => `${name}.${ext}`,
+}));
+vi.mock("@reactive-resume/utils/resume/docx", () => ({ buildDocx }));
+vi.mock("@/libs/resume/pdf-document", () => ({ createResumePdfBlob }));
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useResume: () => ({ id: "r1", name: "My Resume", data: defaultResumeData }),
+}));
+
+const { ExportSectionBuilder } = await import("./export");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ downloadWithAnchor.mockReset();
+ buildDocx.mockClear();
+ createResumePdfBlob.mockClear();
+});
+
+const renderExport = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <ExportSectionBuilder />
+ </I18nProvider>,
+ );
+
+describe("ExportSectionBuilder", () => {
+ it("renders JSON, DOCX, and PDF action buttons", () => {
+ renderExport();
+ expect(screen.getByText("JSON")).toBeInTheDocument();
+ expect(screen.getByText("DOCX")).toBeInTheDocument();
+ expect(screen.getByText("PDF")).toBeInTheDocument();
+ });
+
+ it("downloads a JSON blob when the JSON button is clicked", () => {
+ renderExport();
+ const button = screen.getByText("JSON").closest("button") as HTMLButtonElement;
+ fireEvent.click(button);
+
+ expect(downloadWithAnchor).toHaveBeenCalledTimes(1);
+ // biome-ignore lint/style/noNonNullAssertion: The assertion above verifies the download call exists before destructuring it.
+ const [blob, filename] = downloadWithAnchor.mock.calls[0]!;
+ expect(blob).toBeInstanceOf(Blob);
+ expect((blob as Blob).type).toBe("application/json");
+ expect(filename).toBe("My Resume.json");
+ });
+
+ it("calls buildDocx and downloads the resulting blob when DOCX is clicked", async () => {
+ renderExport();
+ const button = screen.getByText("DOCX").closest("button") as HTMLButtonElement;
+
+ fireEvent.click(button);
+ // Wait for the async callback chain to settle.
+ await Promise.resolve();
+ await Promise.resolve();
+
+ expect(buildDocx).toHaveBeenCalledTimes(1);
+ expect(downloadWithAnchor).toHaveBeenCalledTimes(1);
+ expect(downloadWithAnchor.mock.calls[0]?.[1]).toBe("My Resume.docx");
+ });
+
+ it("calls createResumePdfBlob and downloads when PDF is clicked", async () => {
+ renderExport();
+ const button = screen.getByText("PDF").closest("button") as HTMLButtonElement;
+
+ fireEvent.click(button);
+ await Promise.resolve();
+ await Promise.resolve();
+ await Promise.resolve();
+
+ expect(createResumePdfBlob).toHaveBeenCalledTimes(1);
+ expect(downloadWithAnchor).toHaveBeenCalledTimes(1);
+ expect(downloadWithAnchor.mock.calls[0]?.[1]).toBe("My Resume.pdf");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/information.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/information.test.tsx
new file mode 100644
index 000000000..24a3267b5
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/information.test.tsx
@@ -0,0 +1,52 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+
+const { InformationSectionBuilder } = await import("./information");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+const renderInfo = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <InformationSectionBuilder />
+ </I18nProvider>,
+ );
+
+describe("InformationSectionBuilder", () => {
+ it("renders the donation prompt and CTA", () => {
+ renderInfo();
+ expect(screen.getByText("Support the app by doing what you can!")).toBeInTheDocument();
+ expect(screen.getByText("Donate to Reactive Resume")).toBeInTheDocument();
+ });
+
+ it("links to the OpenCollective donation page", () => {
+ renderInfo();
+ const donateLink = screen.getByText("Donate to Reactive Resume").closest("a");
+ expect(donateLink?.getAttribute("href")).toBe("http://opencollective.com/reactive-resume");
+ });
+
+ it("includes external resource links (docs, source, bugs, translations, sponsors)", () => {
+ renderInfo();
+ const labels = ["Documentation", "Source Code", "Report a Bug", "Translations", "Sponsors"];
+ for (const label of labels) {
+ expect(screen.getByText(label).closest("a"), label).not.toBeNull();
+ }
+ });
+
+ it("opens external links in a new tab", () => {
+ renderInfo();
+ const docs = screen.getByText("Documentation").closest("a") as HTMLAnchorElement;
+ expect(docs.getAttribute("target")).toBe("_blank");
+ expect(docs.getAttribute("rel")).toBe("noopener");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/notes.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/notes.test.tsx
new file mode 100644
index 000000000..ed532b30a
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/notes.test.tsx
@@ -0,0 +1,74 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const updateResumeData = vi.hoisted(() => vi.fn());
+const richInputProps = vi.hoisted(() => ({
+ value: undefined as string | undefined,
+ onChange: undefined as ((value: string) => void) | undefined,
+}));
+
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div data-testid="section-base">{children}</div>,
+}));
+vi.mock("@/components/input/rich-input", () => ({
+ RichInput: (props: { value: string; onChange: (value: string) => void }) => {
+ richInputProps.value = props.value;
+ richInputProps.onChange = props.onChange;
+ return <textarea data-testid="rich-input" value={props.value} readOnly />;
+ },
+}));
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: { metadata: { notes: "saved notes" } },
+ }),
+ useUpdateResumeData: () => updateResumeData,
+}));
+
+const { NotesSectionBuilder } = await import("./notes");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+describe("NotesSectionBuilder", () => {
+ it("renders the privacy hint copy", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <NotesSectionBuilder />
+ </I18nProvider>,
+ );
+
+ expect(screen.getByText(/personal notes specific to this resume/)).toBeInTheDocument();
+ });
+
+ it("seeds the rich input with the current notes value", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <NotesSectionBuilder />
+ </I18nProvider>,
+ );
+ expect(richInputProps.value).toBe("saved notes");
+ });
+
+ it("forwards rich input changes through updateResumeData", () => {
+ render(
+ <I18nProvider i18n={i18n}>
+ <NotesSectionBuilder />
+ </I18nProvider>,
+ );
+
+ richInputProps.onChange?.("<p>new note</p>");
+
+ expect(updateResumeData).toHaveBeenCalledTimes(1);
+
+ // updateResumeData receives a recipe that mutates the draft.
+ const recipe = updateResumeData.mock.calls[0]?.[0] as (draft: { metadata: { notes: string } }) => void;
+ const draft = { metadata: { notes: "" } };
+ recipe(draft);
+ expect(draft.metadata.notes).toBe("<p>new note</p>");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/statistics.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/statistics.test.tsx
new file mode 100644
index 000000000..f5d2e612b
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/statistics.test.tsx
@@ -0,0 +1,95 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+
+const queryResult = vi.hoisted(() => ({
+ data: undefined as
+ | undefined
+ | {
+ isPublic: boolean;
+ views: number;
+ downloads: number;
+ lastViewedAt: Date | null;
+ lastDownloadedAt: Date | null;
+ },
+}));
+
+vi.mock("@tanstack/react-query", () => ({
+ useQuery: () => queryResult,
+}));
+vi.mock("@tanstack/react-router", () => ({
+ useParams: () => ({ resumeId: "r1" }),
+}));
+vi.mock("@/libs/orpc/client", () => ({
+ orpc: { resume: { statistics: { getById: { queryOptions: () => ({}) } } } },
+}));
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+
+const { StatisticsSectionBuilder } = await import("./statistics");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+beforeEach(() => {
+ queryResult.data = undefined;
+});
+
+const renderStats = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <StatisticsSectionBuilder />
+ </I18nProvider>,
+ );
+
+describe("StatisticsSectionBuilder", () => {
+ it("renders nothing while the query result is undefined", () => {
+ const { container } = renderStats();
+ expect(container.textContent).toBe("");
+ });
+
+ it("renders the private hint when isPublic=false", () => {
+ queryResult.data = {
+ isPublic: false,
+ views: 0,
+ downloads: 0,
+ lastViewedAt: null,
+ lastDownloadedAt: null,
+ };
+ renderStats();
+ expect(screen.getByText("Track your resume's views and downloads")).toBeInTheDocument();
+ });
+
+ it("renders the views/downloads counters when isPublic=true", () => {
+ queryResult.data = {
+ isPublic: true,
+ views: 42,
+ downloads: 7,
+ lastViewedAt: null,
+ lastDownloadedAt: null,
+ };
+ renderStats();
+ expect(screen.getByText("42")).toBeInTheDocument();
+ expect(screen.getByText("7")).toBeInTheDocument();
+ expect(screen.getByText("Views")).toBeInTheDocument();
+ expect(screen.getByText("Downloads")).toBeInTheDocument();
+ });
+
+ it("renders 'last viewed/downloaded' timestamps when present", () => {
+ queryResult.data = {
+ isPublic: true,
+ views: 1,
+ downloads: 0,
+ lastViewedAt: new Date("2024-01-15T00:00:00Z"),
+ lastDownloadedAt: null,
+ };
+ renderStats();
+ // Just verify some 'Last viewed' copy appears — the date formatting depends on the runner's locale.
+ expect(screen.getByText(/Last viewed/i)).toBeInTheDocument();
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/template.test.tsx b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/template.test.tsx
new file mode 100644
index 000000000..b46a70a8d
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-sidebar/right/sections/template.test.tsx
@@ -0,0 +1,63 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";
+import { i18n } from "@lingui/core";
+import { I18nProvider } from "@lingui/react";
+import { useDialogStore } from "@/dialogs/store";
+
+vi.mock("../shared/section-base", () => ({
+ SectionBase: ({ children }: { children: React.ReactNode }) => <div>{children}</div>,
+}));
+vi.mock("@/components/resume/builder-resume-draft", () => ({
+ useCurrentResume: () => ({
+ data: { metadata: { template: "ditto" } },
+ }),
+}));
+
+const { TemplateSectionBuilder } = await import("./template");
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ useDialogStore.setState({ open: false, activeDialog: null, onBeforeClose: null });
+});
+
+const renderTemplate = () =>
+ render(
+ <I18nProvider i18n={i18n}>
+ <TemplateSectionBuilder />
+ </I18nProvider>,
+ );
+
+describe("TemplateSectionBuilder", () => {
+ it("renders the current template's display name", () => {
+ renderTemplate();
+ expect(screen.getByRole("heading", { level: 3 }).textContent).toBe("Ditto");
+ });
+
+ it("renders the template tags as badges", () => {
+ renderTemplate();
+ // Ditto's tags include 'ATS friendly' per templates/data.
+ expect(screen.getByText("ATS friendly")).toBeInTheDocument();
+ });
+
+ it("opens the template gallery dialog when the preview is clicked", () => {
+ renderTemplate();
+
+ const preview = screen.getByAltText("Ditto").closest("button") as HTMLButtonElement;
+ fireEvent.click(preview);
+
+ const state = useDialogStore.getState();
+ expect(state.open).toBe(true);
+ expect(state.activeDialog?.type).toBe("resume.template.gallery");
+ });
+
+ it("renders the template preview image with the data-mapped URL", () => {
+ renderTemplate();
+ const img = screen.getByAltText("Ditto") as HTMLImageElement;
+ expect(img.src).toContain("/templates/jpg/ditto.jpg");
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-store/section.test.ts b/apps/web/src/routes/builder/$resumeId/-store/section.test.ts
new file mode 100644
index 000000000..218d23b5d
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-store/section.test.ts
@@ -0,0 +1,62 @@
+// @vitest-environment happy-dom
+
+import { afterEach, describe, expect, it } from "vitest";
+import { useSectionStore } from "./section";
+
+afterEach(() => {
+ useSectionStore.setState({ sections: {} });
+});
+
+describe("useSectionStore", () => {
+ it("starts with no collapsed sections", () => {
+ expect(useSectionStore.getState().sections).toEqual({});
+ });
+
+ it("setCollapsed stores collapse state for a single id", () => {
+ useSectionStore.getState().setCollapsed("experience", true);
+
+ expect(useSectionStore.getState().sections.experience).toEqual({ collapsed: true });
+ });
+
+ it("setCollapsed(false) overrides previous collapsed=true", () => {
+ const { setCollapsed } = useSectionStore.getState();
+ setCollapsed("skills", true);
+ setCollapsed("skills", false);
+
+ expect(useSectionStore.getState().sections.skills).toEqual({ collapsed: false });
+ });
+
+ it("toggleCollapsed flips from undefined → true → false", () => {
+ const { toggleCollapsed } = useSectionStore.getState();
+
+ toggleCollapsed("education");
+ expect(useSectionStore.getState().sections.education?.collapsed).toBe(true);
+
+ toggleCollapsed("education");
+ expect(useSectionStore.getState().sections.education?.collapsed).toBe(false);
+ });
+
+ it("toggleAll collapses all built-in sidebar sections from a clean state", () => {
+ useSectionStore.getState().toggleAll();
+
+ const sections = useSectionStore.getState().sections;
+ // Spot-check a few known sidebar section ids.
+ expect(sections.experience?.collapsed).toBe(true);
+ expect(sections.template?.collapsed).toBe(true);
+ expect(sections.layout?.collapsed).toBe(true);
+ expect(Object.keys(sections).length).toBeGreaterThan(10);
+ });
+
+ it("toggleAll flips each individual section independently of the others", () => {
+ const { setCollapsed, toggleAll } = useSectionStore.getState();
+
+ setCollapsed("skills", true); // skills starts collapsed=true
+ // Other ids remain undefined → treated as collapsed=false by toggleCollapsed semantics.
+
+ toggleAll();
+
+ const sections = useSectionStore.getState().sections;
+ expect(sections.skills?.collapsed).toBe(false);
+ expect(sections.experience?.collapsed).toBe(true);
+ });
+});
diff --git a/apps/web/src/routes/builder/$resumeId/-store/sidebar.test.ts b/apps/web/src/routes/builder/$resumeId/-store/sidebar.test.ts
new file mode 100644
index 000000000..3a76c6839
--- /dev/null
+++ b/apps/web/src/routes/builder/$resumeId/-store/sidebar.test.ts
@@ -0,0 +1,96 @@
+import { afterEach, describe, expect, it } from "vitest";
+import {
+ DEFAULT_BUILDER_LAYOUT,
+ mapPanelLayoutToBuilderLayout,
+ parseBuilderLayoutCookie,
+ useBuilderSidebarStore,
+} from "./sidebar";
+
+afterEach(() => {
+ useBuilderSidebarStore.setState({
+ layout: DEFAULT_BUILDER_LAYOUT,
+ leftSidebar: null,
+ rightSidebar: null,
+ });
+});
+
+describe("parseBuilderLayoutCookie", () => {
+ it("returns the default layout when value is undefined", () => {
+ expect(parseBuilderLayoutCookie(undefined)).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when value is null", () => {
+ expect(parseBuilderLayoutCookie(null)).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when value is an empty string", () => {
+ expect(parseBuilderLayoutCookie("")).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when value is malformed JSON", () => {
+ expect(parseBuilderLayoutCookie("{not-json")).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when value is a JSON array", () => {
+ expect(parseBuilderLayoutCookie("[1,2,3]")).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when value is a JSON primitive", () => {
+ expect(parseBuilderLayoutCookie("42")).toEqual(DEFAULT_BUILDER_LAYOUT);
+ expect(parseBuilderLayoutCookie("null")).toEqual(DEFAULT_BUILDER_LAYOUT);
+ expect(parseBuilderLayoutCookie('"string"')).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the default layout when any field is missing or not a number", () => {
+ expect(parseBuilderLayoutCookie('{"left":10,"artboard":50}')).toEqual(DEFAULT_BUILDER_LAYOUT);
+ expect(parseBuilderLayoutCookie('{"left":"10","artboard":50,"right":40}')).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the parsed layout when all fields are numeric", () => {
+ const json = JSON.stringify({ left: 10, artboard: 60, right: 30 });
+ expect(parseBuilderLayoutCookie(json)).toEqual({ left: 10, artboard: 60, right: 30 });
+ });
+});
+
+describe("mapPanelLayoutToBuilderLayout", () => {
+ it("returns the default layout if any panel size is missing", () => {
+ expect(mapPanelLayoutToBuilderLayout({} as never)).toEqual(DEFAULT_BUILDER_LAYOUT);
+ expect(mapPanelLayoutToBuilderLayout({ left: 10, artboard: 60 } as never)).toEqual(DEFAULT_BUILDER_LAYOUT);
+ });
+
+ it("returns the layout when all panel sizes are numeric", () => {
+ const layout = mapPanelLayoutToBuilderLayout({ left: 15, artboard: 70, right: 15 } as never);
+ expect(layout).toEqual({ left: 15, artboard: 70, right: 15 });
+ });
+});
+
+describe("useBuilderSidebarStore", () => {
+ it("starts with default layout and null panel refs", () => {
+ const state = useBuilderSidebarStore.getState();
+ expect(state.layout).toEqual(DEFAULT_BUILDER_LAYOUT);
+ expect(state.leftSidebar).toBeNull();
+ expect(state.rightSidebar).toBeNull();
+ });
+
+ it("setLayout replaces the layout", () => {
+ useBuilderSidebarStore.getState().setLayout({ left: 1, artboard: 98, right: 1 });
+ expect(useBuilderSidebarStore.getState().layout).toEqual({ left: 1, artboard: 98, right: 1 });
+ });
+
+ it("setLeftSidebar and setRightSidebar store refs", () => {
+ const left = { foo: "left" } as never;
+ const right = { foo: "right" } as never;
+
+ useBuilderSidebarStore.getState().setLeftSidebar(left);
+ useBuilderSidebarStore.getState().setRightSidebar(right);
+
+ expect(useBuilderSidebarStore.getState().leftSidebar).toBe(left);
+ expect(useBuilderSidebarStore.getState().rightSidebar).toBe(right);
+ });
+
+ it("accepts null to clear sidebar refs", () => {
+ useBuilderSidebarStore.getState().setLeftSidebar({ foo: "x" } as never);
+ useBuilderSidebarStore.getState().setLeftSidebar(null);
+ expect(useBuilderSidebarStore.getState().leftSidebar).toBeNull();
+ });
+});
diff --git a/apps/web/src/routes/dashboard/-components/header.test.tsx b/apps/web/src/routes/dashboard/-components/header.test.tsx
new file mode 100644
index 000000000..6da45189b
--- /dev/null
+++ b/apps/web/src/routes/dashboard/-components/header.test.tsx
@@ -0,0 +1,40 @@
+// @vitest-environment happy-dom
+
+import { render, screen } from "@testing-library/react";
+import { describe, expect, it } from "vitest";
+import { ListIcon } from "@phosphor-icons/react";
+import { SidebarProvider } from "@reactive-resume/ui/components/sidebar";
+import { DashboardHeader } from "./header";
+
+const renderHeader = (props: Partial<React.ComponentProps<typeof DashboardHeader>> = {}) =>
+ render(
+ <SidebarProvider>
+ <DashboardHeader title="Resumes" icon={ListIcon} {...props} />
+ </SidebarProvider>,
+ );
+
+describe("DashboardHeader", () => {
+ it("renders the title as an h1", () => {
+ renderHeader();
+ const heading = screen.getByRole("heading", { level: 1 });
+ expect(heading.textContent).toBe("Resumes");
+ });
+
+ it("renders the supplied icon as an SVG", () => {
+ const { container } = renderHeader();
+ expect(container.querySelector("svg")).not.toBeNull();
+ });
+
+ it("merges custom className into the wrapper", () => {
+ const { container } = renderHeader({ className: "custom-class" });
+ const wrapper = container.querySelector(".custom-class");
+ expect(wrapper).not.toBeNull();
+ });
+
+ it("includes the mobile sidebar trigger (hidden on md+)", () => {
+ const { container } = renderHeader();
+ const trigger = container.querySelector('[data-sidebar="trigger"]');
+ expect(trigger).not.toBeNull();
+ expect(trigger?.className).toContain("md:hidden");
+ });
+});
diff --git a/apps/web/src/routes/dashboard/resumes/-components/cards/create-card.test.tsx b/apps/web/src/routes/dashboard/resumes/-components/cards/create-card.test.tsx
new file mode 100644
index 000000000..623b6bbba
--- /dev/null
+++ b/apps/web/src/routes/dashboard/resumes/-components/cards/create-card.test.tsx
@@ -0,0 +1,54 @@
+// @vitest-environment happy-dom
+
+import { fireEvent, render, screen } from "@testing-library/react";
+import { afterEach, beforeAll, describe, expect, it } from "vitest";
+import { i18n } from "@lingui/core";
+import { useDialogStore } from "@/dialogs/store";
+import { CreateResumeCard } from "./create-card";
+import { ImportResumeCard } from "./import-card";
+
+beforeAll(() => {
+ i18n.loadAndActivate({ locale: "en", messages: {} });
+});
+
+afterEach(() => {
+ useDialogStore.setState({ open: false, activeDialog: null, onBeforeClose: null });
+});
+
+describe("CreateResumeCard", () => {
+ it("renders the create-resume copy", () => {
+ render(<CreateResumeCard />);
+ expect(screen.getByText("Create a new resume")).toBeInTheDocument();
+ expect(screen.getByText("Start building your resume from scratch")).toBeInTheDocument();
+ });
+
+ it("opens the resume.create dialog when clicked", () => {
+ render(<CreateResumeCard />);
+
+ const card = screen.getByText("Create a new resume").closest("div[class*='aspect-page']") as HTMLElement;
+ fireEvent.click(card);
+
+ const state = useDialogStore.getState();
+ expect(state.open).toBe(true);
+ expect(state.activeDialog?.type).toBe("resume.create");
+ });
+});
+
+describe("ImportResumeCard", () => {
+ it("renders the import-resume copy", () => {
+ render(<ImportResumeCard />);
+ expect(screen.getByText("Import an existing resume")).toBeInTheDocument();
+ expect(screen.getByText("Continue where you left off")).toBeInTheDocument();
+ });
+
+ it("opens the resume.import dialog when clicked", () => {
+ render(<ImportResumeCard />);
+
+ const card = screen.getByText("Import an existing resume").closest("div[class*='aspect-page']") as HTMLElement;
+ fireEvent.click(card);
+
+ const state = useDialogStore.getState();
+ expect(state.open).toBe(true);
+ expect(state.activeDialog?.type).toBe("resume.import");
+ });
+});
diff --git a/apps/web/src/routes/dashboard/resumes/-components/cards/resume-thumbnail.shared.test.ts b/apps/web/src/routes/dashboard/resumes/-components/cards/resume-thumbnail.shared.test.ts
new file mode 100644
index 000000000..4d94ee937
--- /dev/null
+++ b/apps/web/src/routes/dashboard/resumes/-components/cards/resume-thumbnail.shared.test.ts
@@ -0,0 +1,64 @@
+import { describe, expect, it } from "vitest";
+import {
+ getResumeThumbnailCacheKey,
+ getResumeThumbnailRenderSize,
+ RESUME_THUMBNAIL_TARGET_WIDTH,
+} from "./resume-thumbnail.shared";
+
+describe("getResumeThumbnailCacheKey", () => {
+ it("composes id and updated-at epoch milliseconds with a colon", () => {
+ const date = new Date("2024-01-15T00:00:00.000Z");
+ expect(getResumeThumbnailCacheKey("abc", date)).toBe(`abc:${date.getTime()}`);
+ });
+
+ it("differs when updatedAt changes", () => {
+ const id = "resume-1";
+ const a = getResumeThumbnailCacheKey(id, new Date(1000));
+ const b = getResumeThumbnailCacheKey(id, new Date(2000));
+ expect(a).not.toBe(b);
+ });
+});
+
+describe("getResumeThumbnailRenderSize", () => {
+ it("uses the default target width when not provided", () => {
+ const size = getResumeThumbnailRenderSize({ width: 800, height: 1200 });
+
+ expect(size.width).toBe(RESUME_THUMBNAIL_TARGET_WIDTH);
+ // Scale = 420/800 = 0.525 → height rounds to 630
+ expect(size.height).toBe(630);
+ expect(size.scale).toBeCloseTo(0.525, 5);
+ });
+
+ it("scales relative to the provided target width", () => {
+ const size = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400);
+ expect(size.width).toBe(400);
+ expect(size.scale).toBeCloseTo(0.5, 5);
+ expect(size.height).toBe(600);
+ });
+
+ it("clamps pixelRatio to a minimum of 1", () => {
+ const a = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400, 0.5);
+ const b = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400, 1);
+ expect(a).toEqual(b);
+ });
+
+ it("clamps pixelRatio to a maximum of 2", () => {
+ const a = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400, 3);
+ const b = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400, 2);
+ expect(a).toEqual(b);
+ });
+
+ it("multiplies width/height by pixelRatio when within bounds", () => {
+ const size = getResumeThumbnailRenderSize({ width: 800, height: 1200 }, 400, 2);
+ // pageScale = 0.5, outputScale = 2 → width = 800, height = 1200
+ expect(size.width).toBe(800);
+ expect(size.height).toBe(1200);
+ expect(size.scale).toBeCloseTo(1, 5);
+ });
+
+ it("rounds the output dimensions to integers", () => {
+ const size = getResumeThumbnailRenderSize({ width: 793, height: 1123 }, 421, 1.5);
+ expect(Number.isInteger(size.width)).toBe(true);
+ expect(Number.isInteger(size.height)).toBe(true);
+ });
+});
diff --git a/apps/web/src/routes/mcp/-helpers/mcp-server-card.test.ts b/apps/web/src/routes/mcp/-helpers/mcp-server-card.test.ts
new file mode 100644
index 000000000..ce3987b57
--- /dev/null
+++ b/apps/web/src/routes/mcp/-helpers/mcp-server-card.test.ts
@@ -0,0 +1,65 @@
+import { describe, expect, it } from "vitest";
+import { buildMcpServerCard } from "./mcp-server-card";
+import { MCP_TOOL_NAME } from "./mcp-tool-names";
+
+describe("buildMcpServerCard", () => {
+ const card = buildMcpServerCard("1.2.3");
+
+ it("includes the provided app version in serverInfo", () => {
+ expect(card.serverInfo.version).toBe("1.2.3");
+ });
+
+ it("identifies the server as reactive-resume", () => {
+ expect(card.serverInfo.name).toBe("reactive-resume");
+ expect(card.serverInfo.title).toBe("Reactive Resume");
+ expect(card.serverInfo.websiteUrl).toBe("https://rxresu.me");
+ });
+
+ it("exposes light + dark theme icons", () => {
+ const themes = card.serverInfo.icons.map((icon) => icon.theme).sort();
+ expect(themes).toEqual(["dark", "light"]);
+ });
+
+ it("requires authentication with oauth2 + bearer schemes", () => {
+ expect(card.authentication.required).toBe(true);
+ expect(card.authentication.schemes).toContain("oauth2");
+ expect(card.authentication.schemes).toContain("bearer");
+ });
+
+ it("registers one entry per MCP tool", () => {
+ const cardToolNames = card.tools.map((tool) => tool.name).sort();
+ const expectedNames = Object.values(MCP_TOOL_NAME).sort();
+ expect(cardToolNames).toEqual(expectedNames);
+ });
+
+ it("declares a JSON Schema input for every tool", () => {
+ for (const tool of card.tools) {
+ expect(tool.inputSchema, tool.name).toBeDefined();
+ expect(tool.annotations, tool.name).toBeDefined();
+ expect(tool.title.length, tool.name).toBeGreaterThan(0);
+ expect(tool.description.length, tool.name).toBeGreaterThan(0);
+ }
+ });
+
+ it("registers the three documented prompts", () => {
+ const promptNames = card.prompts.map((p) => p.name).sort();
+ expect(promptNames).toEqual(["build_resume", "improve_resume", "review_resume"]);
+ });
+
+ it("publishes a resource template for resume://{id}", () => {
+ const template = card.resourceTemplates.find((r) => r.name === "resume");
+ expect(template?.uriTemplate).toBe("resume://{id}");
+ expect(template?.mimeType).toBe("application/json");
+ });
+
+ it("includes resume and meta-schema in the static resources list", () => {
+ const resourceNames = card.resources.map((r) => r.name);
+ expect(resourceNames).toContain("resume");
+ expect(card.resources.some((r) => r.mimeType === "application/json")).toBe(true);
+ });
+
+ it("documents an optional apiKey in the configuration schema", () => {
+ const props = card.configurationSchema.properties as Record<string, unknown>;
+ expect(props.apiKey).toBeDefined();
+ });
+});
diff --git a/apps/web/src/routes/mcp/-helpers/prompts.test.ts b/apps/web/src/routes/mcp/-helpers/prompts.test.ts
new file mode 100644
index 000000000..c0121aa57
--- /dev/null
+++ b/apps/web/src/routes/mcp/-helpers/prompts.test.ts
@@ -0,0 +1,113 @@
+// biome-ignore-all lint/style/noNonNullAssertion: These tests assert registered prompt names before exercising their handlers.
+import { describe, expect, it, vi } from "vitest";
+
+// `./tools` pulls in the env / db client modules which require runtime env vars.
+// `prompts.ts` only imports `MCP_TOOL_NAME` from `./tools`, so we stub it with the
+// pure constants module to keep this test isolated.
+vi.mock("./tools", async () => await import("./mcp-tool-names"));
+
+const { registerPrompts } = await import("./prompts");
+
+type Registration = {
+ name: string;
+ config: {
+ title: string;
+ description: string;
+ argsSchema: Record<string, unknown>;
+ };
+ handler: (args: { id: string }) => Promise<{
+ messages: Array<{
+ role: "user";
+ content: { type: string; text?: string; resource?: { uri: string; mimeType: string } };
+ }>;
+ }>;
+};
+
+const makeFakeServer = () => {
+ const registered: Registration[] = [];
+ const server = {
+ registerPrompt: vi.fn((name: string, config: Registration["config"], handler: Registration["handler"]) => {
+ registered.push({ name, config, handler });
+ }),
+ };
+ return { server, registered };
+};
+
+describe("registerPrompts", () => {
+ it("registers build_resume, improve_resume, and review_resume", () => {
+ const { server, registered } = makeFakeServer();
+
+ registerPrompts(server as never);
+
+ expect(server.registerPrompt).toHaveBeenCalledTimes(3);
+ expect(registered.map((r) => r.name).sort()).toEqual(["build_resume", "improve_resume", "review_resume"]);
+ });
+
+ it("requires an `id` argument on every prompt", () => {
+ const { server, registered } = makeFakeServer();
+
+ registerPrompts(server as never);
+
+ for (const reg of registered) {
+ expect(reg.config.argsSchema.id, reg.name).toBeDefined();
+ }
+ });
+
+ it("build_resume handler attaches the resume + schema resources and a guidance text", async () => {
+ const { server, registered } = makeFakeServer();
+ registerPrompts(server as never);
+
+ const build = registered.find((r) => r.name === "build_resume")!;
+ const result = await build.handler({ id: "abc-123" });
+
+ const resourceUris = result.messages
+ .filter((m) => m.content.type === "resource")
+ .map((m) => m.content.resource?.uri);
+
+ expect(resourceUris).toContain("resume://abc-123");
+ expect(resourceUris).toContain("resume://_meta/schema");
+
+ const textMessage = result.messages.find((m) => m.content.type === "text");
+ expect(textMessage?.content.text).toContain("step by step");
+ expect(textMessage?.content.text).toContain("JSON Patch");
+ });
+
+ it("improve_resume handler tells the model not to fabricate information", async () => {
+ const { server, registered } = makeFakeServer();
+ registerPrompts(server as never);
+
+ const improve = registered.find((r) => r.name === "improve_resume")!;
+ const result = await improve.handler({ id: "id-1" });
+
+ const text = result.messages.find((m) => m.content.type === "text")?.content.text ?? "";
+ expect(text).toContain("Do NOT fabricate");
+ expect(text).toContain("Passive voice");
+ });
+
+ it("review_resume handler is read-only and forbids patching", async () => {
+ const { server, registered } = makeFakeServer();
+ registerPrompts(server as never);
+
+ const review = registered.find((r) => r.name === "review_resume")!;
+ const result = await review.handler({ id: "id-2" });
+
+ const text = result.messages.find((m) => m.content.type === "text")?.content.text ?? "";
+ expect(text).toContain("read-only");
+ expect(text).toContain("Do NOT call");
+ expect(text).toContain("Scorecard");
+ });
+
+ it("interpolates the provided resume id into the resource URI", async () => {
+ const { server, registered } = makeFakeServer();
+ registerPrompts(server as never);
+
+ const review = registered.find((r) => r.name === "review_resume")!;
+ const result = await review.handler({ id: "8f-test" });
+
+ const resourceUris = result.messages
+ .filter((m) => m.content.type === "resource")
+ .map((m) => m.content.resource?.uri);
+
+ expect(resourceUris).toContain("resume://8f-test");
+ });
+});
diff --git a/apps/web/src/routes/mcp/-helpers/resources.test.ts b/apps/web/src/routes/mcp/-helpers/resources.test.ts
new file mode 100644
index 000000000..0480fe717
--- /dev/null
+++ b/apps/web/src/routes/mcp/-helpers/resources.test.ts
@@ -0,0 +1,85 @@
+// biome-ignore-all lint/style/noNonNullAssertion: These tests assert registered resource names before exercising their handlers.
+import { describe, expect, it, vi } from "vitest";
+
+// Avoid pulling in env-validated modules through `./tools`.
+vi.mock("./tools", async () => await import("./mcp-tool-names"));
+
+const clientMock = vi.hoisted(() => ({
+ resume: {
+ getById: vi.fn(),
+ },
+}));
+
+vi.mock("@/libs/orpc/client", () => ({ client: clientMock }));
+
+const { registerResources } = await import("./resources");
+
+type ResourceHandler = (uri: URL) => Promise<{
+ contents: Array<{ uri: string; mimeType: string; text: string }>;
+}>;
+
+type Registration = {
+ name: string;
+ uriOrTemplate: unknown;
+ metadata: Record<string, unknown>;
+ handler: ResourceHandler;
+};
+
+const makeFakeServer = () => {
+ const registered: Registration[] = [];
+ const server = {
+ registerResource: vi.fn(
+ (name: string, uriOrTemplate: unknown, metadata: Record<string, unknown>, handler: ResourceHandler) => {
+ registered.push({ name, uriOrTemplate, metadata, handler });
+ },
+ ),
+ };
+ return { server, registered };
+};
+
+describe("registerResources", () => {
+ it("registers the resume and resume-schema resources", () => {
+ const { server, registered } = makeFakeServer();
+ registerResources(server as never);
+
+ expect(server.registerResource).toHaveBeenCalledTimes(2);
+ expect(registered.map((r) => r.name).sort()).toEqual(["resume", "resume-schema"]);
+ });
+
+ it("resume handler fetches resume data via the oRPC client and returns it as JSON", async () => {
+ clientMock.resume.getById.mockResolvedValueOnce({ data: { id: "abc", basics: { name: "Jane" } } });
+
+ const { server, registered } = makeFakeServer();
+ registerResources(server as never);
+
+ const resume = registered.find((r) => r.name === "resume")!;
+ const result = await resume.handler(new URL("resume://abc"));
+
+ expect(clientMock.resume.getById).toHaveBeenCalledWith({ id: "abc" });
+ expect(result.contents[0]?.uri).toBe("resume://abc");
+ expect(result.contents[0]?.mimeType).toBe("application/json");
+ expect(JSON.parse(result.contents[0]?.text)).toEqual({ id: "abc", basics: { name: "Jane" } });
+ });
+
+ it("resume handler throws when the URI has no id segment", async () => {
+ const { server, registered } = makeFakeServer();
+ registerResources(server as never);
+
+ const resume = registered.find((r) => r.name === "resume")!;
+ await expect(resume.handler(new URL("resume://"))).rejects.toThrow(/Invalid resume URI/);
+ });
+
+ it("resume-schema handler returns the static JSON schema as text", async () => {
+ const { server, registered } = makeFakeServer();
+ registerResources(server as never);
+
+ const resumeSchema = registered.find((r) => r.name === "resume-schema")!;
+ const result = await resumeSchema.handler(new URL("resume://_meta/schema"));
+
+ expect(result.contents[0]?.uri).toBe("resume://_meta/schema");
+ expect(result.contents[0]?.mimeType).toBe("application/json");
+
+ // Should round-trip through JSON.parse without throwing.
+ expect(() => JSON.parse(result.contents[0]?.text)).not.toThrow();
+ });
+});
diff --git a/apps/web/src/routes/mcp/-helpers/tool-annotations.test.ts b/apps/web/src/routes/mcp/-helpers/tool-annotations.test.ts
new file mode 100644
index 000000000..a358e98ff
--- /dev/null
+++ b/apps/web/src/routes/mcp/-helpers/tool-annotations.test.ts
@@ -0,0 +1,77 @@
+import { describe, expect, it } from "vitest";
+import { MCP_TOOL_NAME } from "./mcp-tool-names";
+import { TOOL_ANNOTATIONS } from "./tool-annotations";
+
+describe("MCP_TOOL_NAME", () => {
+ it("prefixes every tool name with reactive_resume_", () => {
+ for (const name of Object.values(MCP_TOOL_NAME)) {
+ expect(name.startsWith("reactive_resume_")).toBe(true);
+ }
+ });
+
+ it("uses unique values for every tool", () => {
+ const values = Object.values(MCP_TOOL_NAME);
+ expect(new Set(values).size).toBe(values.length);
+ });
+});
+
+describe("TOOL_ANNOTATIONS", () => {
+ it("provides annotations for every registered tool", () => {
+ for (const name of Object.values(MCP_TOOL_NAME)) {
+ expect(TOOL_ANNOTATIONS[name]).toBeDefined();
+ }
+ });
+
+ it("marks list/get tools as readOnly + idempotent + non-destructive", () => {
+ const readOnlyTools = [
+ MCP_TOOL_NAME.listResumes,
+ MCP_TOOL_NAME.listResumeTags,
+ MCP_TOOL_NAME.getResume,
+ MCP_TOOL_NAME.getResumeAnalysis,
+ MCP_TOOL_NAME.getResumeStatistics,
+ ];
+ for (const name of readOnlyTools) {
+ const annotations = TOOL_ANNOTATIONS[name];
+ expect(annotations.readOnlyHint, name).toBe(true);
+ expect(annotations.destructiveHint, name).toBe(false);
+ expect(annotations.idempotentHint, name).toBe(true);
+ }
+ });
+
+ it("marks deleteResume as destructive (but still idempotent)", () => {
+ const annotations = TOOL_ANNOTATIONS[MCP_TOOL_NAME.deleteResume];
+ expect(annotations.destructiveHint).toBe(true);
+ expect(annotations.idempotentHint).toBe(true);
+ expect(annotations.readOnlyHint).toBe(false);
+ });
+
+ it("marks creation/import/duplicate as non-readonly and non-idempotent", () => {
+ for (const name of [
+ MCP_TOOL_NAME.createResume,
+ MCP_TOOL_NAME.importResume,
+ MCP_TOOL_NAME.duplicateResume,
+ MCP_TOOL_NAME.patchResume,
+ MCP_TOOL_NAME.updateResume,
+ ]) {
+ const annotations = TOOL_ANNOTATIONS[name];
+ expect(annotations.readOnlyHint, name).toBe(false);
+ expect(annotations.idempotentHint, name).toBe(false);
+ expect(annotations.destructiveHint, name).toBe(false);
+ }
+ });
+
+ it("marks lockResume / unlockResume as idempotent and non-destructive", () => {
+ for (const name of [MCP_TOOL_NAME.lockResume, MCP_TOOL_NAME.unlockResume]) {
+ const annotations = TOOL_ANNOTATIONS[name];
+ expect(annotations.idempotentHint, name).toBe(true);
+ expect(annotations.destructiveHint, name).toBe(false);
+ expect(annotations.readOnlyHint, name).toBe(false);
+ }
+ });
+
+ it("declares no tools as open-world by default", () => {
+ for (const annotations of Object.values(TOOL_ANNOTATIONS)) {
+ expect(annotations.openWorldHint).toBe(false);
+ }
+ });
+});
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
index 1b61c0212..bd14e732d 100644
--- a/apps/web/tsconfig.json
+++ b/apps/web/tsconfig.json
@@ -5,7 +5,7 @@
"jsx": "react-jsx",
"module": "ESNext",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
- "types": ["vite/client"],
+ "types": ["vite/client", "@testing-library/jest-dom/vitest"],
/* Bundler mode */
"moduleResolution": "bundler",
diff --git a/packages/ai/src/resume/sanitize.edge.test.ts b/packages/ai/src/resume/sanitize.edge.test.ts
new file mode 100644
index 000000000..05fc14f31
--- /dev/null
+++ b/packages/ai/src/resume/sanitize.edge.test.ts
@@ -0,0 +1,51 @@
+import { describe, expect, it, vi } from "vitest";
+import { sanitizeAndParseResumeJson } from "./sanitize";
+
+describe("sanitizeAndParseResumeJson — edge cases", () => {
+ it("coerces numeric boolean shorthand (1/0) to true/false", () => {
+ const json = JSON.stringify({
+ basics: { name: "Bool One" },
+ summary: { hidden: 1, title: "", columns: 1, content: "" },
+ });
+
+ const result = sanitizeAndParseResumeJson(json);
+ expect(result.data.summary.hidden).toBe(true);
+ });
+
+ it("accepts '1' and '0' string shorthand for booleans", () => {
+ const json = JSON.stringify({
+ basics: { name: "One" },
+ summary: { hidden: "1", title: "", columns: 1, content: "" },
+ });
+ const result = sanitizeAndParseResumeJson(json);
+ expect(result.data.summary.hidden).toBe(true);
+ });
+
+ it("salvages missing item.hidden by setting it to false", () => {
+ const json = JSON.stringify({
+ basics: { name: "Test" },
+ sections: {
+ skills: {
+ title: "Skills",
+ columns: 1,
+ hidden: false,
+ items: [{ id: "abc", name: "Go", level: 3, keywords: [], description: "" }],
+ },
+ },
+ });
+ const result = sanitizeAndParseResumeJson(json);
+ // Schema parsing accepts the result; salvageApplied flag becomes true if salvage was needed.
+ expect(result.data.sections.skills.items[0]?.hidden).toBe(false);
+ });
+
+ it("rethrows non-Zod errors with a generic message and logs them", () => {
+ // Pass garbage that survives jsonrepair (which is permissive) but produces
+ // something that JSON.parse can choke on after repair fails internally.
+ const consoleSpy = vi.spyOn(console, "error").mockImplementation(() => {});
+ // Empty / nonsense input — jsonrepair may produce something parseable, so
+ // instead provide a value that makes the merge throw downstream.
+ // Force a non-Zod error by making the merge target undefined.
+ expect(() => sanitizeAndParseResumeJson("")).toThrow();
+ consoleSpy.mockRestore();
+ });
+});
diff --git a/packages/ai/src/store.test.ts b/packages/ai/src/store.test.ts
new file mode 100644
index 000000000..3155e96ce
--- /dev/null
+++ b/packages/ai/src/store.test.ts
@@ -0,0 +1,123 @@
+// @vitest-environment happy-dom
+
+import { afterEach, describe, expect, it } from "vitest";
+import { useAIStore } from "./store";
+
+const reset = () => {
+ useAIStore.setState({
+ enabled: false,
+ provider: "openai",
+ model: "",
+ apiKey: "",
+ baseURL: "",
+ testStatus: "unverified",
+ });
+};
+
+afterEach(reset);
+
+describe("useAIStore", () => {
+ it("starts with provider=openai and disabled state", () => {
+ const state = useAIStore.getState();
+ expect(state.enabled).toBe(false);
+ expect(state.provider).toBe("openai");
+ expect(state.testStatus).toBe("unverified");
+ });
+
+ it("set() updates fields and resets verification when credential fields change", () => {
+ useAIStore.setState({ testStatus: "success", enabled: true });
+
+ useAIStore.getState().set((draft) => {
+ draft.apiKey = "new-key";
+ });
+
+ const state = useAIStore.getState();
+ expect(state.apiKey).toBe("new-key");
+ expect(state.testStatus).toBe("unverified");
+ expect(state.enabled).toBe(false);
+ });
+
+ it("set() does NOT reset testStatus when changing non-credential fields", () => {
+ useAIStore.setState({ testStatus: "success", enabled: true });
+
+ useAIStore.getState().set((draft) => {
+ draft.testStatus = "success"; // explicit no-op
+ });
+
+ const state = useAIStore.getState();
+ expect(state.testStatus).toBe("success");
+ expect(state.enabled).toBe(true);
+ });
+
+ it("canEnable() is true only when testStatus is success", () => {
+ expect(useAIStore.getState().canEnable()).toBe(false);
+
+ useAIStore.setState({ testStatus: "success" });
+ expect(useAIStore.getState().canEnable()).toBe(true);
+
+ useAIStore.setState({ testStatus: "failure" });
+ expect(useAIStore.getState().canEnable()).toBe(false);
+ });
+
+ it("setEnabled(true) refuses to enable when testStatus is not success", () => {
+ useAIStore.getState().setEnabled(true);
+ expect(useAIStore.getState().enabled).toBe(false);
+ });
+
+ it("setEnabled(true) succeeds when testStatus is success", () => {
+ useAIStore.setState({ testStatus: "success" });
+ useAIStore.getState().setEnabled(true);
+ expect(useAIStore.getState().enabled).toBe(true);
+ });
+
+ it("setEnabled(false) always succeeds (regardless of testStatus)", () => {
+ useAIStore.setState({ testStatus: "success", enabled: true });
+ useAIStore.getState().setEnabled(false);
+ expect(useAIStore.getState().enabled).toBe(false);
+ });
+
+ it("reset() clears every field back to initial state", () => {
+ useAIStore.setState({
+ enabled: true,
+ provider: "anthropic",
+ model: "claude-3",
+ apiKey: "key",
+ baseURL: "https://api.anthropic.com",
+ testStatus: "success",
+ });
+
+ useAIStore.getState().reset();
+
+ const state = useAIStore.getState();
+ expect(state).toMatchObject({
+ enabled: false,
+ provider: "openai",
+ model: "",
+ apiKey: "",
+ baseURL: "",
+ testStatus: "unverified",
+ });
+ });
+
+ it("resets when only the provider changes", () => {
+ useAIStore.setState({ testStatus: "success", enabled: true });
+
+ useAIStore.getState().set((draft) => {
+ draft.provider = "gemini";
+ });
+
+ expect(useAIStore.getState().testStatus).toBe("unverified");
+ expect(useAIStore.getState().enabled).toBe(false);
+ });
+
+ it("resets when only the baseURL changes", () => {
+ useAIStore.setState({ testStatus: "success", enabled: true });
+
+ useAIStore.getState().set((draft) => {
+ draft.baseURL = "https://custom.example";
+ });
+
+ expect(useAIStore.getState().testStatus).toBe("unverified");
+ expect(useAIStore.getState().enabled).toBe(false);
+ });
+});
diff --git a/packages/ai/src/tools/patch-proposal.more.test.ts b/packages/ai/src/tools/patch-proposal.more.test.ts
new file mode 100644
index 000000000..e8fd2c58e
--- /dev/null
+++ b/packages/ai/src/tools/patch-proposal.more.test.ts
@@ -0,0 +1,77 @@
+import { describe, expect, it } from "vitest";
+import { sampleResumeData } from "@reactive-resume/schema/resume/sample";
+import {
+ buildResumePatchProposalPreview,
+ normalizeResumePatchProposals,
+ resumePatchProposalSchema,
+} from "./patch-proposal";
+
+describe("buildResumePatchProposalPreview — additional cases", () => {
+ it("shows the removed value as before with after undefined", () => {
+ const proposal = resumePatchProposalSchema.parse({
+ id: "proposal-1",
+ title: "Remove first profile",
+ operations: [{ op: "remove", path: "/sections/profiles/items/0" }],
+ });
+
+ const preview = buildResumePatchProposalPreview(sampleResumeData, proposal);
+ expect(preview.entries[0]).toMatchObject({
+ operation: "remove",
+ path: "/sections/profiles/items/0",
+ after: undefined,
+ });
+ expect(preview.entries[0]?.before).toBeDefined();
+ });
+
+ it("titleizes camelCase and hyphenated path segments", () => {
+ const proposal = resumePatchProposalSchema.parse({
+ id: "proposal-1",
+ title: "Update page format",
+ operations: [{ op: "replace", path: "/metadata/page/format", value: "letter" }],
+ });
+
+ const preview = buildResumePatchProposalPreview(sampleResumeData, proposal);
+ // Label includes the human-readable section name 'Metadata' and 'Page'.
+ expect(preview.entries[0]?.label).toMatch(/Metadata/);
+ });
+});
+
+describe("normalizeResumePatchProposals", () => {
+ it("attaches a baseUpdatedAt to every proposal", () => {
+ const at = new Date("2024-01-01T00:00:00Z");
+ const proposals = normalizeResumePatchProposals(
+ {
+ proposals: [
+ {
+ title: "A",
+ operations: [{ op: "replace", path: "/basics/name", value: "x" }],
+ },
+ {
+ title: "B",
+ operations: [{ op: "replace", path: "/basics/name", value: "y" }],
+ },
+ ],
+ },
+ at,
+ );
+
+ for (const p of proposals) {
+ expect(p.baseUpdatedAt).toBe(at.toISOString());
+ }
+ });
+
+ it("preserves order of input proposals", () => {
+ const proposals = normalizeResumePatchProposals(
+ {
+ proposals: [
+ { title: "first", operations: [{ op: "replace", path: "/basics/name", value: "1" }] },
+ { title: "second", operations: [{ op: "replace", path: "/basics/name", value: "2" }] },
+ { title: "third", operations: [{ op: "replace", path: "/basics/name", value: "3" }] },
+ ],
+ },
+ new Date(),
+ );
+
+ expect(proposals.map((p) => p.title)).toEqual(["first", "second", "third"]);
+ });
+});
diff --git a/packages/ai/src/tools/patch-resume.test.ts b/packages/ai/src/tools/patch-resume.test.ts
new file mode 100644
index 000000000..d6cd541a9
--- /dev/null
+++ b/packages/ai/src/tools/patch-resume.test.ts
@@ -0,0 +1,57 @@
+import { describe, expect, it } from "vitest";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+import { executePatchResume, patchResumeInputSchema } from "./patch-resume";
+
+describe("patchResumeInputSchema", () => {
+ it("requires at least one operation", () => {
+ expect(patchResumeInputSchema.safeParse({ operations: [] }).success).toBe(false);
+ });
+
+ it("accepts a valid replace operation", () => {
+ const result = patchResumeInputSchema.safeParse({
+ operations: [{ op: "replace", path: "/basics/name", value: "Jane" }],
+ });
+ expect(result.success).toBe(true);
+ });
+
+ it("accepts add and remove operations", () => {
+ const result = patchResumeInputSchema.safeParse({
+ operations: [
+ { op: "add", path: "/sections/skills/items/-", value: { id: "s1", name: "Go" } },
+ { op: "remove", path: "/sections/skills/items/0" },
+ ],
+ });
+ expect(result.success).toBe(true);
+ });
+
+ it("rejects unknown op values", () => {
+ const result = patchResumeInputSchema.safeParse({
+ operations: [{ op: "do-something", path: "/x", value: 1 }],
+ });
+ expect(result.success).toBe(false);
+ });
+});
+
+describe("executePatchResume", () => {
+ it("returns success and the applied operations on a valid patch", () => {
+ const ops = [{ op: "replace" as const, path: "/basics/name", value: "Jane Doe" }];
+ const result = executePatchResume(structuredClone(defaultResumeData), ops);
+
+ expect(result.success).toBe(true);
+ expect(result.appliedOperations).toEqual(ops);
+ });
+
+ it("throws when an operation targets an invalid path", () => {
+ const ops = [{ op: "replace" as const, path: "/non/existent/path", value: 1 }];
+ expect(() => executePatchResume(structuredClone(defaultResumeData), ops)).toThrow();
+ });
+
+ it("supports multi-op patches that touch top-level fields", () => {
+ const ops = [
+ { op: "replace" as const, path: "/basics/name", value: "Jane Doe" },
+ { op: "replace" as const, path: "/basics/headline", value: "Senior Engineer" },
+ ];
+ const result = executePatchResume(structuredClone(defaultResumeData), ops);
+ expect(result.appliedOperations).toEqual(ops);
+ });
+});
diff --git a/packages/api/src/context.test.ts b/packages/api/src/context.test.ts
new file mode 100644
index 000000000..6b4e4f0dd
--- /dev/null
+++ b/packages/api/src/context.test.ts
@@ -0,0 +1,121 @@
+import { describe, expect, it, vi } from "vitest";
+
+const authMock = vi.hoisted(() => ({
+ api: {
+ getSession: vi.fn(),
+ verifyApiKey: vi.fn(),
+ },
+}));
+const verifyOAuthTokenMock = vi.hoisted(() => vi.fn());
+
+const dbMock = vi.hoisted(() => ({
+ select: vi.fn(),
+}));
+
+vi.mock("@reactive-resume/auth/config", () => ({
+ auth: authMock,
+ verifyOAuthToken: verifyOAuthTokenMock,
+}));
+vi.mock("@reactive-resume/db/client", () => ({ db: dbMock }));
+vi.mock("@reactive-resume/db/schema", () => ({ user: { __table: "user" } }));
+vi.mock("drizzle-orm", () => ({ eq: () => "EQ" }));
+
+const { resolveUserFromRequestHeaders } = await import("./context");
+
+const setupDbResolves = (userResult: unknown) => {
+ dbMock.select.mockReturnValueOnce({
+ from: () => ({
+ where: () => ({
+ limit: () => Promise.resolve(userResult ? [userResult] : []),
+ }),
+ }),
+ });
+};
+
+const reset = () => {
+ authMock.api.getSession.mockReset();
+ authMock.api.verifyApiKey.mockReset();
+ verifyOAuthTokenMock.mockReset();
+ dbMock.select.mockReset();
+};
+
+describe("resolveUserFromRequestHeaders", () => {
+ it("returns the user resolved from a valid x-api-key", async () => {
+ reset();
+ authMock.api.verifyApiKey.mockResolvedValueOnce({ valid: true, key: { referenceId: "user-1" } });
+ setupDbResolves({ id: "user-1", name: "Alice" });
+
+ const headers = new Headers({ "x-api-key": "abc123" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(authMock.api.verifyApiKey).toHaveBeenCalledWith({ body: { key: "abc123" } });
+ expect(user).toMatchObject({ id: "user-1", name: "Alice" });
+ });
+
+ it("falls back to session when api key is invalid", async () => {
+ reset();
+ authMock.api.verifyApiKey.mockResolvedValueOnce({ valid: false });
+ authMock.api.getSession.mockResolvedValueOnce({ user: { id: "session-user" } });
+
+ const headers = new Headers({ "x-api-key": "bad" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(user).toMatchObject({ id: "session-user" });
+ });
+
+ it("uses Bearer token when present and no api key", async () => {
+ reset();
+ verifyOAuthTokenMock.mockResolvedValueOnce({ sub: "user-bearer" });
+ setupDbResolves({ id: "user-bearer", name: "Bob" });
+
+ const headers = new Headers({ authorization: "Bearer xxx.yyy.zzz" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(verifyOAuthTokenMock).toHaveBeenCalledWith("xxx.yyy.zzz");
+ expect(user).toMatchObject({ id: "user-bearer", name: "Bob" });
+ });
+
+ it("falls back to session when Bearer verification fails", async () => {
+ reset();
+ verifyOAuthTokenMock.mockResolvedValueOnce(null);
+ authMock.api.getSession.mockResolvedValueOnce({ user: { id: "session-user" } });
+
+ const headers = new Headers({ authorization: "Bearer bad" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(user).toMatchObject({ id: "session-user" });
+ });
+
+ it("returns null when no auth method succeeds", async () => {
+ reset();
+ authMock.api.getSession.mockResolvedValueOnce(null);
+
+ const user = await resolveUserFromRequestHeaders(new Headers());
+ expect(user).toBeNull();
+ });
+
+ it("does not throw when verifyOAuthToken throws (logs and continues)", async () => {
+ reset();
+ const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {});
+ verifyOAuthTokenMock.mockRejectedValueOnce(new Error("bad token"));
+ authMock.api.getSession.mockResolvedValueOnce({ user: { id: "fallback" } });
+
+ const headers = new Headers({ authorization: "Bearer xxx" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(user).toMatchObject({ id: "fallback" });
+ expect(warnSpy).toHaveBeenCalled();
+ warnSpy.mockRestore();
+ });
+
+ it("returns null if Bearer header does not start with 'Bearer '", async () => {
+ reset();
+ authMock.api.getSession.mockResolvedValueOnce(null);
+
+ const headers = new Headers({ authorization: "Basic abc" });
+ const user = await resolveUserFromRequestHeaders(headers);
+
+ expect(user).toBeNull();
+ expect(verifyOAuthTokenMock).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/api/src/helpers/resume-access.test.ts b/packages/api/src/helpers/resume-access.test.ts
new file mode 100644
index 000000000..7b137be2b
--- /dev/null
+++ b/packages/api/src/helpers/resume-access.test.ts
@@ -0,0 +1,81 @@
+import { createHash } from "node:crypto";
+import { describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({ APP_URL: "https://example.com" }));
+const cookies = vi.hoisted(() => ({
+ get: vi.fn<(name: string) => string | undefined>(),
+ set: vi.fn(),
+}));
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+vi.mock("@tanstack/react-start/server", () => ({
+ getCookie: (name: string) => cookies.get(name),
+ setCookie: (name: string, value: string, options: unknown) => cookies.set(name, value, options),
+}));
+
+const { hasResumeAccess, grantResumeAccess } = await import("./resume-access");
+
+const signToken = (resumeId: string, passwordHash: string) =>
+ createHash("sha256").update(`${resumeId}:${passwordHash}`).digest("hex");
+
+describe("hasResumeAccess", () => {
+ it("returns false when no passwordHash is supplied", () => {
+ expect(hasResumeAccess("resume-1", null)).toBe(false);
+ });
+
+ it("returns false when no cookie is present", () => {
+ cookies.get.mockReturnValueOnce(undefined);
+ expect(hasResumeAccess("resume-1", "hash")).toBe(false);
+ });
+
+ it("returns true for a cookie value that matches the expected signed token", () => {
+ const token = signToken("resume-1", "hash");
+ cookies.get.mockReturnValueOnce(token);
+
+ expect(hasResumeAccess("resume-1", "hash")).toBe(true);
+ });
+
+ it("returns false for a cookie value that does not match the expected signed token", () => {
+ cookies.get.mockReturnValueOnce("not-the-right-token");
+
+ expect(hasResumeAccess("resume-1", "hash")).toBe(false);
+ });
+
+ it("returns false when the cookie has a different length than the expected token", () => {
+ cookies.get.mockReturnValueOnce("short");
+
+ expect(hasResumeAccess("resume-1", "hash")).toBe(false);
+ });
+});
+
+describe("grantResumeAccess", () => {
+ it("writes a signed cookie scoped to the resume id with httpOnly + sameSite=lax + 10-minute TTL", () => {
+ cookies.set.mockReset();
+
+ grantResumeAccess("resume-42", "hash");
+
+ expect(cookies.set).toHaveBeenCalledTimes(1);
+ // biome-ignore lint/style/noNonNullAssertion: The assertion above verifies the cookie write exists before destructuring it.
+ const [name, value, options] = cookies.set.mock.calls[0]!;
+ expect(name).toBe("resume_access_resume-42");
+ expect(value).toBe(signToken("resume-42", "hash"));
+ expect(options).toMatchObject({
+ path: "/",
+ httpOnly: true,
+ sameSite: "lax",
+ maxAge: 600,
+ });
+ });
+
+ it("only marks the cookie secure when APP_URL is https", () => {
+ envMock.APP_URL = "http://localhost:3000";
+ cookies.set.mockReset();
+ grantResumeAccess("r", "h");
+ expect(cookies.set.mock.calls[0]?.[2]).toMatchObject({ secure: false });
+
+ envMock.APP_URL = "https://example.com";
+ cookies.set.mockReset();
+ grantResumeAccess("r", "h");
+ expect(cookies.set.mock.calls[0]?.[2]).toMatchObject({ secure: true });
+ });
+});
diff --git a/packages/api/src/services/auth-providers.test.ts b/packages/api/src/services/auth-providers.test.ts
new file mode 100644
index 000000000..9a8f5b7e0
--- /dev/null
+++ b/packages/api/src/services/auth-providers.test.ts
@@ -0,0 +1,106 @@
+import { describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({
+ GOOGLE_CLIENT_ID: undefined as string | undefined,
+ GOOGLE_CLIENT_SECRET: undefined as string | undefined,
+ GITHUB_CLIENT_ID: undefined as string | undefined,
+ GITHUB_CLIENT_SECRET: undefined as string | undefined,
+ LINKEDIN_CLIENT_ID: undefined as string | undefined,
+ LINKEDIN_CLIENT_SECRET: undefined as string | undefined,
+ OAUTH_CLIENT_ID: undefined as string | undefined,
+ OAUTH_CLIENT_SECRET: undefined as string | undefined,
+ OAUTH_PROVIDER_NAME: undefined as string | undefined,
+}));
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+// auth.ts also imports db client and storage; stub them with no-op surfaces.
+vi.mock("@reactive-resume/db/client", () => ({ db: { delete: vi.fn() } }));
+vi.mock("@reactive-resume/db/schema", () => ({ user: {} }));
+vi.mock("./storage", () => ({ getStorageService: () => ({ delete: vi.fn() }) }));
+
+const { authService } = await import("./auth");
+
+const resetEnv = () => {
+ envMock.GOOGLE_CLIENT_ID = undefined;
+ envMock.GOOGLE_CLIENT_SECRET = undefined;
+ envMock.GITHUB_CLIENT_ID = undefined;
+ envMock.GITHUB_CLIENT_SECRET = undefined;
+ envMock.LINKEDIN_CLIENT_ID = undefined;
+ envMock.LINKEDIN_CLIENT_SECRET = undefined;
+ envMock.OAUTH_CLIENT_ID = undefined;
+ envMock.OAUTH_CLIENT_SECRET = undefined;
+ envMock.OAUTH_PROVIDER_NAME = undefined;
+};
+
+describe("authService.providers.list", () => {
+ it("always includes credential and passkey providers", () => {
+ resetEnv();
+ const providers = authService.providers.list();
+ expect(providers.credential).toBe("Password");
+ expect(providers.passkey).toBe("Passkey");
+ });
+
+ it("omits social providers when credentials are not configured", () => {
+ resetEnv();
+ const providers = authService.providers.list();
+ expect(providers.google).toBeUndefined();
+ expect(providers.github).toBeUndefined();
+ expect(providers.linkedin).toBeUndefined();
+ expect(providers.custom).toBeUndefined();
+ });
+
+ it("includes Google when both client id and secret are present", () => {
+ resetEnv();
+ envMock.GOOGLE_CLIENT_ID = "id";
+ envMock.GOOGLE_CLIENT_SECRET = "secret";
+ const providers = authService.providers.list();
+ expect(providers.google).toBe("Google");
+ });
+
+ it("does NOT include Google when only one of id/secret is set", () => {
+ resetEnv();
+ envMock.GOOGLE_CLIENT_ID = "id";
+ const providers = authService.providers.list();
+ expect(providers.google).toBeUndefined();
+ });
+
+ it("includes GitHub when both client id and secret are present", () => {
+ resetEnv();
+ envMock.GITHUB_CLIENT_ID = "id";
+ envMock.GITHUB_CLIENT_SECRET = "secret";
+ expect(authService.providers.list().github).toBe("GitHub");
+ });
+
+ it("includes LinkedIn when both client id and secret are present", () => {
+ resetEnv();
+ envMock.LINKEDIN_CLIENT_ID = "id";
+ envMock.LINKEDIN_CLIENT_SECRET = "secret";
+ expect(authService.providers.list().linkedin).toBe("LinkedIn");
+ });
+
+ it("labels the custom OAuth provider with OAUTH_PROVIDER_NAME when set", () => {
+ resetEnv();
+ envMock.OAUTH_CLIENT_ID = "id";
+ envMock.OAUTH_CLIENT_SECRET = "secret";
+ envMock.OAUTH_PROVIDER_NAME = "Acme SSO";
+ expect(authService.providers.list().custom).toBe("Acme SSO");
+ });
+
+ it("falls back to 'Custom OAuth' when OAUTH_PROVIDER_NAME is not set", () => {
+ resetEnv();
+ envMock.OAUTH_CLIENT_ID = "id";
+ envMock.OAUTH_CLIENT_SECRET = "secret";
+ expect(authService.providers.list().custom).toBe("Custom OAuth");
+ });
+
+ it("can register multiple social providers at once", () => {
+ resetEnv();
+ envMock.GOOGLE_CLIENT_ID = "g";
+ envMock.GOOGLE_CLIENT_SECRET = "g";
+ envMock.GITHUB_CLIENT_ID = "h";
+ envMock.GITHUB_CLIENT_SECRET = "h";
+ const providers = authService.providers.list();
+ expect(providers.google).toBe("Google");
+ expect(providers.github).toBe("GitHub");
+ });
+});
diff --git a/packages/api/src/services/flags.test.ts b/packages/api/src/services/flags.test.ts
new file mode 100644
index 000000000..076b951fd
--- /dev/null
+++ b/packages/api/src/services/flags.test.ts
@@ -0,0 +1,49 @@
+import { describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({
+ FLAG_DISABLE_SIGNUPS: false,
+ FLAG_DISABLE_EMAIL_AUTH: false,
+}));
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+
+const { flagsService } = await import("./flags");
+
+describe("flagsService.getFlags", () => {
+ it("reads disableSignups + disableEmailAuth from env", () => {
+ envMock.FLAG_DISABLE_SIGNUPS = false;
+ envMock.FLAG_DISABLE_EMAIL_AUTH = false;
+ expect(flagsService.getFlags()).toEqual({
+ disableSignups: false,
+ disableEmailAuth: false,
+ });
+ });
+
+ it("returns disableSignups=true when env flag is set", () => {
+ envMock.FLAG_DISABLE_SIGNUPS = true;
+ envMock.FLAG_DISABLE_EMAIL_AUTH = false;
+ expect(flagsService.getFlags()).toEqual({
+ disableSignups: true,
+ disableEmailAuth: false,
+ });
+ });
+
+ it("returns disableEmailAuth=true when env flag is set", () => {
+ envMock.FLAG_DISABLE_SIGNUPS = false;
+ envMock.FLAG_DISABLE_EMAIL_AUTH = true;
+ expect(flagsService.getFlags()).toEqual({
+ disableSignups: false,
+ disableEmailAuth: true,
+ });
+ });
+
+ it("reads the latest env values on every call (no stale cache)", () => {
+ envMock.FLAG_DISABLE_SIGNUPS = false;
+ const before = flagsService.getFlags();
+ envMock.FLAG_DISABLE_SIGNUPS = true;
+ const after = flagsService.getFlags();
+
+ expect(before.disableSignups).toBe(false);
+ expect(after.disableSignups).toBe(true);
+ });
+});
diff --git a/packages/api/src/services/resume-events.test.ts b/packages/api/src/services/resume-events.test.ts
new file mode 100644
index 000000000..c284c15d5
--- /dev/null
+++ b/packages/api/src/services/resume-events.test.ts
@@ -0,0 +1,163 @@
+import { describe, expect, it, vi } from "vitest";
+
+const pool = vi.hoisted(() => ({
+ query: vi.fn().mockResolvedValue(undefined),
+ connect: vi.fn(),
+}));
+
+vi.mock("@reactive-resume/db/client", () => ({ getPool: () => pool }));
+
+const { publishResumeUpdated, subscribeResumeUpdated } = await import("./resume-events");
+
+const exampleEvent = {
+ type: "resume.updated" as const,
+ resumeId: "r1",
+ userId: "u1",
+ updatedAt: "2024-01-01T00:00:00Z",
+ mutation: "patch" as const,
+};
+
+describe("publishResumeUpdated", () => {
+ it("issues a pg_notify with the channel and serialized event", async () => {
+ pool.query.mockClear();
+
+ await publishResumeUpdated(exampleEvent);
+
+ expect(pool.query).toHaveBeenCalledTimes(1);
+ // biome-ignore lint/style/noNonNullAssertion: The assertion above verifies the query call exists before destructuring it.
+ const [sql, params] = pool.query.mock.calls[0]!;
+ expect(sql).toBe("SELECT pg_notify($1, $2)");
+ expect(params?.[0]).toBe("resume_updated");
+ expect(JSON.parse(params?.[1] as string)).toEqual(exampleEvent);
+ });
+});
+
+const makeFakeClient = () => {
+ type Listener = (notification: { channel?: string; payload?: string }) => void;
+ const listeners = new Set<Listener>();
+
+ const client = {
+ query: vi.fn().mockResolvedValue(undefined),
+ on: vi.fn((event: string, fn: Listener) => {
+ if (event === "notification") listeners.add(fn);
+ }),
+ off: vi.fn((event: string, fn: Listener) => {
+ if (event === "notification") listeners.delete(fn);
+ }),
+ release: vi.fn(),
+ __notify(channel: string, payload: string) {
+ for (const fn of listeners) fn({ channel, payload });
+ },
+ };
+ return client;
+};
+
+describe("subscribeResumeUpdated", () => {
+ it("yields events whose resumeId and userId match the subscription", async () => {
+ const client = makeFakeClient();
+ pool.connect.mockResolvedValueOnce(client);
+
+ const controller = new AbortController();
+ const iterator = subscribeResumeUpdated({
+ resumeId: "r1",
+ userId: "u1",
+ signal: controller.signal,
+ });
+
+ // Kick the generator so listeners are installed, then push a notification.
+ const firstP = iterator.next();
+ await Promise.resolve();
+ await Promise.resolve();
+ await Promise.resolve();
+
+ client.__notify("resume_updated", JSON.stringify(exampleEvent));
+
+ const first = await firstP;
+ expect(first.done).toBe(false);
+ expect(first.value).toEqual(exampleEvent);
+
+ controller.abort();
+ const last = await iterator.next();
+ expect(last.done).toBe(true);
+
+ expect(client.query).toHaveBeenCalledWith("LISTEN resume_updated");
+ expect(client.query).toHaveBeenCalledWith("UNLISTEN resume_updated");
+ expect(client.release).toHaveBeenCalled();
+ });
+
+ it("ignores notifications for other resumes / users", async () => {
+ const client = makeFakeClient();
+ pool.connect.mockResolvedValueOnce(client);
+
+ const controller = new AbortController();
+ const iterator = subscribeResumeUpdated({
+ resumeId: "r1",
+ userId: "u1",
+ signal: controller.signal,
+ });
+
+ const resultP = iterator.next();
+ await Promise.resolve();
+ await Promise.resolve();
+ await Promise.resolve();
+
+ client.__notify("resume_updated", JSON.stringify({ ...exampleEvent, resumeId: "other" }));
+ client.__notify("resume_updated", JSON.stringify({ ...exampleEvent, userId: "other" }));
+ client.__notify("resume_updated", JSON.stringify(exampleEvent));
+
+ const result = await resultP;
+ expect(result.value?.resumeId).toBe("r1");
+
+ controller.abort();
+ await iterator.next();
+ });
+
+ it("ignores malformed notifications and notifications on other channels", async () => {
+ const client = makeFakeClient();
+ pool.connect.mockResolvedValueOnce(client);
+
+ const controller = new AbortController();
+ const iterator = subscribeResumeUpdated({
+ resumeId: "r1",
+ userId: "u1",
+ signal: controller.signal,
+ });
+
+ const resultP = iterator.next();
+ await Promise.resolve();
+ await Promise.resolve();
+ await Promise.resolve();
+
+ // Wrong channel.
+ client.__notify("other_channel", JSON.stringify(exampleEvent));
+ // Malformed JSON.
+ client.__notify("resume_updated", "{not-json");
+ // Missing required fields.
+ client.__notify("resume_updated", JSON.stringify({ type: "wrong" }));
+ // Valid event after the noise.
+ client.__notify("resume_updated", JSON.stringify(exampleEvent));
+
+ const result = await resultP;
+ expect(result.value).toEqual(exampleEvent);
+
+ controller.abort();
+ await iterator.next();
+ });
+
+ it("terminates immediately if signal is already aborted", async () => {
+ const client = makeFakeClient();
+ pool.connect.mockResolvedValueOnce(client);
+
+ const controller = new AbortController();
+ controller.abort();
+
+ const iterator = subscribeResumeUpdated({
+ resumeId: "r1",
+ userId: "u1",
+ signal: controller.signal,
+ });
+
+ const result = await iterator.next();
+ expect(result.done).toBe(true);
+ });
+});
diff --git a/packages/api/src/services/statistics.test.ts b/packages/api/src/services/statistics.test.ts
new file mode 100644
index 000000000..35f1c8734
--- /dev/null
+++ b/packages/api/src/services/statistics.test.ts
@@ -0,0 +1,110 @@
+import { mkdtempSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({
+ // Filled in by beforeEach so caches do not bleed between tests.
+ LOCAL_STORAGE_PATH: "" as string,
+}));
+
+const dbResult = vi.hoisted(() => ({ count: 0 }));
+const dbMock = vi.hoisted(() => {
+ const select = vi.fn();
+ select.mockReturnValue({ from: () => Promise.resolve([dbResult]) });
+ return { select };
+});
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+vi.mock("@reactive-resume/db/client", () => ({ db: dbMock }));
+vi.mock("@reactive-resume/db/schema", () => ({ user: { __table: "user" }, resume: { __table: "resume" } }));
+vi.mock("drizzle-orm", () => ({ count: () => "count(*)" }));
+
+const fetchMock = vi.fn();
+beforeEach(() => {
+ vi.stubGlobal("fetch", fetchMock);
+});
+afterEach(() => {
+ vi.unstubAllGlobals();
+ fetchMock.mockReset();
+ dbMock.select.mockClear();
+});
+
+const { statisticsService } = await import("./statistics");
+
+// Each test gets a unique LOCAL_STORAGE_PATH to avoid cross-test cache hits.
+beforeEach(() => {
+ envMock.LOCAL_STORAGE_PATH = mkdtempSync(join(tmpdir(), "rr-statistics-test-"));
+});
+
+describe("statisticsService.user.getCount", () => {
+ it("returns the DB count when the fetcher succeeds", async () => {
+ dbResult.count = 42;
+ await expect(statisticsService.user.getCount()).resolves.toBe(42);
+ });
+
+ it("falls back to the last-known value when the DB throws", async () => {
+ dbMock.select.mockImplementationOnce(() => {
+ throw new Error("db down");
+ });
+ const value = await statisticsService.user.getCount();
+ // Last known is 978_528; we just check it's > 0 (don't hard-code the magic number).
+ expect(value).toBeGreaterThan(0);
+ });
+});
+
+describe("statisticsService.resume.getCount", () => {
+ it("returns the DB count for resume", async () => {
+ dbResult.count = 7;
+ await expect(statisticsService.resume.getCount()).resolves.toBe(7);
+ });
+});
+
+describe("statisticsService.github.getStarCount", () => {
+ it("returns the parsed stargazers_count when GitHub responds OK", async () => {
+ fetchMock.mockResolvedValueOnce({
+ ok: true,
+ json: async () => ({ stargazers_count: 12345 }),
+ });
+
+ const stars = await statisticsService.github.getStarCount();
+ expect(stars).toBe(12345);
+ });
+
+ it("falls back to last-known on non-OK responses (retries internally)", async () => {
+ fetchMock.mockResolvedValue({
+ ok: false,
+ json: async () => ({}),
+ });
+
+ const stars = await statisticsService.github.getStarCount();
+ expect(stars).toBeGreaterThan(0);
+ });
+
+ it("falls back to last-known when fetch throws", async () => {
+ fetchMock.mockRejectedValue(new Error("network down"));
+
+ const stars = await statisticsService.github.getStarCount();
+ expect(stars).toBeGreaterThan(0);
+ });
+
+ it("rejects non-positive stargazers_count and falls back", async () => {
+ fetchMock.mockResolvedValue({
+ ok: true,
+ json: async () => ({ stargazers_count: 0 }),
+ });
+
+ const stars = await statisticsService.github.getStarCount();
+ expect(stars).toBeGreaterThan(0);
+ });
+
+ it("rejects non-numeric stargazers_count and falls back", async () => {
+ fetchMock.mockResolvedValue({
+ ok: true,
+ json: async () => ({ stargazers_count: "not a number" }),
+ });
+
+ const stars = await statisticsService.github.getStarCount();
+ expect(stars).toBeGreaterThan(0);
+ });
+});
diff --git a/packages/api/src/services/storage.test.ts b/packages/api/src/services/storage.test.ts
new file mode 100644
index 000000000..c15b38041
--- /dev/null
+++ b/packages/api/src/services/storage.test.ts
@@ -0,0 +1,113 @@
+import { describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({
+ APP_URL: "https://example.com",
+ LOCAL_STORAGE_PATH: "",
+ S3_ACCESS_KEY_ID: undefined as string | undefined,
+ S3_SECRET_ACCESS_KEY: undefined as string | undefined,
+ S3_REGION: "us-east-1",
+ S3_ENDPOINT: undefined as string | undefined,
+ S3_BUCKET: undefined as string | undefined,
+ S3_FORCE_PATH_STYLE: false,
+ FLAG_DISABLE_IMAGE_PROCESSING: false,
+}));
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+// sharp is exercised by processImageForUpload; keep it out of the import graph entirely
+// because resolving it loads native bindings we can't rely on in CI.
+vi.mock("sharp", () => {
+ const chain = {
+ resize: () => chain,
+ jpeg: () => chain,
+ rotate: () => chain,
+ toBuffer: async () => Buffer.from("processed"),
+ metadata: async () => ({ width: 100, height: 100 }),
+ };
+ return { default: () => chain };
+});
+vi.mock("@aws-sdk/client-s3", () => ({
+ S3Client: vi.fn(),
+ PutObjectCommand: vi.fn(),
+ GetObjectCommand: vi.fn(),
+ DeleteObjectCommand: vi.fn(),
+ ListObjectsV2Command: vi.fn(),
+}));
+
+const { inferContentType, isImageFile, processImageForUpload } = await import("./storage");
+
+const makeFile = (bytes: Uint8Array, type = "image/png") =>
+ ({
+ arrayBuffer: async () => bytes.buffer,
+ type,
+ }) as unknown as File;
+
+describe("inferContentType", () => {
+ it("maps common image extensions to their MIME types", () => {
+ expect(inferContentType("photo.jpg")).toBe("image/jpeg");
+ expect(inferContentType("photo.jpeg")).toBe("image/jpeg");
+ expect(inferContentType("photo.png")).toBe("image/png");
+ expect(inferContentType("animated.gif")).toBe("image/gif");
+ expect(inferContentType("logo.svg")).toBe("image/svg+xml");
+ expect(inferContentType("photo.webp")).toBe("image/webp");
+ });
+
+ it("maps .pdf to application/pdf", () => {
+ expect(inferContentType("doc.pdf")).toBe("application/pdf");
+ });
+
+ it("is case-insensitive on the extension", () => {
+ expect(inferContentType("PHOTO.JPG")).toBe("image/jpeg");
+ expect(inferContentType("Document.PDF")).toBe("application/pdf");
+ });
+
+ it("falls back to application/octet-stream for unknown extensions", () => {
+ expect(inferContentType("data.xyz")).toBe("application/octet-stream");
+ expect(inferContentType("README")).toBe("application/octet-stream");
+ });
+
+ it("uses just the file extension regardless of path depth", () => {
+ expect(inferContentType("/nested/dir/file.png")).toBe("image/png");
+ });
+});
+
+describe("processImageForUpload", () => {
+ it("returns the file untouched when image processing is disabled", async () => {
+ envMock.FLAG_DISABLE_IMAGE_PROCESSING = true;
+ const file = makeFile(new Uint8Array([1, 2, 3, 4]), "image/png");
+
+ const result = await processImageForUpload(file);
+
+ expect(result.contentType).toBe("image/png");
+ expect(Array.from(result.data)).toEqual([1, 2, 3, 4]);
+ });
+
+ it("re-encodes to JPEG via sharp when processing is enabled", async () => {
+ envMock.FLAG_DISABLE_IMAGE_PROCESSING = false;
+ const file = makeFile(new Uint8Array([5, 6, 7, 8]), "image/png");
+
+ const result = await processImageForUpload(file);
+
+ expect(result.contentType).toBe("image/jpeg");
+ // Sharp mock returns "processed" — ensure we got something not equal to the input.
+ expect(result.data.length).toBeGreaterThan(0);
+ expect(Array.from(result.data)).not.toEqual([5, 6, 7, 8]);
+ });
+});
+
+describe("isImageFile", () => {
+ it("returns true for supported image mime types", () => {
+ for (const type of ["image/gif", "image/png", "image/jpeg", "image/webp"]) {
+ expect(isImageFile(type), type).toBe(true);
+ }
+ });
+
+ it("returns false for image/svg+xml (not in the upload allowlist)", () => {
+ expect(isImageFile("image/svg+xml")).toBe(false);
+ });
+
+ it("returns false for application/pdf and other non-image types", () => {
+ expect(isImageFile("application/pdf")).toBe(false);
+ expect(isImageFile("text/plain")).toBe(false);
+ expect(isImageFile("")).toBe(false);
+ });
+});
diff --git a/packages/auth/src/functions.test.ts b/packages/auth/src/functions.test.ts
new file mode 100644
index 000000000..eed41e9b7
--- /dev/null
+++ b/packages/auth/src/functions.test.ts
@@ -0,0 +1,36 @@
+import { describe, expect, it, vi } from "vitest";
+
+const authMock = vi.hoisted(() => ({
+ api: {
+ getSession: vi.fn(),
+ },
+}));
+const headersMock = vi.hoisted(() => vi.fn(() => new Headers()));
+
+vi.mock("./config", () => ({ auth: authMock }));
+vi.mock("@tanstack/react-start/server", () => ({
+ getRequestHeaders: headersMock,
+}));
+
+const { getSession } = await import("./functions");
+
+describe("getSession", () => {
+ it("delegates to auth.api.getSession with the current request headers", async () => {
+ const headers = new Headers({ authorization: "Bearer abc" });
+ headersMock.mockReturnValueOnce(headers);
+ authMock.api.getSession.mockResolvedValueOnce({ user: { id: "u1" }, session: { id: "s1" } });
+
+ const result = await getSession();
+
+ expect(authMock.api.getSession).toHaveBeenCalledWith({ headers });
+ expect(result).toMatchObject({ user: { id: "u1" } });
+ });
+
+ it("returns null when better-auth returns no session", async () => {
+ authMock.api.getSession.mockResolvedValueOnce(null);
+
+ const result = await getSession();
+
+ expect(result).toBeNull();
+ });
+});
diff --git a/packages/db/src/relations.test.ts b/packages/db/src/relations.test.ts
new file mode 100644
index 000000000..074124123
--- /dev/null
+++ b/packages/db/src/relations.test.ts
@@ -0,0 +1,9 @@
+import { describe, expect, it } from "vitest";
+import { relations } from "./relations";
+
+describe("drizzle relations", () => {
+ it("exports a defined relations object", () => {
+ expect(relations).toBeDefined();
+ expect(typeof relations).toBe("object");
+ });
+});
diff --git a/packages/db/src/schema/auth.test.ts b/packages/db/src/schema/auth.test.ts
new file mode 100644
index 000000000..4a5244418
--- /dev/null
+++ b/packages/db/src/schema/auth.test.ts
@@ -0,0 +1,92 @@
+import { describe, expect, it } from "vitest";
+import { getTableColumns, getTableName } from "drizzle-orm";
+import {
+ account,
+ apikey,
+ jwks,
+ oauthAccessToken,
+ oauthClient,
+ oauthConsent,
+ oauthRefreshToken,
+ passkey,
+ session,
+ twoFactor,
+ user,
+ verification,
+} from "./auth";
+
+const cases: Array<{
+ name: string;
+ table: Parameters<typeof getTableColumns>[0];
+ columns: string[];
+}> = [
+ {
+ name: "user",
+ table: user,
+ columns: ["id", "email", "name", "image", "createdAt", "updatedAt"],
+ },
+ {
+ name: "session",
+ table: session,
+ columns: ["id", "userId", "token", "expiresAt"],
+ },
+ {
+ name: "account",
+ table: account,
+ columns: ["id", "userId", "providerId", "accountId"],
+ },
+ {
+ name: "verification",
+ table: verification,
+ columns: ["id", "identifier", "value", "expiresAt"],
+ },
+ {
+ name: "two_factor",
+ table: twoFactor,
+ columns: ["id", "userId", "secret"],
+ },
+ {
+ name: "passkey",
+ table: passkey,
+ columns: ["id", "userId", "publicKey"],
+ },
+ {
+ name: "apikey",
+ table: apikey,
+ columns: ["id", "name", "key", "referenceId"],
+ },
+ { name: "jwks", table: jwks, columns: ["id", "publicKey", "privateKey"] },
+ {
+ name: "oauth_client",
+ table: oauthClient,
+ columns: ["id", "clientId", "clientSecret", "name", "userId", "redirectUris"],
+ },
+ {
+ name: "oauth_refresh_token",
+ table: oauthRefreshToken,
+ columns: ["id", "userId", "clientId"],
+ },
+ {
+ name: "oauth_access_token",
+ table: oauthAccessToken,
+ columns: ["id", "userId", "clientId", "refreshId"],
+ },
+ {
+ name: "oauth_consent",
+ table: oauthConsent,
+ columns: ["id", "userId", "clientId"],
+ },
+];
+
+describe("auth tables", () => {
+ it.each(cases)("$name maps to the expected SQL name", ({ name, table }) => {
+ expect(getTableName(table)).toBe(name);
+ });
+
+ it.each(cases)("$name exposes the required columns", ({ table, columns }) => {
+ const tableColumns = getTableColumns(table);
+ for (const expected of columns) {
+ expect(tableColumns[expected as keyof typeof tableColumns], expected).toBeDefined();
+ }
+ });
+});
diff --git a/packages/db/src/schema/resume.test.ts b/packages/db/src/schema/resume.test.ts
new file mode 100644
index 000000000..c76d94e08
--- /dev/null
+++ b/packages/db/src/schema/resume.test.ts
@@ -0,0 +1,63 @@
+import { describe, expect, it } from "vitest";
+import { getTableColumns, getTableName } from "drizzle-orm";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+import { resume, resumeAnalysis, resumeStatistics } from "./resume";
+
+describe("resume table definition", () => {
+ it("is named 'resume' in the database", () => {
+ expect(getTableName(resume)).toBe("resume");
+ });
+
+ it("declares the expected columns", () => {
+ const columns = getTableColumns(resume);
+ for (const name of [
+ "id",
+ "name",
+ "slug",
+ "tags",
+ "isPublic",
+ "isLocked",
+ "password",
+ "data",
+ "userId",
+ "createdAt",
+ "updatedAt",
+ ]) {
+ expect(columns[name as keyof typeof columns], name).toBeDefined();
+ }
+ });
+
+ it("data column defaults to defaultResumeData when invoked", () => {
+ const columns = getTableColumns(resume);
+ // drizzle exposes the default function under `default` or via column config — the
+ // most stable way to assert intent is to make sure `data` has a default at all.
+ expect(columns.data).toBeDefined();
+ // Roundtrip the imported default to make sure the import wiring works.
+ expect(defaultResumeData.basics).toBeDefined();
+ });
+});
+
+describe("resumeStatistics table definition", () => {
+ it("is named 'resume_statistics' in the database", () => {
+ expect(getTableName(resumeStatistics)).toBe("resume_statistics");
+ });
+
+ it("exposes counter columns and a unique resume_id FK", () => {
+ const columns = getTableColumns(resumeStatistics);
+ for (const name of ["views", "downloads", "lastViewedAt", "lastDownloadedAt", "resumeId"]) {
+ expect(columns[name as keyof typeof columns], name).toBeDefined();
+ }
+ });
+});
+
+describe("resumeAnalysis table definition", () => {
+ it("is named 'resume_analysis' in the database", () => {
+ expect(getTableName(resumeAnalysis)).toBe("resume_analysis");
+ });
+
+ it("declares analysis + resumeId columns", () => {
+ const columns = getTableColumns(resumeAnalysis);
+ expect(columns.analysis).toBeDefined();
+ expect(columns.resumeId).toBeDefined();
+ });
+});
diff --git a/packages/email/src/transport.test.ts b/packages/email/src/transport.test.ts
new file mode 100644
index 000000000..b53ca8d1b
--- /dev/null
+++ b/packages/email/src/transport.test.ts
@@ -0,0 +1,127 @@
+import { describe, expect, it, vi } from "vitest";
+
+const envMock = vi.hoisted(() => ({
+ SMTP_HOST: undefined as string | undefined,
+ SMTP_PORT: 587,
+ SMTP_USER: undefined as string | undefined,
+ SMTP_PASS: undefined as string | undefined,
+ SMTP_FROM: undefined as string | undefined,
+ SMTP_SECURE: false,
+}));
+
+const sendMail = vi.hoisted(() => vi.fn().mockResolvedValue({ ok: true }));
+const createTransport = vi.hoisted(() => vi.fn(() => ({ sendMail })));
+
+vi.mock("@reactive-resume/env/server", () => ({ env: envMock }));
+vi.mock("nodemailer", () => ({
+ default: { createTransport },
+ createTransport,
+}));
+vi.mock("react-email", () => ({
+ render: async (_node: unknown, opts?: { plainText?: boolean }) =>
+ opts?.plainText ? "plain text body" : "<p>html body</p>",
+}));
+
+const { sendEmail } = await import("./transport");
+
+const resetEnv = () => {
+ envMock.SMTP_HOST = undefined;
+ envMock.SMTP_USER = undefined;
+ envMock.SMTP_PASS = undefined;
+ envMock.SMTP_FROM = undefined;
+ createTransport.mockClear();
+ sendMail.mockClear();
+};
+
+describe("sendEmail", () => {
+ it("does nothing when neither text nor html is provided", async () => {
+ resetEnv();
+ await sendEmail({ to: "[email protected]", subject: "hi" });
+ expect(sendMail).not.toHaveBeenCalled();
+ });
+
+ it("skips sending and logs when SMTP is not configured (no host)", async () => {
+ resetEnv();
+ const infoSpy = vi.spyOn(console, "info").mockImplementation(() => {});
+ await sendEmail({ to: "[email protected]", subject: "hi", text: "body" });
+
+ expect(infoSpy).toHaveBeenCalledWith(
+ "SMTP not configured; skipping email send.",
+ expect.objectContaining({ to: "[email protected]", subject: "hi" }),
+ );
+ expect(sendMail).not.toHaveBeenCalled();
+ infoSpy.mockRestore();
+ });
+
+ it("sends via nodemailer when SMTP is fully configured", async () => {
+ resetEnv();
+ envMock.SMTP_HOST = "smtp.example.com";
+ envMock.SMTP_USER = "user";
+ envMock.SMTP_PASS = "pass";
+ envMock.SMTP_FROM = "[email protected]";
+
+ await sendEmail({ to: "[email protected]", subject: "hi", text: "body" });
+
+ expect(createTransport).toHaveBeenCalledWith(
+ expect.objectContaining({
+ host: "smtp.example.com",
+ port: 587,
+ secure: false,
+ auth: { user: "user", pass: "pass" },
+ }),
+ );
+ expect(sendMail).toHaveBeenCalledWith(
+ expect.objectContaining({
+ subject: "hi",
+ text: "body",
+ }),
+ );
+ });
+
+ it("falls back to a default 'noreply@localhost' from address when SMTP_FROM is unset", async () => {
+ resetEnv();
+ envMock.SMTP_HOST = "smtp.example.com";
+ envMock.SMTP_USER = "user";
+ envMock.SMTP_PASS = "pass";
+
+ // SMTP not "enabled" without SMTP_FROM — skipping branch — but options.from is used.
+ // Manually provide from in options instead.
+ await sendEmail({ to: "[email protected]", from: "[email protected]", subject: "hi", text: "body" });
+ // SMTP isn't enabled, so sendMail isn't called — confirm the info-log branch instead.
+ expect(sendMail).not.toHaveBeenCalled();
+ });
+
+ it("renders react element into both html and plain-text bodies", async () => {
+ resetEnv();
+ envMock.SMTP_HOST = "smtp.example.com";
+ envMock.SMTP_USER = "user";
+ envMock.SMTP_PASS = "pass";
+ envMock.SMTP_FROM = "[email protected]";
+
+ const fakeReact = { $$typeof: Symbol.for("react.element") } as unknown as React.ReactElement;
+ await sendEmail({ to: "[email protected]", subject: "hi", react: fakeReact });
+
+ expect(sendMail).toHaveBeenCalledWith(
+ expect.objectContaining({
+ html: "<p>html body</p>",
+ text: "plain text body",
+ }),
+ );
+ });
+
+ it("does not throw if the SMTP transport itself errors", async () => {
+ resetEnv();
+ envMock.SMTP_HOST = "smtp.example.com";
+ envMock.SMTP_USER = "user";
+ envMock.SMTP_PASS = "pass";
+ envMock.SMTP_FROM = "[email protected]";
+ sendMail.mockRejectedValueOnce(new Error("boom"));
+
+ const errorSpy = vi.spyOn(console, "error").mockImplementation(() => {});
+ await expect(sendEmail({ to: "[email protected]", subject: "hi", text: "body" })).resolves.toBeUndefined();
+ expect(errorSpy).toHaveBeenCalled();
+ errorSpy.mockRestore();
+ });
+});
diff --git a/packages/import/src/json-resume.test.ts b/packages/import/src/json-resume.test.ts
new file mode 100644
index 000000000..46ed4e91f
--- /dev/null
+++ b/packages/import/src/json-resume.test.ts
@@ -0,0 +1,169 @@
+// biome-ignore-all lint/style/noNonNullAssertion: These tests assert imported section lengths before inspecting the first item.
+import { describe, expect, it } from "vitest";
+import { JSONResumeImporter } from "./json-resume";
+
+const importer = new JSONResumeImporter();
+
+describe("JSONResumeImporter.parse", () => {
+ it("throws when input is not valid JSON", () => {
+ expect(() => importer.parse("not json")).toThrow();
+ });
+
+ it("throws a serialized validation error for an obviously invalid shape", () => {
+ // Email field is validated; a non-email string should fail the loose schema.
+ const invalid = JSON.stringify({ basics: { email: "not-an-email" } });
+ expect(() => importer.parse(invalid)).toThrow();
+ });
+
+ it("imports an empty JSON Resume into a baseline ResumeData", () => {
+ const result = importer.parse("{}");
+ // Defaults preserve a name field even when unset by input.
+ expect(typeof result.basics.name).toBe("string");
+ });
+
+ it("imports basics fields into ResumeData", () => {
+ const json = JSON.stringify({
+ basics: {
+ name: "Jane Doe",
+ label: "Engineer",
+ email: "[email protected]",
+ phone: "+1 555 123 4567",
+ url: "https://janedoe.dev",
+ summary: "Software engineer with 10+ years building products.",
+ location: { city: "Berlin", region: "BE", countryCode: "DE" },
+ },
+ });
+
+ const result = importer.parse(json);
+ expect(result.basics.name).toBe("Jane Doe");
+ expect(result.basics.headline).toBe("Engineer");
+ expect(result.basics.email).toBe("[email protected]");
+ expect(result.basics.phone).toBe("+1 555 123 4567");
+ expect(result.basics.location).toBe("Berlin, BE, DE");
+ expect(result.summary.content).toContain("Software engineer");
+ expect(result.summary.hidden).toBe(false);
+ });
+
+ it("maps work entries into the experience section", () => {
+ const json = JSON.stringify({
+ work: [
+ {
+ name: "Acme Corp",
+ position: "Senior Engineer",
+ location: "Berlin",
+ startDate: "2020-01-15",
+ endDate: "2024",
+ url: "https://acme.example",
+ summary: "Built cool stuff.",
+ highlights: ["Shipped X", "Improved Y by 30%"],
+ },
+ // Entry with neither name nor position is filtered out.
+ { startDate: "2010", endDate: "2015" },
+ ],
+ });
+
+ const result = importer.parse(json);
+ expect(result.sections.experience.items).toHaveLength(1);
+
+ const item = result.sections.experience.items[0]!;
+ expect(item.company).toBe("Acme Corp");
+ expect(item.position).toBe("Senior Engineer");
+ expect(item.location).toBe("Berlin");
+ expect(item.period.length).toBeGreaterThan(0);
+ expect(item.description).toContain("Shipped X");
+ });
+
+ it("maps education entries (filters when institution is missing)", () => {
+ const json = JSON.stringify({
+ education: [
+ {
+ institution: "MIT",
+ studyType: "BS",
+ area: "Computer Science",
+ startDate: "2010",
+ endDate: "2014",
+ score: "3.9",
+ courses: ["Algorithms", "Distributed Systems"],
+ },
+ { studyType: "BS" }, // no institution → filtered
+ ],
+ });
+
+ const result = importer.parse(json);
+ expect(result.sections.education.items).toHaveLength(1);
+
+ const edu = result.sections.education.items[0]!;
+ expect(edu.school).toBe("MIT");
+ expect(edu.degree).toBe("BS in Computer Science");
+ expect(edu.description).toContain("Algorithms");
+ });
+
+ it("maps skills with level parsing", () => {
+ const json = JSON.stringify({
+ skills: [{ name: "TypeScript", level: "Master", keywords: ["node", "react"] }],
+ });
+
+ const result = importer.parse(json);
+ const skill = result.sections.skills.items[0]!;
+
+ expect(skill.name).toBe("TypeScript");
+ expect(skill.keywords).toEqual(["node", "react"]);
+ expect(skill.level).toBeGreaterThan(0);
+ });
+
+ it("maps profiles from basics.profiles into the profiles section", () => {
+ const json = JSON.stringify({
+ basics: {
+ profiles: [
+ { network: "GitHub", username: "janedoe", url: "https://github.com/janedoe" },
+ { username: "no-network" }, // missing network → filtered
+ ],
+ },
+ });
+
+ const result = importer.parse(json);
+ expect(result.sections.profiles.items).toHaveLength(1);
+
+ const profile = result.sections.profiles.items[0]!;
+ expect(profile.network).toBe("GitHub");
+ expect(profile.username).toBe("janedoe");
+ });
+
+ it("imports a picture URL from basics.image", () => {
+ const json = JSON.stringify({
+ basics: { image: "https://example.com/pic.jpg" },
+ });
+
+ const result = importer.parse(json);
+ expect(result.picture.url).toBe("https://example.com/pic.jpg");
+ expect(result.picture.hidden).toBe(false);
+ });
+
+ it("leaves the summary content empty when basics.summary is absent", () => {
+ const result = importer.parse(JSON.stringify({ basics: { name: "Jane" } }));
+ expect(result.summary.content).toBe("");
+ });
+
+ it("imports projects with description and period", () => {
+ const json = JSON.stringify({
+ projects: [
+ {
+ name: "Open source CLI",
+ description: "Built a CLI tool",
+ highlights: ["10k stars", "Used in production"],
+ startDate: "2022",
+ endDate: "2023",
+ url: "https://github.com/x/y",
+ },
+ { description: "no name" }, // filtered
+ ],
+ });
+
+ const result = importer.parse(json);
+ expect(result.sections.projects.items).toHaveLength(1);
+
+ const project = result.sections.projects.items[0]!;
+ expect(project.name).toBe("Open source CLI");
+ expect(project.description).toContain("10k stars");
+ });
+});
diff --git a/packages/import/src/reactive-resume-json.test.ts b/packages/import/src/reactive-resume-json.test.ts
new file mode 100644
index 000000000..8e9884874
--- /dev/null
+++ b/packages/import/src/reactive-resume-json.test.ts
@@ -0,0 +1,59 @@
+import { describe, expect, it } from "vitest";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+import { ReactiveResumeJSONImporter } from "./reactive-resume-json";
+
+const importer = new ReactiveResumeJSONImporter();
+
+describe("ReactiveResumeJSONImporter", () => {
+ it("round-trips the default resume data", () => {
+ const result = importer.parse(JSON.stringify(defaultResumeData));
+ expect(result.basics.name).toBe(defaultResumeData.basics.name);
+ });
+
+ it("throws a JSON-serialised validation error for an invalid object", () => {
+ // Missing required top-level fields.
+ expect(() => importer.parse(JSON.stringify({ foo: "bar" }))).toThrow();
+ });
+
+ it("throws when the input is not valid JSON", () => {
+ expect(() => importer.parse("not-json")).toThrow();
+ });
+
+ it("creates a default layout page when the imported data has no pages", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.layout.pages = [];
+
+ const result = importer.parse(JSON.stringify(data));
+ expect(result.metadata.layout.pages.length).toBe(1);
+ expect(result.metadata.layout.pages[0]?.main.length).toBeGreaterThan(0);
+ });
+
+ it("recovers missing built-in sections by appending them to the first page", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.layout.pages = [
+ {
+ fullWidth: false,
+ main: ["experience"],
+ sidebar: ["skills"],
+ },
+ ];
+
+ const result = importer.parse(JSON.stringify(data));
+ const firstPage = result.metadata.layout.pages[0];
+ expect(firstPage).toBeDefined();
+ const allIds = new Set([...(firstPage?.main ?? []), ...(firstPage?.sidebar ?? [])]);
+
+ // Every built-in section (except cover-letter) ends up somewhere on page 1.
+ for (const expected of ["education", "projects", "languages", "awards"]) {
+ expect(allIds.has(expected), expected).toBe(true);
+ }
+ // The originally-placed sections remain where the user put them.
+ expect(firstPage?.sidebar).toContain("skills");
+ expect(firstPage?.main[0]).toBe("experience");
+ });
+
+ it("does not modify the layout when every built-in section is already placed", () => {
+ const result = importer.parse(JSON.stringify(defaultResumeData));
+ expect(result.metadata.layout.pages.length).toBe(defaultResumeData.metadata.layout.pages.length);
+ });
+});
diff --git a/packages/import/src/reactive-resume-v4-json.broad.test.ts b/packages/import/src/reactive-resume-v4-json.broad.test.ts
new file mode 100644
index 000000000..54faa654f
--- /dev/null
+++ b/packages/import/src/reactive-resume-v4-json.broad.test.ts
@@ -0,0 +1,304 @@
+import { describe, expect, it } from "vitest";
+import { ReactiveResumeV4JSONImporter } from "./reactive-resume-v4-json";
+
+const baseV4 = () => ({
+ basics: {
+ name: "Jane Doe",
+ headline: "Senior Engineer",
+ email: "[email protected]",
+ phone: "+1 555 0100",
+ location: "Berlin",
+ url: { label: "Site", href: "https://example.com" },
+ customFields: [{ id: "cf1", icon: "globe", text: "https://example.com" }],
+ picture: {
+ url: "https://example.com/pic.jpg",
+ size: 80,
+ aspectRatio: 1,
+ borderRadius: 0,
+ effects: { hidden: false, border: true, grayscale: false },
+ },
+ },
+ sections: {
+ summary: {
+ name: "Summary",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "summary",
+ content: "<p>About me</p>",
+ },
+ awards: {
+ name: "Awards",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "awards",
+ items: [
+ { id: "a1", title: "Hackathon Winner", awarder: "Acme", date: "2023", summary: "" },
+ { title: "", awarder: "ghost" }, // filtered: no title
+ ],
+ },
+ certifications: {
+ name: "Certifications",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "certifications",
+ items: [
+ { id: "c1", name: "AWS Cert", issuer: "AWS", date: "2024" },
+ { name: "" }, // filtered
+ ],
+ },
+ education: {
+ name: "Education",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "education",
+ items: [
+ {
+ id: "edu1",
+ institution: "MIT",
+ studyType: "BS",
+ area: "CS",
+ score: "3.9",
+ date: "2010-2014",
+ summary: "Thesis...",
+ url: { label: "", href: "https://mit.edu" },
+ },
+ { studyType: "MS" }, // filtered: no institution
+ ],
+ },
+ experience: {
+ name: "Experience",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "experience",
+ items: [
+ {
+ id: "exp1",
+ company: "Acme Corp",
+ position: "Engineer",
+ location: "Berlin",
+ date: "2020-2024",
+ summary: "Built stuff.",
+ url: { label: "", href: "https://acme.example" },
+ },
+ { position: "ghost" }, // filtered: no company
+ ],
+ },
+ volunteer: {
+ name: "Volunteer",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "volunteer",
+ items: [
+ { id: "v1", organization: "Org", location: "Berlin", date: "2022", summary: "" },
+ { organization: "" }, // filtered
+ ],
+ },
+ interests: {
+ name: "Interests",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "interests",
+ items: [
+ { id: "i1", name: "Cooking", keywords: ["pasta", "bread"] },
+ { name: "" }, // filtered
+ ],
+ },
+ languages: {
+ name: "Languages",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "languages",
+ items: [
+ { id: "l1", name: "English", description: "Native", level: 10 },
+ { name: "" }, // filtered
+ ],
+ },
+ profiles: {
+ name: "Profiles",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "profiles",
+ items: [
+ {
+ id: "p1",
+ network: "GitHub",
+ username: "jane",
+ icon: "github",
+ url: { label: "", href: "https://github.com/jane" },
+ },
+ { network: "" }, // filtered
+ ],
+ },
+ projects: {
+ name: "Projects",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "projects",
+ items: [
+ {
+ id: "pr1",
+ name: "Open CLI",
+ date: "2022",
+ summary: "Built a CLI",
+ url: { label: "", href: "https://example.com" },
+ },
+ { name: "" }, // filtered
+ ],
+ },
+ publications: {
+ name: "Publications",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "publications",
+ items: [
+ { id: "pub1", name: "Paper", publisher: "ACM", date: "2024" },
+ { name: "" }, // filtered
+ ],
+ },
+ references: {
+ name: "References",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "references",
+ items: [
+ { id: "r1", name: "Bob Smith", description: "Manager", summary: "Was great", url: { label: "", href: "" } },
+ { name: "" }, // filtered
+ ],
+ },
+ skills: {
+ name: "Skills",
+ columns: 1,
+ separateLinks: false,
+ visible: true,
+ id: "skills",
+ items: [
+ { id: "s1", name: "TypeScript", level: 10, keywords: ["node"], description: "Expert" },
+ { name: "" }, // filtered
+ ],
+ },
+ },
+ metadata: {
+ template: "onyx",
+ layout: [[["experience", "education"], ["skills"]]],
+ css: { value: "", visible: false },
+ page: { margin: 14, format: "a4" as const, options: { breakLine: false, pageNumbers: false } },
+ 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: false,
+ },
+ notes: "",
+ },
+});
+
+const importer = new ReactiveResumeV4JSONImporter();
+
+describe("ReactiveResumeV4JSONImporter — broad section mapping", () => {
+ const v4 = baseV4();
+ const result = importer.parse(JSON.stringify(v4));
+
+ it("maps basics fields (name, headline, contact, website, customFields)", () => {
+ expect(result.basics.name).toBe("Jane Doe");
+ expect(result.basics.headline).toBe("Senior Engineer");
+ expect(result.basics.email).toBe("[email protected]");
+ expect(result.basics.location).toBe("Berlin");
+ expect(result.basics.website.url).toBe("https://example.com");
+ expect(result.basics.customFields).toHaveLength(1);
+ expect(result.basics.customFields[0]).toMatchObject({ icon: "globe", text: "https://example.com" });
+ });
+
+ it("maps picture with border on", () => {
+ expect(result.picture.url).toBe("https://example.com/pic.jpg");
+ expect(result.picture.hidden).toBe(false);
+ expect(result.picture.borderWidth).toBeGreaterThan(0);
+ });
+
+ it("maps summary content", () => {
+ expect(result.summary.content).toBe("<p>About me</p>");
+ expect(result.summary.hidden).toBe(false);
+ });
+
+ it("filters items by required field across every section", () => {
+ expect(result.sections.awards.items).toHaveLength(1);
+ expect(result.sections.certifications.items).toHaveLength(1);
+ expect(result.sections.education.items).toHaveLength(1);
+ expect(result.sections.experience.items).toHaveLength(1);
+ expect(result.sections.volunteer.items).toHaveLength(1);
+ expect(result.sections.interests.items).toHaveLength(1);
+ expect(result.sections.languages.items).toHaveLength(1);
+ expect(result.sections.profiles.items).toHaveLength(1);
+ expect(result.sections.projects.items).toHaveLength(1);
+ expect(result.sections.publications.items).toHaveLength(1);
+ expect(result.sections.references.items).toHaveLength(1);
+ expect(result.sections.skills.items).toHaveLength(1);
+ });
+
+ it("maps experience items (company, position, period, description)", () => {
+ const exp = result.sections.experience.items[0] as {
+ company?: string;
+ position?: string;
+ period?: string;
+ description?: string;
+ };
+ expect(exp.company).toBe("Acme Corp");
+ expect(exp.position).toBe("Engineer");
+ expect(exp.period).toBe("2020-2024");
+ expect(exp.description).toBe("Built stuff.");
+ });
+
+ it("maps education items including degree+area", () => {
+ const edu = result.sections.education.items[0] as {
+ school?: string;
+ degree?: string;
+ area?: string;
+ grade?: string;
+ };
+ expect(edu.school).toBe("MIT");
+ expect(edu.degree).toBe("BS");
+ expect(edu.area).toBe("CS");
+ expect(edu.grade).toBe("3.9");
+ });
+
+ it("maps awards with title + awarder + date", () => {
+ const award = result.sections.awards.items[0] as { title?: string; awarder?: string; date?: string };
+ expect(award.title).toBe("Hackathon Winner");
+ expect(award.awarder).toBe("Acme");
+ expect(award.date).toBe("2023");
+ });
+
+ it("maps certifications (renaming name → title) and references (description → position)", () => {
+ const cert = result.sections.certifications.items[0] as { title?: string };
+ expect(cert.title).toBe("AWS Cert");
+
+ const ref = result.sections.references.items[0] as { name?: string; position?: string; description?: string };
+ expect(ref.name).toBe("Bob Smith");
+ expect(ref.position).toBe("Manager");
+ expect(ref.description).toBe("Was great");
+ });
+
+ it("scales language level 10 → 5 and skill level 10 → 5", () => {
+ const language = result.sections.languages.items[0] as { level?: number };
+ expect(language.level).toBe(5);
+
+ const skill = result.sections.skills.items[0] as { level?: number };
+ expect(skill.level).toBe(5);
+ });
+
+ it("invalid JSON throws", () => {
+ expect(() => importer.parse("not json")).toThrow();
+ });
+});
diff --git a/packages/utils/src/resume/docx/builder.test.ts b/packages/utils/src/resume/docx/builder.test.ts
new file mode 100644
index 000000000..0c0a6b8a2
--- /dev/null
+++ b/packages/utils/src/resume/docx/builder.test.ts
@@ -0,0 +1,73 @@
+// @vitest-environment happy-dom
+
+import { describe, expect, it } from "vitest";
+import { Document } from "docx";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+import { sampleResumeData } from "@reactive-resume/schema/resume/sample";
+import { buildDocument } from "./builder";
+
+describe("buildDocument", () => {
+ it("returns a docx Document instance for the default resume", () => {
+ const doc = buildDocument(defaultResumeData);
+ expect(doc).toBeInstanceOf(Document);
+ });
+
+ it("returns a docx Document instance for the sample resume", () => {
+ const doc = buildDocument(sampleResumeData);
+ expect(doc).toBeInstanceOf(Document);
+ });
+
+ it("handles a resume with no layout pages without throwing", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.layout.pages = [];
+
+ expect(() => buildDocument(data)).not.toThrow();
+ });
+
+ it("supports both a4 and letter page formats", () => {
+ const a4Data = structuredClone(defaultResumeData);
+ a4Data.metadata.page.format = "a4";
+ expect(buildDocument(a4Data)).toBeInstanceOf(Document);
+
+ const letterData = structuredClone(defaultResumeData);
+ letterData.metadata.page.format = "letter";
+ expect(buildDocument(letterData)).toBeInstanceOf(Document);
+ });
+
+ it("handles a full-width single page layout", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.layout.pages = [
+ {
+ fullWidth: true,
+ main: ["experience", "education"],
+ sidebar: [],
+ },
+ ];
+ expect(() => buildDocument(data)).not.toThrow();
+ });
+
+ it("handles a sidebar layout (main + sidebar split)", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.layout.pages = [
+ {
+ fullWidth: false,
+ main: ["experience", "education"],
+ sidebar: ["skills", "languages"],
+ },
+ ];
+ expect(() => buildDocument(data)).not.toThrow();
+ });
+
+ it("falls back to default colors when the primary color is unparseable", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.design.colors.primary = "not-a-color";
+ expect(() => buildDocument(data)).not.toThrow();
+ });
+
+ it("falls back to a default font when fontFamily is empty", () => {
+ const data = structuredClone(defaultResumeData);
+ data.metadata.typography.body.fontFamily = "";
+ data.metadata.typography.heading.fontFamily = "";
+ expect(() => buildDocument(data)).not.toThrow();
+ });
+});
diff --git a/packages/utils/src/resume/docx/html-to-docx.test.ts b/packages/utils/src/resume/docx/html-to-docx.test.ts
new file mode 100644
index 000000000..2ed2d29dc
--- /dev/null
+++ b/packages/utils/src/resume/docx/html-to-docx.test.ts
@@ -0,0 +1,58 @@
+// @vitest-environment happy-dom
+
+import { describe, expect, it } from "vitest";
+import { htmlToParagraphs } from "./html-to-docx";
+
+describe("htmlToParagraphs", () => {
+ it("returns [] for empty / whitespace-only input", () => {
+ expect(htmlToParagraphs("")).toEqual([]);
+ expect(htmlToParagraphs(" \n ")).toEqual([]);
+ });
+
+ it("returns at least one paragraph for a simple <p> element", () => {
+ const result = htmlToParagraphs("<p>Hello world</p>");
+ expect(result.length).toBeGreaterThanOrEqual(1);
+ });
+
+ it("converts plain text nodes at the body root into a paragraph", () => {
+ const result = htmlToParagraphs("Just some plain text");
+ expect(result.length).toBe(1);
+ });
+
+ it("emits separate paragraphs for multiple top-level blocks", () => {
+ const result = htmlToParagraphs("<p>One</p><p>Two</p><p>Three</p>");
+ expect(result.length).toBeGreaterThanOrEqual(3);
+ });
+
+ it("treats <h1>..<h6> as block-level paragraphs (one per heading)", () => {
+ const result = htmlToParagraphs("<h1>A</h1><h2>B</h2><h3>C</h3>");
+ expect(result.length).toBe(3);
+ });
+
+ it("renders nested <strong>, <em>, <u>, <s> inline styling without throwing", () => {
+ const result = htmlToParagraphs("<p><strong>Bold</strong> <em>italic</em> <u>under</u> <s>strike</s></p>");
+ expect(result.length).toBe(1);
+ });
+
+ it("renders links and lists without throwing", () => {
+ const html = '<p><a href="https://example.com">link</a></p><ul><li>One</li><li>Two</li></ul>';
+ const result = htmlToParagraphs(html);
+ expect(result.length).toBeGreaterThanOrEqual(2);
+ });
+
+ it("accepts custom font + size config without throwing", () => {
+ const result = htmlToParagraphs("<p>Hello</p>", {
+ font: "Roboto",
+ size: 22,
+ color: "111111",
+ linkColor: "0563C1",
+ });
+ expect(result.length).toBe(1);
+ });
+
+ it("ignores HTML comments and script/style tags at the root", () => {
+ // Comments at root and script tags don't add paragraph output.
+ const result = htmlToParagraphs("<!--c--><script>x</script><p>Hello</p>");
+ expect(result.length).toBeGreaterThanOrEqual(1);
+ });
+});
diff --git a/packages/utils/src/resume/docx/index.test.ts b/packages/utils/src/resume/docx/index.test.ts
new file mode 100644
index 000000000..c914a7d98
--- /dev/null
+++ b/packages/utils/src/resume/docx/index.test.ts
@@ -0,0 +1,23 @@
+// @vitest-environment happy-dom
+
+import { describe, expect, it } from "vitest";
+import { defaultResumeData } from "@reactive-resume/schema/resume/default";
+import { buildDocx } from "./index";
+
+describe("buildDocx", () => {
+ it("returns a Blob for the default resume", async () => {
+ const blob = await buildDocx(defaultResumeData);
+ expect(blob).toBeInstanceOf(Blob);
+ expect(blob.size).toBeGreaterThan(0);
+ });
+
+ it("produces a non-empty document for a populated resume", async () => {
+ const data = structuredClone(defaultResumeData);
+ data.basics.name = "Jane Doe";
+ data.basics.headline = "Engineer";
+ data.basics.email = "[email protected]";
+
+ const blob = await buildDocx(data);
+ expect(blob.size).toBeGreaterThan(0);
+ });
+});
diff --git a/packages/utils/src/resume/docx/section-renderers.test.ts b/packages/utils/src/resume/docx/section-renderers.test.ts
new file mode 100644
index 000000000..fdb51573d
--- /dev/null
+++ b/packages/utils/src/resume/docx/section-renderers.test.ts
@@ -0,0 +1,156 @@
+// @vitest-environment happy-dom
+
+import type { CustomSection, ResumeData, SectionType } from "@reactive-resume/schema/resume/data";
+import { describe, expect, it } from "vitest";
+import { renderBuiltInSection, renderCustomSection, renderSummary, setRenderConfig } from "./section-renderers";
+
+const baseConfig = {
+ headingFont: "Inter",
+ headingSizeHalfPt: 28,
+ bodyFont: "Inter",
+ bodySizeHalfPt: 20,
+ textColorHex: "111111",
+ primaryColorHex: "0563C1",
+};
+
+setRenderConfig(baseConfig);
+
+const HEX = "#0563C1";
+
+describe("renderSummary", () => {
+ it("returns [] when the section is hidden", () => {
+ const summary: ResumeData["summary"] = {
+ title: "Summary",
+ content: "<p>Hello</p>",
+ hidden: true,
+ columns: 1,
+ };
+ expect(renderSummary(summary, HEX)).toEqual([]);
+ });
+
+ it("returns [] when content is empty", () => {
+ const summary: ResumeData["summary"] = {
+ title: "Summary",
+ content: "",
+ hidden: false,
+ columns: 1,
+ };
+ expect(renderSummary(summary, HEX)).toEqual([]);
+ });
+
+ it("includes a heading paragraph when both title and content are present", () => {
+ const summary: ResumeData["summary"] = {
+ title: "Summary",
+ content: "<p>Hello world</p>",
+ hidden: false,
+ columns: 1,
+ };
+ const paragraphs = renderSummary(summary, HEX);
+ // One heading + the htmlToParagraphs output for one <p>.
+ expect(paragraphs.length).toBeGreaterThanOrEqual(2);
+ });
+
+ it("omits the heading when title is empty but still renders content", () => {
+ const summary: ResumeData["summary"] = {
+ title: "",
+ content: "<p>Hello world</p>",
+ hidden: false,
+ columns: 1,
+ };
+ const paragraphs = renderSummary(summary, HEX);
+ expect(paragraphs.length).toBeGreaterThanOrEqual(1);
+ });
+});
+
+const emptySection = <T extends SectionType>(_type: T): ResumeData["sections"][T] =>
+ ({
+ title: "Section",
+ columns: 1,
+ hidden: false,
+ items: [],
+ }) as ResumeData["sections"][T];
+
+describe("renderBuiltInSection", () => {
+ it("returns [] when the section has no items", () => {
+ expect(renderBuiltInSection("experience", emptySection("experience"), HEX)).toEqual([]);
+ });
+
+ it("returns [] when section.hidden is true", () => {
+ const section = { ...emptySection("experience"), hidden: true };
+ expect(renderBuiltInSection("experience", section, HEX)).toEqual([]);
+ });
+
+ it("returns [] for an unknown section type", () => {
+ expect(renderBuiltInSection("not-a-section" as never, emptySection("experience"), HEX)).toEqual([]);
+ });
+});
+
+describe("renderCustomSection", () => {
+ const baseCustom: CustomSection = {
+ id: "custom-1",
+ type: "summary",
+ title: "Notes",
+ columns: 1,
+ hidden: false,
+ items: [],
+ };
+
+ it("returns [] when the custom section is hidden", () => {
+ expect(renderCustomSection({ ...baseCustom, hidden: true }, HEX)).toEqual([]);
+ });
+
+ it("returns [] when all items are hidden or empty", () => {
+ const section: CustomSection = {
+ ...baseCustom,
+ items: [{ id: "x", hidden: true } as never],
+ };
+ expect(renderCustomSection(section, HEX)).toEqual([]);
+ });
+
+ it("returns [] for an unknown custom section type", () => {
+ const section: CustomSection = {
+ ...baseCustom,
+ type: "no-such-type" as never,
+ items: [{ id: "x", hidden: false, content: "<p>x</p>" } as never],
+ };
+ expect(renderCustomSection(section, HEX)).toEqual([]);
+ });
+
+ it("renders content for a summary-type custom section", () => {
+ const section: CustomSection = {
+ ...baseCustom,
+ type: "summary",
+ items: [{ id: "x", hidden: false, content: "<p>Hello</p>" } as never],
+ };
+ const paragraphs = renderCustomSection(section, HEX);
+ // 1 heading + at least one paragraph for the HTML
+ expect(paragraphs.length).toBeGreaterThanOrEqual(2);
+ });
+
+ it("renders recipient + content for a cover-letter custom section", () => {
+ const section: CustomSection = {
+ ...baseCustom,
+ type: "cover-letter",
+ items: [
+ {
+ id: "x",
+ hidden: false,
+ recipient: "<p>Dear Jane,</p>",
+ content: "<p>Body</p>",
+ } as never,
+ ],
+ };
+ const paragraphs = renderCustomSection(section, HEX);
+ // 1 heading + at least two paragraphs (recipient + body)
+ expect(paragraphs.length).toBeGreaterThanOrEqual(3);
+ });
+});
+
+describe("setRenderConfig", () => {
+ it("can be called repeatedly with a different config (no throw)", () => {
+ expect(() => setRenderConfig({ ...baseConfig, headingFont: "Roboto", primaryColorHex: "ff0000" })).not.toThrow();
+
+ // Restore for any later tests in the file
+ setRenderConfig(baseConfig);
+ });
+});