Skip to content

Commit 70a3396

Browse files
authored
Merge pull request #1449 from topcoder-platform/dev
[PROD RELEASE] - Jan26
2 parents 31fdeba + 55b9d7b commit 70a3396

276 files changed

Lines changed: 15925 additions & 1492 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ workflows:
227227
only:
228228
- dev
229229
- mm-final-2025-reveal
230+
- engagements
230231
- HOTFIX-PM-3269
231232

232233
- deployQa:

craco.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = {
4545
'@profiles': resolve('src/apps/profiles/src'),
4646
'@wallet': resolve('src/apps/wallet/src'),
4747
'@walletAdmin': resolve('src/apps/wallet-admin/src'),
48+
'@engagements': resolve('src/apps/engagements/src'),
4849

4950
'@platform': resolve('src/apps/platform/src'),
5051
// aliases used in SCSS files

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
"webpack-merge": "^5.10.0"
216216
},
217217
"resolutions": {
218-
"@types/react": "18.0.35",
218+
"@types/react": "18.3.27",
219219
"string-width": "4.2.0",
220220
"node-fetch": "2.6.7",
221221
"nth-check": "2.0.1",

src/apps/accounts/src/settings/tabs/preferences/preferences.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable max-len */
22
export const newsletters: Array<{ id: string, name: string, desc: string }> = [
33
{
4-
desc: 'A weekly summary of available ways to earn, including gig work, challenges, and Thrive articles.',
4+
desc: 'A weekly summary of available ways to earn, including engagements, challenges, and Thrive articles.',
55
id: 'd0c48e9da3',
66
name: 'Work Opportunities',
77
},

src/apps/admin/src/lib/components/CopyButton/CopyButton.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
.copy-btn {
44
line-height: 0;
55

6-
padding: $sp-3 $sp-4;
7-
margin: 10;
6+
padding: 10px 0 !important;
7+
margin: 0 10px;
88
background: none;
99
border: none;
1010
border-radius: inherit;

src/apps/admin/src/lib/components/TermsAddForm/TermsAddForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import {
3030
} from '~/libs/ui'
3131
import { yupResolver } from '@hookform/resolvers/yup'
3232
import { EnvironmentConfig } from '~/config'
33+
import { FieldHtmlEditor } from '~/libs/shared'
3334

3435
import { FormAddWrapper } from '../common/FormAddWrapper'
3536
import { FormAddTerm } from '../../models'
3637
import { formAddTermSchema } from '../../utils'
3738
import { useManageAddTerm, useManageAddTermProps } from '../../hooks'
38-
import { FieldHtmlEditor } from '../common/FieldHtmlEditor'
3939

4040
import styles from './TermsAddForm.module.scss'
4141

src/apps/admin/src/lib/services/payments.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function getMembersByIds(userIds: string[]): Promise<Array<{ userId
6868
perPage: userIds.length,
6969
userIds,
7070
},
71-
{ arrayFormat: 'repeat' },
71+
{ arrayFormat: userIds.length === 1 ? 'brackets' : 'repeat' },
7272
)
7373
return xhrGetAsync<Array<{ userId: string; handle: string }>>(
7474
`${EnvironmentConfig.API.V6}/members?${query}`,

src/apps/calendar/src/CalendarApp.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FC, useContext, useEffect, useMemo } from 'react'
22
import { Outlet, Routes } from 'react-router-dom'
33

4-
import { routerContext, RouterContextData } from '~/libs/core'
4+
import { ProfileProvider, routerContext, RouterContextData } from '~/libs/core'
55

66
import { CalendarContextProvider, Layout, SWRConfigProvider } from './lib'
77
import { toolTitle } from './calendar-app.routes'
@@ -19,14 +19,16 @@ const CalendarApp: FC = () => {
1919
}, [])
2020

2121
return (
22-
<CalendarContextProvider>
23-
<SWRConfigProvider>
24-
<Layout>
25-
<Outlet />
26-
<Routes>{childRoutes}</Routes>
27-
</Layout>
28-
</SWRConfigProvider>
29-
</CalendarContextProvider>
22+
<ProfileProvider>
23+
<CalendarContextProvider>
24+
<SWRConfigProvider>
25+
<Layout>
26+
<Outlet />
27+
<Routes>{childRoutes}</Routes>
28+
</Layout>
29+
</SWRConfigProvider>
30+
</CalendarContextProvider>
31+
</ProfileProvider>
3032
)
3133
}
3234

src/apps/calendar/src/pages/personal-calendar/PersonalCalendarPage.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { addMonths, endOfMonth, startOfMonth, subMonths } from 'date-fns'
22
import { FC, useCallback, useContext, useEffect, useMemo, useState } from 'react'
33

4+
import { useProfileContext } from '~/libs/core'
45
import { Button } from '~/libs/ui'
56

67
import { Calendar, CalendarLegend, MonthNavigation } from '../../lib/components'
@@ -12,6 +13,7 @@ import styles from './PersonalCalendarPage.module.scss'
1213

1314
const PersonalCalendarPage: FC = () => {
1415
const calendarContext = useContext(CalendarContext)
16+
const profileContext = useProfileContext()
1517
const [currentDate, setCurrentDate] = useState<Date>(new Date())
1618
const [selectedDates, setSelectedDates] = useState<Set<string>>(new Set())
1719
const leaveDatesState = useFetchLeaveDates()
@@ -107,14 +109,35 @@ const PersonalCalendarPage: FC = () => {
107109
return `${count} date${count > 1 ? 's' : ''} selected`
108110
}, [selectedDates])
109111

112+
const profile = profileContext.profile
113+
const displayName = useMemo(() => {
114+
const firstName = profile?.firstName?.trim()
115+
const lastName = profile?.lastName?.trim()
116+
const fullName = [firstName, lastName]
117+
.filter(Boolean)
118+
.join(' ')
119+
120+
return (
121+
fullName
122+
|| profile?.handle
123+
|| calendarContext.loginUserInfo?.handle
124+
|| 'Your calendar'
125+
)
126+
}, [
127+
calendarContext.loginUserInfo?.handle,
128+
profile?.firstName,
129+
profile?.handle,
130+
profile?.lastName,
131+
])
132+
110133
const errorMessage = actionError || (error ? 'Something went wrong. Please try again.' : '')
111134

112135
return (
113136
<div className={styles.page}>
114137
<header className={styles.header}>
115138
<p className={styles.subtitle}>Welcome back</p>
116139
<h2 className={styles.title}>
117-
{calendarContext.loginUserInfo?.handle ?? 'Your calendar'}
140+
{displayName}
118141
</h2>
119142
</header>
120143

src/apps/customer-portal/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src'

0 commit comments

Comments
 (0)