bcgov / bcgov/alcs

Add Site Map and Site Photos to Inspection and generate PDF within ALCS

Open
#2,529 0 comments 0 reactions 0 assignees View on GitHub
User Story
Dominant language
TypeScript
Stars
10
Forks
0
Avg merge
20h 8m
Merged PRs (30d)
30

Description

Instead of downloading the DOCX template of my inspection form, I want to upload the site map and photos directly into ALCS then generate a PDF.

**Acceptance Criteria**
- [ ] user can add the following inside the draft inspection form:
- [ ] Upload Site Map (optional)
- [ ] Type = 'Site Plan / Cross Section' & disable changes <- this doc type seems odd
- [ ] Source = ALC & disable changes
- [ ] Sort on uploaded date ASC
- [ ] Upload Site Photo (optional)
- [ ] Type = 'Site Photo' and disable changes
- [ ] Source = ALC & disable changes
- [ ] Description field required if they add a photo
- [ ] Sort on uploaded date ASC but allow user to re-arrange using drag and drop or 'Move to Top / Move to Bottom' right click menu
- [ ] remove the 'Generate Template' button and help text from the Inspection form
- [ ] remove the Inspection Report table and + Report button from the Inspection form
- [ ] update the text on the Finish button to 'Finish & Generate PDF'
- [ ] after 'Finish & Generate PDF', the generated document is added to the Chronology document table and Edit/Delete actions are not present. The document should adhere to the sorting rules:
- [ ] always sort C&E Actions by Inspection then Notice then Order
- [ ] within an action type, sort the C&E actions by datetime created ASC then group the documents associated with a C&E action together, then A-Z

https://www.figma.com/design/5qXmbgyOL5M8PO7m7oqCeR/ALCS?node-id=6804-13806&t=I4D6IB6ZyPf96p3O-1

- [ ] build off the existing DOCX template to generate a PDF
- [ ] add the Site Map if provided, otherwise write 'None' below the label
- [ ] add the Site Photo table and images with the description if Site Photos are provided, otherwise write 'None' below the label
- [ ] make sure the header font is BC Sans
- [ ] if no attendees are provided, write 'None' below the label
- [ ] save the file with the naming convention: ___________________

https://bcgov-my.sharepoint.com/:w:/r/personal/ansley_charbonneau_gov_bc_ca/Documents/ALCS%20Development/FY25-26/C%20and%20E/Inspection%20Report/Inspection%20Report%20Template%20with%20Jason%20Edits.docx?d=wa1de441daf3f414ba4e7bd74cf79607d&csf=1&web=1&e=4GHJa5

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the existing inspection form, DOCX template integration, document upload handling, and Chronology document table. Review the linked Figma design and template, then trace how inspection completion currently works; done means the listed uploads, ordering, PDF content, naming, and removal of the old report controls all work together.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.