hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
66 stars 40 forks source link

AdminAndModerators page refinement #6448

Open Israellund opened 5 months ago

Israellund commented 5 months ago

This is an extended ticket to account for scope creep from #6027

This ticket will: -clean up logic inside AdminsAndModerators.tsx around the useFetchAdminQuery -will instate new queries that refetch all users when scrolling through list of users, inside a community that has more than 100 members. -mobile view will be optimized through customization of these new stylings and specific components -longer imports will be changed to path aliases -fix spacing of "Members" -add hover functionality to change background color of individual names in Admins and Moderators panels

Marcin's updates to ticket: in UpgradeRolesForm.tsx -upgradeMember endpoint - move upgrade member logic to hook that will be in state/api/members, similarly to fetch admin in ManageRoles.tsx -upgradeMember endpoint - move remove role logic to hook that will be in state/api/members, similarly to fetch admin

masvelio commented 4 months ago

in UpgradeRolesForm.tsx

in ManageRoles.tsx