fix: Better UX for expired PAT for Gist publishing ISSUE #1549 #1693
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.
Added
setWarningDialogToSetting
to Implement Navigation for the Settings Button in Warning DialogDescription:
This PR addresses [ISSUE #1549] by introducing a new function, setWarningDialogToSetting, which enhances the warning dialog by adding navigation to the Settings button.
Changes Implemented:
Why This Change?
The previous implementation (showWarningDialog) did not support navigating to the settings page when users encountered a warning. Instead of modifying/removing it (to avoid breaking existing functionality), I introduced a new function to handle this scenario efficiently.
Demo:
https://github.com/user-attachments/assets/6b66fefc-dad6-4729-b04e-58ef410671e8
I think these would greatly help Improving users Experience as user not have to waste 30-40minutes figuring out what went wrong when PAT expires I also wrote small message for user in Dialogue box "Your GitHub Tokens might have expired!" making him go and check the settings page 😊