Skip to content

Conversation

@desiprisg
Copy link
Contributor

@desiprisg desiprisg commented Apr 15, 2025

What changed? Why was the change needed?

  • Added autosave functionality to step conditions.
  • Fixed a bug where editing step conditions first when creating a step caused an error on trying to edit the template later on.

@desiprisg desiprisg self-assigned this Apr 15, 2025
@linear
Copy link

linear bot commented Apr 15, 2025

@netlify
Copy link

netlify bot commented Apr 15, 2025

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

Name Link
🔨 Latest commit 34e5fcd
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/68078391017f520008e32b62
😎 Deploy Preview https://deploy-preview-8134.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.

@desiprisg desiprisg force-pushed the nv-5344-add-autosave-functionality-to-step-conditions branch from 3d42bc2 to a0d365b Compare April 22, 2025 09:32
@desiprisg desiprisg force-pushed the nv-5344-add-autosave-functionality-to-step-conditions branch from a0d365b to 9377221 Compare April 22, 2025 09:41
Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

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

hey, found a few things that we need to improve:

  1. When I pick the field value with keyboard the page gets refreshed.
Screen.Recording.2025-04-22.at.12.53.38.mov
  1. When the field value changes we don't save the form right away.
Screen.Recording.2025-04-22.at.12.53.54.mov
  1. When the group or rule is removed the form is not saved right away.
Screen.Recording.2025-04-22.at.12.56.01.mov
  1. When group or rule is duplicated the page get's refreshed.
Screen.Recording.2025-04-22.at.12.56.21.mov

Comment on lines 73 to 75
onAddRule={() => {
saveForm();
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

please define one callback and reuse it between the props

Comment on lines +12 to +15
return {
...uiSchemaDefaultValues,
...controlValues,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

why we needed to update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a bug where if you visit step conditions and make a change before touching the template, your app crashes when visiting the template afterwards.

@desiprisg desiprisg force-pushed the nv-5344-add-autosave-functionality-to-step-conditions branch from 9377221 to e843f49 Compare April 22, 2025 11:39
@desiprisg desiprisg force-pushed the nv-5344-add-autosave-functionality-to-step-conditions branch from e843f49 to d08d68a Compare April 22, 2025 11:40
@desiprisg desiprisg force-pushed the nv-5344-add-autosave-functionality-to-step-conditions branch from d08d68a to 34e5fcd Compare April 22, 2025 11:54
Copy link
Contributor

@LetItRock LetItRock left a comment

Choose a reason for hiding this comment

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

nice, all works well! 🙌

@desiprisg desiprisg merged commit 44a40d0 into next Apr 22, 2025
27 checks passed
@desiprisg desiprisg deleted the nv-5344-add-autosave-functionality-to-step-conditions branch April 22, 2025 12:46
bricehemery pushed a commit to jack-agency/novu that referenced this pull request Jul 7, 2025
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.

4 participants