refactor(web): restyle home schedule and results as divided lists
Replace the panel cards on the home page with section lists separated by horizontal rules, sharing one schedule row layout. Remove the obsolete home history test and record the design QA notes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
cc358697d4
commit
9064340584
3 files changed
+236
-200
No files matched your search
+162
-168
@@ -25,9 +25,7 @@ import {
|
||||
EmptyNote,
|
||||
ErrorNote,
|
||||
LoadingNote,
|
||||
Panel,
|
||||
PanelHeader,
|
||||
Pill,
|
||||
PlainPage,
|
||||
Skeleton,
|
||||
pageWidthClass,
|
||||
@@ -45,6 +43,9 @@ const MATCH_ARCHIVE_PAGE_SIZE = 10;
|
||||
const HOME_HISTORY_LIMIT = 4;
|
||||
const HOME_RANKING_LIMIT = 5;
|
||||
const DEFAULT_MAP_ID = 11;
|
||||
const SCHEDULE_LIST_CLASS = 'divide-y divide-line border-y border-line';
|
||||
const SCHEDULE_ROW_CLASS =
|
||||
'grid grid-cols-[minmax(0,1fr)_auto] gap-x-3 gap-y-2 px-2 py-3.5 md:grid-cols-[7.5rem_minmax(0,1fr)_auto] md:items-center md:gap-4';
|
||||
const RANKING_COLUMNS_CLASS =
|
||||
'grid grid-cols-[1.5rem_minmax(0,1fr)_3rem] items-center gap-3 px-3';
|
||||
/** 순위 카드의 슬라이드 순서. undefined는 종합 순위. */
|
||||
@@ -128,60 +129,129 @@ function NextMatch({ match }: { match: MatchDetailResponse }) {
|
||||
function UpcomingMatches({
|
||||
matches,
|
||||
title = '이어지는 내전',
|
||||
actions,
|
||||
footer,
|
||||
}: {
|
||||
matches: MatchDetailResponse[];
|
||||
title?: string;
|
||||
actions?: ReactNode;
|
||||
footer?: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<Panel>
|
||||
<PanelHeader title={title} />
|
||||
<ul className="divide-y divide-line">
|
||||
{matches.map((match) => {
|
||||
const schedule = getHomeMatchSchedule(match.scheduledAt);
|
||||
const { capacity, label } = getHomeMatchEnrollment(match);
|
||||
return (
|
||||
<li key={match._id}>
|
||||
<Link
|
||||
to={`/match/${match._id}`}
|
||||
className="group grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 px-4 py-3 transition-colors hover:bg-sunken sm:grid-cols-[8rem_minmax(0,1fr)_auto_1rem] sm:px-5"
|
||||
>
|
||||
<time
|
||||
dateTime={match.scheduledAt}
|
||||
className="tabular col-start-1 text-xs text-content-muted"
|
||||
>
|
||||
{schedule?.compact ?? '일정 미정'}
|
||||
</time>
|
||||
<h3 className="col-start-1 mt-0.5 truncate text-[15px] font-semibold group-hover:underline sm:col-start-2 sm:row-start-1 sm:mt-0">
|
||||
{match.title}
|
||||
</h3>
|
||||
<p className="tabular col-start-1 mt-1 text-[13px] text-content-muted sm:col-start-3 sm:row-start-1 sm:mt-0">
|
||||
{match.status === 'recruiting'
|
||||
? label
|
||||
: getMatchStageLabel(match)}{' '}
|
||||
· {capacity}
|
||||
</p>
|
||||
<ChevronRight
|
||||
className="col-start-2 row-span-3 row-start-1 size-4 text-content-muted sm:col-start-4 sm:row-span-1"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</Link>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
<section>
|
||||
<PanelHeader title={title} variant="section" actions={actions} />
|
||||
<ul className={SCHEDULE_LIST_CLASS}>
|
||||
{matches.map((match) => (
|
||||
<li key={match._id}>
|
||||
<ScheduleMatchRow match={match} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
{matches.length === 0 && (
|
||||
<EmptyNote size="sm" title="이 페이지에 표시할 일정이 없습니다." />
|
||||
)}
|
||||
{footer}
|
||||
</Panel>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
function ScheduleMatchRow({ match }: { match: MatchDetailResponse }) {
|
||||
const { capacity, label } = getHomeMatchEnrollment(match);
|
||||
return (
|
||||
<ScheduleRow
|
||||
href={`/match/${match._id}`}
|
||||
scheduledAt={match.scheduledAt}
|
||||
title={match.title}
|
||||
meta={`참가 ${capacity}`}
|
||||
result={<ScheduleStatus match={match} label={match.status === 'recruiting' ? label : undefined} />}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function ScheduleStatus({
|
||||
match,
|
||||
label = getMatchStageLabel(match),
|
||||
}: {
|
||||
match: Pick<MatchSummaryResponse, 'status' | 'eventProgress'>;
|
||||
label?: string;
|
||||
}) {
|
||||
const stage = match.eventProgress?.stage ?? match.status;
|
||||
const statusColor = stage === 'in-progress'
|
||||
? 'text-leaf'
|
||||
: stage === 'auction'
|
||||
? 'text-gold'
|
||||
: 'text-content-muted';
|
||||
|
||||
return (
|
||||
<span className={`inline-flex min-h-6 items-center gap-1.5 whitespace-nowrap rounded-full border border-current/25 px-2.5 py-0.5 text-xs font-semibold ${statusColor}`}>
|
||||
{stage === 'in-progress' && (
|
||||
<span className="size-1.5 rounded-full bg-current" aria-hidden="true" />
|
||||
)}
|
||||
{label}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
function ScheduleRow({
|
||||
href,
|
||||
scheduledAt,
|
||||
title,
|
||||
meta,
|
||||
result,
|
||||
resultBelowOnMobile = false,
|
||||
}: {
|
||||
href: string;
|
||||
scheduledAt: string;
|
||||
title: string;
|
||||
meta: ReactNode;
|
||||
result: ReactNode;
|
||||
resultBelowOnMobile?: boolean;
|
||||
}) {
|
||||
const schedule = getHomeMatchSchedule(scheduledAt);
|
||||
|
||||
return (
|
||||
<Link
|
||||
to={href}
|
||||
className={`${SCHEDULE_ROW_CLASS} group transition-colors hover:bg-sunken focus-visible:-outline-offset-2`}
|
||||
>
|
||||
<time
|
||||
dateTime={schedule ? scheduledAt : undefined}
|
||||
className="tabular flex flex-wrap items-baseline gap-x-2 md:block"
|
||||
>
|
||||
<span className="text-[15px] font-semibold leading-snug text-content">
|
||||
{schedule ? `${schedule.month}/${schedule.day} (${schedule.weekday})` : '일정 미정'}
|
||||
</span>
|
||||
{schedule && (
|
||||
<span className="text-xs text-content-subtle md:mt-0.5 md:block">
|
||||
{schedule.time}
|
||||
</span>
|
||||
)}
|
||||
</time>
|
||||
<div className="col-span-2 col-start-1 row-start-2 min-w-0 md:col-span-1 md:col-start-2 md:row-start-1">
|
||||
<h3 className="text-[15px] font-semibold leading-snug text-content [overflow-wrap:anywhere] group-hover:underline group-hover:underline-offset-2">
|
||||
{title}
|
||||
</h3>
|
||||
<p className="tabular mt-0.5 text-[13px] text-content-subtle">
|
||||
{meta}
|
||||
</p>
|
||||
</div>
|
||||
<div className={`flex min-w-0 items-center gap-2 md:col-start-3 md:row-start-1 md:max-w-72 md:justify-self-end ${
|
||||
resultBelowOnMobile
|
||||
? 'col-span-2 col-start-1 row-start-3 md:col-span-1'
|
||||
: 'col-start-2 row-start-1'
|
||||
}`}>
|
||||
<span className="min-w-0 text-[13px]">
|
||||
{result}
|
||||
</span>
|
||||
<ChevronRight className="hidden size-4 shrink-0 text-content-muted md:block" aria-hidden="true" />
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
function HistoryResult({ match }: { match: MatchSummaryResponse }) {
|
||||
const result = match.historyResult;
|
||||
const teamLabelClass = 'min-w-0 break-words text-content-muted md:truncate';
|
||||
const teamLabelClass = 'min-w-0 text-content-muted [overflow-wrap:anywhere]';
|
||||
if (match.status === 'finished' && result) {
|
||||
switch (result.type) {
|
||||
case 'score': {
|
||||
@@ -240,14 +310,7 @@ function HistoryResult({ match }: { match: MatchSummaryResponse }) {
|
||||
}
|
||||
}
|
||||
if (match.status === 'team-built' || match.status === 'in-progress') {
|
||||
return (
|
||||
<Pill
|
||||
tone={match.status === 'in-progress' ? 'live' : 'neutral'}
|
||||
dot={match.status === 'in-progress'}
|
||||
>
|
||||
{getMatchStageLabel(match)}
|
||||
</Pill>
|
||||
);
|
||||
return <ScheduleStatus match={match} />;
|
||||
}
|
||||
return (
|
||||
<span className="text-content-muted">
|
||||
@@ -256,65 +319,25 @@ function HistoryResult({ match }: { match: MatchSummaryResponse }) {
|
||||
);
|
||||
}
|
||||
|
||||
function HistoryTableColumns() {
|
||||
return (
|
||||
<>
|
||||
<colgroup>
|
||||
<col className="w-36" />
|
||||
<col />
|
||||
<col className="w-44" />
|
||||
<col className="w-16" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">일정</th>
|
||||
<th scope="col">대회</th>
|
||||
<th scope="col">상태·결과</th>
|
||||
<th scope="col" className="!text-right">
|
||||
참가
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function HistoryRecordsSkeleton({ limit }: { limit: number }) {
|
||||
const rows = Array.from({ length: limit });
|
||||
return (
|
||||
<>
|
||||
<div className="hidden md:block">
|
||||
<table className="lts-table table-fixed" aria-hidden="true">
|
||||
<HistoryTableColumns />
|
||||
<tbody>
|
||||
{rows.map((_, index) => (
|
||||
<tr key={index}>
|
||||
<td>
|
||||
<Skeleton width={96} height={14} index={index} />
|
||||
</td>
|
||||
<td>
|
||||
<Skeleton width="60%" height={14} index={index} />
|
||||
</td>
|
||||
<td>
|
||||
<Skeleton width={56} height={14} index={index} />
|
||||
</td>
|
||||
<td>
|
||||
<Skeleton width={28} height={14} className="ml-auto" />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div className="divide-y divide-line md:hidden" aria-hidden="true">
|
||||
{rows.map((_, index) => (
|
||||
<div key={index} className="space-y-2 px-4 py-3">
|
||||
<Skeleton width={110} height={12} index={index} />
|
||||
<Skeleton width="70%" height={16} index={index} />
|
||||
<ul className={SCHEDULE_LIST_CLASS} aria-hidden="true">
|
||||
{Array.from({ length: limit }, (_, index) => (
|
||||
<li key={index} className={SCHEDULE_ROW_CLASS}>
|
||||
<div className="flex items-center gap-2 md:block md:space-y-2">
|
||||
<Skeleton width={76} height={14} index={index} />
|
||||
<Skeleton width={32} height={12} index={index} />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
<div className="col-span-2 col-start-1 row-start-2 space-y-2 md:col-span-1 md:col-start-2 md:row-start-1">
|
||||
<Skeleton width="60%" height={16} index={index} />
|
||||
<Skeleton width={64} height={13} index={index} />
|
||||
</div>
|
||||
<div className="col-span-2 col-start-1 row-start-3 md:col-span-1 md:col-start-3 md:row-start-1">
|
||||
<Skeleton width={96} height={16} index={index} />
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -335,67 +358,26 @@ function HistoryRecords({
|
||||
match,
|
||||
title: getHistoryMatchTitle(match.title, schedule),
|
||||
href: `/match/${match._id}`,
|
||||
schedule: schedule?.compact ?? '일정 미정',
|
||||
map:
|
||||
match.mapId === DEFAULT_MAP_ID ? undefined : mapIdToLabel(match.mapId),
|
||||
};
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="hidden md:block">
|
||||
<table className="lts-table table-fixed">
|
||||
<HistoryTableColumns />
|
||||
<tbody>
|
||||
{rows.map(({ match, title, href, schedule, map }) => (
|
||||
<tr key={match._id} className="transition-colors hover:bg-sunken">
|
||||
<td className="tabular whitespace-nowrap text-[13px] text-content-muted">
|
||||
<time dateTime={match.scheduledAt}>{schedule}</time>
|
||||
</td>
|
||||
<td>
|
||||
<Link
|
||||
to={href}
|
||||
className="block truncate font-semibold text-content hover:underline"
|
||||
title={match.title}
|
||||
>
|
||||
{title}
|
||||
</Link>
|
||||
{map && <p className="text-xs text-content-muted">{map}</p>}
|
||||
</td>
|
||||
<td className="text-[13px]">
|
||||
<HistoryResult match={match} />
|
||||
</td>
|
||||
<td className="tabular whitespace-nowrap text-right text-[13px] text-content-muted">
|
||||
{match.participants.length}명
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<ul className="divide-y divide-line md:hidden">
|
||||
{rows.map(({ match, title, href, schedule, map }) => (
|
||||
<li key={match._id}>
|
||||
<Link
|
||||
to={href}
|
||||
className="group block px-4 py-3 transition-colors hover:bg-sunken"
|
||||
>
|
||||
<div className="tabular flex flex-wrap justify-between gap-x-3 text-xs text-content-muted">
|
||||
<time dateTime={match.scheduledAt}>{schedule}</time>
|
||||
<span>{match.participants.length}명</span>
|
||||
</div>
|
||||
<p className="mt-0.5 break-words text-[15px] font-semibold leading-snug text-content group-hover:underline">
|
||||
{title}
|
||||
</p>
|
||||
<div className="mt-1 flex flex-wrap items-baseline gap-x-2 gap-y-1 text-[13px]">
|
||||
<HistoryResult match={match} />
|
||||
{map && <span className="text-content-muted">· {map}</span>}
|
||||
</div>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</>
|
||||
<ul className={SCHEDULE_LIST_CLASS}>
|
||||
{rows.map(({ match, title, href, map }) => (
|
||||
<li key={match._id}>
|
||||
<ScheduleRow
|
||||
href={href}
|
||||
scheduledAt={match.scheduledAt}
|
||||
title={title}
|
||||
meta={<>참가 {match.participants.length}명{map && <> · {map}</>}</>}
|
||||
result={<HistoryResult match={match} />}
|
||||
resultBelowOnMobile
|
||||
/>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -772,6 +754,7 @@ function RankingPreview({ statsPath }: { statsPath: string }) {
|
||||
}
|
||||
|
||||
interface MatchPaginationProps {
|
||||
label: string;
|
||||
page: number;
|
||||
pageCount: number;
|
||||
total: number;
|
||||
@@ -781,6 +764,7 @@ interface MatchPaginationProps {
|
||||
}
|
||||
|
||||
function MatchPagination({
|
||||
label,
|
||||
page,
|
||||
pageCount,
|
||||
total,
|
||||
@@ -789,7 +773,7 @@ function MatchPagination({
|
||||
onNext,
|
||||
}: MatchPaginationProps) {
|
||||
return (
|
||||
<div className="flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-t border-line px-4 py-2.5 sm:px-5">
|
||||
<nav aria-label={label} className="flex flex-wrap items-center justify-between gap-x-3 gap-y-1 px-2 py-2.5">
|
||||
<span className="tabular text-xs text-content-muted">
|
||||
총 {total.toLocaleString('ko-KR')}개 · {page} / {pageCount}
|
||||
</span>
|
||||
@@ -811,7 +795,7 @@ function MatchPagination({
|
||||
onClick={onNext}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -893,9 +877,8 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
|
||||
const hasHistoryError =
|
||||
Boolean(historyMatchesQuery.error) && !historyMatchesQuery.data;
|
||||
const statsPath = `/communities/${DEFAULT_COMMUNITY_ID}/internal-stats`;
|
||||
const HistorySection = showArchive ? Panel : 'section';
|
||||
const UpcomingStatusHeading = showArchive ? 'p' : 'h1';
|
||||
const contentSpacing = showArchive ? 'space-y-5 pb-16' : 'space-y-8 pb-10 md:pb-16';
|
||||
const contentSpacing = 'space-y-8 pb-10 md:pb-16';
|
||||
const contentTopPadding = bannerMatch ? 'pt-10 md:pt-16' : 'pt-5 sm:pt-6';
|
||||
|
||||
const content = (
|
||||
@@ -909,17 +892,27 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
|
||||
<ErrorNote title="진행 중인 일정을 불러오지 못했습니다"
|
||||
action={<Button size="sm" label="다시 시도" onClick={() => void activeMatchesQuery.refetch()} />} />
|
||||
) : activeMatchesQuery.isPlaceholderData ? (
|
||||
<Panel aria-busy="true">
|
||||
<PanelHeader title="진행 중인 일정" />
|
||||
<section aria-busy="true">
|
||||
<PanelHeader title="진행 중인 일정" variant="section" />
|
||||
<LoadingNote label="일정을 불러오는 중" />
|
||||
</Panel>
|
||||
</section>
|
||||
) : activeMatchesQuery.data &&
|
||||
(activeMatchesQuery.data.matches.length > 0 || activePage > 1) ? (
|
||||
<UpcomingMatches
|
||||
matches={activeMatchesQuery.data.matches}
|
||||
title="진행 중인 일정"
|
||||
actions={!showArchive && (
|
||||
<Link
|
||||
to="/inhouse"
|
||||
className="inline-flex min-h-6 items-center gap-0.5 text-[13px] font-semibold text-content-muted hover:text-content hover:underline"
|
||||
>
|
||||
전체 일정
|
||||
<ChevronRight className="size-4" aria-hidden="true" />
|
||||
</Link>
|
||||
)}
|
||||
footer={showArchive && (activePageCount > 1 || activePage > 1) && (
|
||||
<MatchPagination
|
||||
label="진행 중인 일정 페이지"
|
||||
page={activePage}
|
||||
pageCount={activePageCount}
|
||||
total={activeTotal}
|
||||
@@ -967,10 +960,10 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
|
||||
: 'grid items-start gap-8 lg:grid-cols-[minmax(0,1fr)_20rem]'
|
||||
}
|
||||
>
|
||||
<HistorySection aria-busy={isHistoryPageLoading} aria-live="polite">
|
||||
<section aria-busy={isHistoryPageLoading} aria-live="polite">
|
||||
<PanelHeader
|
||||
title={showArchive ? '종료된 일정과 결과' : '최근 내전 결과'}
|
||||
variant={showArchive ? 'panel' : 'section'}
|
||||
variant="section"
|
||||
actions={
|
||||
<Link
|
||||
to={showArchive ? statsPath : '/inhouse'}
|
||||
@@ -1011,6 +1004,7 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
|
||||
)}
|
||||
{showArchive && !hasHistoryError && (historyTotal > 0 || historyPage > 1) && (
|
||||
<MatchPagination
|
||||
label="종료된 일정 페이지"
|
||||
page={historyPage}
|
||||
pageCount={historyPageCount}
|
||||
total={historyTotal}
|
||||
@@ -1019,7 +1013,7 @@ export default function HomePage({ eventType }: { eventType?: MatchEventType })
|
||||
onNext={() => setPage('page', historyPage + 1)}
|
||||
/>
|
||||
)}
|
||||
</HistorySection>
|
||||
</section>
|
||||
{!showArchive && <RankingPreview statsPath={statsPath} />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import test from "node:test";
|
||||
|
||||
const homePageSource = await readFile(
|
||||
new URL("../src/pages/HomePage.tsx", import.meta.url),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
test("shares the four history columns between records and the loading state", () => {
|
||||
const columns = sourceForFunction("HistoryTableColumns");
|
||||
const skeleton = sourceForFunction("HistoryRecordsSkeleton");
|
||||
const records = sourceForFunction("HistoryRecords");
|
||||
|
||||
assert.equal(columns.match(/<col(?:\s|\/|>)/g)?.length, 4);
|
||||
assert.deepEqual(
|
||||
Array.from(columns.matchAll(/<th\b[^>]*>\s*([^<]+?)\s*<\/th>/g), (match) => match[1]),
|
||||
["일정", "대회", "상태·결과", "참가"],
|
||||
);
|
||||
assert.match(skeleton, /<HistoryTableColumns\s*\/>/);
|
||||
assert.match(records, /<HistoryTableColumns\s*\/>/);
|
||||
assert.doesNotMatch(skeleton, /<HistoryResult\b/);
|
||||
});
|
||||
|
||||
function sourceForFunction(name: string): string {
|
||||
const start = homePageSource.indexOf(`function ${name}(`);
|
||||
assert.notEqual(start, -1, `${name} should exist`);
|
||||
|
||||
const nextFunction = homePageSource.indexOf("\nfunction ", start + 1);
|
||||
assert.notEqual(nextFunction, -1, `${name} should have a following function`);
|
||||
return homePageSource.slice(start, nextFunction);
|
||||
}
|
||||
@@ -32,3 +32,77 @@
|
||||
- [x] 웹 테스트 144개, 변경 파일 ESLint, TypeScript 및 스테이징 빌드를 통과했다.
|
||||
|
||||
final result: passed
|
||||
|
||||
## 홈 진행 중인 일정 — 2026-11-11
|
||||
|
||||
사용자가 선택한 메이플 공지 목록의 가로 구분선·제목/보조 정보 위계를 기존 홈에 적용했다. 홈의 진행 중인 일정에만 `section` 변형을 사용하고, 내전 일정 페이지의 카드와 다른 예정 목록은 기존 표현을 유지한다.
|
||||
|
||||
### 비교 근거
|
||||
|
||||
- 원래 홈 화면: `C:/Users/park/AppData/Local/Temp/codex-clipboard-1849c599-e42e-407f-8823-beaacd76788e.png` (3813 × 1932 이미지 px, 제출 화면의 CSS 크기와 DPR은 알 수 없음).
|
||||
- 공식 레퍼런스: https://maplestory.nexon.com/Home/Main 및 https://lwres.nexon.com/css/maplestory/index_renew.css?v=4.
|
||||
- 직접 캡처한 공지 영역: `C:/Users/park/.codex/visualizations/2026/11/11/01a1c8c9-0b58-7e22-960f-520506eb826f/maple-notice-reference.jpg` (430 × 400 이미지 px).
|
||||
- 구현 증거 폴더: `C:/Users/park/.codex/visualizations/2026/11/11/01a1c8c9-0b58-7e22-960f-520506eb826f/home-schedule/`.
|
||||
- 전체 비교: 제출 홈 이미지와 `desktop-light.jpg`를 같은 비교 입력으로 열어 히어로, 일정, 최근 결과, 순위의 관계를 확인했다. 원본의 뷰포트가 불명확하므로 전체 화면의 픽셀 일치를 판단하지 않고 기존 요소의 역할과 정렬을 비교했다.
|
||||
- 집중 비교: 메이플 공지 캡처와 `schedule-light.jpg` (1032 × 325 이미지 px)를 같은 비교 입력으로 열었다. 일정에 필요한 날짜 열과 상태 열, 기존 SUIT 글꼴 및 17px 섹션 제목은 승인된 제품별 적용 차이다.
|
||||
|
||||
| 상태 | CSS 뷰포트 | 구현 캡처 | 이미지 px |
|
||||
| --- | --- | --- | --- |
|
||||
| 데스크톱 라이트 | 1440 × 1100 | `desktop-light.jpg` | 1425 × 1089 |
|
||||
| 데스크톱 다크 | 1440 × 1100 | `desktop-dark.jpg` | 1425 × 1089 |
|
||||
| 모바일 라이트 | 390 × 1100 | `mobile-light.jpg` | 375 × 1058 |
|
||||
| 모바일 다크 | 390 × 1100 | `mobile-dark.jpg` | 375 × 1058 |
|
||||
| 좁은 모바일 라이트 | 320 × 1050 | `mobile-320-light.jpg` | 305 × 1001 |
|
||||
| 태블릿 라이트 | 768 × 1100 | `tablet-light.jpg` | 753 × 1079 |
|
||||
|
||||
브라우저의 보고 DPR은 약 1이다. 이미지 치수는 브라우저 캡처가 반환한 실제 파일 크기이며 별도 확대·축소를 적용하지 않았다. 레이아웃 수치는 DOM의 CSS px로 검증했다. 상태는 비로그인, 스테이징의 팀 편성 완료 2개·경매 중 1개·진행 중 1개다. 개발 API가 연결을 거부해 미리보기 전용 Vite 프록시로 스테이징을 조회했다. 저장소의 API 환경 파일은 변경하지 않았다.
|
||||
|
||||
### 확인 결과
|
||||
|
||||
- 글꼴·정보 위계: 기존 SUIT를 사용한다. 일정명 15px/600, 보조 정보 12–13px, 상태는 텍스트가 있는 외곽선 배지다. 모바일 제목은 전체 행 너비에서 줄바꿈할 수 있다.
|
||||
- 간격·정렬: 데스크톱 행 높이 약 70.8px, 날짜 열 7.5rem, 좌우 패딩 8px로 최근 결과 목록과 정렬했다. 외곽 테두리·그림자는 없고 가로선만 남았다. 320/390/768/1440px에서 문서 및 일정 행의 가로 넘침이 없었다.
|
||||
- 색상: 기존 테마 토큰으로 라이트/다크를 모두 확인했다. 보조 글자 대비는 흰 바탕에서 4.91:1, 다크 바탕에서 9.20:1이며 라이트 상태 글자는 진행 중 6.51:1, 경매 중 6.70:1이었다. 이는 측정한 글자색과 기본 배경의 대비로, 전체 접근성 인증을 의미하지 않는다.
|
||||
- 이미지: 기존 히어로·선수 이미지와 Lucide 아이콘을 유지했다. 일정에 새 이미지 자산은 추가하지 않았다.
|
||||
- 내용·동작: 실제 제목·일시·참가 인원·상태를 표시했다. Tab 이동 시 다음 일정 링크의 2px 포커스 테두리를 확인했고 Enter로 `test 100` 상세 화면의 제목·대진표가 로드됐다. 전체 일정 링크로 `/inhouse`에 이동해 기존 12px 모서리 카드와 10개 행을 확인했다.
|
||||
- 최종 화면 콘솔 오류/경고 없음. 미리보기 연결 문제를 해소한 후 캡처한 결과만 채택했다.
|
||||
- TypeScript, 변경 파일 ESLint, 기존 홈 테스트 4개, 스테이징 빌드, `git diff --check` 통과. 빌드의 기존 대형 청크 경고는 남아 있다.
|
||||
|
||||
첫 디자인 비교에서 추가 수정이 필요한 P0/P1/P2 차이는 발견되지 않았다. 모바일은 브라우저 뷰포트로 확인했으며 실제 휴대전화와 모든 데이터 상태를 검사한 것은 아니다. 별도 서버 데이터 변경이나 배포는 수행하지 않았다.
|
||||
|
||||
final result: passed
|
||||
|
||||
## 내전·멸망전 일정 목록 — 2026-11-11
|
||||
|
||||
후속 요청에 따라 승인된 홈 목록 스타일을 두 탭의 진행 중인 일정, 다가오는 일정, 종료된 일정과 결과에 확장했다. 위 홈 검증 당시 유지했던 카드와 결과 표를 공통 목록으로 바꾸고, 날짜·제목·참가 정보·상태 또는 결과의 위계를 통일했다. 모바일 결과는 제목 아래에서 줄바꿈하며 데스크톱에서는 오른쪽에 정렬된다.
|
||||
|
||||
### 비교 근거
|
||||
|
||||
- 기준: 앞선 홈의 `home-schedule/schedule-light.jpg` (1032 × 325 이미지 px). 새 `inhouse-results-light.jpg`와 같은 비교 입력으로 열어 구분선, 제목과 보조 정보, 간격 및 정렬을 대조했다.
|
||||
- 변경 전: `archive-schedules/inhouse-before.jpg` (1424 × 1678 이미지 px).
|
||||
- 증거 폴더: `C:/Users/park/.codex/visualizations/2026/11/11/01a1c8c9-0b58-7e22-960f-520506eb826f/archive-schedules/`.
|
||||
|
||||
| 상태 | CSS 뷰포트 | 구현 캡처 | 이미지 px |
|
||||
| --- | --- | --- | --- |
|
||||
| 내전 진행 중 · 라이트 | 1440 × 1100 | `inhouse-desktop-light.jpg` | 1440 × 1100 |
|
||||
| 내전 예정·결과 · 라이트 | 1440 × 1100 | `inhouse-results-light.jpg` | 1425 × 1089 |
|
||||
| 내전 결과 · 모바일 라이트 | 390 × 1100 | `inhouse-mobile-light.jpg` | 375 × 1058 |
|
||||
| 내전 결과 · 모바일 다크 | 390 × 1100 | `inhouse-mobile-dark.jpg` | 375 × 1058 |
|
||||
| 내전 예정 · 모바일 라이트 | 390 × 1100 | `inhouse-upcoming-mobile.jpg` | 375 × 1058 |
|
||||
| 멸망전 결과 · 모바일 다크 | 390 × 1100 | `tournaments-mobile-dark.jpg` | 390 × 1100 |
|
||||
| 멸망전 결과 · 데스크톱 라이트 | 1440 × 1100 | `tournaments-desktop-light.jpg` | 1440 × 1100 |
|
||||
|
||||
이미지 크기는 브라우저 캡처의 실제 반환 크기이며 별도 확대·축소하지 않았다. 기존 미리보기 전용 Vite 프록시로 실제 스테이징 데이터를 읽었다. 로컬 API 환경 설정과 서버 데이터는 변경하지 않았다.
|
||||
|
||||
### 확인 결과
|
||||
|
||||
- 내전의 진행 중 19개, 예정 1개, 종료 1,942개 데이터로 세 목록을 확인했다. 점수, 우승팀, 공동 우승팀, 참가 인원과 일시가 유지된다. 표 전용 로딩 UI도 같은 목록 구조로 변경했다.
|
||||
- 내전·멸망전에서 320/390/768/1440 CSS px의 문서와 일정 행에 가로 넘침이 없었다. 라이트·다크 화면의 제목, 보조 정보, 상태 배지와 결과를 확인했다. 실제 휴대전화 검증은 수행하지 않았다.
|
||||
- 진행 중 목록과 종료 목록의 페이지를 각각 이동하고, 두 페이지 쿼리가 서로 유지되는 것을 확인했다. 페이지 영역에 구별되는 접근성 이름을 부여했다.
|
||||
- 멸망전 결과 링크에서 Enter로 실제 상세 화면을 열어 제목이 로드되는 것을 확인했다. 공통 컴포넌트 변경 후 홈 모바일도 다시 열어 진행 중 4개 행과 기존 주변 요소, 가로 넘침 없음을 확인했다.
|
||||
- 표본의 멸망전은 진행 중·예정 0개, 종료 1개였다. 빈 상태와 실제 결과를 검증했으며, 채워진 진행 중·예정 목록의 공통 컴포넌트는 내전 데이터로 확인했다.
|
||||
- 두 차례 소스 편집 사이 발생한 일시적인 HMR 오류는 최종 소스에서 해소됐다. 최종 새로고침 이후 관련 화면을 이동하며 수집한 콘솔 오류·경고는 없었다.
|
||||
- 웹 테스트 162개, TypeScript, 변경 파일 ESLint, 스테이징 빌드 통과. 제거된 4열 표 구조만 검사하던 소스 문자열 테스트는 함께 제거했다. 기존 대형 청크 및 Node 로더 사용 중단 경고는 남아 있다.
|
||||
|
||||
첫 비교에서 추가 수정이 필요한 P0/P1/P2 차이는 발견되지 않았다. 배포는 수행하지 않았다.
|
||||
|
||||
final result: passed
|
||||
Reference in new issue
Block a user