-
Notifications
You must be signed in to change notification settings - Fork 48
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
🎨 Add Mr.Jack svg to NetworkError #680
Conversation
🦋 Changeset detectedLatest commit: 65885de The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a0fc43d
to
a173218
Compare
{errors[0] && ( | ||
<div className={styles.message}> | ||
<div className={styles.inner}> | ||
<div className={styles.silentHere}>Hmm, it's silent here...</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, it's silent here...
a173218
to
65885de
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻 Thanks!!
message: 'We could not detect the format of the file', | ||
message: weCannotAccess, | ||
instruction: | ||
'Please specify the format in the URL query parameter `format`', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I want to add following link: https://liambx.com/docs/web#appendix-schema-format-options
But if it's too much trouble to implement, it doesn't have to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true! However, I think this would require a bit of effort, and there will likely be very few cases where this actually applies. I’m sorry, but I believe it’s more reasonable not to address this for now!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hoshinotsuyoshi I think so too!! Let's proceed as is.
User description
Summary
message examples
1. format error:
/erd/p/raw.githubusercontent.com/mastodon/mastodon/refs/heads/main/Gemfile
2. DNS error
/erd/p/no-found/path/to/file
3. remote server 404
/erd/p/raw.githubusercontent.com/liam-hq/liam/refs/heads/main/no-found
Related Issue
Changes
Testing
Other Information
PR Type
Enhancement, Bug fix
Description
Introduced a new
MrJack
SVG component for enhanced error visuals.Improved
NetworkErrorDisplay
with structured error messages and instructions.Refactored error handling logic to include optional
instruction
field.Updated CSS for better alignment and responsive design in error displays.
Changes walkthrough 📝
erdViewer.tsx
Add `instruction` field to `ErrorObject` type
frontend/apps/erd-web/app/erd/p/[...slug]/erdViewer.tsx
instruction
field toErrorObject
type.ErrorDisplay.tsx
Update `ErrorDisplay` for conditional rendering
frontend/packages/erd-core/src/components/ERDRenderer/ErrorDisplay/ErrorDisplay.tsx
NetworkError
specific display.MrJack.tsx
Add `MrJack` SVG component for error visuals
frontend/packages/erd-core/src/components/ERDRenderer/ErrorDisplay/MrJack.tsx
MrJack
SVG component for error visuals.NetworkErrorDisplay.tsx
Integrate `MrJack` SVG and refactor error messages
frontend/packages/erd-core/src/components/ERDRenderer/ErrorDisplay/NetworkErrorDisplay.tsx
MrJack
SVG intoNetworkErrorDisplay
.NetworkErrorDisplay.module.css
Update CSS for improved error display design
frontend/packages/erd-core/src/components/ERDRenderer/ErrorDisplay/NetworkErrorDisplay.module.css
page.tsx
Refactor error handling logic and messages
frontend/apps/erd-web/app/erd/p/[...slug]/page.tsx
instruction
messages.fresh-shirts-stare.md
Add changeset for patch updates
.changeset/fresh-shirts-stare.md
@liam-hq/erd-core
and@liam-hq/cli
.MrJack
SVG toNetworkError
.