-
Notifications
You must be signed in to change notification settings - Fork 3
Refactor: Error Handling #171
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
Open
SharonStrats
wants to merge
30
commits into
refactor/styles-separateCSS
Choose a base branch
from
refactor/error-handling
base: refactor/styles-separateCSS
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
369aebb
add debug
SharonStrats 5a81d83
error handling
SharonStrats ca12d09
styles for details sec
SharonStrats 00be28f
attach details sooner
SharonStrats aa5c206
Update src/issuePane.js
SharonStrats 4fc5a7f
add openmodal function
SharonStrats cb5ea3d
add missing functions
SharonStrats 1a6642b
csvButton error handling
SharonStrats baba6e0
board errors
SharonStrats 3624234
new Issue
SharonStrats ee3e49a
newTracker error handling
SharonStrats 38b0525
missing localUtils functions and css
SharonStrats 49a3e48
fix new tracker
SharonStrats 9f28532
fix issue pane
SharonStrats 1dcb6a6
issue error handling
SharonStrats 86e8428
Merge branch 'refactor/error-handling' of https://github.com/SolidOS/…
SharonStrats 6e39af7
fixed debug error
SharonStrats 24725a2
place the detailsSection below the table
SharonStrats 2fe099b
configuration for debug
SharonStrats 0086bc3
generative ai
SharonStrats 58f0f3f
Merge branch 'refactor/styles-separateCSS' into refactor/error-handling
SharonStrats c213869
generative ai
SharonStrats b4d4217
comment local utils
SharonStrats 9e6ccce
generative ai messenging
SharonStrats 37d225a
Merge branch 'refactor/styles-separateCSS' into refactor/error-handling
SharonStrats 58a4916
Update src/csvButton.js
SharonStrats 8a34839
fixed PR review comments
SharonStrats 767350e
Merge branch 'refactor/error-handling' of https://github.com/SolidOS/…
SharonStrats e8d3340
changed contacts to issue in localUtils
SharonStrats dffea56
Merge branch 'refactor/styles-separateCSS' into refactor/error-handling
SharonStrats File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /* Generative AI - Model: GPT-5.3-Codex used for configuration logic */ | ||
| const LEVELS = { | ||
| trace: 10, | ||
| log: 20, | ||
| warn: 30, | ||
| error: 40, | ||
| silent: 99 | ||
| } | ||
|
|
||
| let currentLevel = LEVELS.silent | ||
|
|
||
| function defaultWriter (level, ...args) { | ||
| const c = globalThis && globalThis['console'] | ||
| if (!c) return | ||
| if (level === 'warn' && typeof c.warn === 'function') return c.warn(...args) | ||
| if (level === 'error' && typeof c.error === 'function') return c.error(...args) | ||
| if (typeof c.log === 'function') return c.log(...args) | ||
| } | ||
|
|
||
| let sink = defaultWriter | ||
|
|
||
| currentLevel = LEVELS.warn | ||
|
|
||
| export function configureDebug ({ level = 'warn', writer } = {}) { | ||
| currentLevel = LEVELS[level] ?? LEVELS.warn | ||
| sink = writer === undefined ? defaultWriter : writer | ||
| } | ||
|
|
||
| function emit (level, args) { | ||
| if (!sink) return | ||
| if ((LEVELS[level] ?? LEVELS.silent) < currentLevel) return | ||
| sink(level, ...args) | ||
| } | ||
|
|
||
| export function log (...args) { | ||
| emit('log', args) | ||
| } | ||
|
|
||
| export function warn (...args) { | ||
| emit('warn', args) | ||
| } | ||
|
|
||
| export function error (...args) { | ||
| emit('error', args) | ||
| } | ||
|
|
||
| export function trace (...args) { | ||
| emit('trace', args) | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.