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(dashboard): more precise calculation of step conditions #7628

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

LetItRock
Copy link
Contributor

What changed? Why was the change needed?

Updates:

  • more precise calculation of step conditions
  • fixed the Skip Conditions to Step Conditions merge conflict

Screenshots

Screen.Recording.2025-01-30.at.18.25.46.mov

Copy link

linear bot commented Jan 30, 2025

Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit af6a7e3
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/679bb71240247c0008d5143e
😎 Deploy Preview https://deploy-preview-7628.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.

Comment on lines -88 to -94
const conditionsCount = useMemo(() => {
if (!data.controlValues?.skip) return 0;

const query = parseJsonLogic(data.controlValues.skip as RQBJsonLogic);

return query.rules.length;
}, [data.controlValues]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved to reusable hook


const query = parseJsonLogic(jsonLogic);

return countRules(query);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added logic to calculate the nested conditions

Copy link

netlify bot commented Jan 30, 2025

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

Name Link
🔨 Latest commit af6a7e3
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/679bb712f97c540008caf253
😎 Deploy Preview https://deploy-preview-7628.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.

@LetItRock LetItRock merged commit 221e0c2 into next Jan 31, 2025
34 checks passed
@LetItRock LetItRock deleted the nv-5297-better-calculations-of-conditions branch January 31, 2025 17:43
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