-
Notifications
You must be signed in to change notification settings - Fork 73
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
Events v2 collect certificate workflow boilerplate code #8321
base: develop
Are you sure you want to change the base?
Conversation
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
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.
👍
ab0e65e
to
5bce870
Compare
packages/events/src/router/router.ts
Outdated
appConfig: router({ | ||
get: publicProcedure | ||
.output(ApplicationConfigResponseSchema) | ||
.query(async (options) => { | ||
return getAppConfigurations(options.ctx.token) | ||
}), | ||
getCertificateTemplateSVGById: publicProcedure | ||
.input(z.object({ id: z.string() })) | ||
.output(z.string()) | ||
.query(async (options) => { | ||
const template = await getCertificateTemplateById( | ||
options.ctx.token, | ||
options.input.id | ||
) | ||
return template | ||
}) | ||
}), |
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.
I think unless there's a compelling reason to do so, let's not bring these concerns into the events
service. From memory, these should be available in the client's Redux store already? It's fine to read the Redux store from the new side if the information already exists there.
5bce870
to
8566d57
Compare
packages/client/src/v2-events/components/forms/FormFieldGenerator.tsx
Outdated
Show resolved
Hide resolved
packages/client/src/v2-events/features/events/actions/collect-certificate/Review.tsx
Outdated
Show resolved
Hide resolved
packages/client/src/v2-events/features/events/actions/collect-certificate/Review.tsx
Outdated
Show resolved
Hide resolved
packages/client/src/v2-events/features/events/actions/collect-certificate/Review.tsx
Outdated
Show resolved
Hide resolved
packages/client/src/v2-events/features/events/actions/collect-certificate/Review.tsx
Outdated
Show resolved
Hide resolved
packages/client/src/v2-events/features/events/actions/collect-certificate/Review.tsx
Show resolved
Hide resolved
eventId: event.id, | ||
data: form, | ||
transactionId: uuid(), | ||
draft: true |
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.
is it always draft?
@@ -0,0 +1,295 @@ | |||
/* |
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.
Since events creates generic events, we might want to move some of the code out of client
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.
Yes, figuring out how to avoid them.
8566d57
to
35f3822
Compare
35f3822
to
29ac67d
Compare
#7919