Find a file
abaevbog 46f80ebdfb
Citation Dialog: more optimization of initial loading (#5296)
* citation dialog: interactive before io.getFields

- added io.allCitedDataLoadedPromise, which is resolved
when both io.fieldIndexPromise and io.citationsByItemIDPromise
are resolved. Resolved io.allCitedDataLoadedPromise essentially
means that calls to io.sort() and io.getItems()
will be fast because all necessary data is already loaded.
- citation dialog uses io.allCitedDataLoadedPromise to
not await for functions relying on io.sort() and io.getItems()
before the data is loaded, as it could take an arbitrary
amoung of time. Speicifcally, SearchHandler._getCitedItems() and
CitationDataManager.sort. As soon as allCitedDataLoadedPromise
is resolved, cited items will be sorted.
This means that when retrieving fields takes a long time, one can
still add new items, their bubbles will just not immediately
be sorted.
- this replaces earlier SearchHandler.loadCitedItemsPromise, which
was a special case of this handling.
- added a new test ensuring that bubbles can be added even
when io.allCitedDataLoadedPromise is not resolved yet
- cleanup for buildCitation function to remove handling
of io.citation.sortedItems, which is always empty on
load before io.sort() runs
- added a few Zotero.debug statements for future debugging
- Uses a dummy promise if no allCitedDataLoadedPromise 
(e.g. to accomodate the note editor)
2025-05-21 09:55:41 +03:00
.github/workflows Remove issue template 2025-02-10 23:25:03 -05:00
app Allow plugin to uninstall itself in update manifest (#5292) 2025-05-16 06:10:45 -04:00
chrome Citation Dialog: more optimization of initial loading (#5296) 2025-05-21 09:55:41 +03:00
defaults/preferences Improve tabs menu (#4961) 2025-05-07 01:52:54 -04:00
js-build Update build scripts for note-editor, pdf-worker, and reader: 2025-04-30 13:46:32 +03:00
note-editor@a0222d8caa Update build scripts for note-editor, pdf-worker, and reader: 2025-04-30 13:46:32 +03:00
pdf-worker@95358b037a Update build scripts for note-editor, pdf-worker, and reader: 2025-04-30 13:46:32 +03:00
reader@939124b7bd Update reader submodule 2025-05-09 10:38:54 -04:00
resource Scaffold code completion (#5171) 2025-04-09 00:36:22 -04:00
scripts fx128: Add arrowscrollbox.ftl from Mozilla 2025-01-08 01:41:29 -05:00
scss Always show item/context pane toggle (#5263) 2025-05-09 01:27:20 -04:00
styles@40b18d8266 Update translators, styles, and CSL locales 2025-03-18 23:46:45 -04:00
test Citation Dialog: more optimization of initial loading (#5296) 2025-05-21 09:55:41 +03:00
translators@484110c925 Update translators, styles, and CSL locales 2025-03-18 23:46:45 -04:00
types/gecko Add Gecko types and a script to update them (#4296) 2024-07-02 00:58:51 -04:00
.babelrc Use production builds of react libraries (#4482) 2024-08-02 03:43:02 -04:00
.gitattributes Update Linux updater for Zotero 7 2023-05-20 10:51:47 +00:00
.gitignore Use user-provided codesign script for Windows signing 2024-04-08 10:12:58 +01:00
.gitmodules Remove chai-as-promised submodule 2025-03-05 22:59:49 -05:00
chrome.manifest Remove old citation dialogs (#5177) 2025-04-02 05:26:06 -04:00
CONTRIBUTING.md Add "support questions" to CONTRIBUTING.md 2022-12-01 05:10:42 -05:00
COPYING Update COPYING 2018-03-26 11:27:48 +02:00
eslint.config.mjs Add Cr as glboal in eslint config 2025-03-05 05:51:04 -05:00
package-lock.json Scaffold code completion (#5171) 2025-04-09 00:36:22 -04:00
package.json Scaffold code completion (#5171) 2025-04-09 00:36:22 -04:00
README.md "Zotero wiki" → "Zotero documentation" in app build README 2023-04-26 04:40:22 -04:00
update.rdf Update Fx minVersion to 45 2016-12-13 09:12:55 -05:00
version Update version to 7.1 2025-01-03 01:21:57 -05:00

Zotero

CI

Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.

Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.

For more information on how to use this source code, see the Zotero documentation.