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

Fix color picker bug #1465

Merged
merged 9 commits into from
Jan 16, 2020
Merged

Fix color picker bug #1465

merged 9 commits into from
Jan 16, 2020

Conversation

rishabhshuklax
Copy link
Member

Fixes #1464

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@codecov
Copy link

codecov bot commented Jan 12, 2020

Codecov Report

Merging #1465 into main will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1465      +/-   ##
==========================================
- Coverage   64.78%   64.75%   -0.03%     
==========================================
  Files         127      127              
  Lines        2601     2602       +1     
  Branches      418      418              
==========================================
  Hits         1685     1685              
- Misses        916      917       +1
Impacted Files Coverage Δ
examples/lib/defaultHtmlStepUi.js 10.98% <0%> (-0.07%) ⬇️

@rishabhshuklax
Copy link
Member Author

@publiclab/is-reviewers please review this.

@@ -276,6 +276,21 @@ function DefaultHtmlStepUi(_sequencer, options) {
});
});

$step('.color-picker-target').each(function(i, input) {
Copy link
Member

Choose a reason for hiding this comment

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

I am extremely sorry for asking you to change this to $step. It is supposed to be $stepAll otherwise, it won't work for multiple pickers.
Please change it again.
I am extremely sorry. I forgot what $stepAll does, for a moment.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought so too that's why I used stepAll but when I changed it to step still it was working fine that's why I pushed commit.

Screenshot from 2020-01-13 00-16-55

Copy link
Member

Choose a reason for hiding this comment

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

Sorry. Please revert it though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok.

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

Please revert $step to $stepAll

@rishabhshuklax
Copy link
Member Author

@harshkhandeparkar Done.

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

LGTM!

@jywarren
Copy link
Member

Same! Looks great! This could also use a UI test perhaps to protect it in the future! Thank you!!!

@rishabhshuklax
Copy link
Member Author

@jywarren I've added the test for this!

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

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

Looks good. Just one suggestion. These UI tests are a bit difficult to understand. Would you mind adding some comments and also some line breaks to make the code more readable and understandable for any future readers.

@rishabhshuklax
Copy link
Member Author

@harshkhandeparkar I've made the requested changes, Is this alright?

@jywarren jywarren merged commit c1c682c into publiclab:main Jan 16, 2020
@jywarren
Copy link
Member

Great work!! Thanks!!

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.

Color Picker Input filed doesn't works correctly
3 participants