callumalpass_tasknotes/tests/unit
Renato Mendonca e9257005f9
Feat/Optionally hide identifying tags (Implements FR #937) (#956)
* feat: add option to hide identifying tags in task cards

Add a new setting "Hide identification tags in task cards" that allows
users to hide tags matching the task identification tag (including
hierarchical matches) from task card displays.

Key features:
- Setting only visible when using tag-based identification method
- Filters exact matches and hierarchical children (e.g., task/project)
- Backward compatible (default: false, shows all tags)
- Comprehensive test coverage (14 test cases)

Implementation:
- Added hideIdentifyingTagsInCards boolean to settings
- Conditional UI toggle in settings tab
- Tag filtering logic in TaskCard.ts using FilterUtils
- i18n translations for new setting

Files modified:
- src/types/settings.ts
- src/settings/defaults.ts
- src/settings/tabs/generalTab.ts
- src/i18n/resources/en.ts
- src/ui/TaskCard.ts
- tests/unit/ui/TaskCard.hideIdentifyingTags.test.ts (new)

* docs: add documentation for hide identifying tags feature

Add comprehensive documentation for the 'Hide identification tags in task cards' setting in the General Settings page.

Documentation includes:
- Detailed explanation of when the setting is available (tag-based identification only)
- How hierarchical tag matching works (exact matches and children)
- Visual demo with animated GIF
- Practical before/after example
- Clarification that tags remain in frontmatter (only visual display is affected)

Files added:
- docs/assets/demo-hide-identification-tags.gif (visual demo)

Files modified:
- docs/settings/general.md (expanded Task Identification section)
2025-10-26 11:42:07 +11:00
..
editor fix: task card widget not appearing on Obsidian startup (#826) (#846) 2025-10-06 21:24:04 +11:00
issues Fix: Mini Calendar opens correct daily note in all timezones (#857) (#876) 2025-10-08 23:27:00 +11:00
locales feat: add complete chrono-node language support (12 languages) 2025-09-08 00:28:19 +10:00
modals fix: add i18n mocks to fix failing tests in translation feature 2025-09-23 22:11:11 +10:00
services fix: process template variables in ICS note folder paths (#816) 2025-10-05 15:17:00 +11:00
settings fix: resolve state management bug in FilterSettingsComponent 2025-10-26 10:38:28 +11:00
suggest fix: prevent project filters from affecting custom field suggestions (#908) 2025-10-12 13:42:28 +11:00
timezone-bugs fix: Replace setUTC anti-pattern with local date arithmetic 2025-08-03 07:25:00 +10:00
ui Feat/Optionally hide identifying tags (Implements FR #937) (#956) 2025-10-26 11:42:07 +11:00
utils fix: process template variables in ICS note folder paths (#816) 2025-10-05 15:17:00 +11:00
tagRenderer.test.ts feat: allow slashes in hierarchical tags and contexts 2025-09-22 13:26:35 +02:00