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: add comparison operators helpers #5334

Merged
merged 4 commits into from Apr 15, 2024

Conversation

michaldziuba03
Copy link
Contributor

What change does this PR introduce?

This PR introduces new helpers for comparison operators: <, <=, >, >=, ===, !==.

Why was this change needed?

Closes #5263

Other information (Screenshots)

image

Tests result

Copy link

netlify bot commented Mar 23, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit a0b4a27
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/66129f11c06fa6000837fae3
😎 Deploy Preview https://deploy-preview-5334--dev-web-novu.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 Mar 23, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit a0b4a27
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/66129f12817d680008e76ecd
😎 Deploy Preview https://deploy-preview-5334--novu-design.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.

@@ -10,6 +10,12 @@ export enum HandlebarHelpersEnum {
SORT_BY = 'sortBy',
NUMBERFORMAT = 'numberFormat',
I18N = 'i18n',
GT = 'gt',
GTE = 'gte',
LT = 'lt',
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 is existing handlebar helper EQUALS (==) and it might be confused with EQ (===).

Let me know if you have better ideas for naming.

@michaldziuba03 michaldziuba03 marked this pull request as ready for review March 24, 2024 00:19
@michaldziuba03
Copy link
Contributor Author

@jainpawan21 @scopsy PR is ready for review

Copy link
Contributor

@scopsy scopsy left a comment

Choose a reason for hiding this comment

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

Fantastic work!

@scopsy scopsy merged commit 58f8ecf into novuhq:next Apr 15, 2024
32 of 33 checks passed
@michaldziuba03 michaldziuba03 deleted the nv-3564-comparison-helpers branch April 15, 2024 12:50
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.

🚀 Feature: support of Comparison operators handler helpers
2 participants