Commit graph

99 commits

Author SHA1 Message Date
b779190f50 Add L'Arcade des Rêves, the permanent video game Sokko TCG collection
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m43s
Validate and deploy Sokko G / deploy (push) Successful in 13s
2026-11-13 09:28:08 +01:00
bec9ea5b2f Send a toolbox through an encrypted link
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m39s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Sharing a toolbox meant exporting a JSON file and passing it around by
hand. A toolbox can now be sent from the site while staying local first:
the browser compresses and encrypts the v2 export with AES-GCM, and the
key lives only in the link fragment, so the server keeps for at most
24 hours a copy it cannot read.

- Add the /api/shares service: upload, metadata, download and revoke,
  with files in SHARES_DIR, a purge every 10 minutes, and single-use
  links (the default) deleted only once fully downloaded.
- Cap the server load: 50 MiB per share, total storage, free disk
  space, daily volume, concurrent and stalled uploads, reads per link,
  plus a wide per-connection cap kept in memory without storing IPs.
- Limit each browser to 2 shares and 100 MiB per day and 2 active
  links, and show the existing link of a toolbox already shared.
- Add the send dialog (card and game drawer) and the /receive page,
  which previews or directly imports through the existing import path.
- Move shared HTTP helpers to services/http.js for both APIs.
- Document the format, delivery, server layout and privacy wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:26:05 +01:00
d030c3f59f Stop orphan game links from blocking global imports
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m13s
Validate and deploy Sokko G / deploy (push) Successful in 11s
A game link could outlive its toolbox when one tab linked a game while
another tab, unaware of that link, deleted the toolbox. Auto-backups and
manual exports then copied the orphan link, and the global import
rejected the whole file.

- Drop links to missing toolboxes inside the IndexedDB transaction.
- Remove orphan links already stored when the page loads.
- Ignore a link request to a toolbox that no longer exists.
- Leave orphan links out of exports and skip them on global import, so
  older backups import again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:12:34 +01:00
98c442a9cd Simplify the Astral Genesis lore and add Long Night cutouts
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m14s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Rewrite the Astral Genesis cards in the present tense, fix the Kitsune
gender and the Lune Écarlate name, name the Dragon in full, and say
"paquet" instead of "booster" like the rest of the site.

Add the full-art cutout illustrations of the three Long Night
legendaries for the prismatic backdrop effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:01:21 +01:00
24d08b6b3d Fit the collection descriptions in the pack tiles
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m13s
Validate and deploy Sokko G / deploy (push) Successful in 11s
The Primordial Nebula description grew to about 125 characters during
the lore rewrite and overflowed the three-line pack tile, failing the
pack opening e2e test; La Longue Nuit would have done the same once
enabled. Both are now under 65 characters, a limit the lore guide now
records. The admin e2e test also counted three collections and now
expects the four in the catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 11:52:29 +01:00
bd1da42c7f Add the Prismatic Backdrop holographic effect for cutout artwork
The new mythic effect works on two levels. An opaque iridescent film is
painted under the artwork and only shows through its transparent areas,
while a light overlay makes the whole card shine. Both follow the card
tilt without any running animation, like the Diffraction Sheen.

