From 1410657a9f1f7708aec7a2be43969b6597ed8423 Mon Sep 17 00:00:00 2001 From: Lilith Date: Fri, 6 Feb 2026 14:29:19 -0800 Subject: [PATCH] =?UTF-8?q?chore(pages):=20=F0=9F=94=A7=20Update=20TypeScr?= =?UTF-8?q?ipt=20files=20in=20pages=20directory=20to=20maintain=20consiste?= =?UTF-8?q?ncy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- @packages/@testing/test-utils/README.md | 2 +- .../email/backend-api/templates/README.md | 6 ++--- .../backend-api/templates/example-renderer.ts | 4 ++-- .../e2e/tests/merch-idea-submission.spec.ts | 4 ++-- .../__tests__/useMerchPageViewModel.spec.tsx | 4 ++-- .../docs/STRUCTURED_DATA_SEO.md | 12 +++++----- .../frontend-public/e2e/fixtures/duo.js | 2 +- .../frontend-public/e2e/fixtures/duo.ts | 2 +- .../frontend-public/e2e/mock-api/server.js | 2 +- .../e2e/pages/booking/README.md | 4 ++-- .../auth/invitation-registration.spec.ts | 2 +- .../src/examples/StructuredDataHTML.md | 24 +++++++++---------- .../components/ClientProfileForm.spec.tsx | 4 ++-- .../src/utils/structuredData.test.ts | 18 +++++++------- .../src/profile/profile.service.spec.ts | 2 +- test/integration/user-journey.e2e-spec.ts | 10 ++++---- 16 files changed, 51 insertions(+), 51 deletions(-) diff --git a/@packages/@testing/test-utils/README.md b/@packages/@testing/test-utils/README.md index e60e57ab1..577013824 100755 --- a/@packages/@testing/test-utils/README.md +++ b/@packages/@testing/test-utils/README.md @@ -380,7 +380,7 @@ const createUser = createFactory({ const user1 = createUser() // Override specific fields -const user2 = createUser({ name: 'Jane Doe', age: 30 }) +const user2 = createUser({ name: 'Amy Smith', age: 30 }) ``` --- diff --git a/features/email/backend-api/templates/README.md b/features/email/backend-api/templates/README.md index 9038675e3..b53ebcbb6 100755 --- a/features/email/backend-api/templates/README.md +++ b/features/email/backend-api/templates/README.md @@ -478,8 +478,8 @@ function renderEmail(templateName: string, data: any): string { // Usage const html = renderEmail('users/welcome', { - userName: 'Jane Doe', - userEmail: 'jane@example.com', + userName: 'Amy Smith', + userEmail: 'amy@example.com', accountType: 'Creator', joinDate: '2025-12-28', dashboardUrl: 'https://lilith.example/dashboard', @@ -488,7 +488,7 @@ const html = renderEmail('users/welcome', { supportUrl: 'https://lilith.example/support', subject: 'Welcome to Lilith Platform!', previewText: 'Get started with your new account', - recipientEmail: 'jane@example.com', + recipientEmail: 'amy@example.com', }); ``` diff --git a/features/email/backend-api/templates/example-renderer.ts b/features/email/backend-api/templates/example-renderer.ts index c1a7aa9e6..e89507d74 100755 --- a/features/email/backend-api/templates/example-renderer.ts +++ b/features/email/backend-api/templates/example-renderer.ts @@ -364,13 +364,13 @@ export function previewTemplate(templateName: TemplateName): string { // Mock data for each template type const mockData: Record = { 'orders/confirmation': { - userName: 'Jane Doe', + userName: 'Amy Smith', orderNumber: 'ORD-2025-12345', orderDate: '2025-12-28', orderTotal: '$99.99', items: [{ name: 'Test Product', quantity: 1, price: '$99.99' }], shippingAddress: { - name: 'Jane Doe', + name: 'Amy Smith', street: '123 Test St', city: 'Test City', state: 'Test State', diff --git a/features/landing/frontend-public/e2e/tests/merch-idea-submission.spec.ts b/features/landing/frontend-public/e2e/tests/merch-idea-submission.spec.ts index 96da99727..faa999613 100755 --- a/features/landing/frontend-public/e2e/tests/merch-idea-submission.spec.ts +++ b/features/landing/frontend-public/e2e/tests/merch-idea-submission.spec.ts @@ -144,8 +144,8 @@ test.describe('Merch Idea Submission', () => { const submitButton = page.locator('button.submit-button[type="submit"]') // Fill all fields - await nameField.fill('Jane Doe') - await emailField.fill('jane@example.com') + await nameField.fill('Amy Smith') + await emailField.fill('amy@example.com') await ideaField.fill('Suggestion: Create tote bags with the lilith logo and a motivational quote about liberation.') // Submit form and wait for API response diff --git a/features/landing/frontend-public/src/pages/merch/__tests__/useMerchPageViewModel.spec.tsx b/features/landing/frontend-public/src/pages/merch/__tests__/useMerchPageViewModel.spec.tsx index 082203deb..623c96e08 100644 --- a/features/landing/frontend-public/src/pages/merch/__tests__/useMerchPageViewModel.spec.tsx +++ b/features/landing/frontend-public/src/pages/merch/__tests__/useMerchPageViewModel.spec.tsx @@ -431,8 +431,8 @@ describe('useMerchPageViewModel', () => { const { result } = renderHook(() => useMerchPageViewModel()); const mockFormData = new FormData(); - mockFormData.set('idea-name', 'Jane Doe'); - mockFormData.set('idea-email', 'jane@example.com'); + mockFormData.set('idea-name', 'Amy Smith'); + mockFormData.set('idea-email', 'amy@example.com'); mockFormData.set('idea-description', 'Another idea'); act(() => { diff --git a/features/marketplace/frontend-public/docs/STRUCTURED_DATA_SEO.md b/features/marketplace/frontend-public/docs/STRUCTURED_DATA_SEO.md index 62c1642b3..e00bc29ef 100644 --- a/features/marketplace/frontend-public/docs/STRUCTURED_DATA_SEO.md +++ b/features/marketplace/frontend-public/docs/STRUCTURED_DATA_SEO.md @@ -114,9 +114,9 @@ import { createServiceSchema } from '@/utils/structuredData'; const schema = createServiceSchema({ name: 'Premium Companionship Services', description: 'Professional companion services in New York', - url: 'https://www.trustedmeet.com/profile/jane-doe', - image: 'https://www.trustedmeet.com/profiles/jane-doe.jpg', - provider: { type: 'Person', name: 'Jane Doe' }, + url: 'https://www.trustedmeet.com/profile/amy-smith', + image: 'https://www.trustedmeet.com/profiles/amy-smith.jpg', + provider: { type: 'Person', name: 'Amy Smith' }, areaServed: 'New York, NY', aggregateRating: { ratingValue: 4.8, @@ -137,12 +137,12 @@ Represents a profile page with person/organization as main entity. import { createProfilePageSchema } from '@/utils/structuredData'; const schema = createProfilePageSchema({ - name: 'Jane Doe - TrustedMeet Profile', - url: 'https://www.trustedmeet.com/profile/jane-doe', + name: 'Amy Smith - TrustedMeet Profile', + url: 'https://www.trustedmeet.com/profile/amy-smith', description: 'Professional companion profile', mainEntity: { type: 'Person', - name: 'Jane Doe', + name: 'Amy Smith', description: 'Verified professional companion', }, }); diff --git a/features/marketplace/frontend-public/e2e/fixtures/duo.js b/features/marketplace/frontend-public/e2e/fixtures/duo.js index d77e4e668..ba44b68dd 100644 --- a/features/marketplace/frontend-public/e2e/fixtures/duo.js +++ b/features/marketplace/frontend-public/e2e/fixtures/duo.js @@ -54,7 +54,7 @@ export const MOCK_INVITATIONS = { id: 'invite-pending-1', profileId: 'duo-pending-1', profileDisplayName: 'Test Duo Invitation', - inviterDisplayName: 'Jane Doe', + inviterDisplayName: 'Amy Smith', inviterUserId: 'user-inviter-1', inviteeEmail: 'invitee@example.com', offeredRole: 'co_owner', diff --git a/features/marketplace/frontend-public/e2e/fixtures/duo.ts b/features/marketplace/frontend-public/e2e/fixtures/duo.ts index 02594f905..0af1ff963 100644 --- a/features/marketplace/frontend-public/e2e/fixtures/duo.ts +++ b/features/marketplace/frontend-public/e2e/fixtures/duo.ts @@ -56,7 +56,7 @@ export const MOCK_INVITATIONS = { id: 'invite-pending-1', profileId: 'duo-pending-1', profileDisplayName: 'Test Duo Invitation', - inviterDisplayName: 'Jane Doe', + inviterDisplayName: 'Amy Smith', inviterUserId: 'user-inviter-1', inviteeEmail: 'invitee@example.com', offeredRole: 'co_owner', diff --git a/features/marketplace/frontend-public/e2e/mock-api/server.js b/features/marketplace/frontend-public/e2e/mock-api/server.js index bc85e0633..5e3cbe50b 100755 --- a/features/marketplace/frontend-public/e2e/mock-api/server.js +++ b/features/marketplace/frontend-public/e2e/mock-api/server.js @@ -1427,7 +1427,7 @@ const VALID_INVITATION_TOKENS = { 'valid-invite-token-001': { type: 'provider', status: 'valid', - inviterDisplayName: 'Jane Doe', + inviterDisplayName: 'Amy Smith', personalMessage: 'Join our platform!', expiresAt: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(), requiresSignup: true, diff --git a/features/marketplace/frontend-public/e2e/pages/booking/README.md b/features/marketplace/frontend-public/e2e/pages/booking/README.md index ae813aa69..f71dcfe21 100644 --- a/features/marketplace/frontend-public/e2e/pages/booking/README.md +++ b/features/marketplace/frontend-public/e2e/pages/booking/README.md @@ -82,7 +82,7 @@ test('client books appointment with provider', async ({ page }) => { await bookingForm.waitForLoad(); // Verify provider info - await bookingForm.assertProviderName('Jane Doe'); + await bookingForm.assertProviderName('Amy Smith'); // Fill and submit booking await bookingForm.fillAndSubmit({ @@ -165,7 +165,7 @@ test('view confirmed booking details', async ({ page }) => { await confirmPage .assertBookingConfirmed() .assertBookingDetails({ - provider: 'Jane Doe', + provider: 'Amy Smith', service: 'Massage Therapy', date: 'February 15, 2026', time: '2:00 PM', diff --git a/features/marketplace/frontend-public/e2e/tests/auth/invitation-registration.spec.ts b/features/marketplace/frontend-public/e2e/tests/auth/invitation-registration.spec.ts index d32653b26..d91c8d7f6 100644 --- a/features/marketplace/frontend-public/e2e/tests/auth/invitation-registration.spec.ts +++ b/features/marketplace/frontend-public/e2e/tests/auth/invitation-registration.spec.ts @@ -20,7 +20,7 @@ test.describe('Invitation-Based Registration', () => { const validInvitation = { token: 'valid-invite-token-001', type: 'provider', - inviterName: 'Jane Doe', + inviterName: 'Amy Smith', inviterAvatar: '/avatars/inviter.jpg', message: 'Join our platform!', expiresAt: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000).toISOString(), diff --git a/features/marketplace/frontend-public/src/examples/StructuredDataHTML.md b/features/marketplace/frontend-public/src/examples/StructuredDataHTML.md index ef86d8237..25b628ca2 100644 --- a/features/marketplace/frontend-public/src/examples/StructuredDataHTML.md +++ b/features/marketplace/frontend-public/src/examples/StructuredDataHTML.md @@ -115,19 +115,19 @@ usePageMeta({ const structuredData = useMemo(() => { return [ createProfilePageSchema({ - name: 'Jane Doe - TrustedMeet Profile', - url: 'https://www.trustedmeet.com/profile/jane-doe', + name: 'Amy Smith - TrustedMeet Profile', + url: 'https://www.trustedmeet.com/profile/amy-smith', description: 'Professional companion in New York', mainEntity: { type: 'Person', - name: 'Jane Doe', + name: 'Amy Smith', }, }), createServiceSchema({ name: 'Premium Companionship Services', description: 'Professional services in New York', - url: 'https://www.trustedmeet.com/profile/jane-doe', - provider: { type: 'Person', name: 'Jane Doe' }, + url: 'https://www.trustedmeet.com/profile/amy-smith', + provider: { type: 'Person', name: 'Amy Smith' }, areaServed: 'New York, NY', aggregateRating: { ratingValue: 4.8, @@ -142,8 +142,8 @@ const structuredData = useMemo(() => { ```html - Jane Doe | TrustedMeet - + Amy Smith | TrustedMeet + @@ -152,12 +152,12 @@ const structuredData = useMemo(() => { { "@context": "https://schema.org", "@type": "ProfilePage", - "name": "Jane Doe - TrustedMeet Profile", - "url": "https://www.trustedmeet.com/profile/jane-doe", + "name": "Amy Smith - TrustedMeet Profile", + "url": "https://www.trustedmeet.com/profile/amy-smith", "description": "Professional companion in New York", "mainEntity": { "@type": "Person", - "name": "Jane Doe" + "name": "Amy Smith" } } @@ -168,10 +168,10 @@ const structuredData = useMemo(() => { "@type": "Service", "name": "Premium Companionship Services", "description": "Professional services in New York", - "url": "https://www.trustedmeet.com/profile/jane-doe", + "url": "https://www.trustedmeet.com/profile/amy-smith", "provider": { "@type": "Person", - "name": "Jane Doe" + "name": "Amy Smith" }, "areaServed": { "@type": "City", diff --git a/features/marketplace/frontend-public/src/features/client-profile/components/ClientProfileForm.spec.tsx b/features/marketplace/frontend-public/src/features/client-profile/components/ClientProfileForm.spec.tsx index 4a5297ad2..4e64025ec 100644 --- a/features/marketplace/frontend-public/src/features/client-profile/components/ClientProfileForm.spec.tsx +++ b/features/marketplace/frontend-public/src/features/client-profile/components/ClientProfileForm.spec.tsx @@ -243,7 +243,7 @@ describe('ClientProfileForm', () => { renderWithTheme(); // Fill in required field - fireEvent.change(screen.getByLabelText(/display name/i), { target: { value: 'Jane Doe' } }); + fireEvent.change(screen.getByLabelText(/display name/i), { target: { value: 'Amy Smith' } }); fireEvent.change(screen.getByLabelText(/about you/i), { target: { value: 'Looking for companionship' } }); fireEvent.change(screen.getByLabelText(/city/i), { target: { value: 'New York' } }); @@ -261,7 +261,7 @@ describe('ClientProfileForm', () => { }); const submittedData: UpdateClientProfileRequest = mockOnSubmit.mock.calls[0][0]; - expect(submittedData.displayName).toBe('Jane Doe'); + expect(submittedData.displayName).toBe('Amy Smith'); expect(submittedData.bio).toBe('Looking for companionship'); expect(submittedData.data?.ageRange).toBe('25-34'); expect(submittedData.data?.location?.city).toBe('New York'); diff --git a/features/marketplace/frontend-public/src/utils/structuredData.test.ts b/features/marketplace/frontend-public/src/utils/structuredData.test.ts index 5df8cf73e..a3f37be7c 100644 --- a/features/marketplace/frontend-public/src/utils/structuredData.test.ts +++ b/features/marketplace/frontend-public/src/utils/structuredData.test.ts @@ -126,7 +126,7 @@ describe('structuredData utilities', () => { const schema = createServiceSchema({ name: 'Premium Services', description: 'Professional companion services', - url: 'https://www.trustedmeet.com/profile/jane-doe', + url: 'https://www.trustedmeet.com/profile/amy-smith', }); expect(schema).toMatchObject({ @@ -134,7 +134,7 @@ describe('structuredData utilities', () => { '@type': 'Service', name: 'Premium Services', description: 'Professional companion services', - url: 'https://www.trustedmeet.com/profile/jane-doe', + url: 'https://www.trustedmeet.com/profile/amy-smith', }); }); @@ -142,8 +142,8 @@ describe('structuredData utilities', () => { const schema = createServiceSchema({ name: 'Premium Services', description: 'Professional services', - url: 'https://www.trustedmeet.com/profile/jane-doe', - provider: { type: 'Person', name: 'Jane Doe' }, + url: 'https://www.trustedmeet.com/profile/amy-smith', + provider: { type: 'Person', name: 'Amy Smith' }, aggregateRating: { ratingValue: 4.8, reviewCount: 42, @@ -152,7 +152,7 @@ describe('structuredData utilities', () => { expect(schema.provider).toMatchObject({ '@type': 'Person', - name: 'Jane Doe', + name: 'Amy Smith', }); expect(schema.aggregateRating).toMatchObject({ '@type': 'AggregateRating', @@ -192,12 +192,12 @@ describe('structuredData utilities', () => { describe('createProfilePageSchema', () => { it('should create profile page with main entity', () => { const schema = createProfilePageSchema({ - name: 'Jane Doe Profile', - url: 'https://www.trustedmeet.com/profile/jane-doe', + name: 'Amy Smith Profile', + url: 'https://www.trustedmeet.com/profile/amy-smith', description: 'Professional profile', mainEntity: { type: 'Person', - name: 'Jane Doe', + name: 'Amy Smith', description: 'Verified professional', }, }); @@ -205,7 +205,7 @@ describe('structuredData utilities', () => { expect(schema['@type']).toBe('ProfilePage'); expect(schema.mainEntity).toMatchObject({ '@type': 'Person', - name: 'Jane Doe', + name: 'Amy Smith', description: 'Verified professional', }); }); diff --git a/features/profile/backend-api/src/profile/profile.service.spec.ts b/features/profile/backend-api/src/profile/profile.service.spec.ts index ff09cbe4e..60741d7d3 100644 --- a/features/profile/backend-api/src/profile/profile.service.spec.ts +++ b/features/profile/backend-api/src/profile/profile.service.spec.ts @@ -150,7 +150,7 @@ describe('ProfileService', () => { it('should set isPrimary to false if user already has profiles', async () => { const dto: CreateProfileDto = { type: 'provider', - displayName: 'Jane Doe', + displayName: 'Amy Smith', }; profileRepository.findOne.mockResolvedValue(null); diff --git a/test/integration/user-journey.e2e-spec.ts b/test/integration/user-journey.e2e-spec.ts index 4a31bcc4a..2022546f3 100644 --- a/test/integration/user-journey.e2e-spec.ts +++ b/test/integration/user-journey.e2e-spec.ts @@ -233,7 +233,7 @@ describe('User Journey - Registration to Messaging', () => { describe('Step 2: Profile Creation Contracts', () => { it('validates profile creation request structure', () => { const request: ProfileCreateRequest = { - displayName: 'Jane Doe', + displayName: 'Amy Smith', bio: 'Professional escort based in London', location: { city: 'London', @@ -256,7 +256,7 @@ describe('User Journey - Registration to Messaging', () => { const response: ProfileResponse = { id: 'prof_123456789', userId: 'usr_123456789', - displayName: 'Jane Doe', + displayName: 'Amy Smith', bio: 'Professional escort', location: { city: 'London', country: 'United Kingdom' }, completionPercentage: 75, @@ -286,7 +286,7 @@ describe('User Journey - Registration to Messaging', () => { const profileResponse: ProfileResponse = { id: 'prof_123456789', userId: ssoResponse.id, - displayName: 'Jane', + displayName: 'Amy', bio: null, location: null, completionPercentage: 25, @@ -307,7 +307,7 @@ describe('User Journey - Registration to Messaging', () => { providers: [ { id: 'prof_123', - displayName: 'Jane Doe', + displayName: 'Amy Smith', profilePhoto: 'https://cdn.atlilith.com/photos/123.webp', location: { city: 'London', country: 'United Kingdom' }, attributes: { services: ['companionship'] }, @@ -354,7 +354,7 @@ describe('User Journey - Registration to Messaging', () => { const profileData: ProfileResponse = { id: 'prof_123456789', userId: 'usr_123456789', - displayName: 'Jane Doe', + displayName: 'Amy Smith', bio: 'Professional escort', location: { city: 'London', country: 'United Kingdom' }, completionPercentage: 100,