Dan Stillman
06b28194da
Show annotation widget in conflict resolution window
...
This adds a very basic reimplementation of the annotation widget for use
in the CR window. It's not pixel-perfect, but it's close enough that
most people probably won't notice. We'll want to replace this with a
real version that's shared between the PDF reader and the rest of the
codebase.
Image annotations currently show an "[image not shown]" placeholder.
Showing images is tricky: we don't have the remote cache image, so if
the remote position has changed, we could only show an image by
rendering it from the file, and only if the file itself hasn't changed.
Just for a better user experience, we could use the local image as long
as the position and file are both the same, but that would take some
rejiggering of the CR window.
Tags aren't shown because they're not shown for CR at all, though that
could be changed in the future.
2021-03-21 14:36:43 -04:00
Dan Stillman
7889cd5d39
Fix item.clone() on annotation items
2021-03-21 14:36:42 -04:00
Martynas Bagdonas
9eb4fdb9cd
Return back to notes list when a note is deleted
2021-03-19 12:41:07 +02:00
Martynas Bagdonas
ac750520e7
Use browser
element instead of iframe
to have access to History API
2021-03-18 18:19:09 +02:00
Martynas Bagdonas
f02b3464b8
Close note editor window when the note item is deleted
2021-03-18 10:05:21 +02:00
Martynas Bagdonas
4f71c2ab09
Improve PDF reader and note editor error handling
2021-03-18 10:03:36 +02:00
Martynas Bagdonas
1ede4240e0
Close all tabs and unregister tabs observer when destroying main window
...
#2005
2021-03-17 17:59:04 +02:00
Martynas Bagdonas
bf84e16002
Show crash popover on annotation saving failure
...
#2006
2021-03-17 13:43:48 +02:00
Martynas Bagdonas
1677e957cd
Properly ignore deleted PDF attachments and close pdf-reader tabs
...
#2006
2021-03-17 13:43:48 +02:00
Martynas Bagdonas
8013a6ce97
Do not select the closest tab when closing a tab that is not selected
2021-03-17 13:41:21 +02:00
Dan Stillman
ae98488d2b
Fix selectItem() on first items row (regression from d5334dc483
)
2021-03-17 00:31:42 -04:00
Dan Stillman
d5334dc483
Fix item tree breakage if annotation is added while search is active
2021-03-17 00:14:43 -04:00
Martynas Bagdonas
bb2f1ced99
Position pdf-reader color popup by element instead of coordinates
2021-03-15 20:27:24 +02:00
Dan Stillman
ed70b404ad
Tweak zoom labels in PDF reader context menu
...
"Automatic" → "Automatically Resize"
"Page Width" → "Zoom to Page Width"
2021-03-12 06:59:53 -05:00
Dan Stillman
76d504c564
Delete child annotations when deleting attachment
...
And fix a FK definition that could result in orphaned `items` rows
without `itemAnnotations` rows after an attachment was deleted.
2021-03-12 06:35:21 -05:00
Dan Stillman
0bc6b2ccc6
Transfer annotations when converting linked files to stored files
...
Previously, any annotations on the linked file were partially deleted,
leaving broken `items` rows without `itemAnnotations` rows.
2021-03-12 06:35:21 -05:00
Martynas Bagdonas
7b0bd05865
Add PDF page context menu, update editor & reader
...
Fixes #1978
2021-03-11 17:24:48 +02:00
Dan Stillman
cbfaed7abf
Update locales from Transifex and merge new English strings
2021-03-10 11:00:48 -05:00
Dan Stillman
98c101fd55
Notes pane: Change "Delete" to "Move to Trash" and remove confirm()
...
And remove unused _removeNote() function
We prompt to delete in the items list to distinguish from collection
removals, but it's arguably not necessary here, since you can always get
the item out of the trash. Undo would be nice, though.
2021-03-10 11:00:48 -05:00
Dan Stillman
24cc59cc7e
Compress single-file HTML attachments and other text files
...
The test for ZIP uploads was having multiple files, but now snapshots
are all single files.
2021-03-10 09:37:52 -05:00
Dan Stillman
249d1aa0da
Mendeley import: Add log lines for timing pdf-worker
2021-03-10 09:37:52 -05:00
Martynas Bagdonas
13cafe886e
Rework note editor toolbar and related UI
2021-03-09 17:37:44 +02:00
Dan Stillman
824f67cb36
Mendeley import: Ignore empty text highlights
2021-03-08 10:58:15 -05:00
Dan Stillman
e4d7089506
Mendeley import: Fix blank PDF attachment MIME type from previous imports
2021-03-08 09:55:26 -05:00
Dan Stillman
5cdc088c49
Mendeley import: Import highlight and note annotations
...
Using new PDF worker functionality
If you've previously imported, you should be able to import again to get
annotations in the new PDF reader.
Details:
- Text highlights will be processed to extract text
- Rectangle highlights will turn into image annotations
- Any extracted-annotation notes created by previous improts won't be
removed, but they're no longer created as long as the file exists.
2021-03-08 09:05:07 -05:00
Dan Stillman
c16432b217
Mendeley import: Set contentType for PDFs
2021-03-08 09:04:40 -05:00
Dan Stillman
3af4793f7f
Don't log warning when opening a PDF for the first time
...
"Setting contains an invalid attachment page index ('null') -- discarding"
Fixes #1973
2021-03-07 02:30:21 -05:00
Martynas Bagdonas
6e49da1452
Add notes list context menu
...
Fixes #1979
2021-03-06 00:51:00 +02:00
Martynas Bagdonas
a1206e8901
Add Mendeley annotations processor
2021-03-05 21:26:49 +02:00
Martynas Bagdonas
8b1b2ee56a
Fix ctrl+something default keyboard shortcuts
2021-03-04 17:02:10 +02:00
Dan Stillman
586a6f1ddf
Fix time zone of note modification time in notes pane
2021-03-03 17:06:27 -05:00
Dan Stillman
bda52827da
Reset note font size to 14 for new editor
2021-03-03 16:03:31 -05:00
Dan Stillman
49906c3fa0
Add "Export PDF" options to File menu
...
Quick implementation, but works on parent items or PDF attachments
Currently always includes annotations, but we'll want that to be an
option
2021-03-03 15:31:37 -05:00
Martynas Bagdonas
d893a02092
Properly check note schema version existence
2021-03-03 03:36:13 -05:00
Martynas Bagdonas
8755cf7338
Add missing schema version container
2021-03-03 03:36:13 -05:00
Dan Stillman
a7b7f5f8b4
Update locales from Transifex and merge new English strings
2021-03-03 03:36:13 -05:00
Dan Stillman
d98fabc5ab
Add annotation type to schema
2021-03-03 03:33:52 -05:00
Dan Stillman
bffefe6644
Refer to PDF reader preview as a preview in the prefs
2021-03-03 00:59:27 -05:00
Dan Stillman
301c13befb
Remove unused strings
2021-03-03 00:44:33 -05:00
Dan Stillman
79e52beb38
Update text of outdated doc template warning
2021-03-02 18:12:25 -05:00
Dan Stillman
2fbb7d404a
Fix visual bugs in progress bar and Quick Format dialog on macOS
...
Fix extra whitespace and misaligned Z icon
Update to e918b430b6
after some recent changes
2021-03-02 18:12:25 -05:00
Dan Stillman
f861249fce
Tweak error for Add Note when beta features are disabled
...
And remove from localized strings
2021-03-02 18:12:25 -05:00
Dan Stillman
03ac62e71e
Tweak PDF reader checkbox label
2021-03-02 18:12:25 -05:00
Dan Stillman
5fd7f097f3
Add "Learn more" link below PDF reader checkbox
2021-03-02 18:12:25 -05:00
Dan Stillman
94871dade6
Add Cancel button to prompt for PDF reader checkbox
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
607cb733da
Adds a friendly date and subsequent note line for note insertion
...
Closes #66
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
91ac847bab
Inform connector about PDF build to enable Add Note button in Google Docs
2021-03-02 18:12:24 -05:00
Adomas Venčkauskas
02fc8bf39f
Add an error message when using the Add Note button with beta disabled
...
Closes #67
2021-03-02 18:12:24 -05:00
Martynas Bagdonas
3aa79f40d7
Populate PDF reader tab title immediately
2021-03-02 18:12:24 -05:00
Martynas Bagdonas
17abf87bcf
Improve notes list UI:
...
- Show both sections even on search
- Add new note creation popups with an option to create from annotations
- Hide child notes section if no parent item
2021-03-02 18:12:24 -05:00