Adomas Venčkauskas
50bef8dffe
Optimization of note insertion API
2021-03-02 17:58:27 -05:00
Adomas Venčkauskas
06e1c404bd
Changes to note insertion for MacWord
2021-03-02 17:58:27 -05:00
Martynas Bagdonas
45a3e96e68
Improve the new UI:
...
- Rollback all redundant changes made in the last few months
- Introduce `contextPane`
- Show child notes in the notes pane
- Fix splitter styling
- Various bug fixes
- Fix contextPane switching and states persistence
- Persist reader sidebar open/close state
- Fix bottom pane placeholder updating concurrency issues
- Fix toolbar placeholder width updating
- Display titles for split button
- Fix toolbar position when switching tabs
- Add PDF tab loading cover
- Improve notes and citations insertion
- Clean up and refactor code
- Fixes and cleanups to PDF reader
2021-03-02 17:54:48 -05:00
Dan Stillman
ab04468342
Item pane improvements for contextual/pinned modes
...
- Show item title at top of item pane in contextual mode not in a
library tab
- Show "All Notes" at top of standalone notes pane
- Add background color when clicking notes in standalone notes list
- Clean up back buttons
Mode button is still a placeholder but uses emoji to show the mode
2021-03-02 17:43:10 -05:00
Martynas Bagdonas
de5206d926
Hack in TinyMCE to support selection and links
2021-03-02 17:43:10 -05:00
Martynas Bagdonas
bb5075e8b8
Experiment with the new item pane UI
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
36cc18e8cf
Add root html tags if not present for note insertion
2021-03-02 17:43:10 -05:00
Dan Stillman
b2b9be381e
Clean up temporary note slider
2021-03-02 17:43:10 -05:00
Martynas Bagdonas
8e3dc61070
Improve menubar for reader tab and window
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
51db52a5ea
Changes for note insertion in non-GoogleDocs
2021-03-02 17:43:10 -05:00
Martynas Bagdonas
8709ddd657
Experiment with the new UI
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
52f3945aa4
Disable switching to the classic dialog when inserting a note
2021-03-02 17:43:10 -05:00
Dan Stillman
393807f487
Don't match attachments or annotations for titleCreatorYearNote search
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
6be2faa9c2
Fix note citation insertion breaking when citing the same item in a note
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
1401550230
Allow citing items in notes with only property
2021-03-02 17:43:10 -05:00
Dan Stillman
787641dc17
Fix display of item pane after pinned-note changes
...
Stacked mode is still broken
2021-03-02 17:43:10 -05:00
Adomas Venčkauskas
2e9e655479
Add ability to cite Zotero notes.
...
<span class=citation data-citation=serialized-citation-data/>
elements will automatically be converted to zotero citations
2021-03-02 17:43:09 -05:00
Adomas Venčkauskas
2b3669afd8
Consolidate Integration.Fields into Integration.Session
2021-03-02 17:43:09 -05:00
Martynas Bagdonas
3701b84116
Proof of concept note view in tab mode
2021-03-02 17:43:08 -05:00
Martynas Bagdonas
783f9c50d5
Tab bar: Fix tabs on Windows & Linux
2021-03-02 17:40:24 -05:00
Martynas Bagdonas
2f505862d7
Tab bar & Reader: Rewrite and connect everything
2021-03-02 17:40:24 -05:00
Dan Stillman
edd4f27e09
Tab bar: Fix specificity of background on macOS but leave disabled
...
We may want the vibrancy mode on Big Sur along with some other changes,
but for now let's leave it off.
2021-03-02 17:40:24 -05:00
Dan Stillman
6166907d08
Tab bar: Change selected-tab highlight color
2021-03-02 17:40:24 -05:00
Martynas Bagdonas
43c55594c1
Store PDF state in .zotero-pdf-state
2021-03-02 17:40:24 -05:00
Martynas Bagdonas
76e77d4422
Improve PDF import/export
2021-03-02 17:40:24 -05:00
Dan Stillman
e99f76b40c
Tab bar: Update styling on macOS
2021-03-02 17:40:24 -05:00
Dan Stillman
b5f7255da2
Tab bar: Close current tab with Cmd/Ctrl-w
...
And use keydown, not keypress, for moving between tabs
2021-03-02 17:40:24 -05:00
Dan Stillman
9afd509704
Tab bar: Rename _tabsBar.scss to _tabBar.scss
2021-03-02 17:40:23 -05:00
Dan Stillman
5b947a3896
Tab bar: Add comment for tab navigation in keypress handler
2021-03-02 17:39:39 -05:00
Dan Stillman
ead8c6bb45
Fix Everything search after annotations
...
And replace ancient 'annotation' search condition with
'annotationText'/'annotationComment'
2021-03-02 17:39:39 -05:00
Dan Stillman
3bd5a96560
Tab bar: Highlight current tab
2021-03-02 17:39:39 -05:00
Dan Stillman
2ca1618627
Tab bar: Change tab with Ctrl-Page-Up/Page-Down
2021-03-02 17:39:39 -05:00
Dan Stillman
a47d7e4d9c
Fix possible selection bug after closing tab
2021-03-02 17:39:39 -05:00
Martynas Bagdonas
a89f7e8ec7
Improve PDF reader
2021-03-02 17:39:39 -05:00
Dan Stillman
875e9f674f
Initial tab bar implementation
2021-03-02 17:39:37 -05:00
Dan Stillman
199619f40e
Remove .noteSchemaVersion
...
This leaves item.note in place, rather than reverting all the
`getNote()` → `.note` changes. We can consider which we want to keep.
2021-03-02 17:36:05 -05:00
Dan Stillman
602e4c1e1f
More annotation 'position' fixes
2021-03-02 17:36:05 -05:00
Dan Stillman
2536edb6ab
Fix annotation 'position' handling and update additional sortIndex tests
...
Item.position has to be a string. It still gets passed to/from the PDF
reader as an object.
2021-03-02 17:36:05 -05:00
Dan Stillman
151a14c0a8
Update test for shortened annotation sortIndex
2021-03-02 17:36:05 -05:00
Dan Stillman
a0fb7a8583
Ignore remote noteSchemaVersion: 0 for items with no local note
...
E.g., embedded attachment notes with no note don't have an itemNotes row
and don't output noteSchemaVersion in their JSON, but they shouldn't
trigger a conflict
2021-03-02 17:36:05 -05:00
Dan Stillman
b2aee30410
Fix fromJSON() not importing parentItem for annotations
2021-03-02 17:36:05 -05:00
Dan Stillman
7ea14aa34e
Add Zotero.Item::isStoredFileAttachment()
...
And replace most uses of isImportedAttachment(), which doesn't include
embedded-image attachments
There might not be much reason to keep isImportedAttachment() around.
2021-03-02 17:36:05 -05:00
Dan Stillman
bdec99f103
Update DB compatibility for annotations and noteSchemaVersion
2021-03-02 17:36:05 -05:00
Dan Stillman
b8eeb3abaa
Drop decimal places from annotation sortIndex
2021-03-02 17:36:05 -05:00
Dan Stillman
acc3a70083
Remove SQL sort by parentItemID in Zotero.Sync.Data.Local.getUnsynced()
...
Now handled by Zotero.DataObjects.sortByParent()
2021-03-02 17:36:05 -05:00
Dan Stillman
8f5662ee6a
Better error logging on sync engine upload failure
2021-03-02 17:36:05 -05:00
Dan Stillman
99b959285e
Send Zotero-Schema-Version header with API requests
...
Set to the current global schema version
2021-03-02 17:36:05 -05:00
Dan Stillman
e133aab530
Annotation support in Item::fromJSON()/toJSON()
...
And clean up embedded-image handling
2021-03-02 17:36:05 -05:00
Dan Stillman
3c6ae0e656
Throw on missing parentItemID in Attachments.importEmbeddedImage()
2021-03-02 17:36:05 -05:00
Dan Stillman
a94323fc15
Sort multiple levels of items when generating API JSON
...
Added Zotero.DataObjects.sortByParent() to sort child items immediately
after their parent items. Zotero.DataObjects.sortByLevel(), which is
used for collections, sorts each level together, but that's less
appropriate for items where, e.g., an embedded-image attachment should
immediately follow the note that depends on it.
2021-03-02 17:36:05 -05:00