fix(dashboard): pilot native dialog focus and safe dismissal

This commit is contained in:
Joseph Doherty
2026-11-13 17:51:02 -05:00
parent 3e004708d4
commit 260d58afa1
32 changed files with 1750 additions and 40 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

@@ -0,0 +1,531 @@
{
"cases": [
{
"width": 1440,
"dpr": 1,
"scroll": 1440,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "TEXTAREA",
"id": "readSubtrees",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId",
"documentHasFocus": true
}
],
"validationInsideDialog": true
},
{
"width": 1024,
"dpr": 1,
"scroll": 1024,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "TEXTAREA",
"id": "readSubtrees",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId",
"documentHasFocus": true
}
],
"validationInsideDialog": true
},
{
"width": 390,
"dpr": 1,
"scroll": 390,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "TEXTAREA",
"id": "readSubtrees",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId",
"documentHasFocus": true
}
],
"validationInsideDialog": true
},
{
"width": 720,
"dpr": 2,
"scroll": 720,
"zoom": 2,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "TEXTAREA",
"id": "readSubtrees",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName",
"documentHasFocus": true
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId",
"documentHasFocus": true
}
],
"validationInsideDialog": true
}
],
"slowBusyEscapeSingleDispatch": true,
"servedThemeCssSha256": "7a6da7aefcf036f971f18816e3ceb129f1abb4a39f6db33d449420b814cfb4a6",
"errors": []
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

@@ -0,0 +1,451 @@
{
"cases": [
{
"width": 1440,
"dpr": 1,
"scroll": 1440,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": false,
"tag": "BODY",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
}
],
"validationInsideDialog": true
},
{
"width": 1024,
"dpr": 1,
"scroll": 1024,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": false,
"tag": "BODY",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
}
],
"validationInsideDialog": true
},
{
"width": 390,
"dpr": 1,
"scroll": 390,
"zoom": 1,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": false,
"tag": "BODY",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
}
],
"validationInsideDialog": true
},
{
"width": 720,
"dpr": 2,
"scroll": 720,
"zoom": 2,
"nativeModal": true,
"outsideFocusBlocked": true,
"focusSamples": [
{
"inside": false,
"tag": "BODY",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": ""
},
{
"inside": true,
"tag": "INPUT",
"id": "displayName"
},
{
"inside": true,
"tag": "INPUT",
"id": "keyId"
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
},
{
"inside": true,
"tag": "BUTTON",
"id": ""
}
],
"validationInsideDialog": true
}
],
"slowBusyEscapeSingleDispatch": true,
"servedThemeCssSha256": "7a6da7aefcf036f971f18816e3ceb129f1abb4a39f6db33d449420b814cfb4a6",
"errors": []
}
@@ -0,0 +1,8 @@
{
"pendingImportHidden": true,
"disposeBeforeImportCompletionNoResurrection": true,
"reopenAfterDisposal": true,
"connectedDisabledTriggerFallsBackToHeading": true,
"headingTabindexRemovedOnBlur": true,
"subsequentInstanceOpensAndCancels": true
}
@@ -0,0 +1,9 @@
{
"baseline": 341,
"after": 343,
"removed": [],
"added": [
"ZB.MOM.WW.MxGateway.Tests.Dashboard.ConfirmDialogRenderTests.BusyConfirmation_ExposesBusyStateAndRetainsDisabledActions",
"ZB.MOM.WW.MxGateway.Tests.Dashboard.ConfirmDialogRenderTests.RequestedConfirmation_RendersNamedNativeDialogAndSafeCancel"
]
}
@@ -0,0 +1,6 @@
{
"version": "1.0.1",
"sha256": "995b117b0245577598c91404ed7957c071ebe3413696c8be48b419c9deb1bd5d",
"source": "https://gitea.dohertylan.com/api/packages/dohertj2/nuget/index.json",
"servedCssSha256": "7a6da7aefcf036f971f18816e3ceb129f1abb4a39f6db33d449420b814cfb4a6"
}
@@ -0,0 +1,53 @@
[
{
"alert": {
"top": 80.390625,
"bottom": 134.78125
},
"dialog": {
"top": 16,
"bottom": 884
},
"body": null,
"visible": true,
"width": 1440,
"zoom": 1,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 1
},
{
"alert": {
"top": 80.390625,
"bottom": 134.78125
},
"dialog": {
"top": 16,
"bottom": 884
},
"body": null,
"visible": true,
"width": 390,
"zoom": 1,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 1
},
{
"alert": {
"top": 80.3984375,
"bottom": 134.796875
},
"dialog": {
"top": 16,
"bottom": 434
},
"body": null,
"visible": true,
"width": 720,
"zoom": 2,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 2
}
]
@@ -0,0 +1,62 @@
[
{
"alert": {
"top": -320.609375,
"bottom": -266.21875
},
"dialog": {
"top": 16,
"bottom": 884
},
"body": {
"top": 80.390625,
"bottom": 883
},
"visible": false,
"width": 1440,
"zoom": 1,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 1
},
{
"alert": {
"top": -665.609375,
"bottom": -611.21875
},
"dialog": {
"top": 16,
"bottom": 884
},
"body": {
"top": 80.390625,
"bottom": 883
},
"visible": false,
"width": 390,
"zoom": 1,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 1
},
{
"alert": {
"top": -840.6015625,
"bottom": -786.203125
},
"dialog": {
"top": 16,
"bottom": 434
},
"body": {
"top": 80.3984375,
"bottom": 433
},
"visible": false,
"width": 720,
"zoom": 2,
"initialKeyIdVisible": true,
"tabSamples": 60,
"chromeSamples": 2
}
]