Skip to content

fix(dns-records): restore BIND file import broken by dropdown blur-close#1329

Merged
mattdjenkinson merged 1 commit into
mainfrom
fix/dns-record-import-dropdown-blur
Jul 6, 2026
Merged

fix(dns-records): restore BIND file import broken by dropdown blur-close#1329
mattdjenkinson merged 1 commit into
mainfrom
fix/dns-record-import-dropdown-blur

Conversation

@yahyafakhroji

@yahyafakhroji yahyafakhroji commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Problem

Importing a BIND zone file on the DNS records page did nothing — no preview dialog, no error, no processing.

Root cause: @radix-ui/react-menu ≥2.1.17 (pulled in by #1321) closes any open menu on window blur. The import dropzone lives inside ResponsiveDropdown (a Radix DropdownMenu on desktop), so clicking Select a file (native picker) or dragging a file in from Finder blurred the window, closed the dropdown, and unmounted the dropzone before onDrop fired.

Fix

Test plan

  • Import via file picker — dropdown stays open while the picker is up, preview dialog opens with parsed records
  • Import via drag-and-drop from Finder
  • Invalid file → error shown inside the dropdown; Export still works

Note

The E2E regression checks are red due to a separate, pre-existing control-plane change (org creation now requires a system-assigned generateName; createStandardOrg fails with 422). It's unrelated to this PR and affects main too — tracked/fixed separately.

@radix-ui/react-menu >=2.1.17 (pulled in by the June dependency update)
closes any open menu on window blur. The import dropzone lives inside
ResponsiveDropdown, so opening the native file picker — or switching apps
to drag a zone file in — blurred the window, closed the dropdown, and
unmounted the dropzone before onDrop ever fired: no dialog, no error, no
processing.

- Bump @datum-cloud/datum-ui to ^1.3.2, whose ResponsiveDropdown renders
  a Radix Popover on desktop (same UX, no blur-close) — see
  datum-cloud/datum-ui#136
- handleDrop now reports whether the preview dialog opened; the dropdown
  only closes on success so parse errors stay visible in the dropzone
- Empty accepted-file drops surface an error instead of returning silently
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🧪 Test Summary

Job Status
Bun Unit Tests ✅ success
E2E Regression (0) ⏭️ pending
E2E Regression (1) ⏭️ pending
E2E Regression (2) ⏭️ pending
E2E Regression (3) ⏭️ pending
E2E Smoke ✅ success
Unit Tests ✅ success

View workflow run

📎 Artifacts

Videos and screenshots from failed E2E tests:

  • build-05eab3515e4d7fc090debc8c5fc71df9dfab33ceDownload
  • bun-coverage-28576490952Download

@yahyafakhroji yahyafakhroji changed the title fix(dns-records): restore BIND file import broken by dropdown blur-close fix(dns-records): restore BIND import + fix org creation (generateName) Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🧪 Test Summary

Job Status
Bun Unit Tests ✅ success
E2E Regression (0) ⏭️ pending
E2E Regression (1) ⏭️ pending
E2E Regression (2) ⏭️ pending
E2E Regression (3) ⏭️ pending
E2E Smoke ✅ success
Unit Tests ✅ success

View workflow run

📎 Artifacts

Videos and screenshots from failed E2E tests:

  • build-0e3a9f4552bf4c6bc5df96d515586982ade30e36Download
  • bun-coverage-28768426802Download

@yahyafakhroji yahyafakhroji force-pushed the fix/dns-record-import-dropdown-blur branch from d1abc7d to 962e475 Compare July 6, 2026 04:53
@yahyafakhroji yahyafakhroji changed the title fix(dns-records): restore BIND import + fix org creation (generateName) fix(dns-records): restore BIND file import broken by dropdown blur-close Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🧪 Test Summary

Job Status
Bun Unit Tests ✅ success
E2E Regression (0) ⏭️ pending
E2E Regression (1) ⏭️ pending
E2E Regression (2) ⏭️ pending
E2E Regression (3) ⏭️ pending
E2E Smoke ✅ success
Unit Tests ✅ success

View workflow run

📎 Artifacts

Videos and screenshots from failed E2E tests:

  • build-dcaf17a983a07f8de58b852da87a72de64cd9aaeDownload
  • bun-coverage-28768691076Download

@yahyafakhroji yahyafakhroji force-pushed the fix/dns-record-import-dropdown-blur branch from 1b1692a to 962e475 Compare July 6, 2026 05:08
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🧪 Test Summary

Job Status
Bun Unit Tests ✅ success
E2E Regression (0) ⏭️ pending
E2E Regression (1) ⏭️ pending
E2E Regression (2) ⏭️ pending
E2E Regression (3) ⏭️ pending
E2E Smoke ✅ success
Unit Tests ✅ success

View workflow run

📎 Artifacts

Videos and screenshots from failed E2E tests:

  • build-5c3cbb9ab22720f749e72784ee4120d5c762e056Download
  • bun-coverage-28769200753Download

@mattdjenkinson mattdjenkinson self-requested a review July 6, 2026 11:50
@mattdjenkinson mattdjenkinson enabled auto-merge July 6, 2026 16:24
@mattdjenkinson mattdjenkinson merged commit 0ac1bf8 into main Jul 6, 2026
116 of 139 checks passed
@mattdjenkinson mattdjenkinson deleted the fix/dns-record-import-dropdown-blur branch July 6, 2026 16:30
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.

2 participants