Skip to content

feat: add backup, restore, and reset functionality for plugin data#1419

Open
Chapoly1305 wants to merge 7 commits intowindingwind:mainfrom
Chapoly1305:codex/reset-button
Open

feat: add backup, restore, and reset functionality for plugin data#1419
Chapoly1305 wants to merge 7 commits intowindingwind:mainfrom
Chapoly1305:codex/reset-button

Conversation

@Chapoly1305
Copy link
Copy Markdown
Contributor

@Chapoly1305 Chapoly1305 commented Apr 20, 2026

This pull request adds new UI controls and corresponding localized strings to support backup, restore, and reset functionality for plugin data in the preferences panel. The changes include updates to the preferences UI and translations in English, Italian, and Chinese.

Screenshot 2026-04-20 at 4 34 38 PM

Preferences UI Enhancements:

  • Added a new section in preferences.xhtml with Backup, Restore, and Reset to Defaults buttons for plugin data management.

Localization Updates:

  • English (en-US):
    • Added strings for plugin data backup, restore, and reset, including confirmation and error messages in addon.ftl and new labels in preferences.ftl. [1] [2]
  • Italian (it-IT):
    • Provided Italian translations for all new plugin data management strings in both addon.ftl and preferences.ftl. [1] [2]
  • Chinese (zh-CN):
    • Added Chinese translations for plugin data management features in both addon.ftl and preferences.ftl. [1] [2] [3]

translate-for-zotero.xpi.zip

Copilot AI review requested due to automatic review settings April 20, 2026 20:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds UI controls and localized strings to let users backup, restore, and reset plugin data from the preferences pane, including exporting/importing preferences and (optionally) item translation extra fields.

Changes:

  • Added Backup / Restore / Reset-to-defaults buttons to the Advanced preferences section.
  • Implemented JSON export/import + reset logic for plugin prefs and item translation extra fields.
  • Added new Fluent strings for en-US, it-IT, zh-CN and updated the typed message-id union.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
typings/i10n.d.ts Adds new Fluent message IDs for the plugin data management UI + prompts.
src/modules/preferenceWindow.ts Wires new buttons and implements backup/restore/reset logic (prefs + item translations).
addon/chrome/content/preferences.xhtml Adds the new “Plugin data” section/buttons to the preferences UI.
addon/locale/en-US/preferences.ftl Adds labels for the new preferences UI controls (en-US).
addon/locale/en-US/addon.ftl Adds prompt/confirmation/success/failure strings for backup/restore/reset (en-US).
addon/locale/it-IT/preferences.ftl Adds labels for the new preferences UI controls (it-IT).
addon/locale/it-IT/addon.ftl Adds prompt/confirmation/success/failure strings for backup/restore/reset (it-IT).
addon/locale/zh-CN/preferences.ftl Adds labels for the new preferences UI controls (zh-CN).
addon/locale/zh-CN/addon.ftl Adds prompt/confirmation/success/failure strings for backup/restore/reset (zh-CN).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/modules/preferenceWindow.ts Outdated
Comment thread src/modules/preferenceWindow.ts
Comment thread src/modules/preferenceWindow.ts Outdated
Comment thread src/modules/preferenceWindow.ts
Comment thread src/modules/preferenceWindow.ts
Comment thread src/modules/preferenceWindow.ts
Comment thread src/modules/preferenceWindow.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

@windingwind
Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

@github-actions
Copy link
Copy Markdown
Contributor

@Chapoly1305
I automatically applied lint fixes but couldn’t push to your branch—could you please run:

npm run lint

and push the results? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants