Commit graph

214 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
d2577d8e51 Update new aniimo Json
Some checks failed
Validate and deploy Sokko G / validate (push) Failing after 5m5s
Validate and deploy Sokko G / deploy (push) Has been skipped
2026-10-30 10:10:09 +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
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
ffb020ee98 fix add tools button from catalog position
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
2026-10-22 23:40:03 +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
96d058293d Fix spacing issue in tools library
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
2026-10-04 09:38:16 +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