ZDDC/browse/js
ZDDC 53eb58b90b refactor(browse): remove auto-filter rows from header
The two filter rows (📄 file/ext + 📁 folder) didn't really earn their
header real estate. Browse is for navigating directory structure;
ad-hoc filters across a tree of mixed file types and depths weren't
the right affordance, and the visual weight competed with the column
headers and the breadcrumb. Removed entirely:

  - template.html: dropped both <tr class="filter-row"> rows in <thead>,
    the related "Filter rows" help section, and the empty-state copy
    that mentioned the 📄/📁 rows.
  - init.js: dropped state.filters (file/folder/ext slots).
  - events.js: dropped the .column-filter[data-filter] input wiring.
  - tree.js: dropped recomputeVisibility() and the n.visible plumbing
    in visibleIds() and updateCount(). Render is now a straight depth-
    first walk over expanded subtrees; the count is just total rows.
    setFilter is removed from the public API.
  - css/tree.css: dropped .filter-row*, .filter-row__icon, and the
    browse-local .column-filter rules (.column-filter is also defined
    in shared/base.css for tools that still use it; that stays).

No test changes — tests/browse.spec.js never exercised filters.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 21:50:58 -05:00
..
app.js feat(browse): Phase 2 — preview popup, ZIP expansion, ext filter, breadcrumbs 2026-05-03 20:39:49 -05:00
events.js refactor(browse): remove auto-filter rows from header 2026-05-09 21:50:58 -05:00
init.js refactor(browse): remove auto-filter rows from header 2026-05-09 21:50:58 -05:00
loader.js fix(browse): treat 404 on directory fetch as empty, not an error 2026-05-09 20:34:53 -05:00
preview.js feat(browse): Phase 2 — preview popup, ZIP expansion, ext filter, breadcrumbs 2026-05-03 20:39:49 -05:00
tree.js refactor(browse): remove auto-filter rows from header 2026-05-09 21:50:58 -05:00