Refactor: Error Handling#171
Open
SharonStrats wants to merge 28 commits intorefactor/styles-separateCSSfrom
Open
Refactor: Error Handling#171SharonStrats wants to merge 28 commits intorefactor/styles-separateCSSfrom
SharonStrats wants to merge 28 commits intorefactor/styles-separateCSSfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors error handling/logging in the issue pane UI by introducing a dedicated “Details” section for user-visible errors and routing diagnostic output through a new debug helper.
Changes:
- Add a “Details” region in
issuePaneto display errors/warnings to the user. - Introduce
src/debug.jsas a centralized logging wrapper and replace severalconsole.*call sites. - Add CSS for the new details section layout/styling and a small shared
localUtilshelper module.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/styles/issuePane.css | Adds styling for the new details/error section container and content layout. |
| src/localUtils.js | Introduces helper functions for modal alerts and rendering error blocks. |
| src/issuePane.js | Reworks error reporting to write into a details section and replaces some console logging with debug. |
| src/debug.js | Adds a logging wrapper intended to replace direct console.* usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…issue-pane into refactor/error-handling
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…issue-pane into refactor/error-handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Remove console logs. Use debug instead. Create a section for errors to inform the user. Add utilsLogic from contacts-pane to show alertDialog for some errors especially when working with an issue.