Skip to content

Pre-identity user-stamped annotations don't migrate on first identity set #24

Description

@nonatofabio

When a user opens a fresh document and creates annotations before setting their identity, those annotations get author: "user" (the IdentityManager default). When they later configure their alias to e.g. fnp, the existing annotations retain author: "user" — they never pick up the new color and don't appear in the truncated-alias label.

Suggested fix. On first identity set (IdentityManager.shared.save with the previous alias being "user"), prompt: "You have N annotations marked anonymous. Claim them as <new alias>?" If yes, sweep all open-document annotations and rewrite author: "user"author: <new alias>, then save the sidecar.

Skip the prompt if there are zero pre-identity annotations.

References. Sources/mindle/IdentityManager.swift:43-48 (save), DocumentStore.swift:571-606 (highlightSelection), :608-634 (addNoteToSelection).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions