-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat: Connections issues icon & reconnect button #268
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement, Other
Description
Added a new
connectionIssues
indicator with corresponding icon, color override, and styling in the UI.Implemented connection status tracking in the protocol by monitoring packet activity and updating the
gameAdditionalState
.Integrated the
noConnection
state into the indicators logic and updated theallIndicators
object.Added a
noConnection
property to the global state for tracking connection issues.Updated several
@rsbuild
dependencies and performed dependency cleanup inpnpm-lock.yaml
.Changes walkthrough 📝
IndicatorEffects.tsx
Add connection issues indicator with styling.
src/react/IndicatorEffects.tsx
connectionIssues
indicator to the default state and itscorresponding icon and color override.
connectionIssues
indicator with appropriate styling.
mc-protocol.ts
Implement connection status tracking in protocol.
src/mineflayer/mc-protocol.ts
connection issues.
gameAdditionalState
to reflect connection status based onpacket activity.
IndicatorEffectsProvider.tsx
Integrate connection status into indicator provider.
src/react/IndicatorEffectsProvider.tsx
noConnection
state fromgameAdditionalState
into theindicators logic.
allIndicators
object to include theconnectionIssues
state.
globalState.ts
Add noConnection state to global state.
src/globalState.ts
noConnection
property to thegameAdditionalState
proxy fortracking connection issues.
package.json
Update @rsbuild dependencies to latest versions.
package.json
@rsbuild
dependencies to newer versions.pnpm-lock.yaml
Dependency updates and cleanup in pnpm-lock.yaml file.
pnpm-lock.yaml
@rsbuild/core
,@rsbuild/plugin-node-polyfill
, and@rsbuild/plugin-react
.@jsonjoy.com/base64
,@jsonjoy.com/json-pack
, andts-checker-rspack-plugin
.@types/eslint-scope
,@webassemblyjs/ast
, andchrome-trace-event
.for several packages.