Skip to content

Refactor: Error Handling#171

Open
SharonStrats wants to merge 28 commits intorefactor/styles-separateCSSfrom
refactor/error-handling
Open

Refactor: Error Handling#171
SharonStrats wants to merge 28 commits intorefactor/styles-separateCSSfrom
refactor/error-handling

Conversation

@SharonStrats
Copy link
Contributor

@SharonStrats SharonStrats commented Mar 25, 2026

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 issuePane to display errors/warnings to the user.
  • Introduce src/debug.js as a centralized logging wrapper and replace several console.* call sites.
  • Add CSS for the new details section layout/styling and a small shared localUtils helper 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.

SharonStrats and others added 4 commits March 25, 2026 19:30
@SharonStrats SharonStrats removed the request for review from timea-solid March 25, 2026 08:45
@SharonStrats SharonStrats marked this pull request as draft March 25, 2026 08:46
@SharonStrats SharonStrats marked this pull request as ready for review March 26, 2026 02:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

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.

2 participants