Commit graph

124 commits

Author SHA1 Message Date
77f3c26fba Add interactive colony overview with distinct building models 2026-10-01 15:38:43 +02:00
e5d505b687 Match player panel heights within each grid row 2026-10-01 14:55:17 +02:00
cd1d15f737 Fold automation into action footer and remove buying help 2026-10-01 14:43:02 +02:00
48a4909e71 Add opt-in automatic production choices and persistent action settings 2026-10-01 14:37:26 +02:00
b29b826e30 Seal simultaneous production choices until everyone confirms 2026-10-01 14:23:58 +02:00
7e3e3e1175 Refresh Outpost cards with illustrated retro colony styling 2026-10-01 14:08:39 +02:00
5e7dfbccc6 Load only the selected viewer language and document full uploads 2026-09-30 00:32:58 +02:00
77f69451c4 fix: use protocol 0.6.2 and remove chat scroll backports 2026-09-30 00:32:58 +02:00
b6bdae9d78 docs: add Boardgamers play link 2026-09-28 22:47:22 +02:00
a302179ec3 Tone down the auction auto-pass setting 2026-09-28 14:12:08 +02:00
5c7278fd5a Integrate auction auto-pass as a themed switch 2026-09-28 14:08:20 +02:00
7252b3ea19 Expose the BGS auto-pass auction setting in the player panel 2026-09-28 14:02:03 +02:00
3da4d2714b Release Outpost engine 0.10.17 2026-09-27 19:32:29 +02:00
4efd60cb52 Preserve first-match exchange inference 2026-09-27 19:32:29 +02:00
c0aefa5d14 Honor exchange inferences when sampling production cards 2026-09-27 19:29:55 +02:00
9860195072 Preserve observed card and bid constraints across analysis resampling 2026-09-27 19:22:40 +02:00
46e322f98b Add observation-based ongoing analysis scenarios 2026-09-27 19:14:27 +02:00
911a6c9db2 Keep slow chat and journal scrolling away from the bottom 2026-09-27 10:07:01 +02:00
126c9670f0 Improve mobile action layout and preserve touch scrolling 2026-09-27 09:33:06 +02:00
4d41681ad5 Add Persian viewer and tutorial translations 2026-09-27 00:53:02 +02:00
37fa7d4449 Fit two auction upgrades per row on mobile 2026-09-26 15:48:04 +02:00
64d94565f7 Identify opponents’ resource cards with icons 2026-09-26 15:13:01 +02:00
28c4971d48 fix(viewer): restore saved unread chat counts 2026-09-26 12:10:19 +02:00
7f11b0c6c7 Translate complete journal upgrade and action lists 2026-09-25 22:10:06 +02:00
cca9122873 Review viewer terminology and tutorials across every locale 2026-09-25 21:38:47 +02:00
00f063ee3c Translate complete viewer effects and prompts before rendering icons 2026-09-25 21:19:53 +02:00
97ed84e610 feat(viewer): localize interface and tutorials in 15 languages 2026-09-25 16:30:05 +02:00
52e1fcbc16 feat(viewer): add player hover cards and board thumbnails 2026-09-24 11:44:29 +02:00
50c209beb7 feat(viewer): support editing chat messages 2026-09-21 22:40:11 +02:00
c86c8e46f1 fix(viewer): make chat translation controls compact 2026-09-21 21:53:15 +02:00
3bdb1f9295 Support playable analyses and translated chat 2026-09-21 20:32:12 +02:00
c20c47de4d Deal four ore and two water cards at setup 2026-09-18 17:14:01 +02:00
07c4b1d46e Explain tutorial quiz answers and integrate chapter navigation 2026-09-16 09:30:26 +02:00
82aa8b3324 Add guided Outpost tutorials and fix open auction feedback 2026-09-16 00:02:55 +02:00
04a1bc1499 Continue chat messages after Tab-completing a mention 2026-09-13 22:51:00 +02:00
6385032ca7 Clear visible chat mentions in BGS and show date separators 2026-09-13 22:41:01 +02:00
9b8b8cb07f Share chat input and scrolling behavior while retaining colony UI 2026-09-13 22:18:53 +02:00
ae6d311775 Use shared BGS protocol for viewer lifecycle and chat 2026-09-13 20:14:10 +02:00
c9377b0a30 Require sealed challengers to bid above the base price 2026-09-12 20:36:07 +02:00
42e27f2d58 Wrap large factory groups inside player cards 2026-09-11 20:44:00 +02:00
a1e7ec2589 Scroll recent events after iframe layout settles 2026-09-11 19:37:32 +02:00
bf247cdc5b Clarify auctions and era progress, add action sounds and release 0.10.12 2026-09-10 22:12:49 +02:00
fe850e9836 Release Outpost engine 0.10.11 2026-09-10 18:30:46 +02:00
6ea0353c02 Separate robot ownership from operation and require usable workers to be assigned 2026-09-10 18:28:27 +02:00
bd63371622 Redraw colony structures and add Kicker landmarks with Biosphere domes 2026-09-10 18:23:37 +02:00
636a470ff9 Chat: auto-scroll to newest; keep Wily Trader exchanges out of chat
The chat feed stays chronological (newest last) and now scrolls to the
bottom on load and on each new message while the user is already near the
bottom — scrolling up to read history no longer gets yanked back down.

