How jboureux/cv-builder works
CV Builder is a browser-based editor for résumés and cover letters. Users switch document modes, edit structured content and styling, inspect a paginated preview, then print or export the document. CV and letter data are held in separate persisted stores, while navigation and transient dialog/settings state are managed independently. The graph follows documented imports and the sampled App wiring; unsampled editor and settings forms are represented by their exact directories, and no unverified form-to-store calls are asserted.
Main entry points: App.tsx Workspace shell · useCVStore.ts CV data store · useDocumentActions.ts Document actions · useLetterStore.ts Letter data store
Components 22
Application shell
- React entry
src/main.tsx - Workspace shell
src/App.tsx - Navigation
src/components/app/navigation.ts - App header
src/components/app/AppHeader.tsx - Document sidebar
src/components/app/AppSidebar.tsx - Dialogs
src/components/app/AppDialogs.tsx - Settings sheet
src/components/app/SettingsSheet.tsx - Document actions
src/components/app/useDocumentActions.ts - Confirmation UI
src/components/app/ConfirmProvider.tsx
CV authoring
- CV editor forms
src/components/editor - Section ordering
src/components/editor/SectionList.tsx - CV document renderer
src/components/preview/CVDocument.tsx - Page preview
src/components/preview/PagePreview.tsx
Cover letters
- Letter forms
src/components/letter - Letter renderer
src/components/letter/LetterDocument.tsx
Document state
- Mode and navigation state
src/store/useAppStore.ts - CV data store
src/store/useCVStore.ts - Letter data store
src/store/useLetterStore.ts - Dialog and settings state
src/store/useUIStore.ts - CV data model
src/types/cv.ts - Letter data model
src/types/letter.ts
Other components
- Document author
Connections 35
- Document author → Workspace shell: uses workspace
src/App.tsx - React entry → Workspace shell: renders
src/main.tsx - Workspace shell → App header: renders
src/App.tsx - Workspace shell → Document sidebar: renders
src/App.tsx - Workspace shell → Dialogs: renders
src/App.tsx - Workspace shell → Settings sheet: renders
src/App.tsx - Workspace shell → CV editor forms: renders
src/App.tsx - Workspace shell → Page preview: renders
src/App.tsx - Workspace shell → CV document renderer: renders
src/App.tsx - Workspace shell → Letter renderer: renders
src/App.tsx - Workspace shell → CV data store: reads CV data
src/App.tsx - Workspace shell → Letter data store: reads letter data
src/App.tsx - Workspace shell → Mode and navigation state: reads display state
src/App.tsx - App header → Navigation: uses
src/components/app/AppHeader.tsx - Document sidebar → Navigation: uses
src/components/app/AppSidebar.tsx - App header → Document actions: invokes
src/components/app/AppHeader.tsx - Document sidebar → Document actions: invokes
src/components/app/AppSidebar.tsx - Document actions → Confirmation UI: requests confirmation
src/components/app/useDocumentActions.ts - Document actions → CV data store: resets CV
src/components/app/useDocumentActions.ts - Document actions → Letter data store: manages letters
src/components/app/useDocumentActions.ts - Document actions → Dialog and settings state: opens dialogs
src/components/app/useDocumentActions.ts - Dialogs → CV data store: imports CV data
src/components/app/AppDialogs.tsx - Dialogs → Letter data store: reads letter data
src/components/app/AppDialogs.tsx - Dialogs → Dialog and settings state: reads dialog state
src/components/app/AppDialogs.tsx - Settings sheet → Dialog and settings state: reads settings state
src/components/app/SettingsSheet.tsx - Settings sheet → Section ordering: renders
src/components/app/SettingsSheet.tsx - CV editor forms → CV data store: edits CV
src/components/editor/SectionList.tsx - Letter forms → Letter data store: edits letters
- Section ordering → CV data store: updates section order
src/components/editor/SectionList.tsx - CV document renderer → CV data model: reads model
src/components/preview/CVDocument.tsx - Letter renderer → Letter data model: reads model
src/components/letter/LetterDocument.tsx - Letter data store → CV data store: initializes sender from
src/store/useLetterStore.ts - CV data store → CV data model: stores typed data
src/store/useCVStore.ts - Letter data store → Letter data model: stores typed data
src/store/useLetterStore.ts - Letter data model → CV data model: reuses font type
src/types/letter.ts