other modifications days ago

This commit is contained in:
José Salazar
2025-12-26 15:14:51 -05:00
parent ec496fa1ba
commit 5136b1d6b5
56 changed files with 16364 additions and 3094 deletions

View File

@@ -644,7 +644,7 @@ export default function EventFormWizard({ event, onSubmit, onRapidSubmit, isSubm
<SelectValue placeholder="Choose vendor for this order" />
</SelectTrigger>
<SelectContent>
{vendors.filter(v => v.approval_status === 'approved').map((vendor) => (
{vendors.filter(v => v.approval_status === 'APPROVED').map((vendor) => (
<SelectItem key={vendor.id} value={vendor.id}>
{vendor.legal_name || vendor.doing_business_as}
{currentUserData?.preferred_vendor_id === vendor.id && (

View File

@@ -128,14 +128,14 @@ export default function Teams() {
teamName: teamName,
ownerId: user.id, // CRITICAL: Links team to THIS user only
ownerName: user.fullName || user.email,
ownerRole: userRole, // Tracks which layer this team belongs to
ownerRole: userRole.toUpperCase(), // Tracks which layer this team belongs to
//email: user.email,
//phone: user.phone || "",
//total_members: 0,
//active_members: 0,
//total_hubs: 0,
favoriteStaff: 0,
blockedStaff: 0,
//favoriteStaff: 0,
//blockedStaff: 0,
//departments: [], // Initialize with an empty array for departments
});
@@ -826,7 +826,7 @@ export default function Teams() {
vendor: "Vendor Team",
workforce: "Workforce Team"
};
return titles[userRole] || "Team";
return titles[userRole] || "TEAM";
};
const getIsolatedSubtitle = () => {
@@ -934,9 +934,9 @@ export default function Teams() {
<path fillRule="evenodd" d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z" clipRule="evenodd" />
</svg>
<strong>Isolated Team:</strong> You can only see and manage YOUR team members.
{userRole === 'vendor' && " Procurement teams are NOT visible to you."}
{userRole === 'procurement' && " Vendor teams are NOT visible to you."}
{userRole === 'operator' && " Other layer teams are NOT visible to you."}
{userRole === 'VENDOR' && " Procurement teams are NOT visible to you."}
{userRole === 'PROCUREMENT' && " Vendor teams are NOT visible to you."}
{userRole === 'OPERATOR' && " Other layer teams are NOT visible to you."}
</p>
</div>