Cards can declare cutout versions of their artwork with the __cutout
suffix: cutoutImage for the standard format and fullCutoutImage for the
full-art format. The catalog only accepts the format's own image name
followed by __cutout. Prismatic Backdrop finishes use them when present
and fall back to the opaque artwork otherwise. The Mythic Card Pull gets
both cutout versions, and the admin visual lab previews the effect on them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:33:35 +01:00
498e171bc3 Show a full reserve count on the Sokko TCG menu icon and remaining openings while opening a pack
A gold count now sits on the Sokko TCG menu icon while the opening reserve is
full, so players notice it from any page. A light reserve route keeps it up to
date outside the game, and the game page updates it with every state it gets.
The opening stage also lists the remaining openings, apart for the automatic
recharge and for openings bought one at a time, since the sidebar reserve is
hidden there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 23:16:47 +01:00
4b4181818a Run the production E2E against the Node server and its CSP
Vite Preview sends none of the headers of server.mjs, so the production E2E
passed while the CSP blocked the calculator formulas in production. The build
is now served by server.mjs with Sokko TCG disabled, and a new spec saves and
updates a calculator result there, failing on any CSP violation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:24:18 +01:00
8c7a6a3e91 Offer to open another pack of the same collection after a reveal
Players had to go back to the pack list between two openings. Once the cards
are revealed, a button now reopens the same collection while an opening
remains, using the reserve first and then purchased openings. Gift and shop
packs do not offer it, since they spend no opening themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:46:55 +01:00
fd95e4ccff Wait for the notepad write before reloading in the session E2E
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 19m50s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-11-06 16:19:26 +01:00
8e373c024d Drop the backdrop blurs behind animated Cards effects
A full-screen backdrop-filter is recomputed on every frame of a card animated
above it, which made mythic cards in modals far slower than in a page. Modals
showing a card and the opening screen now use denser backgrounds instead, and
other modals keep their blur.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 15:44:14 +01:00
9ce0c3e33a Tighten the remaining Cards and dev server security defaults
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 19m52s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Session and OAuth cookies now carry the __Host- prefix over HTTPS, so another
application of the domain cannot set them. The public configuration route has
a request limit, the trader list reads every player in one query, and new
campaign codes need eight characters while existing ones keep working.

The Vite server now listens on 127.0.0.1 unless HOST says otherwise, because
it gives administrator rights to any visitor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:27:22 +01:00
7046515d20 Close the security gaps found by the application audit
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m8s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Imported toolboxes could run scripts on the site origin through image data
URLs, so only bitmap images are now accepted at import, display and opening.
The Cards game and its fake admin login no longer turn on when NODE_ENV is
missing, and the Node server now sends a CSP and the other security headers.

