MinimalNativeCache was completely unused in production code - it was replaced
by TaskManager but never deleted. This commit removes ~1,910 lines of dead code.
Changes:
- Deleted src/utils/MinimalNativeCache.ts (1,910 lines)
- Deleted 4 dedicated MinimalNativeCache test files
- Updated 7 FilterService test files to use TaskManager instead
- Updated mock factories to reference TaskManager
- Updated comments in main.ts and FilterService.ts
Evidence it was unused:
- Zero imports in src/ (only in tests)
- Zero instantiations in production code
- main.ts uses TaskManager (this.cacheManager)
- FilterService uses TaskManager in production
- TaskManager explicitly does NOT cache (JIT design)
The TaskManager approach:
- Reads on-demand from Obsidian's native metadataCache
- No internal indexes or caching
- Event-driven to stay in sync
- Simpler and more reliable than MinimalNativeCache
Build Verified: ✓
Tests Updated: ✓
Total Impact: ~2,000 lines removed
Ensures the fix for #776 doesn't regress by testing that:
- Valid string tags work correctly
- Non-string values (numbers, booleans, objects, arrays) are safely skipped
- Mixed arrays with both string and non-string values are handled
- Empty arrays and all-non-string arrays return false appropriately
- Add HierarchicalGroupingService sorting tests
* Test "No <field>" positioning for ascending and descending order
* Verify type-aware sorting behavior for user fields
* Validate subgroup key ordering consistency
- Add FilterBar subgroup menu integration tests
* Test subgroup header and options in sort/group context menu
* Verify subgroup reset behavior when primary group changes
* Use dependency injection approach for reliable test execution
- Enhance test infrastructure for subgroup testing
* Implement direct method testing instead of DOM manipulation
* Add mock resolver functions for user field value resolution
* Create reusable test helpers for subgroup scenarios
Provides robust test coverage for subgroup sorting logic, menu integration,
and cross-view consistency to ensure reliable hierarchical grouping behavior.