[GH-ISSUE #1937] FR: Create unused tags #1199

Closed
opened 2026-03-02 11:55:44 +03:00 by kerem · 3 comments
Owner

Originally created by @Robubble on GitHub (Sep 12, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1937

Describe the feature you'd like

I'd like to be able to create unused tags.

Describe the benefits this would bring to existing Karakeep users

When using the AI prompt to use already existing tags, it would be better if those tags were already there.

Can the goal of this request already be achieved via other means?

The only workaround I see at the moment, is creating a dummy link to contain all the 'unused' tags I'd like to use for AI or on other places (e.g. rules)

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

Additional context

No response

Originally created by @Robubble on GitHub (Sep 12, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1937 ### Describe the feature you'd like I'd like to be able to create unused tags. ### Describe the benefits this would bring to existing Karakeep users When using the AI prompt to use already existing tags, it would be better if those tags were already there. ### Can the goal of this request already be achieved via other means? The only workaround I see at the moment, is creating a dummy link to contain all the 'unused' tags I'd like to use for AI or on other places (e.g. rules) ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### Additional context _No response_
Author
Owner

@MohamedBassem commented on GitHub (Sep 14, 2025):

@codex Add a "Create tag" button in the UI in the tags page

<!-- gh-comment-id:3289370568 --> @MohamedBassem commented on GitHub (Sep 14, 2025): @codex Add a "Create tag" button in the UI in the tags page
Author
Owner

@MohamedBassem commented on GitHub (Sep 14, 2025):

Ok, maybe codex is asleep,

@claude Add a "Create tag" button in the web UI in the tags page. The create tag button should open a modal to enter the tag name. I think the trpc endpoint for creating tags already exists.

<!-- gh-comment-id:3289376663 --> @MohamedBassem commented on GitHub (Sep 14, 2025): Ok, maybe codex is asleep, @claude Add a "Create tag" button in the web UI in the tags page. The create tag button should open a modal to enter the tag name. I think the trpc endpoint for creating tags already exists.
Author
Owner

@claude[bot] commented on GitHub (Sep 14, 2025):

Claude finished @MohamedBassem's task —— View jobclaude/issue-1937-20250914-0912Create PR ➔


Added "Create tag" button to tags page

I've successfully implemented the Create Tag feature as requested. Here's what I did:

Todo List:

  • Find the tags page component in the web UI
  • Verify if tRPC endpoint for creating tags exists
  • Add useCreateTag hook to shared-react/hooks/tags.ts
  • Create CreateTagModal component
  • Add "Create tag" button to the tags page
  • Check and add missing translation keys
  • Commit and push changes

Changes Made:

  1. Added useCreateTag hook in packages/shared-react/hooks/tags.ts to handle tag creation with proper cache invalidation
  2. Created CreateTagModal component that opens a modal dialog for entering a new tag name
  3. Added "Create Tag" button to the tags page, positioned next to the existing controls
  4. Added translation keys for the new feature in the English locale file

The tRPC endpoint for creating tags (tags.create) already existed, so I was able to use it directly. The Create Tag button now appears on the tags page and allows users to create unused tags without needing to attach them to a bookmark first.

Branch: claude/issue-1937-20250914-0912

<!-- gh-comment-id:3289376803 --> @claude[bot] commented on GitHub (Sep 14, 2025): **Claude finished @MohamedBassem's task** —— [View job](https://github.com/karakeep-app/karakeep/actions/runs/17709143900) • [`claude/issue-1937-20250914-0912`](https://github.com/karakeep-app/karakeep/tree/claude/issue-1937-20250914-0912) • [Create PR ➔](https://github.com/karakeep-app/karakeep/compare/main...claude/issue-1937-20250914-0912?quick_pull=1&title=feat%3A%20Add%20Create%20Tag%20button%20to%20tags%20page&body=%23%23%20Summary%0A%0A-%20Added%20a%20%22Create%20Tag%22%20button%20to%20the%20tags%20page%20UI%0A-%20Users%20can%20now%20create%20unused%20tags%20without%20attaching%20them%20to%20bookmarks%0A-%20Implements%20feature%20request%20from%20issue%20%231937%0A%0A%23%23%20Changes%0A%0A-%20Added%20%60useCreateTag%60%20hook%20for%20proper%20tRPC%20mutation%20handling%0A-%20Created%20%60CreateTagModal%60%20component%20with%20form%20validation%0A-%20Integrated%20the%20button%20into%20the%20%60AllTagsView%60%20component%0A-%20Added%20necessary%20translation%20keys%0A%0A%23%23%20Test%20Plan%0A%0A-%20%5B%20%5D%20Navigate%20to%20the%20tags%20page%0A-%20%5B%20%5D%20Click%20the%20%22Create%20Tag%22%20button%0A-%20%5B%20%5D%20Enter%20a%20tag%20name%20in%20the%20modal%0A-%20%5B%20%5D%20Verify%20the%20tag%20is%20created%20and%20appears%20in%20the%20unused%20tags%20section%0A-%20%5B%20%5D%20Test%20form%20validation%20%28empty%20name%29%0A-%20%5B%20%5D%20Test%20duplicate%20tag%20name%20handling%0A%0AFixes%20%231937%0A%0AGenerated%20with%20%5BClaude%20Code%5D%28https%3A%2F%2Fclaude.ai%2Fcode%29) --- ### ✅ Added "Create tag" button to tags page I've successfully implemented the Create Tag feature as requested. Here's what I did: ### Todo List: - [x] Find the tags page component in the web UI - [x] Verify if tRPC endpoint for creating tags exists - [x] Add useCreateTag hook to shared-react/hooks/tags.ts - [x] Create CreateTagModal component - [x] Add "Create tag" button to the tags page - [x] Check and add missing translation keys - [x] Commit and push changes ### Changes Made: 1. **Added `useCreateTag` hook** in `packages/shared-react/hooks/tags.ts` to handle tag creation with proper cache invalidation 2. **Created `CreateTagModal` component** that opens a modal dialog for entering a new tag name 3. **Added "Create Tag" button** to the tags page, positioned next to the existing controls 4. **Added translation keys** for the new feature in the English locale file The tRPC endpoint for creating tags (`tags.create`) already existed, so I was able to use it directly. The Create Tag button now appears on the tags page and allows users to create unused tags without needing to attach them to a bookmark first. Branch: claude/issue-1937-20250914-0912
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1199
No description provided.