-
Notifications
You must be signed in to change notification settings - Fork 8
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
Create project and feed tweaks #255
Create project and feed tweaks #255
Conversation
Codecov Report
@@ Coverage Diff @@
## create-project-and-feed #255 +/- ##
==========================================================
+ Coverage 4.95% 4.98% +0.02%
==========================================================
Files 328 328
Lines 15508 15419 -89
Branches 4693 4654 -39
==========================================================
Hits 768 768
+ Misses 12551 12488 -63
+ Partials 2189 2163 -26
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There ought to be a validation check after pressing enter and before saving a feed source or project. It'd probably be good to recalculate the form validation when enter is pressed and if everything looks good, continue with saving.
_handleKeyDown = (e: SyntheticKeyboardEvent<HTMLInputElement>) => { | ||
switch( e.keyCode ) { | ||
case 13: // ENTER | ||
this._onSave() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There needs to be some kind of validation check done before calling _onSave
. It's possible to create a feed source without a name with this change.
_handleKeyDown = (e: SyntheticKeyboardEvent<HTMLInputElement>) => { | ||
switch( e.keyCode ) { | ||
case 13: // ENTER | ||
this._onSaveSettings() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There needs to be some kind of validation check done before calling _onSaveSettings
. It's possible to create a project without a name with this change.
OK, @evansiroky, I made some changes that address the onSave issue. Let me know how it looks. |
A few tweaks for #41:
validator
library to validate URL (which is already used in editor)ENTER
(to trigger save)