diff --git a/admin/src/PlaytestDetailPage.tsx b/admin/src/PlaytestDetailPage.tsx index 15ddaec..cbd1340 100644 --- a/admin/src/PlaytestDetailPage.tsx +++ b/admin/src/PlaytestDetailPage.tsx @@ -1,9 +1,8 @@ -import { CopyOutlined } from '@ant-design/icons' +import { ArrowLeftOutlined, CopyOutlined } from '@ant-design/icons' import { useAppUIContext } from '@accelbyte/sdk-extend-app-ui' import { useQueryClient } from '@tanstack/react-query' import { Alert, - Breadcrumb, Button, Card, Modal, @@ -161,17 +160,17 @@ export function PlaytestDetailPage() { return ( <>
- navigate('/')}>Playtest Hub }, - { title: playtest.title ?? playtest.slug ?? '—' } - ]} - /> +
diff --git a/admin/src/federated-element.test.tsx b/admin/src/federated-element.test.tsx index 77bb25d..a18976c 100644 --- a/admin/src/federated-element.test.tsx +++ b/admin/src/federated-element.test.tsx @@ -166,9 +166,8 @@ async function openRowMenu() { } describe('PlaytestsListPage', () => { - it('renders Playtest Hub header and a Create Playtest button', () => { + it('renders a Create Playtest button', () => { renderAt('/') - expect(screen.getByRole('heading', { name: /playtest hub/i })).toBeInTheDocument() expect(screen.getByRole('button', { name: /create playtest/i })).toBeInTheDocument() }) diff --git a/admin/src/federated-element.tsx b/admin/src/federated-element.tsx index 684dbcc..f58f2f3 100644 --- a/admin/src/federated-element.tsx +++ b/admin/src/federated-element.tsx @@ -492,9 +492,6 @@ function PlaytestsListPage() { <> {/* Full-width white header — negative margins counteract FederatedElement's padding: 16 */}
- - Playtest Hub - setActiveTab(key as 'list' | 'config')} @@ -1029,7 +1026,8 @@ function PlaytestCreatePage() { const createErrorMessage = createError && isSlugConflict(createError) ? SLUG_CONFLICT_MESSAGE : apiErrorMessage(createError ?? {}, 'Create failed') - const handleSubmit = (values: FormValues) => { + const handleSubmit = () => { + const values = form.getFieldsValue(true) as FormValues const isADT = values.distributionModel === DistributionModel.ADT createMutation.mutate({ data: { @@ -1068,19 +1066,13 @@ function PlaytestCreatePage() { return ( <> - {/* Full-width white header — title only */} -
- - Create New Playtest - -
- +
form={form} layout="vertical" onFinish={handleSubmit} scrollToFirstError={{ behavior: 'smooth', block: 'center' }} - style={{ marginTop: 16, paddingBottom: 80 }} + style={{ marginTop: 16, flex: 1 }} initialValues={{ platforms: [], ndaRequired: false, @@ -1232,10 +1224,9 @@ function PlaytestCreatePage() {
+
setLinkAdtOpen(false)} /> ) diff --git a/admin/src/tabs/DistributionTab.test.tsx b/admin/src/tabs/DistributionTab.test.tsx index 87b312b..f4ab08d 100644 --- a/admin/src/tabs/DistributionTab.test.tsx +++ b/admin/src/tabs/DistributionTab.test.tsx @@ -133,7 +133,7 @@ describe('ADTPanel (build health surfacing)', () => { it('surfaces a success alert when the build is OK', () => { renderTab({ ...ADT_PT, adtBuildStatus: 'OK', adtBuildCheckedAt: '2026-05-26T10:00:00Z' }) - expect(screen.getByTestId('adt-build-health-alert')).toHaveTextContent(/available in ADT/i) + expect(screen.getByTestId('adt-build-health-alert')).toHaveTextContent(/available/i) }) it('calls CheckADTBuild with the playtestId when Check build is clicked', async () => { diff --git a/admin/src/tabs/DistributionTab.tsx b/admin/src/tabs/DistributionTab.tsx index 857e6ee..d5badf9 100644 --- a/admin/src/tabs/DistributionTab.tsx +++ b/admin/src/tabs/DistributionTab.tsx @@ -11,6 +11,7 @@ import { Statistic, Table, Tag, + Tooltip, Typography, Upload, message @@ -205,19 +206,19 @@ function ADTPanel({ playtest }: { playtest: V1Playtest }) { )} +
- } - message="Approved participants will receive a direct download link via Discord DM from the PlaytestHub bot." + description={ +
    +
  • Upon approval, participants automatically receive a direct download link via Discord DM from the PlaytestHub bot.
  • +
  • Changing the build applies to future approvals and DM retries only — participants already approved retain the link they received.
  • +
+ } /> - - Changing the build applies to future approvals and DM retries only — already-approved participants keep the - download already sent. - )} @@ -259,13 +260,11 @@ function BuildHealthAlert({ playtest }: { playtest: V1Playtest }) { } if (status === 'OK') { return ( - } - data-testid="adt-build-health-alert" - message={`Build is available in ADT${suffix}.`} - /> + + } data-testid="adt-build-health-alert" style={{ cursor: 'default' }}> + Available + + ) } return null