Files
krust/docs
Erfan YousefiandClaude Opus 4.8 adfa11c384 feat(view): label-selector and inverse table filters (Phase 4.5)
The table filter only did plain substring matching, so `:<kind> -l app=foo`
(which the command parser feeds in as the filter `app=foo`) silently
substring-matched the literal text instead of matching labels.

Parse the filter k9s-style (compiled once per projection):
- `!term`                       inverse (exclude matches)
- `key=value` / `key==value`    label equals
- `key!=value`                  label not-equals (holds if absent or different)
- comma-separated requirements  all must hold (`app=api,tier=backend`)
- anything else                 case-insensitive substring (unchanged default)

Label matching uses the entity's cached labels. A stray `=` in a search term
won't masquerade as a selector (label keys are validated).

Tests: label eq/neq/absent, multi-requirement, inverse, substring fallback.
Deferred (no new deps): fuzzy + regex; detail/log search stays substring.

Validation: fmt, check, test (84 passed / 4 ignored), release build all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 17:25:20 +02:00
..