Skip to content
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added

- **FIND on GEAR.** A find box at the top of the sheet's GEAR tab, always there, keeps only the things that match as you type: a name, a type (GUNS), a value (2d6, 30 m) or a column (AMMO), in any case, every word somewhere on the line. Each band counts its matches and opens while you search, so nothing in a closed STASH is missed; clear it with its × or Esc and the bands are as you left them. When nothing matches, it says so. SHEET.EXE and the sheet's own tab are the same.
- **GEAR in bands.** The sheet's GEAR tab now sorts what you carry into EQUIPPED, USABLE and PACK, by each item type's ON THE SHEET, with a count on each band and what's in hand first. A fourth band, STASH, holds everything left in the stash whatever its type, and says each one's type; it starts closed. Click a band's head to close or open it, and the sheet remembers. The + buttons for adding a thing by hand sit in one row at the top, and the band it lands in opens. SHEET.EXE and the sheet's own tab are the same.
- **Where a type sits on the sheet.** Each item type on the builder's TYPES tab now has ON THE SHEET: EQUIPPED (worn or wielded), USABLE (used up or used often: potions, ammo, kits) or PACK. WEAPON and ARMOR presets start EQUIPPED, CONSUMABLE and SPELL start USABLE, and GEAR and every type you already have start in PACK.
- **EDIT CURRENT in SHOP_CATALOGUES.** A new button beside DOWNLOAD CURRENT puts what your shops sell now straight into the box, ready to change, PREVIEW and SAVE, with no file to download and upload again. If the box already has text in it, it asks before replacing it.
Expand Down Expand Up @@ -799,6 +800,7 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Changed

