feat(geschichte-detail): render article on a reading-sheet surface card
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m59s
CI / OCR Service Tests (pull_request) Successful in 23s
CI / Backend Unit Tests (pull_request) Successful in 4m12s
CI / fail2ban Regex (pull_request) Successful in 43s
CI / Semgrep Security Scan (pull_request) Successful in 23s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m11s
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m59s
CI / OCR Service Tests (pull_request) Successful in 23s
CI / Backend Unit Tests (pull_request) Successful in 4m12s
CI / fail2ban Regex (pull_request) Successful in 43s
CI / Semgrep Security Scan (pull_request) Successful in 23s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m11s
The R-2 mockup shows the article on a distinct light panel, but the impl-ref table only specified the centered container, so the page rendered flat on the canvas. Wrap the <article> in the standard card pattern (BackButton stays outside on the canvas) and record the sheet in both spec impl-ref tables so mockup and impl-ref agree. Closes #797 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,10 @@ async function handleDelete() {
|
||||
<BackButton />
|
||||
</div>
|
||||
|
||||
<article aria-labelledby="geschichte-title">
|
||||
<article
|
||||
aria-labelledby="geschichte-title"
|
||||
class="rounded-sm border border-line bg-surface px-5 py-6 shadow-sm sm:px-10 sm:py-10"
|
||||
>
|
||||
<header class="mb-6">
|
||||
{#if isJourney}
|
||||
<span
|
||||
|
||||
@@ -70,6 +70,19 @@ describe('geschichten/[id] page', () => {
|
||||
.toBeVisible();
|
||||
});
|
||||
|
||||
it('renders the article on a reading-sheet surface card (#797)', async () => {
|
||||
render(GeschichtePage, {
|
||||
context: new Map([[CONFIRM_KEY, createConfirmService()]]),
|
||||
props: { data: baseData() }
|
||||
});
|
||||
|
||||
const article = document.querySelector('article');
|
||||
expect(article).not.toBeNull();
|
||||
for (const cls of ['bg-surface', 'border-line', 'rounded-sm', 'shadow-sm']) {
|
||||
expect(article!.className).toContain(cls);
|
||||
}
|
||||
});
|
||||
|
||||
it('renders the author full name from firstName + lastName', async () => {
|
||||
render(GeschichtePage, {
|
||||
context: new Map([[CONFIRM_KEY, createConfirmService()]]),
|
||||
|
||||
Reference in New Issue
Block a user