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

Improved Exception Dialog with Copy Paste #1977

Merged

Conversation

shivansh02
Copy link
Collaborator

@shivansh02 shivansh02 commented Mar 31, 2024

Description

Exception dialog improvements:
-better UI
-copy paste functionality
-detailed error with system information
-report to github functionality

Related Issue

Fixes #1861

Motivation and Context

Exception Dialog currently has bad UI and no copy paste functionality.

How Has This Been Tested?

Screenshots (if appropriate):

Screenshot from 2024-03-31 08-01-44

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have read the CONTRIBUTING guide.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.

Copy link
Contributor

@diivi diivi left a comment

Choose a reason for hiding this comment

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

Looks like a nice improvement over the error dialog that we have currently, thanks!

src/vorta/views/exception_dialog.py Outdated Show resolved Hide resolved
src/vorta/views/exception_dialog.py Show resolved Hide resolved
src/vorta/views/exception_dialog.py Outdated Show resolved Hide resolved
def get_os_details():
uname_result = platform.uname()
os_details = f"OS: {uname_result.system}\n"
os_details += f"Node Name: {uname_result.node}\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this is necessary.
Looks good for me too otherwise:

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe use a format string for the datetime, so it doesn't put the subsecond decimals there.

About the "Log:":

  • that's a traceback and guess you did not get it from the log, but directly within python.
  • but, vorta (and also borg) do write a log, which might have some additional interesting infos, which you do not yet include. maybe a link that opens the correct log file so that the user can easily c&p stuff from there would be useful here.

@diivi
Copy link
Contributor

diivi commented Mar 31, 2024

I suppose .github/ISSUE_TEMPLATE/bug_report.md and .github/ISSUE_TEMPLATE/bug_form.yaml will also need to be changed as a part of this. Will let the maintainers decide.

@shivansh02
Copy link
Collaborator Author

@m3nu @ThomasWaldmann Can you please take a look?

@real-yfprojects
Copy link
Collaborator

I suppose .github/ISSUE_TEMPLATE/bug_report.md and .github/ISSUE_TEMPLATE/bug_form.yaml will also need to be changed as a part of this.

This can be done once this is merged.

Copy link
Collaborator

@real-yfprojects real-yfprojects left a comment

Choose a reason for hiding this comment

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

Nice addition!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Where did you source this image from?

Copy link
Collaborator Author

@shivansh02 shivansh02 Apr 2, 2024

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

If I understand correctly the image file is released into the public domain and we are free to relicence it?
We should also consider using the corresponding fork awesome icon for consistency with the other icons in the GUI.

src/vorta/views/exception_dialog.py Outdated Show resolved Hide resolved
@m3nu
Copy link
Contributor

m3nu commented Apr 6, 2024

Needs rebase and an icon from the sources we usually use https://vorta.borgbase.com/contributing/#icons

@shivansh02 shivansh02 force-pushed the feature/improved-exception-box-with-copy-paste branch from 20f68fb to 422973f Compare June 17, 2024 08:20
@shivansh02
Copy link
Collaborator Author

Needs rebase and an icon from the sources we usually use https://vorta.borgbase.com/contributing/#icons

@m3nu Done, and the checks are passing as well. Can we merge this?

@shivansh02 shivansh02 force-pushed the feature/improved-exception-box-with-copy-paste branch from 422973f to 7ce0dfd Compare July 7, 2024 21:13
@m3nu m3nu force-pushed the feature/improved-exception-box-with-copy-paste branch from 7ce0dfd to df196d8 Compare July 19, 2024 09:54
@m3nu m3nu merged commit 513e8e2 into borgbase:master Jul 19, 2024
11 checks passed
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.

Improved exception dialog with copy & paste or direct error reporting
5 participants