The deployment script no longer runs files owned by the service account as
root, the services cannot gain privileges through sudo, and the deployment
key stays in a single workflow step with actions pinned by commit. The script
and systemd units must still be reinstalled on the server after delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:55:35 +01:00
1adccb4e04 Show a New badge when a pack reveals an unowned card edition
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 19m49s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 10:11:57 +01:00
d372f0d248 Move the Cards privacy notice out of the login panel
A discreet centered link now sits below the panel and opens the notice in its
own panel, which does not exist while collapsed. The link keeps none of the
site's button hover styles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:53:34 +01:00
33eda986e5 Restore the mythic aura outline in production builds
Lightning CSS dropped mask-composite after the mask shorthand, so the crown and
glow filled their whole area in production only. The exclusion now lives in the
shorthand, with an E2E on the built site and a guard on the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:31:50 +01:00
a6cddbaa6a Merge the Sokko TCG v1 into main
Bring in the server-backed card game and its administration, disabled in
production until /etc/sokko-g/cards.env is configured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:27:05 +01:00
9a4de4a23d Hide the redundant Aniimo skill heading for a single selection
The skill heading only helps tell two selected elements apart, so it now shows
for double selections alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:26:49 +01:00
301c40454d Stop the Cards admin E2E from racing short reveal phases
Pause the page clock while reading each reveal phase's styles, and poll for the
palette menu's settled position, so a loaded CI runner cannot miss them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:07:52 +01:00
09a92de2c5 Only mention Sokko TCG while it is enabled and fix shop pack rates
The sidebar and About page advertised the game even when disabled. The admin
rates also warned that the shop pack had no drawable common, rare or epic card
although it draws them from the other collections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:03:04 +01:00
e60fbd4e9b Let Cards players delete their account and read a privacy notice
Add a Compte section with a privacy notice and a confirmed deletion that
anonymises the player row, erases their possessions and cancels open trades.
The public contact comes from CARDS_PRIVACY_CONTACT, which production now
requires before enabling the game. The admin E2E no longer relies on a pull
from the previous test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:05:41 +01:00
5ce35cd7ba Add the Sokko TCG collectible card mini-game
Add the server-backed card game: Discord login, recharging pack openings,
album, trades, gifts, stardust shop, campaign codes and its administration,
stored in SQLite and disabled in production until configured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:47:35 +01:00
243465720f Add Aniimo elemental matchup calculator
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m14s
Validate and deploy Sokko G / deploy (push) Successful in 10s
2026-10-31 09:43:04 +01:00
72b3b15c7e Make calculator child drafts atomic
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m6s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-10-30 20:02:48 +01:00
ef7eba73db Add Gachapus Prismana data and portrait
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 13m31s
Validate and deploy Sokko G / deploy (push) Has been skipped
2026-10-30 16:29:00 +01:00
4cb6487f85 Stabilize Playwright pointer interactions after lazy loading
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m11s
Validate and deploy Sokko G / deploy (push) Successful in 10s
2026-10-30 14:14:23 +01:00
e5f095a846 Make incomplete Aniimo E2E data explicit
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m4s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-10-30 10:48:35 +01:00
ae10661b63 Update the Aniimo catalog and regional filters
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 18m8s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-10-30 00:03:04 +01:00
c08452d5a4 Add quantitative tasks with checklist controls to the planner
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 17m38s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-10-24 15:02:33 +02:00
29fcb50fcd Align contributor guides with current project contracts
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 17m20s
Validate and deploy Sokko G / deploy (push) Successful in 9s
2026-10-24 09:21:38 +02:00
18110049f2 Keep Aniimo flip controls stable during card transitions
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 17m32s
Validate and deploy Sokko G / deploy (push) Successful in 10s
2026-10-23 22:56:36 +02:00
153311494d Allow cold lazy modules to load in library tests
All checks were successful
Validate Sokko G / validate (push) Successful in 17m27s
2026-10-23 20:22:32 +02:00
27a6c90c25 Stabilize E2E persistence checks before reloads
Some checks failed
Validate Sokko G / validate (push) Failing after 12m44s
2026-10-23 19:59:45 +02:00
7691a1dda8 Stabilize the guide toolbox drawer test
Some checks failed
Validate Sokko G / validate (push) Failing after 12m39s
2026-10-23 18:47:58 +02:00
ce58a21ba7 Stabilize persisted toolbox interaction tests
Some checks failed
Validate Sokko G / validate (push) Failing after 12m39s
2026-10-23 18:19:27 +02:00
ca39b76282 Standardize public images on WebP and add conversion tooling
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
2026-10-23 12:12:02 +02:00
ec7a4a4c1d Add library tools to local toolboxes 2026-10-22 22:58:24 +02:00
daa5eba8bd Add recovery for public data loading failures 2026-10-15 16:25:07 +02:00
1171eee510 Clarify local persistence and backup states 2026-10-15 16:10:11 +02:00
2f2e79d200 Refine toolbox navigation and local data controls
All checks were successful
Deploy Sokko G / deploy (push) Successful in 20s
2026-10-15 10:52:34 +02:00
954240adf9 Standardize modal focus and keyboard behavior 2026-10-15 00:03:13 +02:00
e87edda5c7 Audit the project and secure toolbox data 2026-10-14 16:59:09 +02:00
96af62edf0 Keep filter dropdowns clickable above active filter badges
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-07 22:53:17 +02:00
a921c9ef02 Clarify the guide checklist action
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-05 23:17:04 +02:00
0fc18cd8b9 Improve compact desktop usability and action guidance
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-05 21:47:16 +02:00
0ac1a0974e Refocus responsive layouts on compact desktop use
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-05 15:47:46 +02:00
808610dcf2 Add planner-aware memos and unified tool configuration panels
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
2026-10-03 15:58:33 +02:00
c3bab44a4b Allow linking an existing toolbox from the game drawer
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-01 09:33:18 +02:00
962816bbb9 Add checklist creation for filtered game results
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
2026-09-29 23:27:10 +02:00
0acf5ecf21 Add toolbox spaces and recover from stale asset bundles
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
2026-09-29 21:31:49 +02:00