Skip to content

BestiaryJournal 0.4.5

Choose a tag to compare

@TacticalOtaku TacticalOtaku released this 19 Nov 07:59
· 13 commits to main since this release

Fixed

  • Editor listener leak: Moved BestiaryEntryEditor's outer form change listener to _onFirstRender so re-renders no longer stack duplicate handlers.
  • Scroll preservation across re-renders: Configured Foundry PARTS.*.scrollable across BestiaryApp, BestiarySectionView, BestiaryCreatureView ("" for the root scrollable wrapper plus .rail-body), and BestiaryKnowledgeBoard, fixing vertical scroll resets when toggling favorites or item tiers.
  • Dialogs, menus, and Foundry v14 API: Opened confirmations and wait dialogs as modal <dialog> top-layer prompts (modal: true), aligned showContextMenu with Foundry v14 { label, visible, onClick } entries, replaced [...arr].sort() / mutating .sort() with .toSorted(), and scoped legacy ::-webkit-scrollbar fallback rules under @supports not (scrollbar-color: auto).

Accessibility & UI Polish

  • Associated <label for> / <fieldset> / <legend> in editors, wrapped search bars in <search> landmarks, and added aria-label to icon-only buttons, <select> controls, and comment inputs.
  • Separated .creature-item-toggle buttons from inline tier <select> pickers, synced aria-expanded / aria-pressed states, converted side rail and comment channel bars into keyboard-navigable ARIA tablist / tab widgets, and upgraded showContextMenu with popover="manual", arrow-key navigation, and Escape focus restoration.
  • Added color-scheme: dark / light per theme, live prefers-reduced-motion reactivity, :focus-within rings, scrollbar-gutter: stable, and text-wrap typography refinements.

Validation and Compatibility

  • 175 automated tests pass alongside ESLint, Prettier, manifest checks, and live Foundry VTT 14.367 UI/QA verification.
  • Requires Foundry VTT 14.367 (v14) and dnd5e 5.3.3 within the declared compatibility range. No public API changes.