Skip to content

[5.x] Add view column options to inventory screen#4193

Closed
lukeholder wants to merge 4 commits into
5.xfrom
feature/inventory-columns
Closed

[5.x] Add view column options to inventory screen#4193
lukeholder wants to merge 4 commits into
5.xfrom
feature/inventory-columns

Conversation

@lukeholder

@lukeholder lukeholder commented Dec 8, 2025

Copy link
Copy Markdown
Member

Description

Work in Progress.

Adds view options to the inventory screen to show/hide columns. Options are stored in local storage like the element index.

CleanShot 2025-12-08 at 17 38 25@2x

Uses the same UI as an element index.

TODO:

  • Add and check all new translations

Related issues

#3520
#3429

@lukeholder lukeholder changed the title Add view column options to inventory screen [5.6] Add view column options to inventory screen Dec 8, 2025
@lukeholder lukeholder changed the title [5.6] Add view column options to inventory screen [5.x] Add view column options to inventory screen Feb 18, 2026
Base automatically changed from 5.6 to 5.x March 11, 2026 17:53
Put options into local storage
@lukeholder lukeholder force-pushed the feature/inventory-columns branch from ef7fed1 to 388b3db Compare June 3, 2026 08:16
…RIA, ID entropy

- Add 'View' and 'Table Columns' to en/commerce.php and InventoryAsset.php (remove unused 'View settings')
- rebuildTable: destroy old VueAdminTable before emptying DOM to prevent instance leak
- rebuildTable: add 50-attempt escape hatch to setInterval search restore
- Add destroy() override to clean up toolbar DOM, viewMenu DOM, and DisclosureMenu instance
- getStorageKey: use inventoryLocationId (per-location prefs) instead of siteUid
- Remove mismatched aria-label from View button (visible text is sufficient)
- Improve random ID entropy: substring(2) instead of substring(7)
@lukeholder lukeholder force-pushed the feature/inventory-columns branch from da9d531 to b2c5e49 Compare June 3, 2026 08:32
- Scope CROSS JOIN in getInventoryLevelQuery to the requested location when
  inventoryLocationId is provided, preventing a full locations x items
  Cartesian product from materializing before the outer WHERE filters it
- Batch-load purchasables for the page in one query per element type instead
  of one getElementById call per row (N+1)
@lukeholder lukeholder closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant