You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto-reload after successfully adding a member was removed, but there is no alternative state update or data fetching to refresh the members list or admin status in the UI.
}finally{// close the overlaycloseOverlay(type,success);}};
Instead of reloading the entire window to show updated by/timestamps, call a member‐list refetch or update function after closing the overlay. This will refresh just the data you need without a full page reload.
Why: Adding a targeted props.refetchMembers() avoids a full page reload and efficiently updates the member list, improving UX and performance without major risk.
Medium
Reset admin toggle state
Reset the admin toggle state after a successful add so that the switch isn’t left on for the next addition. Call your state setter (e.g. setIsAdmin(false)) immediately after closing.
Why: Clearing the admin toggle with setIsAdmin(false) prevents unintended state carry-over, but it’s a minor UI convenience and not critical to core functionality.
@ishumita
You mentioned you have added the refresh so that the updated by and timestamp show up, but even if we don't refresh the page it is already behaving like that. So, I have removed the refresh as the Admin was turning off because of it, and we were getting error.
Stop automatic page reload after adding a member so the admin toggle state persists.
to commit the new content to the CHANGELOG.md file, please type:
'/update_changelog --pr_update_changelog.push_changelog_changes=true'
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
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.
Description
feat(client): after adding member, admin doesn't turn off
Changes Made
After Adding user, the page doesn't get refreshed automatically. So, 'Admin On' remains as it is.
How to Test