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

Entering a valid hex code sets the color #14

Merged

Conversation

lorcan
Copy link
Contributor

@lorcan lorcan commented Nov 15, 2015

Either pasting a hex value or typing a hex-like value into the hex
input sets the preview value and the value.

Looks like this (first I type in two valid hex strings, then I paste in a valid hex string):

entering-hex-sets-value

@lorcan lorcan force-pushed the lorcan/entering-a-valid-hex-sets-the-color branch from d52f03a to cf0e690 Compare November 15, 2015 19:28
@lorcan
Copy link
Contributor Author

lorcan commented Feb 5, 2016

Hi there, anything I can do to progress this PR? (I'm working on an app that has users that encounters this issue fairly regularly.)

@lukemelia
Copy link
Contributor

Hi @lorcan. Sorry for the silence on this. This looks like a good improvement to me. Can you add test coverage?

@lorcan
Copy link
Contributor Author

lorcan commented Feb 5, 2016

Great, will do @lukemelia, thanks :-)

@lorcan lorcan force-pushed the lorcan/entering-a-valid-hex-sets-the-color branch from cf0e690 to 20264fe Compare March 13, 2016 21:34
Either pasting a hex value or typing a hex-like value into the hex
input sets the preview value and the value.
@lorcan lorcan force-pushed the lorcan/entering-a-valid-hex-sets-the-color branch from 20264fe to 73b99f1 Compare March 13, 2016 21:46
Ember.run(function() {
component.$('.colpick_hex_field input').val('ff0000').keyup();
});
assert.equal(component.get('value'), 'ff0000', 'After receiving six hex characters the color is set');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This last assertion fails on master.

@lorcan lorcan closed this Mar 13, 2016
@lorcan lorcan reopened this Mar 13, 2016
Avoids ember-cli/ember-cli#5316 which was
causing CI to time out.
@lorcan lorcan force-pushed the lorcan/entering-a-valid-hex-sets-the-color branch from 6fbb957 to 5d4ab03 Compare March 19, 2016 23:34
@lorcan
Copy link
Contributor Author

lorcan commented Mar 19, 2016

Hey @lukemelia, sorry about the delay on this. I've added the tests plus a commit to get CI working again. We should be ready to go now :-)

Any thoughts on upgrading the ember version of this plugin? I'd be more than happy to put some time into it :-)

@@ -9,7 +9,7 @@
"ember-qunit": "0.3.1",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.15",
"jquery": "^1.11.1",
"jquery": "1.11.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lorcan
Copy link
Contributor Author

lorcan commented Apr 4, 2016

Hi there, any chance we could get this one merged and get a bump on the version? I've added a test to cover the functionality and fixed CI.

@lukemelia
Copy link
Contributor

@lorcan I'm happy to do that. What's the issue with the jQuery version? Is there a version dependency we need to document?

@lorcan
Copy link
Contributor Author

lorcan commented Apr 4, 2016

It's an issue with the version of ember being used - there's more details here and a good description here:

Just recently, jQuery 1.12.x was released to bower, and Ember-CLI’s default blueprint allowed upgrading to this version. Unfortunately, all current versions of Ember have a hardcoded check that will make you have a bad time.

It was fixed in ember by emberjs/ember.js#12793.

@lorcan
Copy link
Contributor Author

lorcan commented Apr 4, 2016

I'd be happy to produce PRs to update both ember-cli and ember for this project in a bit (though probably not this week).

@lukemelia
Copy link
Contributor

Sounds good @lorcan. I'll go ahead and cut a release in the meantime.

@lukemelia lukemelia merged commit c84d5e8 into yapplabs:master Apr 4, 2016
@lorcan
Copy link
Contributor Author

lorcan commented Apr 4, 2016

Awesome!!! Thanks a mil @lukemelia :-D

@lorcan lorcan deleted the lorcan/entering-a-valid-hex-sets-the-color branch April 4, 2016 13:49
@lorcan
Copy link
Contributor Author

lorcan commented Apr 13, 2016

Hi @lukemelia, any chance you could cut a release to get this out?

@lukemelia
Copy link
Contributor

@lorcan published at 0.6.1. Thanks!

@lorcan
Copy link
Contributor Author

lorcan commented Apr 14, 2016

Super, thanks @lukemelia!

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.

2 participants