Skip to content

Conversation

jqdometita
Copy link

Implement live coding challenge for backend and frontend

* content api handles docx to html conversion
* view api servers pdf file
@flip-in flip-in requested a review from Copilot April 24, 2025 14:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements a live coding challenge submission by adding file preview functionality for DOCX and PDF files on both the frontend and backend.

  • Frontend: Added state and functions to load and display file previews, including handling DOCX and PDF files.
  • Backend: Added endpoints to convert DOCX to HTML using mammoth and serve PDF files.

Reviewed Changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 3 comments.

File Description
frontend/src/app/page.tsx Added preview state, functions to load DOCX/PDF previews, and UI for displaying them.
backend/server.js Introduced endpoints for DOCX conversion (via mammoth) and PDF file retrieval.
Files not reviewed (3)
  • backend/data/data.json: Language not supported
  • backend/package-lock.json: Language not supported
  • backend/package.json: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant