Skip to content

Omnivore import improvement - archived #703

@jakubsuchybio

Description

@jakubsuchybio

Describe the feature you'd like

Currently you import with this mapping:

  return parsed.data.map((bookmark) => {
    return {
      title: bookmark.title ?? "",
      content: { type: BookmarkTypes.LINK as const, url: bookmark.url },
      tags: bookmark.labels,
      addDate: bookmark.savedAt.getTime() / 1000,
    };

But the omnivore export format also has bookmark.State which can be either Active or Archived
I can see, that your import dto doesn't have archived boolean

export interface ParsedBookmark {
  title: string;
  content?:
    | { type: BookmarkTypes.LINK; url: string }
    | { type: BookmarkTypes.TEXT; text: string };
  tags: string[];
  addDate?: number;
  notes?: string;
}

but your bookmarks do have them.

I'd code it myself, but I can't even read typescript, even though I am C# dev.
This react stuff isn't something that I want to learn.

Describe the benefits this would bring to existing Hoarder users

It would bring better experience when migrating from Omnivore, so that the work that users put into their articles with archiving wouldn't be wasted.

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

I guess manual bulk updates for bookmarks. But very difficult to tell which should be archived and which not.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions