Skip to content

Add single file import export - #236

Merged
boazpoolman merged 10 commits into
pluginpal:masterfrom
EgleKat:add-single-file-import-export
Nov 9, 2026
Merged

boazpoolman merged 10 commits into
pluginpal:masterfrom
EgleKat:add-single-file-import-export

Conversation

@EgleKat

@EgleKat EgleKat commented Sep 17, 2026

Copy link
Copy Markdown

What does it do?

Added two buttons to the diff viewer to import and export the config for individual files and content types

Why is it needed?

I find that usually I only need to apply changes to 1 content type.
I always check the diff viewer to confirm the changes that need applying, after which I need to close the diff viewer, un-tick all the content types in the table and find the required content type again, tick it's row, scroll all the way up and then click import/export. That is a lot of clicks!

How to test it?

  1. Click on a single file row in the plugin table
  2. Click on Import. Observe the file gets imported into the DB and the table updates
  3. Click on Export. Observe the file gets exported from the DB into the config-sync directory and the table updates

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

@EgleKat
EgleKat marked this pull request as ready for review September 17, 2026 11:42

@PaulRichez PaulRichez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Read through the change, it's a nice shortcut for what the issue asks. A few notes:

  • The button labels and titles are hardcoded in English, while the rest of the admin goes through formatMessage (there are translation files, e.g. Russian).
  • The new tests cover --partial in the CLI, not the new buttons in the diff modal.
  • After an import or export from the modal, the diff shown stays the old one until the modal is closed.

kat added 3 commits November 6, 2026 15:34
Use translated Import/Export labels and tooltips in the diff modal, with English, Spanish, and Russian catalog entries.
Derive modal values from the latest diff state and keep the modal controlled across import/export refreshes.
Add Cypress coverage for localized import/export controls and refreshed diff content while the modal remains open.
@EgleKat
EgleKat requested a review from PaulRichez November 6, 2026 15:59
@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (db6659c) to head (f8c91c9).
⚠️ Report is 66 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #236   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           22        22           
  Branches         3         3           
=========================================
  Hits            22        22           
Flag Coverage Δ
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@boazpoolman boazpoolman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @EgleKat for this feature! And @PaulRichez for the review. Much appreciated :)

@boazpoolman
boazpoolman merged commit 46824e2 into pluginpal:master Nov 9, 2026
8 checks passed
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