feat: show all tags in tag mapper for icon setting#285
Merged
Conversation
Previously, the tag mapper only showed Oura programmatic tags (UUIDs and tag_* prefixes). Manual, lastfm-auto, and calendar tags were excluded, making it impossible to set icons on those tags. Now all tags appear in the tag mapper. Non-programmatic tags have their name field read-only (since they already have human-readable names) but the icon field is editable. An is_programmatic flag distinguishes which tags need name mapping vs icon-only configuration.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #285 +/- ##
===========================================
+ Coverage 31.43% 31.49% +0.06%
===========================================
Files 181 181
Lines 22986 22982 -4
Branches 1856 1860 +4
===========================================
+ Hits 7225 7239 +14
+ Misses 15727 15709 -18
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Cover the new is_programmatic field and current_name logic for both programmatic (Oura) and non-programmatic (manual, lastfm-auto, calendar) tags in the MCP tool handler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tag_*prefixes)Changes
packages/api-spec: Addedis_programmaticboolean toprogrammaticTagSchemato distinguish tags needing name mapping vs icon-onlyapps/backend/src/db/tags.ts:getProgrammaticTags()now returns all tags — programmatic ones (withtag_keyor matching UUID/tag_*patterns) and regular ones (grouped by tag name withisProgrammatic: false)apps/backend/src/routes/tags-router.ts: GET/tags/programmaticpassesis_programmaticflag and setscurrent_nameto the tag name for non-programmatic tagsapps/backend/src/mcp/settings-tools.ts: MCPget_programmatic_tagstool updated with matching logicapps/web/src/components/TagMappingsSettings.tsx: