Skip to content
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

fix: optimize chat + various small fixes #1716

Merged
merged 5 commits into from
Sep 27, 2024
Merged

fix: optimize chat + various small fixes #1716

merged 5 commits into from
Sep 27, 2024

Conversation

edisontim
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eternum ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 5:08pm

Copy link

Preparing PR description...

Copy link

Preparing review...

Copy link
Contributor

@mentatbot mentatbot bot left a comment

Choose a reason for hiding this comment

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

This PR includes significant optimizations to the Chat component, improves input handling, and makes various small fixes across the application. The changes look good overall, but there are a few points to consider:

  1. Remove the console.log in NumberInput component.
  2. Verify the intentional removal of the 'rank' sorting in the Guilds component.
  3. Consider adding comments to explain complex logic in the Chat and InputField components.
  4. Ensure all uses of TextInput have been updated to work without the 'value' prop.
  5. Verify that the simplified battle health calculation doesn't affect game balance.

Overall, these changes should improve performance and maintainability. Good job on the refactoring!

Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!

client/src/ui/elements/NumberInput.tsx Outdated Show resolved Hide resolved
client/src/ui/modules/chat/Chat.tsx Show resolved Hide resolved
client/src/ui/modules/chat/InputField.tsx Show resolved Hide resolved
client/src/ui/elements/TextInput.tsx Show resolved Hide resolved
client/src/dojo/modelManager/BattleManager.ts Show resolved Hide resolved
client/src/ui/elements/NumberInput.tsx Outdated Show resolved Hide resolved
client/src/ui/elements/NumberInput.tsx Outdated Show resolved Hide resolved
client/src/ui/modules/chat/InputField.tsx Outdated Show resolved Hide resolved
client/src/ui/modules/chat/InputField.tsx Outdated Show resolved Hide resolved
@bob0005 bob0005 merged commit e87b442 into main Sep 27, 2024
6 checks passed
@bob0005 bob0005 deleted the fix/optimize-chat branch September 27, 2024 18:45
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