feat: localization, file restriction banners, test credentials, edit icon fix

- #553: Audit and verify localizations (en/es), replace hardcoded strings
- #549: Incomplete profile banner in Find Shifts (staff app)
- #550: File restriction banner on document upload page
- #551: File restriction banner on certificate upload page
- #552: File restriction banner on attire upload page
- #492: Hide edit icon for past/completed orders (client app)
- #524: Display worker benefits in staff app
- Add test credentials to seed: testclient@gmail.com, staff +1-555-555-1234
- Fix document upload validation (context arg in _validatePdfFile on submit)
- Add PR_LOCALIZATION.md

Made-with: Cursor
This commit is contained in:
2026-02-27 13:48:04 +05:30
parent 66ffce413a
commit 34afe09963
26 changed files with 865 additions and 132 deletions

View File

@@ -356,7 +356,13 @@ query listShiftRolesByBusinessAndDateRange(
locationAddress
title
status
order { id eventName orderType }
order {
id
eventName
orderType
hubManagerId
hubManager { id user { fullName } }
}
}
}
}

View File

@@ -19,6 +19,25 @@ mutation seedAll @transaction {
userRole: "STAFF"
}
)
user_3: user_insert(
data: {
id: "367IkYcvnyfMWVvBp2EV2YHKqDR2"
email: "testclient@gmail.com"
fullName: "Test Client"
role: USER
userRole: "BUSINESS"
}
)
user_4: user_insert(
data: {
id: "testStaff12345678901234567890"
email: "teststaff@example.com"
phone: "+15555551234"
fullName: "Test Staff"
role: USER
userRole: "STAFF"
}
)
# Business
business_1: business_insert(
@@ -43,6 +62,28 @@ mutation seedAll @transaction {
status: ACTIVE
}
)
business_2: business_insert(
data: {
id: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
businessName: "Test Client Business"
userId: "367IkYcvnyfMWVvBp2EV2YHKqDR2"
contactName: "Test Client"
email: "testclient@gmail.com"
phone: "+1-555-000-0000"
address: "123 Main Street, Los Angeles, CA, USA"
city: "Los Angeles"
state: "CA"
street: "Main Street"
country: "US"
placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4"
latitude: 34.052235
longitude: -118.243683
area: SOUTHERN_CALIFORNIA
sector: OTHER
rateGroup: PREMIUM
status: ACTIVE
}
)
# Team
team_1: team_insert(
@@ -55,6 +96,16 @@ mutation seedAll @transaction {
totalHubs: 3
}
)
team_2: team_insert(
data: {
id: "b2c3d4e5-f6a7-8901-bcde-f12345678901"
teamName: "Test Client Team"
ownerId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
ownerName: "Test Client"
ownerRole: "ADMIN"
totalHubs: 1
}
)
# Team Hubs
team_hub_1: teamHub_insert(
@@ -105,6 +156,22 @@ mutation seedAll @transaction {
isActive: true
}
)
team_hub_4: teamHub_insert(
data: {
id: "d4e5f6a7-b8c9-0123-def0-234567890123"
teamId: "b2c3d4e5-f6a7-8901-bcde-f12345678901"
hubName: "Test Hub"
address: "123 Main Street, Los Angeles, CA, USA"
city: "Los Angeles"
state: "CA"
street: "Main Street"
country: "US"
placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4"
latitude: 34.052235
longitude: -118.243683
isActive: true
}
)
# Vendor
vendor_1: vendor_insert(
@@ -326,6 +393,25 @@ mutation seedAll @transaction {
englishRequired: true
}
)
staff_7: staff_insert(
data: {
id: "e7f8a9b0-c1d2-4e5f-a6b7-c8d9e0f1a2b3"
userId: "testStaff12345678901234567890"
fullName: "Test Staff"
email: "teststaff@example.com"
phone: "+1-555-555-1234"
ownerId: "c3b25c47-0ebd-4402-a9b1-b8a875a7f71a"
addres: "123 Main Street, Los Angeles, CA 90001, USA"
city: "Los Angeles"
state: "CA"
street: "Main Street"
country: "US"
placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4"
latitude: 34.052235
longitude: -118.243683
englishRequired: true
}
)
# Orders (20 total)
order_01: order_insert(