feat: add backup, restore, and reset functionality for plugin data#1419
feat: add backup, restore, and reset functionality for plugin data#1419Chapoly1305 wants to merge 7 commits intowindingwind:mainfrom
Conversation
There was a problem hiding this comment.
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.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@Chapoly1305 npm run lintand push the results? Thanks! |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@Chapoly1305 npm run lintand push the results? Thanks! |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@Chapoly1305 npm run lintand push the results? Thanks! |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@Chapoly1305 npm run lintand push the results? Thanks! |
|
@Chapoly1305 npm run lintand push the results? Thanks! |
|
@copilot resolve the merge conflicts in this pull request |
|
@Chapoly1305 npm run lintand push the results? Thanks! |
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.
Preferences UI Enhancements:
preferences.xhtmlwith Backup, Restore, and Reset to Defaults buttons for plugin data management.Localization Updates:
en-US):addon.ftland new labels inpreferences.ftl. [1] [2]it-IT):addon.ftlandpreferences.ftl. [1] [2]zh-CN):addon.ftlandpreferences.ftl. [1] [2] [3]translate-for-zotero.xpi.zip