Commit graph

15526 commits

Author SHA1 Message Date
Abe Jellinek
78534ff2d2 FileHandlers: Infer PDF pageIndex from annotation key
And:

- Update createAnnotation() test support function to create valid EPUB
  and snapshot annotations
- Add more FileHandlers tests
2025-07-30 11:37:52 -04:00
abaevbog
c3f8ba8eb1
Fix glitchy menupopups in dialogs opened from a context menu (#5409)
Opening a dialog window via a command from a menupopup leads to
unexpected glitches in the dialog's popups (e.g., collections menu
in newCollection dialog on macOS won't go away when you click away,
and on Windows, child collections don't appear when a parent is hovered).
This is due to some kind of race condition that arises when the dialog
appears when the popup is still closing.

This workaround captures command events from menupopups, closes the popup,
stops propagation of those events, and then dispatches a copy of
that event after a delay. This gives the popup enough time to close.

Fixes: #5408
Fixes: #4891
2025-07-30 01:56:11 -04:00
Abe Jellinek
735922a2bf
If custom file handler is set to Zotero itself, use reader (#5407) 2025-07-24 12:07:27 -04:00
Abe Jellinek
27affb9f14
Cache CSL Engine for item pane header (#5405)
Once styles are initialized.
2025-07-24 12:06:49 -04:00
Adomas Venčkauskas
11014be449 Server: Add support for UTF in server headers (RFC2047) 2025-07-24 13:26:23 +03:00
Dan Stillman
b31b71304d ZFS: Don't retry download for canceled redirect with mtime/hash match
This was a regression from the switch to `Zotero.HTTP.download()`. 302
wasn't a success code, so `HTTP.download()` would throw, and since the
status wasn't set correctly on the `XMLHttpRequest` within
`HTTP.UnexpectedStatusException`, it would think it was an interrupted
S3 connection and trigger another download after a delay.
2025-07-24 01:31:25 -04:00
Dan Stillman
a370ec8979 HTTP.download(): Don't save file for non-2xx response 2025-07-24 01:28:13 -04:00
Dan Stillman
cc0b1ad0c9 HTTP.request(): Return proper status for canceled redirect 2025-07-24 01:28:12 -04:00
Abe Jellinek
8041d7d4df Complain when Notifier/Prefs observer leaks window 2025-07-23 12:03:53 -04:00
Abe Jellinek
1eb248553a Unregister Zotero_Tabs observers when window is unloaded 2025-07-23 12:03:53 -04:00
Abe Jellinek
5e1541c5ee Extract activateZoteroPane(), try different activeness check
This should hopefully fix intermittent CI failures.
2025-07-23 11:23:36 -04:00
Abe Jellinek
d4a5fbbefe
Cache CiteProc Engine instances, pre-cache for Quick Copy (#5399) 2025-07-23 10:47:23 -04:00
Tom Najdek
cc691abeee
Add missing icons in context menus on Windows/Linux
* Add missing icon for "My Library" in the "Copy To" menu in cases where there are no other libraries in that menu
* Add icon to the "New Collection..." option in the item context menu
2025-07-23 12:56:06 +02:00
Dan Stillman
9b1950c9ea Clear HTTP.mock at end of ZFS tests 2025-07-22 22:12:52 -04:00
Dan Stillman
d1ea8a397b Use BrowserDownload for 403 when enforcing type in downloadFile()
Fixed regression (probably in 1f401f0897) causing Find Full Text not to
use BrowserDownload for a 403

https://forums.zotero.org/discussion/125581/zotero-suddenly-fails-to-retrieve-full-text-although-i-have-access
2025-07-22 22:12:00 -04:00
Tom Najdek
9698927d22
Fix unreadable tooltips in dark mode. Close #5397 2025-07-22 17:19:28 +02:00
Northword
e2a96e512a
Clear plugin cache on re-install (#5395) 2025-07-21 23:55:02 -04:00
Tom Najdek
2d4a086819
Fix picking a type for the creator removes the entry. Close #5396 2025-07-21 13:03:41 +02:00
SSCC
162fb4d51b
fix the missing "yield" in line 158 of storageEngine.js (#5394)
Fix the issue where Zotero.Sync.Runner.sync({background: true}) cannot obtain the itemIDs
2025-07-20 01:07:29 -04:00
windingwind
ce6c27ae7e
Fix tabs menu filtering out empty title (#5392) 2025-07-18 00:46:20 -04:00
Tom Najdek
9c82fed152
Add missing icons to the collections context menu (#5386)
Co-authored-by: yexingsha <yexingsha@gmail.com>
2025-07-16 12:18:58 +02:00
Tom Najdek
0e3b695a85
Use a more universal method of checking the element name 2025-07-15 19:25:41 +02:00
Tom Najdek
c945afb2e1
Fix auto-completion typo toLocaleLowerCase -> toLowerCase 2025-07-15 19:18:30 +02:00
Tom Najdek
248ddf05d2
Fix incorrect context menu when renaming collection #5374 2025-07-15 17:38:49 +02:00
Martynas Bagdonas
057c798202 Ignore reader and note-editor error when Fluent file is missing 2025-07-15 16:00:12 +03:00
Dan Stillman
59730c0fca Move "Show My Publications" localized string from .dtd to .ftl
Added to .dtd by mistake in #5367
2025-07-15 02:53:57 -04:00
Dan Stillman
dd10111e5d Close all tabs before item tags box tests to try to fix CI failures 2025-07-15 01:01:54 -04:00
Dan Stillman
42e21d4fa1 Disable citeproc-rs tests, which are failing after Chicago style update
Note sure why
2025-07-15 00:46:10 -04:00
Dan Stillman
01683b6ccb More chicago-note-bibliography → chicago-shortened-notes-bibliography 2025-07-15 00:46:10 -04:00
Dan Stillman
845361bdbc Update default Chicago style after upstream id changes 2025-07-15 00:46:10 -04:00
Dan Stillman
7a4aef1b32 Update styles and CSL locales
Including new Chicago styles
2025-07-15 00:46:09 -04:00
Tom Najdek
a85e1fb40a
Add ability to hide My Publications (#5367) 2025-07-15 00:31:22 -04:00
abaevbog
387d5966c3
fix trashed collection treated as an item row (#5371)
If the id of the collection happens to be the same
as an id of an existing item, those objects may end
up being used interchangeably in itemTree.
The trashed collection could appear in "My Library"
instead of the item, or the not-deleted item could appear
in the trash instead of the collection.
This is addressed by using .treeViewID instead of the
.id of the objects in ItemTree.refresh and ZoteroPane.itemSelected.
2025-07-15 00:30:28 -04:00
Tom Najdek
98d7d8c408
Re-implement "Create Parent Dialog" without using React (#5380)
* Fixed an issue where the window size did not match the content
* Replaced the semi-transparent progress bar with a spinner
* Fixed a problem that allowed triggering a search while one was already in progress
* Reduced code complexity
2025-07-15 00:29:54 -04:00
Abe Jellinek
3b8e8bea33 Register CookieSandbox observer at startup (#5357) 2025-07-14 14:00:43 -04:00
Abe Jellinek
aff57c2254 Fix all cookies being lost during remote translation (#5357) 2025-07-14 14:00:38 -04:00
Tom Najdek
b8e1b994e0
Add a missing icon for "Change Parent Item" #5373
Co-authored-by: yexingsha <yexingsha@gmail.com>
2025-07-14 17:07:53 +02:00
Tom Najdek
c32e050c6e Unify styles for headers of similar custom elements 2025-07-10 23:40:22 +02:00
Abe Jellinek
f9b3694dd1 Style Editor: Fix splitter
By removing flex from the preview box. The splitter doesn't work if the
elements on both sides have flexes.

Fixes #5361
2025-07-10 11:00:31 -04:00
Abe Jellinek
d9a45726d4 Fix read-only title box on non-file attachment
Regression in e625c0009e

https://forums.zotero.org/discussion/125214/attachment-title-of-web-links-cannot-be-modified
2025-07-07 13:24:46 -04:00
Tom Najdek
7beed24756
Fix truncated content in the Create Parent dialog. Close #5365 2025-07-01 15:00:33 +02:00
Martynas Bagdonas
114bd3c495 Increase reader initialization wait time to reduce test failures in CI 2025-06-30 22:29:08 +03:00
Martynas Bagdonas
bdcc5c551a Reader: Only show text context menu when interacting with a text box 2025-06-30 14:47:23 +03:00
Martynas Bagdonas
4808ebd2e9 Update reader submodule 2025-06-30 13:32:20 +03:00
Tom Najdek
c19032a004
Add missing tooltips for tab scroll buttons. Fix #5352 2025-06-30 12:14:16 +02:00
Martynas Bagdonas
9ba1580c3b Update note-editor submodule with Fluent support 2025-06-26 18:36:47 +03:00
Martynas Bagdonas
80d01c9d02 Add note-editor strings to FTL files 2025-06-26 17:46:52 +03:00
Martynas Bagdonas
355c61e6d8 Update reader submodule and support overriding FTL with current locale 2025-06-25 16:43:36 +03:00
abaevbog
4dbe0f7842
Citation dialog: fix broken item details popup with some non-english locales (#5354)
This allows the locator dropdown to be as wide as it wants
(depending on the longest option in the current locale),
with inputs occupying the remaining space. This is
a more flexible layout that avoids broken UI in
cases if <select> dropdown tries to become too wide
while <input>s occupy a fixed space to remain aligned.

Fixes: #5350
2025-06-25 02:17:41 -04:00
Martynas Bagdonas
774173f04d Update reader submodule and provide FTL data 2025-06-24 21:48:55 +03:00