Skip to content

Reset file import state on Add site modal close - #2220

Merged
ivan-ottinger merged 2 commits into
trunkfrom
add/add-site-import-state-clear-on-modal-close
Dec 9, 2025
Merged

Reset file import state on Add site modal close#2220
ivan-ottinger merged 2 commits into
trunkfrom
add/add-site-import-state-clear-on-modal-close

Conversation

@ivan-ottinger

@ivan-ottinger ivan-ottinger commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Related issues

  • related discussion: p1765213216265759/1765198096.499159-slack-C06DRMD6VPZ
  • fixes STU-1117

Proposed Changes

  • reset file import state on Add site modal close

Testing Instructions

  1. Check out the PR branch and build the app with npm install && npm start.
  2. Click the Add site button to open the modal and select "Import from a backup" option.
  3. Select a backup file.
  4. Close modal or progress with site creation.
  5. Open the modal by clicking on the Add site button again.
  6. If you select the "Import from a backup" option, the old file should not be selected there anymore.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@ivan-ottinger ivan-ottinger self-assigned this Dec 9, 2025
@ivan-ottinger
ivan-ottinger marked this pull request as ready for review December 9, 2025 10:56

@epeicher epeicher 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.

T/hanks @ivan-ottinger for fixing this! I have tested it, and I can confirm that the file is not displayed anymore on the modal after applying this branch, while I was able to reproduce it in trunk. Changes LGTM! :shipit:

@gcsecsey gcsecsey 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 for improving this @ivan-ottinger! This LGTM and works well:

CleanShot.2025-12-09.at.11.07.42.mp4
@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

📊 Performance Test Results

Comparing d118401 vs trunk

site-editor

Metric trunk d118401 Diff Change
load 9241.00 ms 10373.00 ms +1132.00 ms 🔴 12.2%

site-startup

Metric trunk d118401 Diff Change
siteCreation 17399.00 ms 23774.00 ms +6375.00 ms 🔴 36.6%
siteStartup 7967.00 ms 7992.00 ms +25.00 ms 🔴 0.3%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change

@ivan-ottinger
ivan-ottinger merged commit caecd04 into trunk Dec 9, 2025
9 checks passed
@ivan-ottinger
ivan-ottinger deleted the add/add-site-import-state-clear-on-modal-close branch December 9, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants