Commit graph

15031 commits

Author SHA1 Message Date
windingwind
7296583f2a
Fix item pane custom info row render after item change (#4875)
Add test for info row render after item change
fix: #4874
2024-11-29 16:18:31 -05:00
A1lo
c9c373854c
correct the value of the private field in package.json (#4870) 2024-11-28 00:00:58 -05:00
Dan Stillman
052cbb7702 Update reader submodule 2024-11-27 23:58:27 -05:00
abaevbog
247826194a
fix advanced search anyField condition breakage (#4873)
Process "joinMode" before other conditions that may rely on it

Fixes: #4871

Co-authored-by: Dan Stillman <dstillman@zotero.org>
2024-11-27 23:43:09 -05:00
Dan Stillman
bacb60a103 Fix failure loading feed if no link and no url
APA feed link here:

https://forums.zotero.org/discussion/119954/issue-adding-new-feed-from-url-in-zotero-7
2024-11-26 22:44:48 -05:00
Abe Jellinek
0e2427fc9f Scaffold: Correct field help 2024-11-26 11:04:25 -05:00
Abe Jellinek
5a005b9adb Scaffold: Clean up tab select code slightly 2024-11-26 11:01:18 -05:00
Abe Jellinek
08ed672445 Update translate submodule 2024-11-26 10:48:39 -05:00
Abe Jellinek
bb0d7ab951 PageData actor: Settle for readyState "interactive"
Some pages seemingly never become "complete". "interactive" (which we
already use in TranslationChild) is equivalent to DOMContentLoaded, and
that's enough for everything PageDataChild needs to do right now.

This should make Scaffold test runs more reliable. TranslatorTester uses
{ requireSuccessfulStatus: true }, which calls the PageData actor, and
that was occasionally flaking and causing the test to time out.

Fixes #4869
2024-11-26 10:16:49 -05:00
Dan Stillman
501b7a9801 Update reader submodule 2024-11-26 05:53:48 -05:00
Dan Stillman
204c1e3514 Update version 2024-11-26 05:53:48 -05:00
Dan Stillman
ee4c244e0f Update translators 2024-11-26 02:34:02 -05:00
Dan Stillman
fa822b516c Update locales from Transifex 2024-11-26 02:34:02 -05:00
abaevbog
d698287558
context notes pane focus fixes (#4864)
- shift-tab from a note row focuses section header's twisty
- tab from reader into context pane will focus search
field. Previously focused note row will be focused on tab
from a section header's twisty
- fix focus not leaving context notes pane if all
sections are collapsed
- shift-tab from sidenav will focus the last node
in the contextPane, instead of search input. That is to
have consistent tab order in each direction.

Fixes: #4858
2024-11-26 02:27:55 -05:00
Abe Jellinek
2e202a59c9 Scaffold: Debounce ESLint 2024-11-25 14:02:48 -05:00
abaevbog
f824741d07
itemTree: handle restoring child item from trash in notify (#4796)
If a child item is restored from the trash and its parent row
exists and is open, collapse the parent row and expand it
to re-render child items.

Fixes: #4791
2024-11-22 06:41:55 -05:00
Dan Stillman
56ae6d9793 Update reader submodule 2024-11-21 02:59:46 -05:00
Dan Stillman
2ce9b4701b Update translators 2024-11-21 02:55:59 -05:00
Dan Stillman
5e92421114 Update reader submodule 2024-11-21 02:55:36 -05:00
Dan Stillman
9a578f8572 Update locales from Transifex and merge new English strings 2024-11-21 02:55:36 -05:00
abaevbog
a195750f31
context notes list focus handling followup (#4847)
- remember the last focused note-row in the contextPane
and, if possible, refocus it on shift-tab from sidenav, on
tab from the reader into notes pane, or on tab into the
notes list from the collapsible-section. Otherwise, focus the search input.
Per: https://github.com/zotero/zotero/pull/4837#issuecomment-2478108186

- when a note is opened in the context pane, let shift-tab
from sidenav place focus on the links-box. That way,
it is not skipped during tab navigation.

- fix focus not entering note-editor on Tab from the "Go back"
button and instead wrapping around to the current tab
2024-11-21 02:37:19 -05:00
Abe Jellinek
8c5a863aaf
macOS: Move Window → Zotero to platformKeys (#4778)
And change shortcut to Cmd-Shift-L to avoid conflicts with various
font size and zoom shortcuts.
2024-11-21 02:23:33 -05:00
Dan Stillman
5d0420a7d0 Add nsProcess NSIS plugin to check_requirements 2024-11-21 02:09:18 -05:00
Dan Stillman
e9f3d667b3 Windows signing fixes
- Sign zotero.exe in ZIP builds
- Re-sign xul.dll, which we modify in fetch_xulrunner
- Remove xul.dll.sig, a file for Widevine CDN that we don't need and
  that presumably doesn't match anymore
- Sign Word plugin DLL

https://forums.zotero.org/discussion/119766/tenable-invalid-signature-on-xul-dll
2024-11-21 01:14:38 -05:00
Abe Jellinek
bc2c7956db FeedProcessor: Handle dc:creator in Atom feeds
Fixes #4857
2024-11-20 10:05:39 -05:00
windingwind
f5b653e7fd
Add item tree and info box refresh API (#4850)
For APIs that have lifecycle control, e.g. item
pane section, the `update` is passed in the init
hook.
For APIs without lifecycle, we can't pass a value.
Instead, we provide a method to refresh in the API
instance.
2024-11-20 08:35:56 -05:00
windingwind
8e2ec86e56
Fix duplicate item pane when switching to library tab before reader is loaded (#4838)
fix: #4531
2024-11-20 08:09:42 -05:00
Abe Jellinek
e3f2f4455b
Fix sidenav buttons not getting :active state (#4853) 2024-11-20 07:46:37 -05:00
Dan Stillman
dc39ca3756 Don't detect MP3 with embedded image as JPEG
https://forums.zotero.org/discussion/119725/z-imports-mp3s-as-images-if-image-is-embedded-in-the-file

We were looking for "JFIF" anywhere in the sample, which could include
the ID3 tag.

(An upcoming change will also have it just trust the file extension when
one is available.)
2024-11-19 07:12:52 -05:00
Martynas Bagdonas
75fb301f0a
Add pref to control auto-turnoff of note, text, image annotation tools (#4851) 2024-11-19 05:47:43 -05:00
Dan Stillman
ddacfc0b8a Strip invalid quotes around charset in feed responses
E.g., https://bmcmedethics.biomedcentral.com/articles/most-recent/rss.xml
2024-11-19 05:03:36 -05:00
Dan Stillman
dc47650eb3 Update locales from Transifex 2024-11-15 03:54:01 -05:00
Dan Stillman
1a4ecff347 Update English strings for Transifex 2024-11-15 03:48:52 -05:00
Dan Stillman
3284cb461e Update reader submodule 2024-11-15 03:47:15 -05:00
abaevbog
7f57a43f27
context pane notes list focus handling edits (#4837)
- fix the issue of focus not landing on search field of the notes
pane when it is opened on tab from the reader
- shift-tab from the sidenav when notes pane is opened will focus
the search input as well, instead of the last focusable
node in the pane
- tab from a note-row in the list of notes will focus the sidenav
- shift-tab from a note-row will focus the header of the collapsible-section
of the row

Per https://github.com/zotero/zotero/pull/4235#issuecomment-2472397642
2024-11-15 03:29:01 -05:00
abaevbog
e3c18ee1c7
fix "anyField" conflicting with other conditions (#4845)
Fix the glitch where having anyField search condition
along with any other condition would return an empty
result set if joinMode="any".
This would happen due to a conflict between conditions
caused by wrapping "anyField" condition set into a quickSearch
block, which enforces "AND" operator between conditions.

Fixes: #4830
2024-11-15 02:07:11 -05:00
abaevbog
14c2d58e91
qf: remove sizetopopup from locator popup (#4846)
This may help with the issue of locator popup sometimes
not being properly rendered.

Also, it allows the popup to have a proper width on
windows when "Always show scrollbar" setting is on.

Addresses: #4814
Addresses: #4805
2024-11-15 01:11:15 -05:00
Abe Jellinek
f001123c9b
Libraries and Collections: Fix Add button in reader tabs (#4844)
And:

- Rework a few ZP functions to take items arrays instead of always
  acting on selected items
- Move string to Fluent
- Build entire Add to Collection menu programmatically
2024-11-15 01:08:37 -05:00
windingwind
5b89ceb15e Fix attachment preview unnecessary background color 2024-11-15 00:19:00 -05:00
windingwind
6270311b24 Fix attachment preview button background color 2024-11-15 00:19:00 -05:00
Dan Stillman
a6c178dfe8 Update reader submodule 2024-11-13 00:24:07 -05:00
Dan Stillman
c1bef57123 "Ctrl-Enter" → "Ctrl-Return" in macOS comment 2024-11-13 00:23:23 -05:00
abaevbog
e94789c8db
Make sidenav buttons keyboard accessible (#4235)
- Section buttons, Locate, and Notes in the sidenav are focusable
- itemPane section buttons are combined into one focusable
group. Those buttons by themselves don't mean anything in
the context of keyboard navigation as they just scroll
to the section in the itemPane. In fact, having info,
abstract, attachments, etc. focusable and announceable by
screen readers is just confusing. However, we do want the group
of those buttons to be focusable to switch back to
zotero-context-pane-item-deck from zotero-context-pane-notes-deck
if the notes button in the sidenav is pressed.
- sidenav can be reached by tabbing into it from the end of itemPane
or via shift-tab from the focused tab
- sidenav buttons can be navigated with up/down arrows
- notes list in the context pane can be activated via the button in the
sidenav and navigated via up/down arrows
- use command vs onclick listener for notes list context menus to work
with keyboard-triggered clicks as well
- focus itemPane when tabs are switched in sidenav
2024-11-13 00:20:21 -05:00
Abe Jellinek
d75d638337 Update ISBN ranges 2024-11-12 11:45:12 -05:00
Abe Jellinek
5e84944cd6 Ctrl-Enter handler: Don't intercept two-finger taps
Fixes #4834
2024-11-12 10:33:00 -05:00
abaevbog
7fa00d1cfd
Don't clear quick search after removal from collection (#4618)
Do not try to re-select a previously selected item
if it was filtered out from itemTree, e.g. after
it was removed from currently selected collection.
Otherwise, quick search gets cleared in an attempt to
re-select the item.

Fixes: #4616
2024-11-12 00:28:08 -05:00
windingwind
c937b36e25
Fix child attachment shows up in item pane after being moved to trash (#4777)
fix: #4770
2024-11-12 00:14:15 -05:00
Tom Najdek
055fbb68fc
Import Mendeley notebooks (#4829) 2024-11-12 00:13:17 -05:00
Franklin Pezzuti Dyer
a4e89e62f2
Add ellipsis to 'Install Browser Connector' menu item (#4826)
fixes #4693
2024-11-11 11:29:16 -05:00
windingwind
aec6e61cb3 Add ItemPaneManager.registerInfoRow API
Unify plugin API classes

Add info box custom row API tests

Refactor itemBox.js create element

Wrap hooks in API for safe call

Add test for item tree api and hook error handling

Remove try/catch from #4816

Move plugin API definitions to xpcom/pluginAPI
2024-11-11 11:27:47 -05:00