feat(export): separate resume/cover-letter downloads, redesign dialog, add Markdown export (#3217)

* feat(export): separate resume/cover-letter downloads, redesign dialog, add Markdown

Let people export the resume and cover letter as distinct documents, and add a
Markdown format alongside PDF / DOCX / JSON (handy for AI agents).

- Server/API: scope PDF generation and download URLs to a resume/cover-letter target.
- Export domain: getResumeExportData + resumeHasCoverLetter in @reactive-resume/resume.
- Redesign the download dialog: one global "What to export" scope toggle (Tabs) plus
  flattened per-format rows, reusing existing UI components and design language.
- Add Markdown export (@reactive-resume/resume/markdown) with a small tiptap-HTML converter.
- Fix blank section headings in DOCX and Markdown by injecting the locale-aware
  section-title resolver (titles are stored empty and resolved at render time).
- Locale catalogs updated for the new strings.

* test(e2e): open the download dialog before exporting JSON

The JSON export moved into the redesigned download dialog, so the spec now opens
the dialog from the Export sidebar section before clicking "Download JSON".
This commit is contained in:
Amruth Pillai
2026-07-05 14:40:49 +02:00
committed by GitHub
parent 6e7fc68068
commit 20c803e934
76 changed files with 2919 additions and 1773 deletions
+36 -29
View File
@@ -507,6 +507,10 @@ msgstr "सुंदर साचे निवडण्यासाठी उप
msgid "Bengali"
msgstr "बंगाली"
#: src/features/resume/export/download-dialog.tsx
msgid "Best for applications, sharing, and printing."
msgstr ""
#: src/routes/agent/-components/new-thread-setup.tsx
msgid "Blank draft"
msgstr "कोरा मसुदा"
@@ -655,6 +659,10 @@ msgstr "रेझ्युमे निवडा"
msgid "Choose an existing conversation from the sidebar, or start a new draft-focused thread."
msgstr "साइडबारमधून आधीपासून सुरू असलेले संभाषण निवडा, किंवा मसुद्यावर लक्ष केंद्रित करणारा नवीन थ्रेड सुरू करा."
#: src/routes/builder/$resumeId/-sidebar/right/sections/export.tsx
msgid "Choose PDF, DOCX, or JSON. Export your resume and cover letter separately when available."
msgstr ""
#: src/components/level/combobox.tsx
msgid "Circle"
msgstr "गोलाकार"
@@ -819,6 +827,10 @@ msgstr "कनेक्शनची पडताळणी होऊ शकली
msgid "Couldn't save"
msgstr "वाचवता आले नाही"
#: src/features/resume/export/download-dialog.tsx
msgid "Cover letter"
msgstr ""
#. Fallback title for a custom cover letter item in resume builder when recipient is empty
#. Fallback title for a custom cover letter item in resume builder when recipient is unavailable
#: src/dialogs/resume/sections/custom.tsx
@@ -1149,7 +1161,11 @@ msgid "Donate to Reactive Resume"
msgstr "रिअ‍ॅक्टिव्ह रेझ्युमेला दान करा"
#. Action button to download two-factor backup codes as a text file
#. Primary action in the builder header to open resume download options
#: src/dialogs/auth/enable-two-factor.tsx
#: src/features/resume/export/download-dialog.tsx
#: src/routes/builder/$resumeId/-components/header.tsx
#: src/routes/builder/$resumeId/-sidebar/right/sections/export.tsx
msgid "Download"
msgstr "डाउनलोड"
@@ -1157,30 +1173,13 @@ msgstr "डाउनलोड"
msgid "Download a copy of all your data, including your profile and every resume, as a JSON file."
msgstr "तुमच्या प्रोफाइल आणि प्रत्येक रिझ्युमेसह तुमच्या सर्व डेटाची एक प्रत JSON फाइल म्हणून डाउनलोड करा."
#: src/routes/builder/$resumeId/-sidebar/right/sections/export.tsx
msgid "Download a copy of your resume as a Word document. Use this file to further customize your resume in Microsoft Word or Google Docs."
msgstr "आपल्या रिझ्युमेची एक प्रत Word दस्तऐवज म्हणून डाउनलोड करा. Microsoft Word किंवा Google Docs मध्ये आपल्या रिझ्युमेला अधिक सानुकूलित करण्यासाठी ही फाइल वापरा."
#: src/routes/builder/$resumeId/-sidebar/right/sections/export.tsx
msgid "Download a copy of your resume in JSON format. Use this file for backup or to import your resume into other applications, including AI assistants."
msgstr "तुमचा रेझ्युमे JSON फॉर्मॅटमध्ये कॉपी म्हणून डाउनलोड करा. ही फाईल बॅकअपसाठी किंवा AI सहाय्यकांसह इतर अ‍ॅप्लिकेशन्समध्ये रेझ्युमे इम्पोर्ट करण्यासाठी वापरा."
#: src/routes/builder/$resumeId/-sidebar/right/sections/export.tsx
msgid "Download a copy of your resume in PDF format. Use this file for printing or to easily share your resume with recruiters."
msgstr "तुमचा रेझ्युमे PDF फॉर्मॅटमध्ये कॉपी म्हणून डाउनलोड करा. ही फाईल प्रिंट करण्यासाठी किंवा रिक्रूटर्सना सहजपणे शेअर करण्यासाठी वापरा."
#. Primary action in the builder header to open resume download options
#: src/routes/builder/$resumeId/-components/header.tsx
msgid "Download DOCX"
msgstr "DOCX डाउनलोड करा"
msgid "Download options"
msgstr ""
#: src/routes/builder/$resumeId/-components/header.tsx
msgid "Download JSON"
msgstr "JSON डाउनलोड करा"
#. Primary action in the builder header to download the resume as a PDF
#: src/features/resume/public/public-resume.tsx
#: src/routes/agent/$threadId.tsx
#: src/routes/builder/$resumeId/-components/header.tsx
msgid "Download PDF"
msgstr "PDF डाउनलोड करा"
@@ -1258,6 +1257,10 @@ msgstr "तपशील संपादित करा"
msgid "Edit keyword"
msgstr "संपादित करा कीवर्ड"
#: src/features/resume/export/download-dialog.tsx
msgid "Editable in Word, Google Docs, and Pages."
msgstr ""
#: src/routes/builder/$resumeId/-sidebar/left/index.tsx
msgid "Editing is disabled until you unlock it."
msgstr "तुम्ही अनलॉक करेपर्यंत संपादन अक्षम केलेले आहे."
@@ -1397,6 +1400,10 @@ msgstr "निर्यात करा"
msgid "Export my data"
msgstr "माझा डेटा निर्यात करा"
#: src/features/resume/export/download-dialog.tsx
msgid "Export your resume or cover letter in the format you need."
msgstr ""
#: src/routes/_home/-sections/features.tsx
msgid "Export your resume to PDF instantly, without any waiting or delays."
msgstr "कोणताही विलंब न होता, तुमचा रिझ्युमे त्वरित PDF मध्ये एक्सपोर्ट करा."
@@ -1653,6 +1660,10 @@ msgstr "मुक्त-स्वरूप"
msgid "French"
msgstr "फ्रेंच"
#: src/features/resume/export/download-dialog.tsx
msgid "Full resume data for backup or import."
msgstr ""
#. Layout editor toggle label that makes a page single-column
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Full Width"
@@ -2285,10 +2296,6 @@ msgstr "कामाचा बायोडाटा गहाळ आहे"
msgid "Model"
msgstr "मॉडेल"
#: src/routes/builder/$resumeId/-components/header.tsx
msgid "More download options"
msgstr "अधिक डाउनलोड पर्याय"
#: src/routes/builder/$resumeId/-sidebar/right/sections/layout/pages.tsx
msgid "Move section to another column or page"
msgstr "विभाग दुसऱ्या स्तंभात किंवा पृष्ठावर हलवा"
@@ -2636,6 +2643,10 @@ msgstr "एक चिन्ह निवडा"
msgid "Picture"
msgstr "चित्र"
#: src/features/resume/export/download-dialog.tsx
msgid "Plain text, ideal for AI tools and quick edits."
msgstr ""
#: src/features/auth/pages/reset-password.tsx
msgid "Please enter a new password for your account"
msgstr "तुमच्या खात्यासाठी कृपया नवीन पासवर्ड टाका"
@@ -2718,10 +2729,6 @@ msgstr "पूर्वावलोकन"
msgid "Primary Color"
msgstr "प्राथमिक रंग"
#: src/routes/builder/$resumeId/-components/header.tsx
msgid "Print"
msgstr "प्रिंट"
#: src/dialogs/resume/sections/skill.tsx
msgid "Proficiency"
msgstr "प्रभावीता"
@@ -2938,6 +2945,7 @@ msgstr "या पॅचच्या आधीची स्थिती पु
msgid "Restore this version?"
msgstr "ही आवृत्ती पुनर्संचयित करायची का?"
#: src/features/resume/export/download-dialog.tsx
#: src/routes/agent/$threadId.tsx
msgid "Resume"
msgstr "सारांश"
@@ -4308,4 +4316,3 @@ msgstr "बाहेर झूम करा"
#: src/libs/locale.ts
msgid "Zulu"
msgstr "झुलू"