Commit graph

22 commits

Author SHA1 Message Date
d0bd5825a4 Adopt published protocol types and verify achievement release assets 2026-11-14 00:24:48 +00:00
5499837e23 feat(engine): add achievement icons and reproducible portraits 2026-11-13 23:45:30 +01:00
5b9bc73391 fix(viewer): replace embedded chat with integrated chat control 2026-10-31 01:44:57 +01:00
7062118dce feat: offer "Undo my move" against bots in both viewers
BGS lets the only human of a game against bots take back their last saved
move (protocol 0.10.0). Both viewers show an "Undo my move" control with the
turn tools (an icon in the mobile action tray's title bar) while BGS reports
it available on that player's live board: never to spectators, nor in
replays, planning, BGS analysis or tutorials, nor while a queued plan awaits
the server. It asks BGS to undo; when the earlier state arrives, selections
made on the later board are dropped with the turn being composed. Back still
steps through the turn being composed, locally.

- @boardgamers/protocol 0.8.1 -> 0.10.0 (added to minimumReleaseAgeExclude)
- "Undo my move" in all 16 locales
- unit tests, a browser smoke test of both bundles, and BGS-like undo in the
  local premove preview
- viewer 5.20.58, old-ui 1.0.21

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:35:40 +02:00
fa7a6a1217 feat: show BGS Supporter badges in both viewers 2026-10-01 23:59:25 +02:00
4f9f7e694c fix: use protocol 0.6.2 and remove chat scroll backports 2026-09-28 19:50:40 +02:00
c54d602d4d
Fix chat scrolling in both Gaia Project viewers (#339) 2026-09-27 10:11:57 +02:00
42830754c7 fix(viewer): restore saved unread chat counts 2026-09-26 12:10:18 +02:00
bd31210d11 Add player hover cards and board thumbnails 2026-09-24 11:44:13 +02:00
e564724728 feat(viewer): support editing chat messages 2026-09-21 22:40:08 +02:00
af9402952f fix(viewer): make chat translation controls compact 2026-09-21 21:53:09 +02:00
f047ffb15d Support analysis permissions and translated chat in both viewers 2026-09-21 20:32:47 +02:00
85a516040f
Keep auto-charge and planning in Gaia’s action bar (#334)
* Improve premoves and fix random auctions and Ivits exploration

* Fix blocked legacy random-faction sealed auctions

* Allow premoves for initial building and booster choices

* Compact setup actions and show ship explorers

* Restore auto-charge controls in Gaia game UI

* Use published player-settings protocol 0.3.4

* Allow verified protocol 0.3.4 during release-age quarantine

* Keep planning and auto-charge in the action bar outside your turn

* Bump viewer to 5.20.6 for action bar release
2026-09-19 12:02:37 +02:00
28ff1fb405 Add playable Gaia Project tutorial course 2026-09-16 19:17:53 +02:00
e3a8e0a664
Use shared BGS viewer and chat protocol (#331)
* Use shared BGS viewer and chat protocol

* Use shared chat panel with faction portraits and mobile viewport

* Update shared chat visibility and show date separators

* Keep typing after completing a chat mention
2026-09-13 22:54:32 +02:00
3644919458 feat(viewer): restore old UI with Lost Fleet support 2026-09-11 15:33:28 +02:00
662e64891a feat(viewer): migrate build to Vite 8 + rolldown, tests to vitest 4 (v5.14.0)
The vue-cli/webpack 4 toolchain was the root cause of three shipped
production crashes this week (iterator-spread __spreadArrays RangeError,
stale cache-loader emitting raw vue_1.default for the vue external, and
the TDZ circular-import). Replace it:

- vite.config.ts: lib build of src/wrapper.ts -> dist/package/
  viewer.umd.js (IIFE, esnext, minified) + viewer.css + map. vue and
  bootstrap-vue stay external (window.Vue / window.BootstrapVue) via
  plain global reads - no .default interop possible. process.env is
  baked to ({}) via define, matching vue-cli's old defaults.
- vitest.config.ts: jsdom env, single fork, chai-compatible specs run
  unchanged. 879 tests pass (was 809 - the json-driven chart/resource
  suites now register their dynamic tests properly under vitest).
- import type correctness across the codebase: rolldown rejects
  value-imports of type-only exports, so type-only imports are now
  written as import type (and mixed imports split). Also fixes
  self-contained-state.ts's reassignment of a destructured const.
- Commands.spec.ts: split a two-render test into two its - two
  @testing-library renders of Commands in one test interfere under
  vitest.
- scripts: package/build -> vite build, test -> vitest run.
- devDeps: +vite +@vitejs/plugin-vue2 +vitest +jsdom +esbuild +events
  (browser polyfill for the engine's node 'events' import).

Verified in Chromium against the built bundle: loads with CDN Vue 2 +
BootstrapVue, Rotate sectors completes with and without rotations, zero
pageerrors; the bundle contains no __spreadArrays helpers.
2026-09-01 09:00:07 +00:00
bb39d47586 fix: RangeError on Rotate sectors + bundle load crash (viewer 5.13.1, engine 4.10.3)
- Replace all iterator spreads ([...map.values()] etc) with Array.from() across
  engine and viewer: under the TS->babel downlevel chain they compiled to
  __spreadArrays, which reads .length on an iterator and produced
  'RangeError: invalid array length' on 'Sector rotations finished' (the
  reported boardgamers.space crash), plus several latent same-class sites.
- Break the research-tracks.ts -> ../index barrel import cycle (imports
  Event/Expansion from leaf modules now): the cycle left Engine in TDZ and
  the whole bundle failed with 'Cannot access engine_Engine before
  initialization' at module eval under the rebuilt module order.
- Fix stale cache-loader output producing raw vue_1.default accesses for the
  vue webpack external (window.Vue has no .default): 'Cannot read properties
  of undefined (reading extend)' at load. Clean rebuild emits babel interop
  wrappers correctly. vue-global-shim.js added as belt-and-braces doc for the
  external's shape.
- Add autoprefixer as an explicit viewer devDependency (pnpm 11 no longer
  hoists it; the lib build failed on postCSS plugin load).
- Update stale spec type signatures surfaced by the import change (tile
  position as EventSource, loadFaction arity, ChargeRequest literal cast,
  AvailableCommand data narrowing, FederationInfo new fields).

Verified: engine 750 passing / 4 pending; viewer 809 passing; lint + prettier
clean; rebuilt UMD has zero iterator-spread call sites and loads + completes
sector rotation (with and without rotations) in Chromium against the real
bundle with CDN-provided Vue 2.
2026-09-01 08:09:31 +00:00
bfed8f506e
Merge gaia-lost-fleet: Lost Fleet expansion, sandbox mode, sealed-bid auctions (#328)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kim <kim.pham.nguyen2@gmail.com>
Co-authored-by: kimphamnguyen <82032729+kimphamnguyen@users.noreply.github.com>
2026-08-25 00:07:03 +02:00
2e6e4ce4d1
perf(engine): 10x federation enumeration — fixes >10s move timeouts in prod games (#325) 2026-08-19 12:19:05 +02:00
Gregor Zeitlinger
6f04b424c6
✨ (viewer) explain final victory conditions (#52)
* ✨ (viewer) add chart for final victory conditions

* ✨ (viewer) add chart for final victory conditions

* ✨ (viewer) explain final victory conditions

* ✨ (viewer) explain final victory conditions
2021-04-10 19:42:09 +02:00
coyotte508
d07610403e 🎨 Add global prettier settings / workflow 2021-02-21 10:29:45 +01:00