Skip to content

App error style tweaks, Git output formatting - #8964

Merged
outofambit merged 11 commits into
developmentfrom
app-error-style-tweaks
Feb 6, 2020
Merged

outofambit merged 11 commits into
developmentfrom
app-error-style-tweaks

Conversation

@niik

@niik niik commented Jan 23, 2020

Copy link
Copy Markdown
Member

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

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

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!

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.

Can't select text in commit error dialog

2 participants