- **Slot and install counters only where they are used.** On GEAR, a counter like ATTUNED 0 OF 3 or CYBERWARE · STRAIN 0 OF 2 shows only once something on that sheet needs it, worn, carried or stashed, or while anything is still counted against it. A character with no cyberware no longer sees STRAIN 0 OF 0.
- **One line a thing on GEAR.** Each thing on the sheet's GEAR tab is now a single line: its name, how many, its values with ROLL, FIRE and RELOAD beside them, and where it is carried, still changed with one click. The ✎ at the end of each line opens its card (a click on the line does too), with NAME, HOW MANY, every column, LOCATION, DONE and REMOVE; one card is open at a time. A line with nothing filled in at all shows a dashed FILL IN, which opens the card at its first box, ready to type; a column left blank beside others means it doesn't apply, so it says nothing. A pick-one box such as GRADE is now as wide as its words, not the whole card. Anything worn, attuned or installed now sits in EQUIPPED, whatever band its type is in, and goes back when taken off. When something lands in a closed band (worn, bought or given), its header pulses briefly and stays lit until you open it; with reduced motion turned on, it is only lit. SHEET.EXE and the sheet's own tab are the same.
- **Long shop shelves stay quick.** A shelf with hundreds of lines now shows 200 at a time, with more as you scroll down, or press SHOW MORE. A line says how many there are, and filtering and sorting still cover every line. Typing in the filter no longer waits for the list to redraw. On a 1000-line shelf, sorting went from about 0.4 s to 0.15 s, and opening it from 0.6 s to 0.26 s. Saving a big catalogue is about five times faster.
- **The initiative tracker for a GM running several fights.** The tracker window now opens beside the INITIATIVE menu instead of on top of it, so ACTIVE COMBATS stays in view and the GM can jump from fight to fight with the tracker open. The menu's ACTIVE COMBATS, each COMBAT #n and the scene name on the tracker were drawn in the theme's border colour and could hardly be read in any theme; they now use its text colour. Jumping to a fight whose building has lost its battle map says NO_BATTLE_MAP_FOR_THAT_SCENE instead of doing nothing. Whose turn it is is also announced to screen readers. All found by new browser journeys: one fight with two players from START to END, two fights at once with the GM jumping between them, and one fight spread over two scenes.
Expand Down
18 changes: 9 additions & 9 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ kept; the job itself stops at 30 (`timeout-minutes`), for a hang outside the tes
| `tests/sheet-bonus-ways.spec.ts` | The ways a bonus counts at the table (7e1): CON 18, a Tough +2 and a Ring +2 each STOPS AT 20, Tough taking it to 20 and the Ring then named as cut, (+2, stops at 20) +0; an Amulet's AT LEAST 19 doing nothing at 20, then lifting a CON of 12 (16 with the two +2s) to 19, named Amulet → 19 |
| `tests/sheet-ranks.spec.ts` | A rank on the sheet (7f1c1): a player with Level 3 sees Athletics as a picker of UNTRAINED, TRAINED and EXPERT, picks EXPERT, its worth = 7 shows beside it, the formula Climb reading it shows 8, and the server keeps the step 2 with Athletics 7 and Climb 8 |
| `tests/sheet-ranks-start.spec.ts` | Ranks making a character (7f1c2): a player in NEW CHARACTER types Grit, finds Lore under RANKS with UP TO TRAINED TO START and EXPERT off, picks TRAINED, and the server keeps the step 1 with Lore worth 2 |
| `tests/sheet-worn-items.spec.ts` | Items at the table (7e3b): two GEAR lines named like items get WEAR and ATTUNE; the ring worn does nothing yet, attuned it is WORKING, ATTUNED 1 OF 1, CON 14 → 16; the cloak worn with no slot free says so and can't attune; the GM, on the player's sheet, ATTUNES it ANYWAY (2 OF 1) and gives them 2 of their own; END frees the ring's slot and its +2 goes; the cloak taken off stays attuned and does nothing. A second test: the GM's GIVE.EXE lists the ring under ITEMS with NEEDS ATTUNED and its words, gives it to the player as a stowed gear line, the player is told and WEARS it; TERMINATE_SESSION closes GIVE.EXE while the session is still ending |
| `tests/sheet-worn-items.spec.ts` | Items at the table (7e3b): two GEAR lines named like items get WEAR and ATTUNE; the ring worn does nothing yet, attuned it is WORKING, ATTUNED 1 OF 1, CON 14 → 16; the cloak worn with no slot free says so and can't attune; the GM, on the player's sheet, ATTUNES it ANYWAY (2 OF 1) and gives them 2 of their own; END frees the ring's slot and its +2 goes; the cloak taken off stays attuned and does nothing. A second test: the GM's GIVE.EXE lists the ring under ITEMS with NEEDS ATTUNED and its words, gives it to the player as a stowed gear line, the player is told and WEARS it; TERMINATE_SESSION closes GIVE.EXE while the session is still ending; and (2026-11-22) no ATTUNED bar on GEAR until the Ring's line is there |
| `tests/sheet-item-types.spec.ts` | The GEAR tab as a table per item type (8a3a): a player's sheet with WEAPONS and GEAR tables, each empty with its +; + WEAPON made A stick with DAMAGE 1d4 and GRADE HEAVY; a second line named Pistol showing 2d6 + @might faint, its RANGE typed over to 50 m; + GEAR made Rope at 10 lb; saved as made, each in its table after a reload; since 8a3b the stick's DAMAGE rolled with ROLL, "rolled A stick DAMAGE 1d4" in the dice tray's history; and (8a3c1) as compact lines: a line made by hand opened under ✎, DONE showing its words with ROLL, the Pistol's RANGE read as words after the reload, and no box on the GEAR tab scrolling sideways in SHEET.EXE; and (8a3c2) the Pistol's DAMAGE under ✎ said ON THIS CHARACTER: 2d6 + Might (12): 14 to 24, @strength flagged as not the system's, eˣ INSERT putting in @might; and (G2) in bands: PACK says "Nothing here." with no WEAPONS group before anything is carried, and things are added from the row of + at the top; and (G3) the Pistol's card opened by a click on its name |
| `tests/sheet-gear-bands.spec.ts` | The GEAR tab in bands (G2): a game with WEAPONS EQUIPPED, POTIONS USABLE and GEAR unsaid; a player adds a Sword, a Draught and a Rope from the row of + at the top, each in its band and counted (EQUIPPED · 1, USABLE · 1, PACK · 1, STASH · 0 closed), saved as made; the Sword moved to the stash goes to STASH, which opens and says WEAPONS, EQUIPPED left at 0; USABLE closed by its head, and on the next visit USABLE is still closed and PACK open; and (G3) one line a thing: the Draught's HEALS blank, so FILL IN, which opens its card at that box, ready to type; 2d4 typed, DONE, the line says HEALS 2d4 and FILL IN is gone, saved; a Cloak, GEAR, made by hand sits in PACK, WEAR puts it in EQUIPPED (EQUIPPED · 1), taken off it is back in PACK; with EQUIPPED closed, WEAR lights its head (▸ EQUIPPED · 1), opened it is plain again |
| `tests/sheet-gear-bands.spec.ts` | The GEAR tab in bands (G2): a game with WEAPONS EQUIPPED, POTIONS USABLE and GEAR unsaid; a player adds a Sword, a Draught and a Rope from the row of + at the top, each in its band and counted (EQUIPPED · 1, USABLE · 1, PACK · 1, STASH · 0 closed), saved as made; the Sword moved to the stash goes to STASH, which opens and says WEAPONS, EQUIPPED left at 0; USABLE closed by its head, and on the next visit USABLE is still closed and PACK open; and (G3) one line a thing: the Draught's HEALS blank, so FILL IN, which opens its card at that box, ready to type; 2d4 typed, DONE, the line says HEALS 2d4 and FILL IN is gone, saved; a Cloak, GEAR, made by hand sits in PACK, WEAR puts it in EQUIPPED (EQUIPPED · 1), taken off it is back in PACK; with EQUIPPED closed, WEAR lights its head (▸ EQUIPPED · 1), opened it is plain again; and (G4) FIND: 2d4 shows the Draught in USABLE, closed, opened while it shows (PACK · 0), lantern says nothing matches, cleared USABLE is closed again |
| `tests/sheet-gear-counts.spec.ts` | A gear line's COUNT at the table (8a4): a player's Pistol at AMMO 2 / 6 spends one with FIRE; RELOAD, with Pistol Rounds and AP Rounds both carried, asks which and takes all 3 AP Rounds, their line gone; RELOAD again takes 2 of the Pistol Rounds alone, full, RELOAD held; the Wand's CHARGES, with no RELOAD, filled by a SHORT REST from the sheet |
| `tests/sheet-standalone-tab.spec.ts` | The sheet in a new tab is the window (8s1a): a player makes two gear lines in SHEET.EXE, opens the tab with ⧉ (a `.crt-container`, so in the theme), WEARs the boots there and SHEET.EXE says WORKING too, and rolls the club's DAMAGE from the tab, said on it once the dice land; since 8s1b the roll from the tab opens DICE_TRAY.EXE in the main app's window; and (8s1c) a character being made: the flow left, SHEET.EXE says CREATING · CONTINUE, the tab says it too and opens NEW_CHARACTER.EXE on itself; and (8s1d) Cash on the tab opens BANK.EXE in the main window and the tab says so, then with the main window closed the tab says to open it; and (G2) gear added from the row of + at the top of GEAR |
| `tests/sheet-vitals.spec.ts` | The vitals strip (8s3b): a player with a token takes 5 with DAMAGE in SHEET.EXE (the token and the bar at 15/20), opens the ⧉ tab and HEALs 3 there (18/20 on the token, the tab and SHEET.EXE), then clicks the tab's HP bar and HEALTH's own panel opens in place; and (8s3c) PRONE put on under the box in SHEET.EXE, shown on the tab as a chip and taken off there, then REST ▾ on the tab taking a LONG REST, asked first, the stat it refills set; the box's HIT POINTS ▾ wholly under the numbers with the slash centered over it, and the conditions list as wide as the box; and CWN in SHEET.EXE: MELEE AC and RANGED AC shown, no two of HEAL, DAMAGE, STIM, HIT POINTS, + CONDITION, the AC and REST overlapping, and every button's words inside it; the AC centered between + CONDITION and REST; and (8s3d1) a two-track system: STUN MAX set on the sheet, STUN picked above the box, 6 damage filling it with 2 spilling into PHYSICAL (18/20 on the token), STUN FULL · 2 SPILLED INTO PHYSICAL said; and (8s3d2) the GM opens a player's sheet (GLOBAL_CHAT, VIEW_PLAYER_INFO, OPEN_SHEET) and takes 5 with the box there: the token at 15, the GM's box and the player's own SHEET.EXE saying 15. Since 8a6c the chip is clicked open, as wide as the box, and taken off with TAKE OFF |
Expand Down
12 changes: 12 additions & 0 deletions e2e/tests/sheet-gear-bands.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ test('GEAR in bands: EQUIPPED, USABLE, PACK by type, a sword stashed into the ST
await expect(head('USABLE')).toHaveAttribute('aria-expanded', 'false');
await expect(head('PACK')).toHaveAttribute('aria-expanded', 'true');

// FIND (G4): always there; 2d4 finds the Draught in USABLE, closed, opened while it shows; cleared, USABLE closed again.
const find = mine.getByRole('searchbox', { name: 'Find in your gear' });
await find.fill('2d4');
await expect(head('USABLE')).toHaveText('▾ USABLE · 1');
await expect(band('USABLE').getByRole('button', { name: 'Draught, item 2', exact: true })).toBeVisible();
await expect(head('PACK')).toHaveText('▾ PACK · 0');
await find.fill('lantern');
await expect(mine.getByRole('status', { name: 'What FIND found' })).toHaveText('Nothing on this sheet matches “lantern”.');
await find.fill('');
await expect(head('USABLE')).toHaveAttribute('aria-expanded', 'false');
await expect(head('USABLE')).toHaveText('▸ USABLE · 1');

// A Cloak, GEAR, in PACK; worn, EQUIPPED; taken off, PACK again (G3: "my Cutlass is worn, should it be in EQUIPPED?").
await add.getByRole('button', { name: 'Add a Gear by hand' }).click();
await mine.getByLabel('Item 4 name', { exact: true }).fill('Cloak');
Expand Down
2 changes: 2 additions & 0 deletions e2e/tests/sheet-worn-items.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ test('WEAR and ATTUNE on GEAR: the ring counts once attuned, a full slot is the

// Two lines named like the items, stowed: carried.
await sheetTab(mine, 'GEAR');
// No ATTUNED bar while nothing on the sheet needs a slot (2026-11-22); it comes with the Ring's line.
await expect(mine.getByRole('group', { name: 'ATTUNED slots' })).toHaveCount(0);
for (const [n, name] of [[1, 'Ring of Might'], [2, 'Cloak of Warding']] as const) {
await mine.getByRole('button', { name: '+ ITEM', exact: true }).click();
await mine.getByLabel(`Item ${n} name`, { exact: true }).fill(name);
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,12 @@ button.choice-off:disabled {
.gear-band-news { animation: none; }
}

/* FIND on GEAR (G4) has its own × in the theme; the browser's is blue whatever the theme. */
.gear-find::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
}

.login-panel h1 {
letter-spacing: 10px;
margin-bottom: 5px;
Expand Down
Loading
Loading