Fix: Node client per-user order and UI table refresh after deletions#8
Open
cto-new[bot] wants to merge 2 commits intolegacyfrom
Open
Fix: Node client per-user order and UI table refresh after deletions#8cto-new[bot] wants to merge 2 commits intolegacyfrom
cto-new[bot] wants to merge 2 commits intolegacyfrom
Conversation
… on deletion Fixes an ordering bug when adding user access to a node client: new user-client option 'order' values are now set atomically to avoid duplicate or clashing order for multi-user scenarios. Additionally, Node, User, and ClashConfig delete mutations now explicitly trigger a UI refresh to ensure client state reflects recent deletions. Small error handling improvements for empty user-client queries. This prevents UI inconsistencies, order bugs, and improves reliability for multi-user administration flows. No breaking changes but improves correctness for user CRUD operations.
- Ensure admin subconverter table and forms auto-refresh on add, edit, or delete actions using router.refresh and mutation callbacks. - Improves UX by preventing stale data on all subconverter admin pages. - Maintains consistency with other admin resource tables.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR ensures that the admin UI for subconverters properly refreshes after create, edit, or delete actions, maintaining up-to-date data and a consistent experience across all resource management tables.
Details
router.refresh()method in successful mutation callbacks for both single-item forms and bulk operations.