Skip to content

Conversation

@cgero-eth
Copy link
Contributor

@cgero-eth cgero-eth commented Aug 5, 2024

Description

Task: APP-3440

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran all tests with success and extended them if necessary.
  • I have updated the CHANGELOG.md file in the root folder of the package after the [UPCOMING] title and before
    the latest version.
  • I have tested my code on the test network.

@cgero-eth cgero-eth changed the title WIP fix(APP-3440): Fix NumberInput component to correctly update value on buttons click fix(APP-3440): Fix NumberInput component to correctly update value on buttons click Aug 6, 2024
@cgero-eth cgero-eth marked this pull request as ready for review August 6, 2024 07:50
@cgero-eth cgero-eth requested a review from a team August 6, 2024 07:50
@shan8851
Copy link
Contributor

shan8851 commented Aug 6, 2024

@cgero-eth all changes look good and everything is working as expected.

However I wonder if we can slightly improve the UX. When we have min or max set we could disable the individual + or - button as right now it is clickable and nothing happens, so we should indicator somehow to the user that it is not possible by disabling buttons and/or having some type of label. My vote would just be to disable the buttons.

I don't think we should necessarily add this change to this PR though, seen as though right now input is not working properly the priority should be to get this fix merged, but perhaps one for the future. wdyt?

shan8851
shan8851 previously approved these changes Aug 6, 2024
@cgero-eth cgero-eth force-pushed the APP-3440-fix-number-input-component branch from 6201152 to 821946f Compare August 6, 2024 10:19
@cgero-eth
Copy link
Contributor Author

@cgero-eth all changes look good and everything is working as expected.

However I wonder if we can slightly improve the UX. When we have min or max set we could disable the individual + or - button as right now it is clickable and nothing happens, so we should indicator somehow to the user that it is not possible by disabling buttons and/or having some type of label. My vote would just be to disable the buttons.

I don't think we should necessarily add this change to this PR though, seen as though right now input is not working properly the priority should be to get this fix merged, but perhaps one for the future. wdyt?

Good point, could you create a task in Jira so we can keep track of this suggestion?

@shan8851
Copy link
Contributor

shan8851 commented Aug 6, 2024

@cgero-eth all changes look good and everything is working as expected.
However I wonder if we can slightly improve the UX. When we have min or max set we could disable the individual + or - button as right now it is clickable and nothing happens, so we should indicator somehow to the user that it is not possible by disabling buttons and/or having some type of label. My vote would just be to disable the buttons.
I don't think we should necessarily add this change to this PR though, seen as though right now input is not working properly the priority should be to get this fix merged, but perhaps one for the future. wdyt?

Good point, could you create a task in Jira so we can keep track of this suggestion?

Done - APP-3499

@cgero-eth cgero-eth merged commit 2b0d109 into main Aug 6, 2024
@cgero-eth cgero-eth deleted the APP-3440-fix-number-input-component branch August 6, 2024 10:31
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.

3 participants