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

refactor(api): generate payload in runtime #7192

Merged
merged 19 commits into from
Dec 6, 2024

Conversation

djabarovgeorge
Copy link
Contributor

@djabarovgeorge djabarovgeorge commented Dec 2, 2024

https://linear.app/novu/issue/NV-4938/calculate-payload-schema-for-the-dashboard-preview-and-trigger-pages

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 2214a0c
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6752fc36b48c4c00085f9b34
😎 Deploy Preview https://deploy-preview-7192.dashboard.novu-staging.co
📱 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.

Copy link

netlify bot commented Dec 2, 2024

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

Name Link
🔨 Latest commit 191114c
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/674de86fed252e0008d43ed6
😎 Deploy Preview https://deploy-preview-7192--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.

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 2214a0c
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/6752fc3644000d0008ffcf74
😎 Deploy Preview https://deploy-preview-7192.dashboard-v2.novu-staging.co
📱 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.

Copy link
Contributor

@SokratisVidros SokratisVidros left a comment

Choose a reason for hiding this comment

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

Nicely done @djabarovgeorge. I added some nitty gritty comments that should be easily addressed but overall the flow is crystal clear.

* {
* validVariables: ['user.name'],
* invalidVariables: [{
* context: '>> 1| {{invalid..syntax}}\n ^',
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the context key in invalidVariables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my opinion, we could benefit from it. this is how the CLI presents the issues.
Let me provide an example or given example:
context: '>> 1| {{invalid..syntax}}\n ^',

the client will have the exact place where the issue is if it is render/split by a new line
>> 1| {{invalid..syntax}}
^

this is an indication that Liquid JS sees an error

@djabarovgeorge djabarovgeorge merged commit b4c6e6e into next Dec 6, 2024
44 checks passed
@djabarovgeorge djabarovgeorge deleted the refactor-generate-payload-in-runtime branch December 6, 2024 13:49
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.

2 participants