Skip to content

Commit

Permalink
Merge pull request #9 from acm-cmu/meng/misc
Browse files Browse the repository at this point in the history
Miscellaneous Changes
  • Loading branch information
Meng87 authored Jan 27, 2024
2 parents 2c24d8f + fa43799 commit dbd5eea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .env.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ AWS_RECORD_INDEX=

S3_UPLOAD_BUCKET=
S3_URL_TEMPLATE=
REPLAY_S3_URL_TEMPLATE=

GAME_ENGINE_NAME=
NUM_TOURNAMENT_SPOTS=
Expand Down
16 changes: 8 additions & 8 deletions src/components/MatchTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const MatchTable = (props: { data: Match[] }) => {
() => [
{
accessorKey: 'id',
header: 'Match ID',
header: 'ID',
filterVariant: 'autocomplete',
size: 150,
size: 100,
},
{
accessorKey: 'player1',
Expand All @@ -38,26 +38,26 @@ const MatchTable = (props: { data: Match[] }) => {
accessorKey: 'category',
header: 'Category',
filterVariant: 'select',
size: 180,
size: 150,
},
{
accessorKey: 'status',
header: 'Status',
filterVariant: 'select',
size: 180,
size: 150,
},
{
accessorKey: 'outcome',
header: 'Winning Team',
header: 'Winner',
filterVariant: 'select',
size: 180,
size: 140,
},
{
accessorKey: 'replay',
header: 'Replay',
Cell: ReplayCell,
filterVariant: 'multi-select',
size: 180,
filterVariant: 'select',
size: 140,
},
],
[],
Expand Down
5 changes: 4 additions & 1 deletion src/pages/api/admin/admin-match-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export default async function handler(
category: item.category ? item.category.S : 'unknown',
status: item.item_status ? item.item_status.S : 'unknown',
outcome: item.placement ? item.placement.N?.toString() : '-1',
replay: item.s3_key ? item.s3_key.S : 'unknown',
replay:
item.s3_key && item.s3_key.S
? process.env.REPLAY_S3_URL_TEMPLATE + item.s3_key.S
: 'unknown',
}),
);

Expand Down
4 changes: 3 additions & 1 deletion src/styles/layout/_header.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
$header-background: #fff;
$header-background: #2b4d86;
$header-text-color: rgba(255, 255, 255, 0.6);
$header-link-color: rgba(179, 223, 235, 0.681);
$header-link-color-hover: rgba(37, 112, 140, 0.95);
$header-brand-color: #8a9ab5;

.header {
background: $header-background;
color: $header-text-color;

.header-brand {
color: $header-brand-color;
Expand Down

0 comments on commit dbd5eea

Please sign in to comment.