-
Notifications
You must be signed in to change notification settings - Fork 92
Expose collector form field values to svg context #10943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| createdByRole: userFromUsersList.role, | ||
| status: 'Accepted', | ||
| declaration: {}, | ||
| annotation: null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pass annotation through here instead please. This should then be the only change needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I've also had to include the annotation field in the $lookup() logic see last commit
24b4593 to
34d3632
Compare
The handlebars context had no access to the collector form's values
34d3632 to
9265bb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
The $action helper returns the action object for the PRINT_CERTIFICATE action. However, when $lookup tried to resolve properties from that action object, it was creating a resolvedAction object that didn't include the annotation field, even though annotation is a valid property of all actions (it's defined in the ActionBase schema).
3e992db to
22b23a7
Compare
|
This PR has been marked with label stale Since it has been inactive for 20 days. It will automatically be closed in 10 days if no further activity occurs. |
Addressing: #10286
Description
Checklist
Note
Expose print-certificate collector form (annotation) values to the Handlebars template context and include them in $lookup/$action resolution.
annotation(collector form values) in optimisticPRINT_CERTIFICATEaction inpackages/client/src/v2-events/features/events/actions/print-certificate/Review.tsx.action.data.annotationin Handlebars$lookup/$actioncontext withinpackages/client/src/v2-events/features/events/actions/print-certificate/pdfUtils.ts, enabling templates to reference collector form fields.Written by Cursor Bugbot for commit 3851d99. This will update automatically on new commits. Configure here.