Skip to content
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

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

djabarovgeorge
Copy link
Contributor

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

Copy link

netlify bot commented Nov 17, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 8a13c40
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/673c8fa9cee8270009dd886c
😎 Deploy Preview https://deploy-preview-7032--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +17 to +21
uiSchema: inAppUiSchema,
},
[ChannelStepEnum.EMAIL]: {
schema: EmailStepControlSchema,
uiSchema: EmailStepUiSchema,
schema: emailStepControlSchema,
uiSchema: emailStepUiSchema,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update naming conventions

Copy link
Contributor Author

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.

Comment on lines 34 to 36
private patchWorkflowFields(persistedWorkflow, command: PatchWorkflowCommand): NotificationTemplateEntity {
const transientWorkflow: NotificationTemplateEntity = { ...persistedWorkflow };
if (command.active !== undefined && command.active !== null) {
Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

Comment on lines 157 to 161
/**
* 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.
*/
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Comment on lines +32 to +38
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',
Copy link
Contributor Author

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.

…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
Copy link

pkg-pr-new bot commented Nov 19, 2024

Open in Stackblitz

@novu/client

pnpm add https://pkg.pr.new/novuhq/novu/@novu/client@7032

@novu/framework

pnpm add https://pkg.pr.new/novuhq/novu/@novu/framework@7032

@novu/js

pnpm add https://pkg.pr.new/novuhq/novu/@novu/js@7032

@novu/headless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/headless@7032

@novu/nextjs

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nextjs@7032

@novu/node

pnpm add https://pkg.pr.new/novuhq/novu/@novu/node@7032

@novu/notification-center

pnpm add https://pkg.pr.new/novuhq/novu/@novu/notification-center@7032

novu

pnpm add https://pkg.pr.new/novuhq/novu@7032

@novu/providers

pnpm add https://pkg.pr.new/novuhq/novu/@novu/providers@7032

@novu/react

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react@7032

@novu/react-native

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react-native@7032

@novu/shared

pnpm add https://pkg.pr.new/novuhq/novu/@novu/shared@7032

commit: 8a13c40

@djabarovgeorge djabarovgeorge merged commit 5accf24 into next Nov 19, 2024
40 of 41 checks passed
@djabarovgeorge djabarovgeorge deleted the add-delay-digest-ui-schemas branch November 19, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants