feat(tables): add sortable Checked column and quick-add toggle setting
This commit is contained in:
+13
@@ -179,6 +179,19 @@
|
||||
# Default: false
|
||||
# BK_HIDE_WISHES=true
|
||||
|
||||
# Optional: Hide the 'Individual Minifigures' entry from the menu. Does not disable the route.
|
||||
# Default: false
|
||||
# BK_HIDE_INDIVIDUAL_MINIFIGURES=true
|
||||
|
||||
# Optional: Hide the 'Individual Parts' entry from the menu. Does not disable the route.
|
||||
# Default: false
|
||||
# BK_HIDE_INDIVIDUAL_PARTS=true
|
||||
|
||||
# Optional: Hide the 'Add to individual parts' quick-add buttons in parts tables.
|
||||
# The column header with menu options (mark all missing, check all, etc.) remains visible.
|
||||
# Default: false
|
||||
# BK_HIDE_QUICK_ADD_INDIVIDUAL_PARTS=true
|
||||
|
||||
# Optional: Change the default order of minifigures. By default ordered by insertion order.
|
||||
# Useful column names for this option are:
|
||||
# - "rebrickable_minifigures"."figure": minifigure ID (e.g., "fig-001234")
|
||||
|
||||
@@ -43,6 +43,10 @@
|
||||
- Click the "Checked" header to sort by checked/unchecked status
|
||||
- Works in both parts table and part lots table
|
||||
|
||||
- **Quick-add individual parts toggle**: New `BK_HIDE_QUICK_ADD_INDIVIDUAL_PARTS` setting to hide the quick-add menu in set parts tables
|
||||
- Hides the "Add to individual parts" option in the row menu dropdown
|
||||
- Useful when you want individual parts tracking enabled but don't need quick-add from set inventory
|
||||
|
||||
- **Individual Minifigures Tracking**
|
||||
- Track loose/individual minifigures outside of sets
|
||||
- Part-level tracking for individual minifigures with problem states (missing/damaged/checked)
|
||||
|
||||
@@ -22,6 +22,7 @@ CONFIG: Final[list[dict[str, Any]]] = [
|
||||
{'n': 'DISABLE_INDIVIDUAL_MINIFIGURES', 'c': bool},
|
||||
{'n': 'DISABLE_INDIVIDUAL_PARTS', 'c': bool},
|
||||
{'n': 'DISABLE_QUICK_ADD_INDIVIDUAL_PARTS', 'c': bool},
|
||||
{'n': 'HIDE_QUICK_ADD_INDIVIDUAL_PARTS', 'c': bool},
|
||||
{'n': 'DOMAIN_NAME', 'e': 'DOMAIN_NAME', 'd': ''},
|
||||
{'n': 'FILE_DATETIME_FORMAT', 'd': '%d/%m/%Y, %H:%M:%S'},
|
||||
{'n': 'HOST', 'd': '0.0.0.0'},
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
| `BK_INDEPENDENT_ACCORDIONS` | Make accordions independent | `false` | No |
|
||||
| `BK_DISABLE_INDIVIDUAL_MINIFIGURES` | Block write operations for individual minifigures | `false` | No |
|
||||
| `BK_DISABLE_INDIVIDUAL_PARTS` | Block write operations for individual parts | `false` | No |
|
||||
| `BK_HIDE_QUICK_ADD_INDIVIDUAL_PARTS` | Hide quick-add buttons in parts tables | `false` | No |
|
||||
|
||||
## Sort Order Configuration
|
||||
| Variable | Purpose | Default | Required |
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
{% if g.login.is_authenticated() and not read_only %}
|
||||
{% set show_missing_menu = not config['HIDE_TABLE_MISSING_PARTS'] %}
|
||||
{% set show_checked_menu = not config['HIDE_TABLE_CHECKED_PARTS'] %}
|
||||
{% set show_quick_add = not config['DISABLE_QUICK_ADD_INDIVIDUAL_PARTS'] and not config['HIDE_INDIVIDUAL_PARTS'] %}
|
||||
{% set show_quick_add = not config['DISABLE_QUICK_ADD_INDIVIDUAL_PARTS'] and not config['HIDE_INDIVIDUAL_PARTS'] and not config['HIDE_QUICK_ADD_INDIVIDUAL_PARTS'] %}
|
||||
{% if show_missing_menu or show_checked_menu or show_quick_add %}
|
||||
<td class="text-end">
|
||||
{% if show_quick_add %}
|
||||
|
||||
Reference in New Issue
Block a user