Commit graph

1810 commits

Author SHA1 Message Date
Abe Jellinek
4399329b83 renderItemTitle(): Only split on known tags
Fixes #5708
2026-01-20 12:58:44 -05:00
Tom Najdek
d6fc06cd7c
File renaming: Allow local time conversion for accessDate (#5707) 2026-01-20 11:00:52 -05:00
windingwind
97d0bdbaea
Fix note tab reopen logic (#5706)
fix: #5704
Distinguish note editor CE and instance in var name
Add note editor CE _initPromise
Await CE init in various places
Add tests for note tab
2026-01-20 10:56:04 -05:00
Tom Najdek
eb62aad999
Extend emoji matching to include symbols
These were previously matched, before d1d4065d
2026-01-16 13:31:02 +01:00
Dan Stillman
0af7c56b7e Update sample data for tests, again
There's some bug where this has to be generated multiple times to be
correct.
2026-01-13 13:14:00 -05:00
Dan Stillman
395aadff4e Update sample data for tests 2026-01-13 13:05:23 -05:00
Dan Stillman
2bb8ba60ad Fix test after adding eventPlace to conferencePaper 2026-01-13 12:50:00 -05:00
Tom Najdek
d1d4065dae
Add support for displaying country flag emojis in the Items List (#5700) 2026-01-13 11:50:47 -05:00
Dan Stillman
e478c89ca0 Fix base-mapped fields not being migrated from Extra
https://forums.zotero.org/discussion/comment/505322/#Comment_505322
2026-01-13 11:35:51 -05:00
Dan Stillman
689e59f161 Update global schema
Remove "Creator" from "Audio Recording"
2025-12-26 23:45:24 -05:00
Dan Stillman
0320a45d46 Show more granular error for generateItemJSONData() test 2025-12-26 23:36:09 -05:00
Dan Stillman
3256273015 Update global schema
"Uploader" → "Creator" on Video Recording
2025-12-26 23:35:43 -05:00
Dan Stillman
22d4bdcef8 Revert treating "arXiv ID" as a field in Mendeley import 2025-12-26 15:55:45 -05:00
Dan Stillman
f0ff173ad2 Update global schema to remove arXivID field 2025-12-26 15:36:13 -05:00
Dan Stillman
7ac22dbef2 Fix creator extraction from Extra
Creators shouldn't be extracted if creators of the same type already
exist on the item, to follow citeproc-js behavior, but the code to do
that was broken.
2025-12-26 11:08:19 -05:00
Dan Stillman
d1fd7c998b Fix Mendeley import test after new identifier fields 2025-12-25 22:37:14 -05:00
Dan Stillman
f7764ca9a4 Recognize "arXiv" for arXiv ID in Extra 2025-12-25 22:37:14 -05:00
Dan Stillman
7487595e6a Fix test error after adding type to document 2025-12-25 22:13:34 -05:00
Dan Stillman
b94dac5586 Update sample data for new item fields 2025-12-25 00:20:34 -05:00
Dan Stillman
0692985c80 Don't upload tags on item conflict if only tag order has changed 2025-12-24 22:00:07 -05:00
windingwind
e522f6185e
Add note as tab (#5528) 2025-12-18 23:49:42 -05:00
abaevbog
f1c7b7939c
Citation dialog: allow to switch between "Add Note" and "Add/Edit Citation" (#5586)
Allow one to switch between "Add/Edit Citation" and "Add Note" modes
in the citation dialog via segmented control in the bottom
left corner.

One cannot switch modes when editing an existing citation or
when inserting a citation in the note editor.

Use the same segmented control UI to switch between
list and library modes for clarity. Replace icons with
"List" and "Library" strings.

Collect some of the state variables into DIALOG_STATE object
for better organization.

Fixes: #5582

Also, remove earlier logic of not resizing window on refocus
on Linux if focus was lost <100ms ago. That workaround
no longer works, and now that we retain the window sizing
after search reruns, it is less of an issue.
Addresses: #5590
2025-12-18 23:18:35 -05:00
Adomas Venčkauskas
3dec4217aa Fix remaped styles not working in Document Preferences dialog
If you're writing a document and a citation style is renamed
Zotero-side, then the citation dialog won't load with the style
preselected without this
2025-12-16 16:33:45 +02:00
abaevbog
ae9330b513
Fix no onActivate handling on double click of collectionTree rows (#5656)
After 015769a removed pointer-events: none from table cells,
clicking on the collectionTree would always trigger
a focusout event, ZoteroPane.handleBlur would call
collectionTree.setHighlightedRows, which would always
redraw the collectionTree. This complete tree redraw on
every click made it impossible to register double-clicks.

With this change, setHighlightedRows won't have
any effect if called with the same rows to highlight
as before (including no rows).
Without constant tree redraws, double-clicks fire as expected.

Fixes: #5655
2025-12-15 23:11:53 -05:00
abaevbog
e6068833ae
Properly display annotations as rows of relatedBox (#5585)
Fixes: zotero#5583
2025-12-12 14:55:27 -05:00
abaevbog
11223451d2
set libraryID on annotations in tests (#5644)
Fix tests breakage post 84764570f4
2025-12-04 08:27:57 -05:00
Abe Jellinek
84764570f4
Enforce annotationSortIndex format by type (#5641) 2025-11-25 12:59:09 -05:00
Tom Najdek
49325e27d9
Fix attachment matching filename isn't correctly retitled (#5637) 2025-11-17 10:40:38 -05:00
windingwind
2f2dfc9038
Fix should discard attachment pane preview after becoming invisible (#5630)
fix: #5624
2025-11-17 10:39:32 -05:00
Dan Stillman
4bd829ebdb Fix potential sync error if unloaded editable library becomes read-only
https://forums.zotero.org/discussion/128001/app-not-syncing-to-newly-created-group
(error was in an existing group, not the new one)

Fixes #5625
2025-11-11 13:43:01 -05:00
windingwind
01d764ef2f
Fix attachments pane test being unstable (#5610) 2025-11-10 14:18:09 -05:00
abaevbog
544e9d11a3
Fix itemTree quicksearch cleared when image pasted into a note (#5613)
Fixes: #5612
2025-11-10 14:06:30 -05:00
abaevbog
260ae891f5
new fix to failing 'should refresh on item update' (#5605)
Another potential fix to the test failure. Earlier fix
from 30784dd241 seems
to not have worked.

A new explanation is that the test before it does not properly
wait for the trash to refresh before trying to select the library, in
which case collectionTree select event will be suppressed
and library selection will not happen.

Fixes: #5584
2025-11-10 13:45:08 -05:00
Adomas Venčkauskas
49130c71d8 Fix connector save timing out with Advanced Search
Report: https://forums.zotero.org/discussion/127760/connector-conflict-with-advanced-search

Also restore Advanced Search tests that depend on the item tree. They
were disabled due to React timing issues. Hopefully with these changes
the initialization of the tree is more robust.
2025-11-03 09:24:35 +02:00
abaevbog
30784dd241
fix 'should refresh on item update' failing (#5595)
This test would sometimes fail, most likely due to
the library sometimes not getting re-selected in the previous test
'should update custom header for items in the trash'.

A likely explanation is that the selection event in
collectionTree would still be suppressed when selectLibrary
is called, so make sure to wait for item deletion to
go through before trying to re-select the library.

Fixes: #5584
2025-10-24 14:08:15 -04:00
windingwind
9d91ff8df9
Improve attachments section test (#5576)
Cancel pending discard to avoid race condition
Cancel pending render/discard after tests
2025-10-13 13:18:51 -04:00
Abe Jellinek
9509c62918 Fix search test descriptions, remove outdated tests
Some descriptions weren't changed to match test behavior changes in
48fd23c, and the doesn't-match tests are no longer relevant after those
changes.
2025-10-10 12:39:26 -04:00
Abe Jellinek
7da9c0669d Local API: Match annotations (#4337)
Except in collection items responses.

And use scope searches for itemType/tag search syntax instead of
filtering in JS.
2025-10-10 12:39:26 -04:00
Abe Jellinek
da0578fc39 Remove special handling for URLs dragged from Firefox (#4649)
And the temporaryPDFHack that we used for them.
2025-10-08 14:30:21 -04:00
Abe Jellinek
dbce2b33b3 Use extension-less filenames when adding multiple attachments at once (#4649)
And use a new notifier queue in the ZP routine (like we already did in
the item tree) to prevent notifier events from firing in the middle.
2025-10-08 14:30:21 -04:00
Tom Najdek
b75ebd6f41
Fix auto-rename not triggering when creators change (#5567) 2025-10-08 18:19:21 +02:00
Tom Najdek
5cb537274e
Fix a couple of issues with file renaming (#5562) (#5566)
* Fixed incorrect new name generation for attachments without a file extension and not present on disk
* Fixed invalid preview in certain edge cases
* Added tests covering file renaming in general and the above issues
2025-10-08 00:39:54 -04:00
abaevbog
1f04c55765
Relate converted embedded note to its attachment (#5559)
When an embedded attachment note is converted to
a standalone note, relate the standalone note to
the attachment and place it in the same collections
as the attachment.
2025-10-07 13:54:09 -04:00
Martynas Bagdonas
5a96e7c90f Fix test for Citavi annotation import 2025-10-02 17:17:37 +01:00
Tom Najdek
e896fd0137
Add continuous-renaming functionality for attachment files (#3860)
Resolves #1685
2025-09-11 04:54:03 -04:00
Tom Najdek
cd82ab7c59
Enable support for Unicode features in file renaming by default (#5521) 2025-08-28 11:21:47 -04:00
Dan Stillman
bab0237727 File sync: Rename single HTML file within multi-file ZIP to known name
If a file was renamed remotely and a new copy wasn't uploaded for some
reason, the ZIP wouldn't contain the new filename. We already renamed a
single file within the ZIP to match the new filename, but now we also
rename a single HTML file in old multi-file snapshot ZIPs. If there are
multiple HTML files for some reason (old-style ZIP with iframes?), we
let the user fix it.

And then we can stop reuploading files after renames.
2025-08-28 03:06:52 -04:00
Dan Stillman
33bd1327a0 Remove unnecessary file stat in Item#attachmentModificationTime 2025-08-28 03:06:52 -04:00
Dan Stillman
11d17c5803 Rename file on remote filename change during sync
Previously, the local file wasn't renamed, so it would become unlinked.
Since we currently force reuploading/reregistering of files when they're
renamed, opening the attachment would then redownload the modified
remote file, but there's no need for the file to become unlinked in the
first place.
2025-08-28 03:06:52 -04:00
Abe Jellinek
7abc35bc02
Notes context pane: Create context menus locally (#5508) 2025-08-27 00:41:21 -04:00