Commit graph

11681 commits

Author SHA1 Message Date
Martynas Bagdonas
e202924324 Add File, Edit and Window menus to note editor window 2024-10-31 11:06:29 +00:00
Dan Stillman
d0a7cfae6d Update locales from Transifex and merge new English strings 2024-10-29 07:11:02 -04:00
Martynas Bagdonas
d9c2abd701 Enable text actions context menu across all reader text fields
Fixes #3676
2024-10-29 10:54:48 +00:00
windingwind
364e87a57f
Pass document to ItemTree API renderCell (#4790) 2024-10-29 06:46:00 -04:00
abaevbog
00b2978c8b
centerscreen " My Publications" dialog (#4795)
Fixes: #4788
2024-10-29 03:57:51 -04:00
Dan Stillman
bb7a7ab961 Match annotation text and comments in All Fields & Tags mode
I think this was only in Everything for historical reasons -- in the
initial implementation of search modes, tags, notes, and (old)
annotations were all in Everything, but tags and notes were later moved
to All Fields & Tags. The old `annotation` condition wasn't moved, and
when I added `annotationComment` and `annotationText`, I just left them
in the same place. But if we match notes in All Fields & Tags, we should
match annotation comments, and if we're matching comments, we might as
well match annotation text as well.

https://forums.zotero.org/discussion/119123/note-annotations-zotero-search-and-zotero-pdf-viewer-search
2024-10-26 02:20:05 -04:00
abaevbog
88e10cdace
include linked items in lib/collectionBox render (#4786)
So that they do not disappear after Libraries and Collections
section is collapsed and expanded.

Fixes: #4784
2024-10-24 23:46:55 -04:00
Martynas Bagdonas
bba016ecb8 Add string for reader outline search input
zotero/reader@c619677a
2024-10-23 12:57:50 +01:00
abaevbog
28f3a29f35
vpat 50: advanced settings - rework custom data directory section (#4048)
Selecting custom data directory radio button in advanced
settings opens up a modal to select the directory. It is
not a typical behavior for radio button, so it conflicts
with 3.2.2 success criteria.

This is a rework of the data directory setting interface to be
similar to LABD. It does not have radio buttons and the
directory explorer pops up on button click.
2024-10-23 05:22:30 -04:00
abaevbog
8e87aa15e7
vpat 17: itemTree view menu for non-main windows (#4433)
- adds View > Columns and View > Sort By menu options
  to all windows that contains an itemTree (Select Items dialog,
  Advanced Search, classic Add Citation, Edit Bibliography
  dialog).
- the menubar is global on macOS. On Windows/Linux it is
  displayed and focused on Alt keypress
- added menu option to move a selected column left,
  which we need as an alternative for drag-drop reordering
  that would not require using a mouse
2024-10-23 02:25:38 -04:00
Dan Stillman
504ec7eb4a Update locales from Transifex 2024-10-23 01:31:18 -04:00
Abe Jellinek
88d4598fce Scaffold: Change base font size to 13
We should probably just use the Zotero font size setting here, but
this works as a quick fix.
2024-10-22 15:33:21 -04:00
Abe Jellinek
03b00669ed Fix platformKeys initialization code never running at all
After cb62ab064d.
2024-10-22 15:01:03 -04:00
Abe Jellinek
cb62ab064d Fix platformKeys initialization code running repeatedly
DOMContentLoaded bubbles up from note-editor and reader frames.
2024-10-22 14:47:42 -04:00
abaevbog
8a6bc2cb10
vpat 44 followup: no escape handler in editors (#4776) 2024-10-22 14:21:50 -04:00
Martynas Bagdonas
7c9a0ac624 Use page scroll mode for PDF preview
Fixes #4653
2024-10-22 13:56:30 +01:00
Adomas Venčkauskas
bfa9d5b6d2 Update ScienceDirect BrowserDownload captcha selector 2024-10-22 08:30:40 +03:00
Bogdan Abaev
c0c3d93019 vpat 45: bibliography dialog instructions and aria (#4413)
- made the wrapper of the dialog focusable and added aria-description
  so that when the dialog opens it announces how to use the dialog
- added aria-labels to buttons, references list, and editor
- make sure that the references list always selects an item when
  focused without clicking
- added a border to focused buttons from simple editor to make it visually
  clear when they received focus
2024-10-22 01:17:45 -04:00
Abe Jellinek
3e37c44c82 Localize View menu label in reader windows
https://forums.zotero.org/discussion/118965/menu-translation-missing-for-view-when-moved-to-new-window
2024-10-21 11:38:31 -04:00
Dan Stillman
62de988cb8 Fix Add button in Libraries and Collections section
Regression from 7cf9097467

https://forums.zotero.org/discussion/118933/the-function-of-add-button-in-libraries-and-collections
2024-10-21 06:48:46 -04:00
Martynas Bagdonas
d2c8f5f186 Fix mixed-up highlight and underline annotation localization strings 2024-10-21 11:18:04 +01:00
abaevbog
c338c0262d
Better label to make item standalone in "Change Parent Item…" dialog (#4768)
More specific labels for the button to turn selected item(s)
into standalone:
- "Convert to Standalone Sttachment(s)" when only attachments
are selected
- "Convert to Standalone Note(s)" when only notes are selected
- "Convert to Standalone" otherwise (e.g. if a note and an attachment
are selected together)

Fixes: #4766
2024-10-20 02:05:22 -04:00
windingwind
eea1291314
Fix select items window overflow (#4747)
Also:

* Remove unused element in select items window
* Move and rename zotero/ingester/selectitems to scaffold/select to
   avoid confusion with selectItemsDialog
2024-10-19 06:33:14 -04:00
Dan Stillman
f8e30cff08 Update locales from Transifex 2024-10-17 22:21:54 -04:00
Dan Stillman
e3fda0819a Revert "Change a couple reader accessibility strings to not be terms"
Fixed by 46bdf3805f

This reverts commit f13791de60.
2024-10-17 22:15:07 -04:00
Abe Jellinek
1f5b7f5414 Ctrl-Enter handler: Position correctly when selection is empty
In empty <input>s and the note editor.

Also add comment explaining possible alternate approach.

Fixes #4763
2024-10-17 13:54:43 -04:00
Dan Stillman
b6d44520a8 Update locales from Transifex 2024-10-17 03:18:16 -04:00
abaevbog
1df2a96ae3
Remove ascii control chars from rendered item title (#4764)
Filter out ASCII control characters in renderItemTitle, since
an error is thrown if those characters are present when
the innerHTML of a tab name in tab bar is set via
dangerouslySetInnerHTML.

Fixes: #4758

---------

Co-authored-by: Dan Stillman <dstillman@zotero.org>
2024-10-17 03:10:10 -04:00
Abe Jellinek
06844d18ad
Implement Ctrl-Enter handler in child frames (#4734) 2024-10-17 01:11:52 -04:00
Dan Stillman
7efb296da9 Update locales from Transifex 2024-10-16 01:32:15 -04:00
Dan Stillman
f13791de60 Change a couple reader accessibility strings to not be terms
They cause problems with our import script (I think because they're
processed first, so the non-term placeholder isn't yet available) and
aren't really necessary.
2024-10-16 01:32:15 -04:00
Dan Stillman
617b014b85 Update utilities submodule 2024-10-16 01:32:15 -04:00
Dan Stillman
a6c9af3c28 Update English strings for Transifex 2024-10-15 07:02:52 -04:00
Dan Stillman
d51218cddd Reference existing general strings in option-or-alt 2024-10-15 07:02:52 -04:00
Dan Stillman
e5bc22f64b Update locales from Transifex 2024-10-15 07:02:51 -04:00
Tom Najdek
5bd068860c
Fix renaming behavior for attachment without extension (#4742)
Fix #4739
2024-10-15 06:48:04 -04:00
abaevbog
7cf9097467
vpat 16: context menu as a drag-drop alternative to move/copy collections (#4420)
- Added menuitems to move collections within the same
library and to copy collections
- "Move to" only displays collections within the
current library
- "Copy to" displays all libraries, if more than
one library exists. If there is only one library,
top-level collections from "My Library" are displayed.
- while copying within the same library, create copies
of all collections and add items into them, without
actually duplicating items
- while copying between different libraries, items
will be duplicated, the same way it is done when
collections are dragged and dropped in another library
2024-10-15 06:34:42 -04:00
abaevbog
d786454a3f
simplify reader.ftl (#4756)
Remove logic constructing a11y announcements from reader.ftl.
Instead, reader will fetch and put together components as needed on the fly.

Follow-up to cde21ac9f2
per https://github.com/zotero/zotero/pull/4752#discussion_r1800481917

Also, add { general-key-command } and { general-key-alt } and add a reader
string that uses those on macOS and non-macOS for textual annotation
instructions. On macOS, the end of highlight and underline annotations is
resized via Shift+Command+arrows, which is different from the Option
modifier used in all other instances
(per https://github.com/zotero/reader/pull/138#issuecomment-2373775068)

Finally, tweak aria-description of "Find in Document" as it sounded
as if Control+Option/Alt+1 would create either highlight or underline
annotation.
2024-10-15 06:11:01 -04:00
abaevbog
cde21ac9f2
reader.ftl file for a11y strings in the reader (#4752)
Per: https://github.com/zotero/reader/pull/142#issuecomment-2410574199
2024-10-15 01:35:07 -04:00
Martynas Bagdonas
d1960cee6b Add string for reader view context menu link copying 2024-10-14 20:21:59 +03:00
abaevbog
c14896a640
vpat 44: scaffold keyboard tab selection focus (#4069)
Do not move focus from the tab onto the editor/input
during keyboard navigation to not change context per
https://www.w3.org/WAI/WCAG21/Understanding/on-input.

Focus will still shift if tab selection changed on mouse click.

Also:

- added focus ring to tabs. Additional mouseup handling
to prevent the focus ring from briefly appearing on click.
- on Escape from within the editor, focus the current
tab.
- on shift-tab from the beginning of the editor,
tab out of the editor to previous element.
2024-10-10 17:08:32 -04:00
abaevbog
15ccf28fb4
vpat 16: context menu as a drag-drop alternative to change parent item of attachment/note (#4423)
- added "Change Parent Item…" context menu option to
itemTree as a non-drag-drop alternative to changing the
parent of attachments or notes
- context menu option appears only when all selected
items are notes or attachments
- upon activation, a dialog to select the new parent
will appear. Added a tweak to the dialog to disable
the "accept" button if a selected item is not top level
- minor edit to itemTree to set the multiselect property
based on a prop, since we do not want to have multiselect
enabled in this instance
- hide all virtual collections in selectItemsDialog via new
io.hideCollections parameter
- "Convert to Standalone Attachment" button in dialog if
child attachment is selected
2024-10-10 16:56:34 -04:00
Abe Jellinek
237a2e5b86 Scaffold: Fix test statuses not persisting 2024-10-09 14:15:34 -04:00
Abe Jellinek
e1cf60b3cf Update subprocess() return type in doc comment 2024-10-09 13:43:02 -04:00
Abe Jellinek
f22f87537c Scaffold: Get PATH from login shell for ESLint on macOS
And:
- Use eslint instead of teslint
- Remove debug logging, since we're running this constantly now
- Kill ESLint at the end, although it should exit on its own
2024-10-09 13:43:01 -04:00
Abe Jellinek
528ee8adac Scaffold: Fix evaluation of translator ending in single-line comment 2024-10-09 10:17:42 -04:00
Abe Jellinek
40dd345280
Scaffold: Run ESLint continuously, not just after save (#4738)
Includes API changes in Zotero.Translators in order to support
in-memory translator serialization.

Type changes in docstrings are corrections, not actual changes.
2024-10-09 01:46:10 -04:00
Abe Jellinek
54cee37703 Scaffold: Cleanup 2024-10-08 15:26:02 -04:00
Abe Jellinek
1caeb1ef08 Scaffold: Fix richlistbox misalignment 2024-10-08 14:53:30 -04:00
Abe Jellinek
9d9d98b907 Scaffold: Fix silent do* failure when code has syntax error
Apparently _error() does get called!

detect* methods were already logging syntax errors as expected.
TranslationChild handles errors in detect* and do* identically. Odd.
2024-10-08 14:43:58 -04:00
Abe Jellinek
f1aeb278a6 FeedReader: Be safe when calling createDocumentFragment()
Addresses #4733
2024-10-07 17:05:21 -04:00
Abe Jellinek
fa2316154e _setAriaActiveDescendant(): Use _topDiv for clarity, fix typo (#4731) 2024-10-05 02:01:49 -04:00
Abe Jellinek
23f9ebcd17 Implement macOS Sequoia Ctrl-Enter context menu shortcut (#4731) 2024-10-05 02:01:48 -04:00
Abe Jellinek
dc5ec2dd36 Add autocomplete-richlistbox-popup to reader windows
Fixes #4727
2024-10-04 10:07:24 -04:00
Dan Stillman
b00b23306d Allow EPUBs saved from the web to be dragged out of parent 2024-10-04 01:28:25 -04:00
abaevbog
d462330347
vpat 8: make window buttons not focusable (#4070)
Minimize, maximize, close, etc. window buttons are generally
not accessible for focus. They can get focused on mac with
voiceover enabled which can be confusing.

Added aria-hidden attribute to prevent voiceover from
placing the cursor on them.
2024-10-04 00:02:16 -04:00
Bogdan Abaev
6282eef3cc vpat 40/41: style editor aria fixes (#4022)
- linked all labels to their respective inputs so they are announced by
screen readers
- added aria-labels for the actual editor and preview iframes
- locator type and locator input are assigned aria-labels
- added visible labels to citation style and language menus,
since vpat 40 specifically asks for visible labels
2024-10-03 23:54:09 -04:00
Dan Stillman
cca605e9c8 Update locales from Transifex 2024-10-02 13:49:24 -04:00
Abe Jellinek
9672571913
autocomplete-textarea: Reposition popup on resize (#4718) 2024-10-02 03:10:22 -04:00
Dan Stillman
a0da169664 Strip non-printable characters in tab titles when restoring session
https://forums.zotero.org/discussion/118303/zotero-blocked-with-the-loading-items-message
and probably others

Fixes #4721
2024-10-02 00:40:29 -04:00
Dan Stillman
20d13f5a8e Merge new English strings 2024-10-01 17:43:54 -04:00
Martynas Bagdonas
afe669aa46 Update reader submodule and add string for ink annotation merging 2024-10-02 00:39:53 +03:00
Dan Stillman
1391bf23da Update locales from Transifex 2024-10-01 17:19:15 -04:00
Dan Stillman
4434724278 Update English strings for Transifex 2024-10-01 01:59:33 -04:00
Abe Jellinek
5ff35c896c
View Online: Prioritize DOI over attachment URL (#4714)
And lint and remove no-op ifs.
2024-10-01 01:56:19 -04:00
abaevbog
a4225592a1
itembox: shift-enter adds new creator + bug fixes (#4567)
- shift enter on a creator row will add a new empty creator
row after focused row. If shift-Enter is on the last creator
before "More creators", all creators will be rendered.
- fixed encountered glitch where switching the mode of
creator would not always update the pref, so next time
a new creator row is added, it would not be of correct
mode.
- fixed encountered bug where a newly added creator row
could receive an index of an existing creator that is not rendered
( "More creators" label is displayed). In that case,
saving such creator would override an existing creator
and erasing that creator would remove invisible creators.
- added a few tests for these edge cases
- on shift-enter in unsaved creator row that only
has whitespace, do nothing, the focus will stay
in that row. It will be discarded if the focus leaves
it with nothing but whitespace.
- fix focus getting lost on shift-enter on an edited
creator field after adding just some whitespace.

Fixes: #4393
Fixes: #4710
2024-09-27 16:51:23 -04:00
windingwind
f7a56efacf
Unify message in the item details pane when trash contains collections or searches (#4696)
fix: #4688
2024-09-27 16:00:54 -04:00
abaevbog
3ffe736d99
Make "Get additional styles…" link in Style Manager keyboard accessible (#4709)
Fixes: #4707
2024-09-26 14:21:51 -04:00
Abe Jellinek
c59c8cbffe Use more reliable test for IOUtils.exists() error
Amendment to e35c220
2024-09-23 11:46:34 +01:00
Abe Jellinek
e35c220be4 Ignore IOUtils.exists() error when auto-relinking
Should fix #4701
2024-09-23 11:41:14 +01:00
windingwind
d4b2fbf33b
Add Title to attachment box (#4702)
resolve: #4692
2024-09-23 04:31:19 -04:00
Dan Stillman
da10878f6f Fix syncing of searches in trash
https://forums.zotero.org/discussion/118049/recent-error-with-manually-triggered-sync
2024-09-20 22:48:38 +01:00
Adomas Venčkauskas
6e130a8649 Reduce min-height of classic citation and bibliography dialogs
Apparently some hidpi users don't even have 600px of vertical
resolution

https://forums.zotero.org/discussion/117926/la-page-dinsertion-de-citation-est-trop-grande-je-narrive-pas-a-cliquer-ok
2024-09-17 12:59:34 +03:00
Dan Stillman
9e5b9545e7 Update locales from Transifex 2024-09-16 12:00:55 +02:00
Dan Stillman
b4239fd4c9 Update English strings for Transifex 2024-09-15 23:21:49 +02:00
Dan Stillman
2ca1389b43 Adjustments to Mac Word installation banner (#4660)
- Use real buttons and other tweaks from design
- Use existing .properties string for "Don't Ask Again" for now
- Remove close button
- Update submodule for reminder after 24 hours instead of 7
2024-09-15 23:20:01 +02:00
Adomas Venčkauskas
564b1766aa Add a Mac Word plugin Sequoia permissions warning banner (#4660)
Also refactor some banner rules.
2024-09-15 23:19:47 +02:00
abaevbog
8fbed0b62b
qf: increase likeliness of dialog receiving focus (#4683)
Tweak to Zotero.Utilities.Internal.activate to make
it more likely that qf receives focus. Addresses
the issue of qf not becoming focusable after the
first opening in word and makes it clearer when the
dialog appears in google docs when the dialog cannot
be pulled to the foreground.

getAttention() will flash the icon in the app bar
if the window could not be pulled into foreground,
for example with google docs.

focus() will try to bring the window to the foreground,
which fixes the issue of qf not getting focused
with word on the first opening. Also, without it,
a call to getAttention() interferes with focus landing
on the dialog during subsequent opening in gdocs.
2024-09-13 09:11:32 +03:00
abaevbog
74a89933dc
VPAT: minor settings tweaks (#4680)
* vpat: add more aria-labels to preferences btns

Per the VPAT review. "Add"/"Remove" instead of +/- as those
are not descriptive enough

* vpat: wrap radiogroup in a groupbox with label

That is so that the "Color scheme" label is not announced
as a description, which requires a specific setting
enabled in JAWS.

* vpat: link itemPaneHeader prefs labels to menus
2024-09-12 06:28:44 -04:00
abaevbog
82d50676d3
fix quicksearch phrase search not respecting scope (#4608)
Fixes: #4381
2024-09-12 06:27:29 -04:00
windingwind
78077fab9d
Fix main window layout and window resizing (#4676)
- Replace flex attribute with flex-shrink and flex-grow style
  to allow elements to be resized by splitter and window resizing.
- Set the max-width on collections pane to prevent it from pushing
  other panes outside window border
- Set the min-width on window according to the size of both library
   and reader tabs
- Use stacked layout when window width is small

fix: #4669
2024-09-12 06:26:31 -04:00
Adomas Venčkauskas
58d98af6c1 Fix citation dialog reference list not selecting with double header
We display "Loading Cited items" while fetching fields as an
additional header before "My Library". Navigating the item list before
this change while the double-headers were displayed did not work with
the keyboard
2024-09-12 13:22:33 +03:00
Adomas Venčkauskas
6504c95d24 Fix citation dialog not appearing until fields are fetched on macWord
Closes #4679
2024-09-12 13:22:33 +03:00
windingwind
01017e7d63
Fix prefs window style on MacOS (#4682)
Use MacOS menupopup style to prefs window
Move style mac/menupopup into mac/components
2024-09-12 05:13:19 -04:00
Adomas Venčkauskas
64bed48de4 Update connector_server code for updated translate module 2024-09-11 15:33:53 +03:00
Adomas Venčkauskas
7a0fb5d1f1 Update translate submodule 2024-09-11 15:25:21 +03:00
Dan Stillman
f95b40f05f Revert "Update translate submodule"
This reverts commit dcf6c14d66.

Test failure due to zotero/translate@8ad44f44c
2024-09-11 07:41:11 -04:00
Dan Stillman
dcf6c14d66 Update translate submodule 2024-09-11 07:19:15 -04:00
Dan Stillman
fe3fdac88e Quick fix for Localized string not available for general.warning
https://forums.zotero.org/discussion/117812/issue-with-installing-zotero-7

With Zotero data directory in cloud storage folder

Regression from af3602124
2024-09-11 07:10:56 -04:00
Dan Stillman
b9bdc6618c Update locales from Transifex 2024-09-11 01:18:00 -04:00
Martynas Bagdonas
5695d08e7d Fix zotero://open-pdf navigating one page too far
Fixes https://forums.zotero.org/discussion/117752/inconsistent-page-numbering-in-zotero-7-url-links-compared-to-zotero-6
2024-09-10 14:06:09 +03:00
Dan Stillman
42219772a7 Reset ui.popup.disable_autohide
Some checks failed
CI / Build, Upload, Test (push) Has been cancelled
Closes #4674
2024-09-08 01:47:16 -04:00
Dan Stillman
5233e0f487 Update English strings for Transifex 2024-09-08 01:46:04 -04:00
Dan Stillman
aff5aef4c1 "Interface" → "Appearance and Language" in settings 2024-09-08 01:46:04 -04:00
windingwind
58f5e188e3 Fix viewing duplicate items does not change item pane splitter state 2024-09-07 11:28:50 +02:00
Abe Jellinek
5bd5bfa343 Resolve XML entities in parsed strings (#4664)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-09-04 02:02:00 -04:00
Abe Jellinek
af3602124b Load DTD strings lazily (#4664) 2024-09-04 02:01:53 -04:00
Bogdan Abaev
8de5eb360d vpat 43: add label to scaffold translator output (#4018)
In a new scaffold.ftl file.

Vpat 43 also indicates that the read-only state of the text field
does not get announced - it is a VoiceOver-specific issue on
Firefox, so it is not addressed here as it should be fixed
globally.
2024-09-03 07:35:24 -04:00
windingwind
1f8b480e70 Execute attachment box render sub-tasks concurrently
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
resolve: #4611
Try to avoid race condition in dense render calls.
We used to notify the preview to update
after all other renders are done,
which can cause unexpected race condition.
2024-09-03 01:42:29 -04:00
windingwind
3861af50d1 Fix attachment box preview discard
fix: #4659
2024-09-03 01:42:29 -04:00