Commit graph

284 commits

Author SHA1 Message Date
70233312d3 Make the diffraction sheen holo effect sparkle with tilt
Add tilt-driven glitter, a specular streak and a tighter iridescent band,
switch the darkness palette to hard-light, and shadow the description text
so it stays readable under the band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 10:25:10 +01:00
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
f423fa30fa Use the share icon and space the share dialog footer
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m39s
Validate and deploy Sokko G / deploy (push) Successful in 12s
- Show the new share icon on the toolbox card and drawer send buttons.
- Separate the single-use option from the dialog buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:11:14 +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
957bfdc86f Replace the reindeer and snowy owl cutouts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:24:31 +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
138a2f05bf Add La Longue Nuit, the winter Sokko TCG collection
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 14m47s
Validate and deploy Sokko G / deploy (push) Has been skipped
A 30-card event collection set in the archipelago universe: during the
yearly Long Night the Dragon draws the islands together and lights the
lanterns for the Night of Return. About 60% of the cards celebrate the
year-end festivities, including all three legendaries; the rest are
winter scenes. The collection ships inactive and appears once it is
enabled with drop rates from the admin.

Two tests assumed the catalog held only three collections; the shop
count test now only counts the active collections the shop pack draws
from. docs/collections records the shared lore and the illustration
prompts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 11:26:45 +01:00
5008dd55e4 Use everyday words in the Primordial Nebula card lore
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 15m16s
Validate and deploy Sokko G / deploy (push) Has been skipped
The archipelago descriptions read too formal, with rare words such as
esquif, proue or volutes. They now use common words and plainer
sentences while keeping the same story and length, about 150 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:32:09 +01:00
5d8d263e72 Record the pack description fix in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m9s
Validate and deploy Sokko G / deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:40:02 +01:00
6f4f5a7f3f Shorten the Primordial Nebula pack description to three lines
The archipelago retelling lengthened the collection description to 120
characters. On the 180 px pack tile it overflowed the three-line clamp and
ended with an ellipsis, which the Cards browser test rejects. The new
77-character text keeps the archipelago story and fits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:40:01 +01:00
80fe7fadad Record the Prismatic Backdrop effect in the Beads history
Some checks failed
Validate and deploy Sokko G / deploy (push) Blocked by required conditions
Validate and deploy Sokko G / validate (push) Has been cancelled
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:33:36 +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
24992e5502 Retell the Primordial Nebula cards as one archipelago story
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 15m21s
Validate and deploy Sokko G / deploy (push) Has been skipped
The collection's 82 descriptions now share a single universe: a nebula
collapses into a sun and a scattered sky archipelago. Legendaries are its
founding spirits, epics the creatures of the young world, rares the island
dwellers, and commons the constellations, relics and instruments of the
Watchers, the astronomer-navigators who read the stars to travel between
drifting islands. Descriptions are kept around 150 characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 19:06:35 +01:00
d83ca0b349 Record the dev server request limit fix in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m1s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:15:58 +01:00
51d173710d Lift the Sokko TCG request limits on the dev server
Every page reads the Sokko TCG configuration and reserve, and a fast browser
test run loads more than 120 pages a minute from a single address, so the dev
server answered 429. The dev server is local and already gives admin rights to
any visitor, so it now lifts the per-minute limits like the Cards test server.
The production server keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:15:56 +01:00
c9fe3cd83f Record the reserve request limit fix in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m5s
Validate and deploy Sokko G / deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 00:01:22 +01:00
4db6489760 Give the menu reserve route its own request limit
Every page reads the reserve for the Sokko TCG menu count, and those reads
shared the game API limit of 60 requests per minute and per address. Browser
tests reloading many pages from one address got 429 responses. The route now
has its own limit, like the public configuration, and focus or tab returns
read it at most once every 15 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 00:01:21 +01:00
0723d97788 Record the reserve count and remaining openings work in the Beads history
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 14m7s
Validate and deploy Sokko G / deploy (push) Has been skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 23:16:48 +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
2231bf05e1 Record the production E2E server work in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m1s
Validate and deploy Sokko G / deploy (push) Successful in 10s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 20:24:28 +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
00c9c3dbc1 Record the formula CSP fix in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m1s
Validate and deploy Sokko G / deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:50:41 +01:00
08e28ee70d Evaluate calculator and goal tree formulas without eval
The production CSP forbids unsafe-eval, so the Function() call behind both
tools threw, every result came back empty and the calculator save and update
buttons stayed disabled in production. Dev worked because Vite sends no CSP.
Both now reuse the eval-free parser of the table formula engine, and a test
fails if client code evaluates strings again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:50:40 +01:00
337e08caea Record the chained pack opening work in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m7s
Validate and deploy Sokko G / deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:46:56 +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
cf01e4f67e Record the Cards backdrop blur work in the Beads history
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 13m59s
Validate and deploy Sokko G / deploy (push) Has been skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 15:44:15 +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
9b6da88ed3 Record the security audit fixes in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 19m56s
Validate and deploy Sokko G / deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 11:41:41 +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
c95f767b63 Record the production aura fix in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 19m54s
Validate and deploy Sokko G / deploy (push) Successful in 12s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 22:53:56 +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
361c4951ae Record the host restriction work in the Beads history
All checks were successful
Validate and deploy Sokko G / validate (push) Successful in 20m0s
Validate and deploy Sokko G / deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 21:33:06 +01:00
5891320e1a Restrict the Node server to a private address and document the host
The site port answered directly on the VM's public address, bypassing the proxy
and letting clients forge X-Forwarded-For. HOST now limits where it listens. The
Cards database and backups move to /data with owner-only folders, and SERVER.md
describes the Proxmox VMs, ports and open points.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 21:32:13 +01:00
a32956e49b Record the Sokko TCG release work in the Beads history
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:35:10 +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
f7eb225eb8 Name the Cards data controller and retire long inactive accounts
Publish CARDS_PRIVACY_CONTROLLER in the privacy notice, required in production
like the contact. A daily maintenance anonymises non-admin accounts after 24
months without login and purges expired sessions and old idempotency keys.

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
de7e72fb42 Correct the Cards activation notes and update dev dependencies
Warn against copying PORT into cards.env, state which missing values disable
the game, drop wording that only applied to the feature branch, and take the
non-breaking audit fix for development tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:03:03 +01:00
66d84e2528 Give the Cards account panels their inner spacing
The account section's text touched the panel borders because nds-panel has no
padding of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:34:30 +01:00
f649f391f9 Document the Cards activation, backup and account procedures
Align the delivery guide with the code: hourly recharge, the dedicated database
folder, the privacy contact, the proxy's X-Forwarded-For duty, reinstalling the
unit, the backup timer and the post-activation admin checklist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:13:57 +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
155187d01f Hide unrevealed Cards pulls and show the odds players really get
Keep a pending opening's cards out of the home highlight and collection until
they are revealed, and refuse transfers meanwhile. Odds now ignore rarities a
pack cannot give. Stable files gain an ETag so card images revalidate instead
of downloading again, and logging out clears the local collection copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:00:32 +01:00