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
Currently, when there are no active team members for a project on the Teams tab, the UI displays a blank area, leading to a poor user experience (as shown in the attached screenshot). A placeholder message such as "No team members available" or "This project currently has no active team members" should be displayed instead of leaving the section empty. This enhancement will improve the user experience by providing clear feedback and context to the user.
Suggested Fix
Update the Teams tab component to include a conditional render for cases where the users array is empty. Add a user-friendly message to indicate the absence of active team members.
Code Snippet for Fix
return(<><divclassName="absolute right-4 top-4"><EditTeamButtonproject={project}/></div>{users.length===0 ? (<pclassName="text-center text-gray-500">No team members available for this project.</p>) : (<divclassName={cn("mx-auto grid max-w-md grid-cols-1 gap-4",users.length>1&&"sm:grid-cols-2",)}>{users.map((user)=>(<divkey={user.username}className="flex items-center space-x-4"><Linkhref={`/${user.username}`}className="flex-none"><imgsrc={user.image}alt="avatar"className="h-14 w-14 rounded-full"/></Link><divclassName="flex flex-col space-y-0.5"><Linkhref={`/${user.username}`}className="font-medium text-gray-700 underline-offset-4 hover:underline">{user.name}</Link><pclassName="text-sm text-gray-500">{user.role}</p></div></div>))}</div>)}</>);
Steps to Reproduce
Go to the Open Source Gallery website.
Navigate to a project with no active team members.
Click on the "Team" tab.
Observe the blank display area when the team list is empty.
The text was updated successfully, but these errors were encountered:
Description
Currently, when there are no active team members for a project on the Teams tab, the UI displays a blank area, leading to a poor user experience (as shown in the attached screenshot). A placeholder message such as "No team members available" or "This project currently has no active team members" should be displayed instead of leaving the section empty. This enhancement will improve the user experience by providing clear feedback and context to the user.
Suggested Fix
Update the Teams tab component to include a conditional render for cases where the
users
array is empty. Add a user-friendly message to indicate the absence of active team members.Code Snippet for Fix
Steps to Reproduce
The text was updated successfully, but these errors were encountered: