Skip to content

[Refactor][Server] Introduce unified document architecture and simplify backend export system#34

Merged
Gautam25Raj merged 2 commits into
masterfrom
refactor/unified-document-system-and-server-architecture
May 10, 2026
Merged

[Refactor][Server] Introduce unified document architecture and simplify backend export system#34
Gautam25Raj merged 2 commits into
masterfrom
refactor/unified-document-system-and-server-architecture

Conversation

@Gautam25Raj
Copy link
Copy Markdown
Collaborator

Summary

This PR restructures the backend architecture by introducing a unified document system and simplifying export and sharing workflows across the platform.

Refactor

Unified Document Architecture

  • Replaced resume-specific models with a generic Document model

  • Added support for multiple document types:

    • Resumes
    • Cover letters
    • Portfolios
    • Link in bio pages
  • Removed legacy resume and resume share link tables

  • Unified document handling across the platform

Sharing System Improvements

  • Replaced resume-specific sharing with generic shared document links
  • Merged share and shares routes into a single route structure
  • Added shared/public document link types

Backend Service Refactor

  • Moved controller business logic into dedicated services
  • Improved maintainability and separation of concerns

Enhancement

Export Workflow Simplification

  • Removed backend Playwright rendering
  • Removed BullMQ export queues and workers
  • Migrated export generation to frontend using React PDF

Cleanup & Improvements

  • Added document validators
  • Updated configuration and environment examples
  • Improved type safety and linting across the server

Notes

  • No major user-facing breaking changes
  • Focused on maintainability, scalability, and backend simplification
  • Establishes foundation for supporting multiple document types

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🧪 Tests (adding or updating tests)

Checklist

  • I have read the CONTRIBUTING.md document.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

…share system

- Replaced resume-specific architecture with a unified document system
- Added generic `Document` model to support:
  - Resumes
  - Cover letters
  - Portfolios
  - Link in bio pages
  - Future document types

- Removed legacy resume and resume share link tables
- Introduced shared document link architecture for all document types

- Refactored controllers by extracting business logic into dedicated services
- Merged `share` and `shares` routes into unified sharing routes

- Removed backend export pipeline:
  - Removed Playwright-based PDF rendering
  - Removed BullMQ export queues and workers
  - Removed backend export job handling

- Migrated export handling to frontend using React PDF

- Added document validators and updated shared/public link types.
- Updated configuration and environment examples.
- Improved linting, type safety, and overall backend maintainability.
@Gautam25Raj Gautam25Raj added backend server-side logic api API-related changes or issues labels May 10, 2026
@Gautam25Raj Gautam25Raj merged commit a4569b4 into master May 10, 2026
1 check failed
@Gautam25Raj Gautam25Raj changed the title [Refactor] Introduce unified document architecture and simplify backend export system [Refactor][Server] Introduce unified document architecture and simplify backend export system May 10, 2026
@Gautam25Raj Gautam25Raj deleted the refactor/unified-document-system-and-server-architecture branch May 12, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api API-related changes or issues backend server-side logic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant