How workvaibhavk/gppreportgenerator works
This is a client-side micro-project report generator. Users can start a manual report workflow, or use the AI-assisted route to obtain a prompt, paste generated JSON, and validate it; the manual workflow collects project details, students, report content, and images before offering PDF generation. The sampled code shows the form page coordinating these stages and the PDF component constructing student reports. The certificate-only option is advertised on the home page, but its destination is absent from the supplied tree. AI-to-report integration details are only partly sampled.
Main entry points: project-form/page.tsx Manual workflow · ai-assisted/page.tsx AI-assisted input · app/page.tsx Route chooser · Generate.tsx PDF generation
Components 16
Entry routes
- Route chooser
app/page.tsx - App layout
app/layout.tsx - Global styles
app/globals.css
Manual report
- Manual workflow
app/project-form/page.tsx - Project details
components/Details.tsx - Student details
components/StdDetails.tsx - Report content
components/Content.tsx - Project images
components/Image.tsx - PDF generation
components/Generate.tsx - Step navigator
components/Navigator.tsx - Form navbar
components/Navbar.tsx
AI-assisted input
- AI-assisted input
app/ai-assisted/page.tsx - AI prompt
public/micro_project_prompt.txt
Other components
- Visitor
- Claude
- Report PDF
Connections 17
- Visitor → Route chooser: opens
- Route chooser → Manual workflow: links to
app/page.tsx - Route chooser → AI-assisted input: links to
app/page.tsx - App layout → Global styles: loads
app/layout.tsx - Visitor → Manual workflow: opens
- Manual workflow → Form navbar: renders
app/project-form/page.tsx - Manual workflow → Step navigator: renders
app/project-form/page.tsx - Manual workflow → Project details: renders
app/project-form/page.tsx - Manual workflow → Student details: renders
app/project-form/page.tsx - Manual workflow → Report content: renders
app/project-form/page.tsx - Manual workflow → Project images: renders
app/project-form/page.tsx - Manual workflow → PDF generation: renders
app/project-form/page.tsx - PDF generation → Report PDF: generates
components/Generate.tsx - Visitor → AI-assisted input: opens
- Claude → AI-assisted input: supplies JSON
app/ai-assisted/page.tsx - AI-assisted input → AI prompt: offers download
- AI-assisted input → PDF generation: feeds report data