AdminPanel: Filter skill dropdown by character class when adding learned skills#714
Conversation
Co-authored-by: sven-n <5238610+sven-n@users.noreply.github.com> Agent-Logs-Url: https://github.com/MUnique/OpenMU/sessions/9575b009-a333-4e09-ab1a-ed79158655a5
|
@copilot When clicking the create button, the following error appears: |
…n SkillEntryCreationForm Co-authored-by: sven-n <5238610+sven-n@users.noreply.github.com> Agent-Logs-Url: https://github.com/MUnique/OpenMU/sessions/429c7ad2-eea4-4f25-9449-a18b3641ace5
Fixed in bef8f9d. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the user experience in the Admin Panel when managing character skills. It introduces a specialized skill creation form that intelligently filters the available skills based on the character's class, preventing users from selecting invalid skills. This is achieved by passing contextual owner information through the UI components and dynamically rendering the appropriate form. Additionally, a crash related to sorting skills by their localized names has been fixed, enhancing the stability of the skill selection process. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a helpful feature to the Admin Panel by filtering the skill dropdown based on the character's class when adding learned skills. This is achieved by creating a new SkillEntryCreationForm component and modifying ItemTable and ModalCreateNew to pass the character context. The implementation is logical and also includes a fix for a sorting-related crash. I've found one issue regarding incorrect pattern matching syntax in ItemTable.razor.cs which would prevent compilation. My feedback includes a specific suggestion to correct it.
|
@sven-n Unfortunately I hit an unexpected error while processing your comment. I've automatically reported this to GitHub. You can ask me to try again later by mentioning me in a new comment. If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: Sorry for the inconvenience! |
SkillEntryCreationForm.razorcomponent that filters skills by character classItemTable.razor.csto extract parent owner fromValueExpressionand pass toModalCreateNewModalCreateNew.razorto accept anOwnerparameter and useSkillEntryCreationFormwhen creatingSkillEntrywith aCharacterownerSkill.NameisLocalizedString(notIComparable); useGetName()extension to sort alphabeticallyOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.