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

unable to commit after cmd+enter #6334

Closed
fschroiff opened this issue Dec 3, 2018 · 6 comments
Closed

unable to commit after cmd+enter #6334

fschroiff opened this issue Dec 3, 2018 · 6 comments

Comments

@fschroiff
Copy link

Description

Partial crash. Unable to commit after hitting cmd+enter when having altered a single file.

Version

  • GitHub Desktop: 1.5.0
  • Operating system: macOS 10.14.1 (18B75)

Steps to Reproduce

  1. edit one file in repo.
  2. hit cmd+enter

Expected Behavior

File gets committed with commit message "Updated foo.bar".

This is what happens when you manually click "Commit to master" instead of using the cmd+enter keyboard shortcut.
This is also what happens when you focus the Summary field and then hit cmd+enter.

Actual Behavior

"Commit to master" button is disabled, file is not committed. Client has to be restarted to be able to commit.

Additional Information

none

Logs

2018-12-03.desktop.production.log

@billygriffin
Copy link
Contributor

@fschroiff Thanks for the report! That sounds less than ideal.

🤔 I was unable to reproduce this error, and I don't see anything in the logs that's suspect. @desktop/quality-assurance Would you mind trying to repro this as well? When I do the repro steps with the dev tools closed or open, nothing happens at all - no crash, no error message.

@billygriffin billygriffin added the investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer label Dec 3, 2018
@tierninho
Copy link
Contributor

@fschroiff Yes, this is a bug or at least something we can iterate on to make the feature more fluid.

The underlying issue is that when a commit is lying in wait, a user cannot immediately use the cmd+enter functionality as intended, and most therefore either click the Commit button manually or place the cursor in the summary or description fields, then cmd+enter.

I didn't find the Commit button to be disabled (greyed out), nor a restart req'd in order to resolve.

Opening this up as help-wanted as it is a good candidate.

v1.5.1-beta0, mac

@tierninho tierninho added bug Confirmed bugs or reports that are very likely to be bugs help wanted Issues marked as ideal for external contributors priority-3 Bugs that affect small number of users and/or relatively cosmetic in nature and removed investigation-needed Likely bugs, but haven't been reliably reproduced by a reviewer labels Dec 3, 2018
@fschroiff
Copy link
Author

@tierninho the Commit-button gets "dimmed" and is not clickable. I can't commit even when I manually add Summary and Description.

@tierninho
Copy link
Contributor

@fschroiff Thanks for the update. Possible to include a pic or gif? I tried to reproduce this again, but no luck.

I did get into a similar state by clicking the checkbox, then cmd+enter, which toggled on/off the Commit button. However, this intended behavior as seen here:

screen shot 2018-12-04 at 8 17 03 am

Also, can you clarify about the "partial crash". Did Desktop crash by itself or you manually restarted the app?

@fschroiff
Copy link
Author

@tierninho there might not have been a crash, I just interpreted the UI-state as being unresponsive. I had never even noticed the checkboxes ☑️ 👀. I learned now that focus on a file plus cmd+enter deselects the file (= un-checks the checkbox). And focus on the summary field plus cmd+enter triggers a commit. This is the source of my confusion.

So I'll turn this from a bug-report into a feature request: When there's an autogenerated summary (which is the case when only one file has been edited) cmd+enter should trigger a commit even when the files pane is focussed.

@tierninho tierninho added enhancement and removed bug Confirmed bugs or reports that are very likely to be bugs priority-3 Bugs that affect small number of users and/or relatively cosmetic in nature help wanted Issues marked as ideal for external contributors labels Dec 5, 2018
@billygriffin
Copy link
Contributor

Hi @fschroiff, we discussed this quite a bit internally and unfortunately the technical work to achieve something that captures the commit keyboard shortcut outside of the commit area is nontrivial, and we're not sure this would provide benefit for most users since we haven't heard this before. I totally understand how this could make things more convenient for you, but it's not something we intend to support unless we hear evidence that it's causing more widespread pain and/or confusion (or frustration from lack of convenience).

I really appreciate you describing your expectation of how this would work, and hope you'll continue to weigh in on things you'd like to see improved or that are causing frustration for you in the future. Thanks again! 😄

One note for future reference: the toggle of the checkboxes is just caused by hitting the enter key alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants