Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"data": {
"type": "card",
"attributes": {
"cardInfo": {
"name": "Demo Poster Board"
},
"frameSettings": [
{
"cardIndex": 3,
"x": 460,
"y": 340
},
{
"cardIndex": 4,
"x": 680,
"y": 90
}
]
},
"relationships": {
"cards.0": {
"links": {
"self": "../../4b6602-wine-cellar-card-definition/WineBottle/011f0239-9a66-405f-a874-32bb4146ee7b"
}
},
"cards.1": {
"links": {
"self": "../../d29736-tier-list/TierList/my-language-ranking"
}
},
"cards.2": {
"links": {
"self": "../../blog-app/games/Wordle/play"
}
},
"cards.3": {
"links": {
"self": "../../673fb6-blackjack-cardgame-definition/Blackjack/be0fd885-7672-4379-a001-ea8611da2ec2"
}
},
"cards.4": {
"links": {
"self": "../../4b6602-wine-cellar-card-definition/WineBottle/7bc1c7b6-f051-4a45-aaba-8f41b62eed0d"
}
}
},
"meta": {
"adoptsFrom": {
"module": "../poster-board",
"name": "PosterBoard"
}
}
}
}
53 changes: 53 additions & 0 deletions packages/experiments-realm/poster-board/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Poster Board

A FigJam-style infinite-canvas board card: pan, wheel/pinch zoom at the
cursor with momentum, and a zoom toolbar. `rig.gts` is the pure-TS camera
engine; `poster-board.gts` is the `PosterBoard` card def that renders it.

## Running the tests

Tests live in `poster-board.test.gts` and run on the catalog live-test
infrastructure (see `../tests/live/README.md` for the full details): the
realm serves the test file, and the host's QUnit runner discovers and loads
it at runtime.

### 1. Start the servers

From the monorepo project root:

```bash
mise run dev-all
```

This brings up the whole dev stack — host dev server (port 4200) plus the
realm server stack (base + catalog realms, matrix, smtp) — in the right
order.

### 2a. Run in the browser (interactive)

```
https://localhost:4200/tests/index.html?liveTest=true&realmURL=https%3A%2F%2Flocalhost%3A4201%2Fcatalog%2F&filter=poster-board
```

`filter=` matches QUnit module names — `poster-board` selects the
`Rendering | poster-board card` module. Drop it to run every live test in
the catalog realm.

### 2b. Run headless (CLI)

```bash
cd packages/host && pnpm build # test page runs from ./dist
REALM_URL="https://localhost:4201/catalog/" \
npx ember test --config-file testem-live.js --path ./dist --filter "poster-board"
```

Or run the full catalog suite the CI way: `REALM_URL="https://localhost:4201/catalog/" pnpm test:live`.

### Caveats

- After adding or moving a `.test.gts` file, the realm has to re-index before
the runner's `_mtimes` discovery sees it — restart `mise run dev-all` if a
new test doesn't show up.
- The live-test CI job does **not** run on catalog-only PRs (its path filter
excludes `packages/catalog/contents/**`) — run the tests locally before
merging and say so in the PR.
Loading