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

App error style tweaks, Git output formatting #8964

Merged
merged 11 commits into from Feb 6, 2020

Conversation

niik
Copy link
Member

@niik niik commented Jan 23, 2020

Closes #7606

Description

Stumbled upon this as I was investigating #8962 and extracted it from that PR since it's not a regression.

Back in #1107 we added support for detecting when a presented error contained raw output from Git and if it was we used a monospace font. This has since regressed due to us wrapping the majority of our errors in ErrorWithMetadata instances thus thwarting the logic from #1107.

In addition to fixing that logic I also made it so that when showing Git errors we automatically scroll to the end of the Git output. This is useful because that's almost always where the problem is (Git normally terminates when encountering an error) and because Git outputs can be very long (especially in the case of network operations where progress can take up a substantial amount of the output).

Finally I saw that we were using cursor: text which made one believe it was possible to select text in the dialog but due to us using user-select: auto that wasn't actually the case since the user-select: none got inherited from our global styles.

Screenshots

Before

image

After

image

Release notes

Notes:

  • [Fixed] Text in error dialogs is now selectable
  • [Improved] Errors containing raw Git output are now formatted using fixed-width font

@outofambit outofambit self-requested a review February 5, 2020 23:33
Copy link
Contributor

@outofambit outofambit left a comment

Choose a reason for hiding this comment

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

yay! excited to have these fixes in!

@outofambit outofambit self-assigned this Feb 6, 2020
@outofambit outofambit added this to In Progress PRs in Desktop 2.4 release via automation Feb 6, 2020
@outofambit outofambit moved this from In Progress PRs to Review In Progress in Desktop 2.4 release Feb 6, 2020
@outofambit outofambit merged commit 46d0f84 into development Feb 6, 2020
Desktop 2.4 release automation moved this from Review In Progress to PRs For Next Beta Feb 6, 2020
@outofambit outofambit deleted the app-error-style-tweaks branch February 6, 2020 16:53
@outofambit outofambit moved this from PRs For Next Beta to Done! in Desktop 2.4 release Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Can't select text in commit error dialog
2 participants