-
Notifications
You must be signed in to change notification settings - Fork 295
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
[DDW-528] Focus inline editing field on mouse up #1231
Merged
iohk-bors
merged 6 commits into
develop
from
feature/ddw-528-wallet-rename-input-improvement
Dec 21, 2018
Merged
[DDW-528] Focus inline editing field on mouse up #1231
iohk-bors
merged 6 commits into
develop
from
feature/ddw-528-wallet-rename-input-improvement
Dec 21, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nikolaglumac
changed the title
[DDW-528] focus inline editing field on mouse up
[DDW-528] Focus inline editing field on mouse up
Dec 20, 2018
nikolaglumac
approved these changes
Dec 21, 2018
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.
Great fix @DominikGuzei 🎉
bors r+ |
Merge conflict (retrying...) |
Merge conflict |
bors r+ |
iohk-bors bot
added a commit
that referenced
this pull request
Dec 21, 2018
1231: [DDW-528] Focus inline editing field on mouse up r=nikolaglumac a=DominikGuzei This PR improves the UX of inline editing input fields. The issue was that it only started editing mode `onClick` which led to inferior UX when for example selecting the wallet name and only releasing the mouse over the field. The logic was changed to use `onMouseUp` instead, so anytime you e.g: select the wallet name and relase the mouse over the inline editing field it starts editing mode. --- ## Review Checklist: ### Basics - [ ] PR is updated to the most recent version of target branch (and there are no conflicts) - [ ] PR has good description that summarizes all changes and shows some screenshots or animated GIFs of important UI changes - [ ] CHANGELOG entry has been added and is linked to the correct PR on GitHub - [ ] Automated tests: All acceptance tests are passing (`yarn run test`) - [ ] Manual tests (minimum tests should cover newly added feature/fix): App works correctly in *development* build (`yarn run dev`) - [ ] Manual tests (minimum tests should cover newly added feature/fix): App works correctly in *production* build (`yarn run package` / CI builds) - [ ] There are no *flow* errors or warnings (`yarn run flow:test`) - [ ] There are no *lint* errors or warnings (`yarn run lint`) - [ ] Text changes are proofread and approved (Jane Wild) - [ ] There are no missing translations (running `yarn run manage:translations` produces no changes) - [ ] UI changes look good in all themes (Alexander Rukin) - [ ] Storybook works and no stories are broken (`yarn run storybook`) - [ ] In case of dependency changes `yarn.lock` file is updated ### Code Quality - [ ] Important parts of the code are properly documented and commented - [ ] Code is properly typed with flow - [ ] React components are split-up enough to avoid unnecessary re-rendering - [ ] Any code that only works in Electron is neatly separated from components ### Testing - [ ] New feature / change is covered by acceptance tests - [ ] All existing acceptance tests are still up-to-date - [ ] New feature / change is covered by Daedalus Testing scenario - [ ] All existing Daedalus Testing scenarios are still up-to-date ### After Review: - [ ] Merge PR - [ ] Delete source branch - [ ] Move ticket to `done` on the Youtrack board Co-authored-by: Dominik Guzei <dominik.guzei@gmail.com> Co-authored-by: Nikola Glumac <niglumac@gmail.com>
iohk-bors
bot
deleted the
feature/ddw-528-wallet-rename-input-improvement
branch
December 21, 2018 19:23
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the UX of inline editing input fields. The issue was that it only started editing mode
onClick
which led to inferior UX when for example selecting the wallet name and only releasing the mouse over the field. The logic was changed to useonMouseUp
instead, so anytime you e.g: select the wallet name and relase the mouse over the inline editing field it starts editing mode.Review Checklist:
Basics
yarn run test
)yarn run dev
)yarn run package
/ CI builds)yarn run flow:test
)yarn run lint
)yarn run manage:translations
produces no changes)yarn run storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review:
done
on the Youtrack board