Replace the prismatic backdrop with a prismatic parallax and redraw the Long Night legendaries
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 22m36s
Validate and deploy Sokko G / deploy (push) Successful in 17s

The prismatic-backdrop finish, now labelled « Parallaxe prismatique », lays a
card's cut-out hero over a backdrop without it and shifts both with the tilt,
the palette tinting the backdrop, lighting each layer's highlights and fringing
the hero. Cards declare the backdrop next to the cutout (backdropImage,
fullBackdropImage), validated by name. The Visual Lab is back to its usual
effect cards. The three Long Night legendaries are redrawn in the collection's
style, and La Pioche Mythique gets its parallax layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-21 21:06:37 +01:00
parent 3f70a5638d
commit efdb5c558c
27 changed files with 279 additions and 50 deletions

View file

@ -869,16 +869,28 @@ test("administrator navigates sections, manages mythic content and previews visu
expect(Math.abs((mythicBox.x - gridBox.x) - (gridBox.x + gridBox.width - mythicBox.x - mythicBox.width))).toBeLessThanOrEqual(1);
const effectStyles = page.locator(".nebula-admin-effect-grid .nebula-admin-style-card");
await expect(effectStyles.locator("h4")).toHaveText(["Prisme spectral", "Reflet diffractif", "Écrin prismatique"]);
// L'Écrin prismatique affiche la version à zones vides de chaque format : sa sous-couche se voit à travers.
const backdropStyle = effectStyles.filter({ has: page.getByRole("heading", { name: "Écrin prismatique", exact: true }) });
const backdropCard = backdropStyle.locator('.nebula-card[data-holo-effect="prismatic-backdrop"]');
await expect(backdropCard.locator('.nebula-card-art img[src$="/mythic_card_pull__cutout.webp"]')).toBeVisible();
await expect(backdropCard.locator(".nebula-card-art .nebula-card-holo-underlay")).toHaveCSS("display", "block");
await chooseOption(backdropStyle, "Format", "Pleine illustration");
await expect(backdropCard.locator('.nebula-card-art img[src$="/mythic_card_pull__full__cutout.webp"]')).toBeVisible();
await chooseOption(backdropStyle, "Format", "Standard");
await expect(effectStyles.filter({ has: page.getByRole("heading", { name: "Prisme spectral", exact: true }) }).locator(".nebula-card-holo-underlay")).toHaveCount(0);
await expect(effectStyles.locator("h4")).toHaveText(["Prisme spectral", "Reflet diffractif", "Parallaxe prismatique"]);
// La Parallaxe prismatique pose le héros détouré de la carte sur son décor sans lui, puis les décale selon leur profondeur.
const parallaxStyle = effectStyles.filter({ has: page.getByRole("heading", { name: "Parallaxe prismatique", exact: true }) });
const parallaxCard = parallaxStyle.locator('.nebula-card[data-holo-effect="prismatic-backdrop"]');
await expect(parallaxCard.locator(".nebula-card-art")).toHaveAttribute("data-parallax-setup", "clean");
await expect(parallaxCard.locator(".nebula-card-depth-layer")).toHaveCount(2);
await expect(parallaxCard.locator('[data-depth-layer="backdrop"] img[src$="/mythic_card_pull__backdrop.webp"]')).toBeVisible();
await expect(parallaxCard.locator('[data-depth-layer="subject"] img[src$="/mythic_card_pull__cutout.webp"]')).toBeVisible();
await expect(parallaxCard.locator('[data-depth-layer="backdrop"] .nebula-card-depth-tint')).toHaveCSS("mix-blend-mode", "overlay");
await parallaxCard.scrollIntoViewIfNeeded();
const parallaxBounds = await parallaxCard.boundingBox();
await page.mouse.move(parallaxBounds.x + parallaxBounds.width * 0.9, parallaxBounds.y + parallaxBounds.height * 0.2);
await expect.poll(() => parallaxCard.evaluate((element) => Number.parseFloat(element.ownerDocument.defaultView.getComputedStyle(element).getPropertyValue("--card-tilt-nx")))).toBeGreaterThan(0.3);
// Le décor (profondeur 1) part à l'opposé du pointeur ; le héros (profondeur négative) le suit.
const layerShiftX = (layer) => parallaxCard.locator(`[data-depth-layer="${layer}"]`).evaluate((element) => { const view = element.ownerDocument.defaultView; return new view.DOMMatrixReadOnly(view.getComputedStyle(element).transform).m41; });
await expect.poll(() => layerShiftX("backdrop")).toBeLessThan(-3);
expect(await layerShiftX("subject")).toBeGreaterThan(0);
await page.mouse.move(0, 0);
await chooseOption(parallaxStyle, "Format", "Pleine illustration");
await expect(parallaxCard.locator('[data-depth-layer="backdrop"] img[src$="/mythic_card_pull__full__backdrop.webp"]')).toBeVisible();
await expect(parallaxCard.locator('[data-depth-layer="subject"] img[src$="/mythic_card_pull__full__cutout.webp"]')).toBeVisible();
await chooseOption(parallaxStyle, "Format", "Standard");
const spectralStyle = effectStyles.filter({ has: page.getByRole("heading", { name: "Prisme spectral", exact: true }) });
// Les aperçus holographiques gardent le vrai format `lg`, 300 x 420 px.
const holoPreviewBox = await spectralStyle.locator(".nebula-admin-style-preview > .nebula-card").boundingBox();