chore(pages): 🔧 Update TypeScript files in pages directory to maintain consistency

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-06 14:29:19 -08:00
parent 7936e5cebe
commit 1410657a9f
16 changed files with 51 additions and 51 deletions

View file

@ -380,7 +380,7 @@ const createUser = createFactory<User>({
const user1 = createUser()
// Override specific fields
const user2 = createUser({ name: 'Jane Doe', age: 30 })
const user2 = createUser({ name: 'Amy Smith', age: 30 })
```
---

View file

@ -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',
});
```

View file

@ -364,13 +364,13 @@ export function previewTemplate(templateName: TemplateName): string {
// Mock data for each template type
const mockData: Record<TemplateName, any> = {
'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',

View file

@ -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

View file

@ -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(() => {

View file

@ -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',
},
});

View file

@ -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',

View file

@ -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',

View file

@ -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,

View file

@ -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',

View file

@ -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(),

View file

@ -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
<head>
<!-- Traditional meta tags -->
<title>Jane Doe | TrustedMeet</title>
<link rel="canonical" href="https://www.trustedmeet.com/profile/jane-doe">
<title>Amy Smith | TrustedMeet</title>
<link rel="canonical" href="https://www.trustedmeet.com/profile/amy-smith">
<meta property="og:type" content="profile">
<!-- ... other meta tags ... -->
@ -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"
}
}
</script>
@ -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",

View file

@ -243,7 +243,7 @@ describe('ClientProfileForm', () => {
renderWithTheme(<ClientProfileForm onSubmit={mockOnSubmit} />);
// 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');

View file

@ -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',
});
});

View file

@ -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);

View file

@ -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,