Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow annotations to be changed between highlights and underlines via sync #985

Open
dstillman opened this issue Jul 18, 2024 · 3 comments
Assignees

Comments

@dstillman
Copy link
Member

dstillman commented Jul 18, 2024

See zotero/zotero#3744 (comment)

Any reason this would fail if it came in via a sync? For now we're going to delete and recreate to change between the two types, but we'll want to be able to switch to just changing the annotation type later.

(And once we have underlining merged, we'll want a UI option to change between highlights and underlines, but we can deal with that later. This is just to make sure there are no problems at the data layer.)

@michalrentka
Copy link
Contributor

michalrentka commented Jul 18, 2024

It shouldn't create any problem in the data layer. Annotation type is just a string, so that's fine. But it'll most likely be a problem when the user has changed document open and the change syncs. Not sure what would happen, most likely the original annotation won't be found in the document because the expected type is different, so nothing would change. So we'll have to handle this edge-case and after that even switching in UI should be as simple as just changing the value.

@michalrentka michalrentka self-assigned this Sep 2, 2024
@michalrentka
Copy link
Contributor

I checked and confirmed, everything works fine, even if the document is opened and the annotation type is changed. @dstillman do we add the option to convert between underline and highlight to iOS too?

@dstillman
Copy link
Member Author

do we add the option to convert between underline and highlight to iOS too?

Sure, but it can be buried in the Edit Annotation pane.

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

No branches or pull requests

2 participants