Skip to content

Commit 5f34220

Browse files
committed
Merge branch 'dev' of github.com:topcoder-platform/platform-ui into feat/ai-workflows
2 parents 6b054cf + a67129b commit 5f34220

File tree

221 files changed

+15879
-8553
lines changed

Some content is hidden

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

221 files changed

+15879
-8553
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ jobs:
139139
environment:
140140
DEPLOY_ENV: "QA"
141141
LOGICAL_ENV: "qa"
142-
APPNAME: "platform-ui-mvp-v6"
142+
APPNAME: "platform-ui-mvp"
143143
steps: *build_steps
144144

145145
build-prod:
146146
<<: *defaults
147147
environment:
148148
DEPLOY_ENV: "PROD"
149149
LOGICAL_ENV: "prod"
150-
APPNAME: "platform-ui-mvp-v6"
150+
APPNAME: "platform-ui-mvp"
151151
steps: *build_steps
152152

153153
# Just tests commited code.
@@ -157,7 +157,7 @@ jobs:
157157
DEPLOY_ENV: "DEV"
158158
LOGICAL_ENV: "dev"
159159
ENABLE_CACHE: true
160-
APPNAME: "platform-ui-mvp-v6"
160+
APPNAME: "platform-ui-mvp"
161161
steps: *deploy_steps
162162

163163
deployQa:
@@ -166,7 +166,7 @@ jobs:
166166
DEPLOY_ENV: "QA"
167167
LOGICAL_ENV: "qa"
168168
ENABLE_CACHE: true
169-
APPNAME: "platform-ui-mvp-v6"
169+
APPNAME: "platform-ui-mvp"
170170
steps: *deploy_steps
171171

172172
deployProd:
@@ -175,7 +175,7 @@ jobs:
175175
DEPLOY_ENV: "PROD"
176176
LOGICAL_ENV: "prod"
177177
ENABLE_CACHE: true
178-
APPNAME: "platform-ui-mvp-v6"
178+
APPNAME: "platform-ui-mvp"
179179
steps: *deploy_steps
180180

181181
workflows:

.github/workflows/trivy.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Trivy Scanner
2+
3+
permissions:
4+
contents: read
5+
security-events: write
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- dev
11+
pull_request:
12+
jobs:
13+
trivy-scan:
14+
name: Use Trivy
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Run Trivy scanner in repo mode
21+
uses: aquasecurity/trivy-action@0.33.1
22+
with:
23+
scan-type: "fs"
24+
ignore-unfixed: true
25+
format: "sarif"
26+
output: "trivy-results.sarif"
27+
severity: "CRITICAL,HIGH,UNKNOWN"
28+
scanners: vuln,secret,misconfig,license
29+
github-pat: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Upload Trivy scan results to GitHub Security tab
32+
uses: github/codeql-action/upload-sarif@v3
33+
with:
34+
sarif_file: "trivy-results.sarif"

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jmgasper @kkartunov

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@types/codemirror": "5.60.15",
3434
"amazon-s3-uri": "^0.1.1",
3535
"apexcharts": "^3.36.0",
36-
"axios": "^1.7.9",
36+
"axios": "^1.12.0",
3737
"browser-cookies": "^1.2.0",
3838
"city-timezones": "^1.2.1",
3939
"classnames": "^2.3.2",

src/.eslintrc.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
const path = require('path');
2+
3+
const tsconfigPath = path.resolve(__dirname, '../tsconfig.json');
4+
const tsconfigRoot = path.resolve(__dirname, '..');
5+
16
module.exports = {
27
root: true,
38
overrides: [
@@ -25,8 +30,8 @@ module.exports = {
2530
parser: '@typescript-eslint/parser',
2631
parserOptions: {
2732
useJSXTextNode: true,
28-
project: './tsconfig.json',
29-
tsconfigRootDir: '.',
33+
project: tsconfigPath,
34+
tsconfigRootDir: tsconfigRoot,
3035
tsx: true,
3136
jsx: true,
3237
sourceType: 'module',
@@ -40,7 +45,19 @@ module.exports = {
4045
],
4146
settings: {
4247
'import/resolver': {
43-
typescript: {},
48+
typescript: {
49+
project: tsconfigPath,
50+
},
51+
node: {
52+
extensions: [
53+
'.js',
54+
'.jsx',
55+
'.ts',
56+
'.tsx',
57+
'.d.ts',
58+
'.json',
59+
],
60+
},
4461
},
4562
},
4663
rules: {

src/apps/admin/src/admin-app.routes.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ const ManageSubmissionPage: LazyLoadedComponent = lazyLoad(
3939
() => import('./challenge-management/ManageSubmissionPage'),
4040
'ManageSubmissionPage',
4141
)
42+
const ManageMarathonMatchPage: LazyLoadedComponent = lazyLoad(
43+
() => import('./challenge-management/ManageMarathonMatchPage'),
44+
'ManageMarathonMatchPage',
45+
)
4246
const UserManagementPage: LazyLoadedComponent = lazyLoad(
4347
() => import('./user-management/UserManagementPage'),
4448
'UserManagementPage',
@@ -181,6 +185,11 @@ export const adminRoutes: ReadonlyArray<PlatformRoute> = [
181185
id: 'manage-resource',
182186
route: ':challengeId/manage-submission',
183187
},
188+
{
189+
element: <ManageMarathonMatchPage />,
190+
id: 'manage-marathon-match',
191+
route: ':challengeId/manage-marathon-match',
192+
},
184193
],
185194
element: <ChallengeManagement />,
186195
id: manageChallengeRouteId,
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@import '@libs/ui/styles/includes';
2+
3+
.container {
4+
display: flex;
5+
flex-direction: column;
6+
gap: $sp-6;
7+
}
8+
9+
.headerButtons {
10+
display: flex;
11+
flex-wrap: wrap;
12+
gap: $sp-3;
13+
justify-content: flex-end;
14+
}
15+
16+
.tableSection {
17+
display: flex;
18+
flex-direction: column;
19+
gap: $sp-3;
20+
}
21+
22+
.sectionHeading {
23+
font-size: 1.25rem;
24+
font-weight: 600;
25+
margin: 0;
26+
}
27+
28+
.errorMessage {
29+
color: $red-110;
30+
font-weight: 500;
31+
}

0 commit comments

Comments
 (0)