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

chore: new logic for minMax component: min value can be 0 #2611

Merged
merged 9 commits into from
Dec 11, 2024

Conversation

taopkorczak
Copy link
Contributor

Related to: https://oat-sa.atlassian.net/browse/AUT-1389

Separate zero and disabled states in minMax component

Changes:

  • Modified minMax component to treat 0 as a valid numeric value instead of a disabled state
  • Updated disabled field behavior to use null/empty value (previously defaulted to 0)
  • Fixed bug AUT-1389 by allowing lowerBound to accept 0 as a valid number
Nagranie.z.ekranu.2024-11-7.o.16.27.50.mov

@taopkorczak taopkorczak requested review from a team, olga-kulish and oatymart November 7, 2024 15:33
Copy link

github-actions bot commented Nov 7, 2024

Front-end summary Node 18

💯 Total ✅ Passed ⏭️ Skipped ❌ Failed
287 287 0 0

Copy link
Contributor

@olga-kulish olga-kulish left a comment

Choose a reason for hiding this comment

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

Good job!
It seems to behave as expected (still, please check comments), and there seems to be no regressions with this UI component (though I checked only a couple of interactions).

In published test, score is calculated, and seems like it's correctly limited to upperBound/lowerBound (with negative and or/float numbers)

Copy link
Contributor

@olga-kulish olga-kulish left a comment

Choose a reason for hiding this comment

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

Works well, good job!

  • New code is covered by tests (if applicable)
  • Tests are running successfully (old and new ones) on my local machine (if applicable)
  • New code is respecting code style rules
  • New code is respecting best practices
  • Feature is working correctly on my local machine (if applicable)
  • Acceptance criteria are respected
  • Pull request title and description are meaningful

Copy link

Version

Target Version 30.25.2
Last version 30.25.1

There are 0 BREAKING CHANGE, 0 feature, 7 fixes

@taopkorczak
Copy link
Contributor Author

Screenshot 2024-12-11 at 10 45 28 Input width updated

@taopkorczak taopkorczak merged commit ea41300 into develop Dec 11, 2024
5 checks passed
@taopkorczak taopkorczak deleted the feature/AUT-1389/edit-min-max-logic branch December 11, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants