-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(api): add delay digest ui schemas #7032
Conversation
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
uiSchema: inAppUiSchema, | ||
}, | ||
[ChannelStepEnum.EMAIL]: { | ||
schema: EmailStepControlSchema, | ||
uiSchema: EmailStepUiSchema, | ||
schema: emailStepControlSchema, | ||
uiSchema: emailStepUiSchema, |
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.
update naming conventions
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.
update naming conventions, and remove comments that do not add new info.
apps/api/src/app/workflows-v2/usecases/patch-step-data/patch-step.usecase.ts
Outdated
Show resolved
Hide resolved
private patchWorkflowFields(persistedWorkflow, command: PatchWorkflowCommand): NotificationTemplateEntity { | ||
const transientWorkflow: NotificationTemplateEntity = { ...persistedWorkflow }; | ||
if (command.active !== undefined && command.active !== 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.
not relevant to this pr:
make sure we check for nulls as well, and type correction.
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.
need to revert null check change, because it is incorrect due to the new FE-BE communication design decision from Friday.
/** | ||
* Upsert workflow preferences. While this operation is not typically needed | ||
* in a standard workflow update, it's maintained here to support environment | ||
* sync scenarios and to enable code reusability. | ||
*/ |
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.
not relevant to this pr:
that is a good comment to have, as it is not straightforward logic.
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 I conflicted with this - we should be able to remove this comment as Workflow Pref mutations are now handled in {Create,Update}Workflow
use-cases now, and I have commented similarly.
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.
Conflicts are not a new thing for me ;)
No Problem if we have it on update/create i will remove this one.
DIGEST_AMOUNT = 'DIGEST_AMOUNT', | ||
DIGEST_UNIT = 'DIGEST_UNIT', | ||
DIGEST_KEY = 'DIGEST_KEY', | ||
DIGEST_CRON = 'DIGEST_CRON', | ||
DELAY_TYPE = 'DELAY_TYPE', | ||
DELAY_AMOUNT = 'DELAY_AMOUNT', | ||
DELAY_UNIT = 'DELAY_UNIT', |
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.
figma was not loading for me, for now, i created a dedicated value for each component.
apps/api/src/app/workflows-v2/usecases/patch-workflow/patch-workflow.usecase.ts
Show resolved
Hide resolved
…chemas # Conflicts: # apps/api/src/app/workflows-v2/shared/schemas/in-app-control.schema.ts # apps/api/src/app/workflows-v2/usecases/patch-workflow/patch-workflow.usecase.ts # apps/api/src/app/workflows-v2/usecases/upsert-workflow/upsert-workflow.usecase.ts
@novu/client
@novu/framework
@novu/js
@novu/headless
@novu/nextjs
@novu/node
@novu/notification-center
novu
@novu/providers
@novu/react
@novu/react-native
@novu/shared
commit: |
What changed? Why was the change needed?
https://linear.app/novu/issue/NV-4735/delay-step-create-the-uischema
https://linear.app/novu/issue/NV-4738/digest-step-create-the-uischema
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer