Commit graph

11614 commits

Author SHA1 Message Date
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
Martynas Bagdonas
9b10164eac Skip processing with PDF worker when exporting PDF without annotations
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-09-02 14:40:06 +03:00
Martynas Bagdonas
ce1061c2fb Remove unused "transfer to PDF file" feature artifacts 2024-09-02 14:16:04 +03:00
abaevbog
576e50552b
vpat 25/46: announce section headers of settings (#4434)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
- explicitly add aria-labels to groupbox and vbox
sections of the settings. It's required for voiceover
to announce that label when focus enters the group.
It's not needed for NVDA and JAWS as they recognize
most h2 labels as labels of grouppings.
- add all relevant additionl text for the section
as aria-description/aria-describedby so it is
announced after the section's name when focus enters it
- add role="group" to vbox sections, since vbox
does not have any semantics
- skip tabstop on scrollable "#prefs-content" container
since it is not required
2024-09-02 04:46:51 -04:00
abaevbog
901cc7d635
vpat 7,14: popups count and cursor fixes (#3969)
- vpat_7: When a popup is showing, mark menuseparators with
role="presentation" to clear whatever semantics a separator
has. It prevents the screen readers from counting it as
an interactable element while announcing the index of
a menuitem within the popup. It also makes the screen readers
count items across all sections, instead of stopping at
the first separator.
- vpat_14: When menupopup is hiding, for a moment, mark it
as aria-hidden. It forces VoiceOver to move cursor back to
the previously focused element. Otherwise, it is not aware that
the popup went away, the cursor gets stuck inside of the
invisible menu, no elements will be announced until the screen
readers is reloaded.
2024-09-02 04:46:02 -04:00
Tom Najdek
6b7834876f
Fix a couple of issues related to dark mode icons (#4655)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
- Fixed missing dark mode icons in the advanced search dialog.
- Corrected inconsistent icon shading in some menus.
2024-09-01 15:48:36 -04:00
Abe Jellinek
474b0eb0d7
Hide selected item background when mouse leaves menu (#4623)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-09-01 04:13:48 -04:00
windingwind
181196149a
Use dynamic max height for attachment preview (#4651)
Some checks failed
CI / Build, Upload, Test (push) Has been cancelled
2024-08-31 02:10:23 -04:00
windingwind
a0a8cceda4
Checkbox-and-radio-redesign-on-Windows (#4609)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-30 07:20:52 -04:00
Abe Jellinek
aed604ddc0
Add "Paste and Search" option to lookup context menu (#4636)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-28 23:36:15 -04:00
Dan Stillman
a2bac6b299 Use Z.Prompt.confirm() for delayed-button prompts to fix CI failures
After f9faa0415f, Zotero.Prompt.confirm() ignores the delayed-button
flag when running in CI.
2024-08-28 03:55:18 -04:00
Dan Stillman
92165cb9ed delayButtonsbuttonDelay in Zotero.Prompt
Too confusing to swap order of original flag
2024-08-28 03:54:02 -04:00
Dan Stillman
f9faa0415f Skip Zotero.Prompt button delay in CI
The button delay started causing test failures in GitHub Actions after
updating to Firefox 115.14.0esr.
2024-08-28 03:53:48 -04:00
Abe Jellinek
4549cbf1ed Attachment box: Use un-deprecated attachmentFilename property (#4638)
Fixes warning.
2024-08-28 03:53:11 -04:00
Abe Jellinek
d5bc1dc4b3 Attachment box: Wrap Filename field (#4638) 2024-08-28 03:53:11 -04:00
Abe Jellinek
718c25b2b8
Strip Citeproc.js markup in window titles (#4634)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-28 01:10:01 -04:00
Dan Stillman
a9953b3f91 Update CSL locale
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
https://forums.zotero.org/discussion/comment/472455/#Comment_472455
2024-08-28 00:34:05 -04:00
abaevbog
15f9a84060
type="arrow" to anchor reference panel (#4629)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
And remove no longer needed JS logic hiding and
displaying the panel to keep it next to the dialog
2024-08-27 13:07:46 +03:00
abaevbog
75e6e46fb6
Qf: potential fix to the dialog becoming invisible (#4603)
* qf: remove transparent window background from win

Because it seems to still sometimes cause the qf window
to disappear. I could not reproduce it but disabling
background: transparent did help with the issue of qf
disappearing in the past. It allows us to remove very
specific chromemargins which, apparently, do not work
in all cases.

Removed border-radius from qf on windows because now that
the window is not transparent, its corners would be visible.
But the window itself has rounded corners so it doesn't look
that different.

The main drawback now is that a secondary window without titlebar
on win becomes resizable, and having background: transparent was
a workaround to disable that. So now, we set max width and height
so that the window cannot be stretched but, unfortunately, the
resize cursor appears when you hover over the edge of the dialog.

* qf: minor style fixes

- hardcode light theme value for accept button and the
spinner so they don't disappear when the theme is dark
- make sure the item's color from reference panel is not
overriden by a lighter one from another stylesheet
2024-08-27 09:20:53 +03:00
Abe Jellinek
3017770954 Preferences: Add new status info below local API checkbox (#4615)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-27 00:53:20 -04:00
Abe Jellinek
5e71fdf1cc Preferences: Fire synctopreference *after* updating preference (#4615)
And add a new beforesynctopreference event to replace the old behavior.
You almost always want the preference to be updated before acting on
the change.
2024-08-27 00:53:20 -04:00
abaevbog
868947f4c8
vpat 34-5: aria labels for the error console (#4625)
Add hardcoded, non-localized labels to the X button next
to the input filter and the actual console textarea
2024-08-26 23:32:49 -04:00
Tom Najdek
b350613770
Fix progress bar ignores color scheme. Resolve #4589 (#4599)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-26 08:00:18 -04:00
Abe Jellinek
ed53f4b756
Register all plugin locales with best-fit aliasing (#4606) 2024-08-26 07:59:12 -04:00
Abe Jellinek
f54becf32e
Render citeproc.js markup in tab titles (#4602) 2024-08-26 07:57:17 -04:00
Dan Stillman
ab814c361a Try to automatically repair "User canceled primary password entry"
Fixes #4540
2024-08-26 07:13:11 -04:00
Abe Jellinek
f8970b92de Feed abstract: Inherit font size
Some checks failed
CI / Build, Upload, Test (push) Has been cancelled
And fix some code style.

Closes #4600
2024-08-21 12:26:58 -04:00
Dan Stillman
182bfb9a38 OS.Path shim: Add Windows version of fromFileURI() from Fx102
Some checks failed
CI / Build, Upload, Test (push) Has been cancelled
Should fix #4588 for real
2024-08-20 02:50:51 -04:00
Dan Stillman
4b45b8780d Update locales from Transifex 2024-08-20 00:26:43 -04:00
windingwind
d54f5e516f
Fix context pane lazy load (#4591)
fix: #4548
2024-08-20 00:08:41 -04:00
Dan Stillman
f53ce16b8b OS.Path shim: Add Windows version of normalize() from Fx102
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Should fix #4588
2024-08-19 23:58:32 -04:00
Adomas Venčkauskas
365d6f4295 Fix WinWord plugin installation not running on startup (#4579) 2024-08-19 08:07:09 -04:00
Adomas Venčkauskas
aef0e51186 Throw an error when an update to word processor plugin fails to install (#4579)
- This commit will retrigger the installation for all word processor
  plugins. For the majority of users this will succeed silently.
  - It will fail with an error for Windows users that have Word open.
  - It will succeed with a warning for macOS users that have Word open.
- The updated error prompt links to the new documentation page for
  failed plugin installs
2024-08-19 08:07:07 -04:00
Dan Stillman
cff7e45d90 Update locales from Transifex
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-19 03:40:42 -04:00
Tom Najdek
58234a133a
Fix localized labels after 4f1e449 (#4584) 2024-08-19 03:31:25 -04:00
Dan Stillman
f8fe506a86 Update locales from Transifex 2024-08-18 02:04:35 -04:00
Dan Stillman
db34491dfd Update English strings for Transifex 2024-08-18 01:47:35 -04:00
Dan Stillman
cc10987dee Fix error loading trash containing collection if bidi.browser.ui == true
https://forums.zotero.org/discussion/116980/zotero-7-0-1-center-right-panes-stop-displaying-items
2024-08-18 01:46:10 -04:00
Martynas Bagdonas
5dc17be46c Add missing string for reader
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-16 13:04:34 +03:00
windingwind
0f866d6d33
Fix Context Pane doesn't work in stack mode (#4578)
fix: #4577
2024-08-16 02:10:33 -04:00
windingwind
ca9508ebce
Lazy load attachment preview (#4568)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-15 02:22:24 -04:00
Dan Stillman
874f42df36 Update utilities submodule
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Includes zotero/utilities#36
2024-08-14 17:59:48 -04:00
Abe Jellinek
f0d453187d Fix editable-text dir not affecting existing input
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-14 11:19:04 -06:00
Abe Jellinek
64238d56bc Fix circular reference in getDirection()
Was preventing the field-specific switch branch from being reached.
2024-08-14 11:19:04 -06:00
Tom Najdek
4f1e44978e
Fix <wizard> sometimes starts with the wrong title. Resolve #4533.
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
This is caused by
https://searchfox.org/mozilla-central/source/toolkit/content/widgets/wizard.js#417-428
where fluent attribute is removed and replaced with the default value.
We need to stick with `data-header-label-id` until this is resolved
upstream.
2024-08-14 17:53:33 +02:00
Dan Stillman
f5af1898fd Proper fix for getDirection() problems
Hopefully the last fix for my edits to 181afb9 (#4534)

Follow-up to the previous two commits
2024-08-14 04:01:26 -04:00
Dan Stillman
531e8697be Fix additional breakage when bidi.browser.ui is true
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
Broken by me in an edit to 181afb9 (#4534)

Follow-up to previous commit
2024-08-14 03:42:08 -04:00
Dan Stillman
ec50539e80 Make Zotero.ItemFields.getBaseIDFromTypeAndField() more resilient
- Return base field instead of throwing if base field is passed for a
  type that has a base-mapped field
- Return false instead of throwing for invalid type-field combination
2024-08-14 03:14:29 -04:00
abaevbog
53ad856ef4
vpat 31 and 33 - aria tweaks for Tools > Plugins (#4560)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
- vpat 31: mark which menuitems' button is checked,
otherwise selected options (e.g. Update plugins automatically)
are not announced as such
- vpat 33: when plugin details pane appears, remove
a misleading role="tabpanel" from its section because
it is not structured as a collection of tabs
2024-08-13 16:46:46 -04:00
Adomas Ven
ed311cacb9
Show a different error message for WinWord when no document is found (#4563)
And link to a different troubleshooting page
2024-08-13 16:13:00 -04:00
Dan Stillman
5d998a3b37 Load brand.ftl for Zotero.getString() 2024-08-13 16:06:47 -04:00
windingwind
0530afd669
Fix two item panes occasionally appear at same time (#4561)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-13 02:43:14 -04:00
Dan Stillman
97650efe05 Fix blurry creator row buttons on non-HiDPI displays
From @yexingsha

Fixes #4549
2024-08-13 00:06:21 -04:00
Dan Stillman
9b23755190 Update CSL locales
Includes https://github.com/citation-style-language/locales/pull/319
2024-08-13 00:06:21 -04:00
abaevbog
8c3f13909c
vpat 59: make quickFormat reference box separator text darker (#4400)
So that on Windows, the separator text on white background
has a high enough contrast ratio for accessibility

Also remove opacity when reference panel opens. Without the opacity
on the reference panel, there is a shadow appearing below and to the
right of the panel on Windows. If we let the panel render with
opacity: 0.9 and only then set opacity: 1, the panel will no longer
be transparent and there will be no shadow.
2024-08-13 00:05:11 -04:00
Abe Jellinek
a566d83411 Migrate to our editMenuOverlay.js
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-12 15:25:31 -06:00
Abe Jellinek
d5deb406d7 Include editMenuOverlay.js in Web Link dialog
Fixes #4544
2024-08-12 15:24:56 -06:00
Abe Jellinek
16bb95ad3f
Collection tree: Keep editing state through refresh (#4556)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
2024-08-12 16:43:49 -04:00
Abe Jellinek
51fe17c13d editable-text: Don't move cursor when value/alignment changes on focus (#4534)
Some checks are pending
CI / Build, Upload, Test (push) Waiting to run
For example, clicking in the middle of the Accessed field would move the
cursor to the end, no matter where the click happened. Clicking and
dragging when the field wasn't already focused would select from the
beginning of the field to the drag position.
2024-08-12 15:09:27 -04:00
Abe Jellinek
181afb92ac Bidi improvements and fixes (#4534) 2024-08-12 15:09:10 -04:00
Abe Jellinek
98b3745a20
Update Notes section on add (#4554) 2024-08-12 15:06:09 -04:00
abaevbog
a7eb49162e
tweaks to Zotero_Tooltip behavior (#4523)
- hide tooltip on click and make sure it does not appear
for a bit to avoid race conditions (e.g. clicking
right after mousemove stopped)
- do not display a tooltip if a mouse key is being
held (e.g. during drag in itemTree)

Fixes: #4519
2024-08-09 12:23:31 -04:00
windingwind
69b4789c17
Unify richlistitem styling rules (#4511)
Unify richlistitem styling rules

- Fix richlistitem unwanted focus ring on Linux
fix: #4510
- Simplify richlistbox styling rules and do not follow Mozilla code
- Use --default-focusring-width for v-table
2024-08-09 15:57:56 +03:00
Dan Stillman
794dc6bf01 Updated icons for creator row buttons
Fixes alignment issues brought up in
https://github.com/zotero/zotero/pull/4535#issuecomment-2276347669

From @yexingsha
2024-08-08 23:33:15 -04:00
Abe Jellinek
2d32efbccd
Apply tag text color to ellipsis (#4536) 2024-08-08 22:54:10 -04:00
Dan Stillman
9dd3807683 Wider icon for creator-field-mode button (#4535) 2024-08-08 22:50:47 -04:00
Bogdan Abaev
7450622047 itembox: switch creator mode button (#4535)
- added button to switch mode to creator rows
- removed that option from options menu
- extra tweak to avoid cursor flickering during re-render after
clicking on the button
- increased itemPane min-width to 320px

Fixes: #3959
2024-08-08 22:50:26 -04:00
Tom Najdek
19dad92b92
No longer create <browser> instance for each AbstractBox. Fix #4530 (#4532) 2024-08-08 17:54:17 -04:00