Exchange moves no longer push a message into the game chat. The engine's
state.messages drains into the platform's chat as system messages, and the
per-trade lines were pure noise there — the trade already shows in the event
log. Chat is now reserved for game-over and auction wins. Engine 0.10.10.
2026-09-10 14:32:52 +00:00
coyotte508
8c3941bab4 Render game chat in the viewer (boardgamers #509/#510 contract) (#1)
## Summary

Render the platform's game chat inside the Outpost viewer. This is the **reference-engine implementation** of the viewer-chat protocol that was added to the platform in **boardgamers/boardgamers#510** (issue **boardgamers/boardgamers#509** — Outpost is the reference engine named there).

The viewer now owns the game chat surface: a `ChatPanel` sits beside the event log and renders the room chat, fed by the `chat:*` downlink events and posting through the `chat:send` / `chat:read` uplinks, per the merged platform contract.

## Protocol conformance (boardgamers/boardgamers#510, incl. the Fuji-author additions)

Downlink (host → viewer), handled in `store.svelte.ts`:

- `chat:messages` — full-history replace (on mount/remount)
- `chat:appended` — append new messages (own accepted posts come back this way; no optimistic echo)
- `chat:updated` — replace in place by `_id`
- `chat:deleted` — drop by `ids: string[]`
- `chat:disabled` — room kill switch, hides the composer
- `chat:state` — write-permission `{ canSend, reason? }`, gates the composer with a human-readable reason
- `chat:result` — **send-ack** `{ requestId, ok, error? }`; refused sends restore the draft and show the error so the user can retry

Uplink (viewer → host), on `ViewerBridge`:

- `chat:send` — `{ text, requestId? }`; every send carries a `requestId` so it is answered by one `chat:result`
- `chat:read` — **read receipt** `{ messageId }`; watermarks the newest shown message (real ObjectIds only) so the platform clears its unread badge while the viewer owns the chat surface

`ViewerChatMessage` supports the additive author identity fields: `authorId`, `playerIndex`, `createdAt` (author colors prefer `playerIndex`, falling back to a name match — never matching identity on the name). `editedAt` renders an "(edited)" marker; `createdAt` renders a short timestamp.

## Files

- `packages/viewer/src/lib/bgs.svelte.ts` — `ViewerChatMessage` (+ `authorId`/`playerIndex`/`createdAt`), `ViewerChatCanSend`, `ViewerChatResult`; the `chat:*` event types; `sendChat` / `readChat` uplinks.
- `packages/viewer/src/lib/store.svelte.ts` — chat state (`chatMessages` / `chatDisabled` / `chatCanSend`), `chat:result` ack handling with draft restore, `chat:read` watermark, `chatAuthorColor`.
- `packages/viewer/src/lib/ChatPanel.svelte` — feed + composer, author colors, write gating, edited/time display, send-error surface.
- `packages/viewer/src/App.svelte` — panel placed above the log in the desktop sidebar and the mobile column.
- `packages/viewer/src/dev-backend.ts`, `packages/viewer/src/dev.ts` — dev harness: seeded history, echo sends as `chat:appended` with identity fields, `chat:result` acks, and `outpostDev.chatAppend` / `chatDisable` / `chatState` console helpers.

## Verification

`pnpm build` (engine + viewer) and `svelte-check` pass with 0 errors; the chat event vocabulary and panel are present in the built `outpost-viewer.iife.js`. The dev harness (`pnpm dev`) seeds a chat history and echoes accepted sends, so the panel can be exercised locally end-to-end against the mock backend.

Closes the engine-viewer half of boardgamers/boardgamers#509.

Co-authored-by: Coyote508 (bgs-ci) <coyotte508@users.noreply.codeberg.org>
Reviewed-on: https://codeberg.org/boardgamers/outpost/pulls/1
2026-09-10 15:31:12 +02:00
a69f21c9d9 ci: tighten workflow header 2026-09-10 12:50:25 +00:00
bed335c133 ci: enable Forgejo Actions on the repo 2026-09-10 12:49:57 +00:00
d9b2b9afcd ci: trigger first Forgejo Actions run 2026-09-10 12:47:40 +00:00