feat(webapp): browse in place, slice 3 — Find at the table browses the rules (#1243) #1320
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/1243-table-find"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1243, slice 3 of 3 (D316, D317). It's built on slice 2 (#1319) and should merge after it; the diff here shrinks to this slice once #1319 is in.
What it adds
onOpenEntry, the dialog closes, and the table's aside preview shows it with "Add to the shelf" (D53's single preview).GmTablepasses the campaign's system key.Not in this PR: D207's two cards for one creature. Each card already keeps its own HP, but
uq_shelf_cards_session_referenceallows one card per rules entry per session. The preview then says "On the shelf", and carry-forward relies on that. A second card needs a schema change. The owner is asked on the Questions page (Q209, SB5).Checked
Find.test.jsx: 18 passed (6 new); GmTable and TableMode: 118 passed;CampaignSettingsWikithat passed alone.New wording: "Browse the rules ›" and "‹ Back to the search", from the drawing, plus "Esc to go back to the search". It goes on the Wording Review page.
🤖 Generated with Claude Code
Render check (journeys stack, desktop, light and dark)
0 console errors, axe clean on browse and on a kind, and the table's URL never changed.
Found and fixed (
09ba70db): with a kind open, the filter box filled the 26rem browse area and the rows began below the fold. The area is nowmin(72vh, 46rem)tall and the filter row is compact. A quick re-shoot is confirming the rows are visible.Merges after #1319, on green. The owner approved the wording (part p).
The re-shoot after
09ba70db: the browse area now scrolls and shows 3 rows at 800px tall, but the filter box was still about 8 lines. Most of that was two long pack names wrapping onto two lines.Next fix (pushed): with
alwaysFold(Find, and Prep's drawer), the pack choice moves into the Filters panel and counts in "Filters (N)". The Rules page's layout is unchanged.Tests for the files it touches (Rules, RuleText, library, prep tools, Find): 159 passed, 2 failed, at a load average of 33–45. Both failures are load:
CI decides.
CI's desktop journeys job failed on J4 (
j4-run-the-table.spec.js:300):getByText("In the rules", { exact: true })found nothing. It failed on the first attempt and on the retry.Cause: "Browse the rules ›" was inside the "In the rules" group heading, so the heading's text was no longer just its name. The heading is also inside
role="listbox", where only options are allowed, so the journey's axe scan would have flagged it next.Fix, in
4208479d: the button now always sits on the line under the results, outside the listbox. The group heading is plain text again. The wording is unchanged. The unit test now checks that the button is outside the listbox.Checked:
Find.test.jsx18 passed, and eslint has 0 errors. CI is re-running.