Open
USER STORY
0 of 3 issues completed
Description
openedon Sep 6, 2024
As a user I want to select a template to issue a certified copy with
- Adds support for n number of templates per event
- Each template is a separate svg file
- Adds Action to history table based on template printed. {{NameofTemplate}} printed
- Adds a template select to the existing print workflow
- Adds a default payment amount for each template
Farajaland Templates:
Birth certified copy template: https://www.figma.com/design/fOUJWiaqHcOAwj2qaXV2w4/Farajaland?node-id=946-2501&t=cYBJ2IlCBeomv5Mn-1
Death certified copy template: https://www.figma.com/design/fOUJWiaqHcOAwj2qaXV2w4/Farajaland?node-id=948-2918&t=cYBJ2IlCBeomv5Mn-1
Marriage certified copy template: https://www.figma.com/design/fOUJWiaqHcOAwj2qaXV2w4/Farajaland?node-id=948-3199&t=cYBJ2IlCBeomv5Mn-1
Certification flow & template selection
Tech tasks
Backend & config dependency
- Restructure
GET /certificates
endpoint to serve out the following structure: reference. Remove/certificate-configuration
endpoint. - Enable the country config
/certificates/:file
endpoint to be used by the client to fetch the individual certificate templates (preferably through gateway like defined in Hide all internal services behind one url #6279), so/api/countryconfig/certificates/file.svg
. The endpoint should return the plain SVG and nothing more - Remove certificates from database and seeding logic around them. Certificates are now fetched directly from country config.
Client front end - print certificate workflow
- Modify the current print a certificate form to include a new dropdown menu for the certificate to be printed. The selected template affect the certificate that is printed at the end of the process
- Ensure that the correct payment amount is rendered for each template. This should be based on the selected certificate.
- Ensure the correct template is previewed and printed
User scopes and action menu item
- Make this action only available for users with
print-and-issue-birth-certified-copy
,print-and-issue-death-certified-copy
orprint-and-issue-marriage-certified-copy
, depending on the event type of the record. Refer to User Scopes documentation for further details.
Update e2e test
- Update E2E test case(s) based on @SyedaAfrida 's test definition
Sub-issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
Ready for QA