Skip to content

fix: add 'untagged' tag to bookmarks without tags on creation#412

Open
sgusic1 wants to merge 1 commit intoFindFirst-Development:mainfrom
sgusic1:fix/untagged-tag
Open

fix: add 'untagged' tag to bookmarks without tags on creation#412
sgusic1 wants to merge 1 commit intoFindFirst-Development:mainfrom
sgusic1:fix/untagged-tag

Conversation

@sgusic1
Copy link

@sgusic1 sgusic1 commented Jan 7, 2026

Fixes #136


Checklist

  • Code Formatter (run prettier/spotlessApply)
  • Code has unit tests? (If no explain in other_information)
  • Builds on localhost
  • Builds/Runs in docker compose

What is the current behavior?

Bookmarks created without tags are not grouped under any tag.

What is the new behavior?

Treat bookmarks with no tags as if they belong to a special “untagged” tag, that way they can be listed, counted and filtered like any other tag.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@sgusic1 sgusic1 changed the title fix: add 'untagged' tag to bookmarks without tags on creation #136 fix: add 'untagged' tag to bookmarks without tags on creation Jan 7, 2026

// Add default "untagged" tag if user has not provided any
if (!tags.length) {
tags = [{ title: "untagged", id: -1 }];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer it on the retrieval side rather than the submission side.
For example, the frontend when it retrieves all the bookmarks the untagged tag to the bookmark rather than saving it on the backend.

The reason this is suggested, is we then have to manage untagged bookmarks on the backend then. Such as when a user adds a tag to a bookmark that has been tagged as untagged, now we have to check the tags when tags are added and in this not an optimal option.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, I’ll fix this as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Untagged List option

2 participants