The dashboard (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CristianParadaLopez/cv-builder/llms.txt
Use this file to discover all available pages before exploring further.
/dashboard) is a protected page that shows every CV you have saved to your account. It is the central hub for managing your generated resumes — you can view, download, and delete any saved CV from here. Access requires sign-in via Firebase Authentication (Google OAuth or email/password).
Accessing the dashboard
Navigate directly to/dashboard in the browser. Unauthenticated visitors are automatically redirected to /login by ProtectedRoute before the dashboard renders.
Once you land on the dashboard, the page immediately fetches your saved CVs by calling getUserCVs(user.uid) and renders them in a responsive grid, sorted newest first.
Saving a CV
After generating a CV in the Builder, click the Guardar CV button in the builder interface.Authentication check
If you are not currently signed in, you are redirected to
/login. After authenticating, you are sent back to complete the save.Data is sanitised
Before writing to Firestore, the
saveCV function recursively strips any undefined values from formData, replacing them with null, so Firestore never rejects the document.Document is created in Firestore
addDoc writes a new document to users/{userId}/cvs with four fields: title, html, formData, and createdAt (set to serverTimestamp()).Dashboard features
CV Grid
All saved CVs are displayed in a responsive grid (1 column on mobile, 2 on medium screens, 3 on large screens), ordered by creation date with the newest CV first.
Title & Date
Each card shows the CV title (sourced from
formData.name) and the formatted creation date, localised to the es-AR locale.Download
Clicking Descargar triggers a client-side download of the CV as a
.html file using the browser’s Blob URL API — no server round-trip required.Delete
Clicking the delete icon prompts for confirmation, then calls
deleteCV(userId, cvId) to remove the Firestore document. The card is removed from the UI immediately on success./builder.
Data access functions
All Firestore operations for CVs live infrontend/src/pages/services/cvStorage.ts. The three exported functions are:
| Function | Signature | Description |
|---|---|---|
saveCV | (userId, html, formData) => Promise<string> | Creates a new CV document and returns its generated document ID |
getUserCVs | (userId) => Promise<SavedCV[]> | Returns all CVs for the user, sorted by createdAt descending |
deleteCV | (userId, cvId) => Promise<void> | Permanently deletes the specified CV document from Firestore |
Dashboard downloads save CVs as
.html files. To export a saved CV as a PDF, open the downloaded file in any browser and use the browser’s Print → Save as PDF function.