diff --git a/config/scale/feature-shape-ceilings.json b/config/scale/feature-shape-ceilings.json index 4ac4aa03..cfe953ad 100644 --- a/config/scale/feature-shape-ceilings.json +++ b/config/scale/feature-shape-ceilings.json @@ -45,14 +45,14 @@ } ], "initialJavascript": { - "gzipBytes": 194354, - "files": 17, - "firstFeatureGzipBytes": 6355, - "perFeatureGzipBytes": 528, - "perContextGzipBytes": 21 + "gzipBytes": 194143, + "files": 15, + "firstFeatureGzipBytes": 6192, + "perFeatureGzipBytes": 521, + "perContextGzipBytes": 28 }, "serviceWorkerPrecache": { - "assets": 24, + "assets": 22, "firstFeatureAssets": 14, "perFeatureAssets": 12, "perContextAssets": 0 diff --git a/src/presentation/pages/home-page.tsx b/src/presentation/pages/home-page.tsx index bb626a13..26065cdc 100644 --- a/src/presentation/pages/home-page.tsx +++ b/src/presentation/pages/home-page.tsx @@ -1,7 +1,6 @@ import { useEffect, useState } from "react"; -import { Link } from "react-router-dom"; -import { PageHeader } from "../design-system/index.ts"; +import { LinkButton, StandardPage } from "../design-system/index.ts"; import { useLocale } from "../i18n/index.ts"; import { useApplicationRuntime } from "../providers/application-provider.tsx"; import { activeNavigationRoutes } from "../routes/navigation-policy.ts"; @@ -47,53 +46,54 @@ export default function HomePage() { }, [runtime]); return ( -
- -
- {READINESS_ITEMS.map((item) => ( -
-

{message(`home.readiness.${item}.title`)}

-

{message(`home.readiness.${item}.description`)}

-
- ))} + +
+
+ {READINESS_ITEMS.map((item) => ( +
+

{message(`home.readiness.${item}.title`)}

+

{message(`home.readiness.${item}.description`)}

+
+ ))} +
+

+ {release === "failed" + ? message("home.runtime.failed") + : release + ? message("home.runtime.summary", { + buildId: release.buildId, + releaseId: release.releaseId, + }) + : message("home.runtime.checking")} +

+ {starterRoutes.length > 0 ? ( +
+
+

{message("home.starter.title")}

+

{message("home.starter.description")}

+
+
+ {starterRoutes.map((route, index) => ( + + {message("home.starter.open", { + title: resolve(`route.${route.routeId}.navigation`), + })} + + ))} +
+
+ ) : null}
-

- {release === "failed" - ? message("home.runtime.failed") - : release - ? message("home.runtime.summary", { - buildId: release.buildId, - releaseId: release.releaseId, - }) - : message("home.runtime.checking")} -

- {starterRoutes.length > 0 ? ( -
-
-

{message("home.starter.title")}

-

{message("home.starter.description")}

-
-
- {starterRoutes.map((route, index) => ( - - {message("home.starter.open", { - title: resolve(`route.${route.routeId}.navigation`), - })} - - ))} -
-
- ) : null} -
+ ); } diff --git a/src/presentation/styles/theme/pages.css b/src/presentation/styles/theme/pages.css index 55d9d293..78a74f69 100644 --- a/src/presentation/styles/theme/pages.css +++ b/src/presentation/styles/theme/pages.css @@ -1,4 +1,11 @@ @layer components { + /* The home page's blocks below the template heading, a page gap apart. */ + .home-page__sections { + display: grid; + min-width: 0; + gap: var(--space-6); + } + .readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); diff --git a/tests/component/starter-pages.test.tsx b/tests/component/starter-pages.test.tsx index dd634d43..ac2123ef 100644 --- a/tests/component/starter-pages.test.tsx +++ b/tests/component/starter-pages.test.tsx @@ -45,6 +45,17 @@ describe("starter home page", () => { ).toBeVisible(); }); + // 1112/04-06. The home page a product keeps is an example of the page + // templates and primitives, not of hand-made copies of them. + it("lays the home page out with the standard template and link buttons", async () => { + const { container } = renderApp("/"); + + const action = await screen.findByRole("link", { name: "플랫폼 구성 보기" }); + expect(action.closest("article.page-template--standard")).not.toBeNull(); + expect(action).toHaveClass("ui-button", "ui-button--primary"); + expect(container.querySelectorAll("section.ui-page")).toHaveLength(0); + }); + it("reaches the platform overview from the starter actions", async () => { const user = userEvent.setup(); renderApp("/"); diff --git a/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-compact-pseudo-drawer-chromium-visual-linux.png b/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-compact-pseudo-drawer-chromium-visual-linux.png index 6203586d..980db792 100644 Binary files a/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-compact-pseudo-drawer-chromium-visual-linux.png and b/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-compact-pseudo-drawer-chromium-visual-linux.png differ diff --git a/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-wide-light-chromium-visual-linux.png b/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-wide-light-chromium-visual-linux.png index c5ba90b0..1d008a7a 100644 Binary files a/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-wide-light-chromium-visual-linux.png and b/tests/visual/__snapshots__/platform.visual.spec.ts-snapshots/app-shell-wide-light-chromium-visual-linux.png differ