Skip to content

Fix Goods bulk visibility ignoring tag filters - #1849

Merged
Azgaar merged 2 commits into
Azgaar:masterfrom
barrulus:fix/goods-filter-display
Sep 10, 2026
Merged

Azgaar merged 2 commits into
Azgaar:masterfrom
barrulus:fix/goods-filter-display

Conversation

@barrulus

Copy link
Copy Markdown
Collaborator

Description

The Goods editor's bulk visibility checkbox now affects all goods matching the active tag filter across pages, preserving unrelated goods. The checkbox reflects the filtered selection and is disabled for an empty result set; the footer's map-wide displayed count updates after bulk changes. Clearing the filter restores the action to the whole catalogue.

Reuses the existing table's filtered data and visible-count helper. The fix is documented in the changelog only.

Fixes #1783.

Validation:

  • All 975 unit tests across 88 files, Biome lint, and the production build passed.
  • Four focused Chromium browser checks passed on development and production; all four fail on unchanged upstream 3da6d84a.
  • Coverage includes 105 matching goods across two pages, multiple selected tags, Show/Hide with unrelated goods preserved, map icons and displayed counts, individual row changes, clearing filters, and an empty result set.

Tests extend the existing table-actions spec and use the shared map-readiness helper. The full E2E suite and map corpus were not run.

@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit 3bf0367
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/6aa33ca1bfa51d0008abf5d2
😎 Deploy Preview https://deploy-preview-1849--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Azgaar
Azgaar merged commit c90eb11 into Azgaar:master Sep 10, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in FMG dev board Sep 10, 2026
Azgaar added a commit that referenced this pull request Sep 11, 2026
* Fix state creation and province recolouring refresh (#1848)

* fix: refresh state creation and province recolouring

* fix: preserve hidden layers when refreshing state edits

* fix: respect goods tag filters in bulk visibility changes (#1849)

* fix: add name field to the marker editor (#1851)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* investigation doc

* mamory leaks fixes

---------

Co-authored-by: barrulus <b@rry.im>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Azgaar added a commit that referenced this pull request Sep 16, 2026
* Resolving Memory leaks (#1852)

* Fix state creation and province recolouring refresh (#1848)

* fix: refresh state creation and province recolouring

* fix: preserve hidden layers when refreshing state edits

* fix: respect goods tag filters in bulk visibility changes (#1849)

* fix: add name field to the marker editor (#1851)

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* investigation doc

* mamory leaks fixes

---------

Co-authored-by: barrulus <b@rry.im>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* fix: skip removed states when vassals copy suzerain relations (#1854)

A removed state is stored as {i, removed: true} with no diplomacy array.
generateDiplomacy skips removed states in its outer loops, but the
vassal-copy loops iterate every index, so the first vassal processed
throws a TypeError on the removed state's missing diplomacy. Generation
aborts partway, leaving every later row at the "x" placeholder, which the
editor now shows as "Invalid" and can no longer regenerate.

* Omnibar (#1850)

* init

* omnibar

* entities and commands

* goods

* style and export commands

* seach button in menu

* cleanup

* cleanup

* fix tests

* fixes

* fixes

* fixes

* Azgaar Assistant trigger

* organize

* cleanup

* Wrap tool (#1831)

* init

* wrap tool

* coastline - local roughness

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* fix: stop an empty legend redrawing as an "undefined" row (#1844)

* fix: stop an empty legend redrawing as an "undefined" row

A legend box with no items - the Zones editor with everything filtered out -
stores an empty string in its data attribute. Splitting that on "|" yields one
blank row rather than none, so the next redraw drew a swatch with fill
"undefined" and the label "undefined" under the title.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDnWHpXXkGnY61DPMSL9Ms

* feat: report an empty legend instead of drawing an empty box

Toggling a legend for a list with nothing in it drew a box holding only its
title. Each editor now reports it the way the overviews do and draws nothing,
so the feedback arrives when the button is pressed rather than later, when a
style change happens to redraw the box.

The parse fix stays underneath: a map saved before this can already hold an
empty box, and that still has to redraw as empty rather than as a blank row.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDnWHpXXkGnY61DPMSL9Ms

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Remove vertex editing from the Lakes Editor (#1858)

Lake shores are reshaped only with the Wrap tool now; the per-vertex drag
handles and their #debug overlay are gone from the Lake editor.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

* Features overview (#1859)

* init

* improve the ui

* ocean hightlight

* coastline for features

* coastline editor tweaks

* styling

* update docs

* feature names

* ocean name

* fixes

* fixes

* fix

* fixes

* dialog state - reset button (#1861)

* performance settings (#1862)

* Ink style (#1864)

* first try

* Ocean embellishment

* haching

* lakes

* cinderwood start

* cleanup

* icons

* icons update

* coastal bands

* frostbite preset

* fix

* fixes

* optimization

* cleanup

* fixes

* update notes

* fix

* bring old update posts for better new updates (more human-created data)

* fix stale wiki

* fix test

* fix: refill empty burg icon and anchor style records from the saved map (#1855)

Pre-v1.150 main.js initialised the legacy style record as burgIcons: {},
anchors: {}, and the v1.150 migration took an empty object as a present
record: it stored it empty and skipped the svg harvest that still held
the group sizes. Nothing could refill it afterwards: the renderer emitted
no font-size, the style editor showed 1 and dropped every edit to a
missing group, and ensureBurgGroupStyles had no template to copy.

The migration now harvests an empty record from the svg, load refills an
already-migrated empty record the same way and seeds any burg group
without a style entry, and ensureBurgGroupStyles falls back to the
shipped defaults when a record has no group to copy.

* drainage (#1868)

* fixes

* fix: preserve cascading column sorting in overview tables (#1869)

* fix: use available stock when planning manufacturing chains (#1867)

* fix: count remaining manufacturing work from available stock

* style: trim production comments and reuse record guard

* test: cover freighter production with twenty engines

* fix doc

* fix tests

---------

Co-authored-by: barrulus <b@rry.im>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Eric Sullivan <56692984+esullivan9@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Goods editor: 'show all' ignores the active tag filter

2 participants