android-midscene-automation 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +13 -0
- package/package.json +1 -1
- package/server/appium-config.test.ts +5 -1
- package/server/appium-recorder/ai-recognition.ts +9 -0
- package/server/appium-recorder/appium-runner.ts +13 -2
- package/server/appium-recorder/element-tap.test.ts +61 -0
- package/server/appium-recorder/request-timeout.test.ts +34 -0
- package/server/appium-recorder/request-timeout.ts +7 -3
- package/server/config.ts +7 -3
- package/src/App.vue +1 -0
- package/src/appium-recorder/AppiumPage.vue +9 -4
- package/src/appium-recorder/components/AiRecognitionSettings.vue +141 -84
- package/src/appium-recorder/components/FlowCanvas.vue +39 -1
- package/src/appium-recorder/components/FlowNodeCard.vue +11 -1
- package/src/appium-recorder/components/FlowRoundedEdge.vue +20 -2
- package/src/appium-recorder/components/FlowStepEditor.vue +114 -85
- package/src/appium-recorder/components/LoopSettings.vue +12 -10
- package/src/appium-recorder/components/NestedConditionBranches.vue +5 -1
- package/src/appium-recorder/components/RecordedSteps.vue +14 -0
- package/src/appium-recorder/components/TextClickSettings.vue +11 -11
- package/src/appium-recorder/components/VariableExtractionSettings.vue +6 -4
- package/src/appium-recorder/flow-appearance.ts +9 -2
- package/src/appium-recorder/flow-graph.ts +13 -7
- package/src/components/config/AppiumConfigPanel.vue +2 -2
- package/src/components/config/FlowAppearanceSettings.vue +12 -5
- package/src/config/use-model-config.ts +2 -1
- package/src/pages/ConfigPage.vue +6 -6
- package/src/style.css +28 -18
- package/src/types.ts +1 -1
package/src/style.css
CHANGED
|
@@ -834,6 +834,14 @@ select {
|
|
|
834
834
|
overflow-wrap: anywhere;
|
|
835
835
|
}
|
|
836
836
|
|
|
837
|
+
.appium-flow-node__meta--clamped {
|
|
838
|
+
display: -webkit-box;
|
|
839
|
+
overflow: hidden;
|
|
840
|
+
text-overflow: ellipsis;
|
|
841
|
+
-webkit-box-orient: vertical;
|
|
842
|
+
-webkit-line-clamp: 3;
|
|
843
|
+
}
|
|
844
|
+
|
|
837
845
|
.appium-flow-node__note {
|
|
838
846
|
min-width: 0;
|
|
839
847
|
color: var(--ui-text);
|
|
@@ -1109,11 +1117,11 @@ select {
|
|
|
1109
1117
|
}
|
|
1110
1118
|
|
|
1111
1119
|
.appium-flow-editor__grid--swipe {
|
|
1112
|
-
grid-template-columns: repeat(
|
|
1120
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1113
1121
|
}
|
|
1114
1122
|
|
|
1115
1123
|
.appium-flow-editor__grid--visual {
|
|
1116
|
-
grid-template-columns: repeat(
|
|
1124
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1117
1125
|
}
|
|
1118
1126
|
|
|
1119
1127
|
.appium-swipe-message-box {
|
|
@@ -2648,7 +2656,7 @@ select {
|
|
|
2648
2656
|
overflow: hidden;
|
|
2649
2657
|
border: 1px solid #e6edf5;
|
|
2650
2658
|
border-radius: 12px;
|
|
2651
|
-
background: var(--flow-background,
|
|
2659
|
+
background: var(--flow-background, var(--ui-bg-soft));
|
|
2652
2660
|
}
|
|
2653
2661
|
|
|
2654
2662
|
.appium-flow-canvas--dialog.appium-flow-canvas--vue {
|
|
@@ -2661,7 +2669,7 @@ select {
|
|
|
2661
2669
|
height: 100%;
|
|
2662
2670
|
background:
|
|
2663
2671
|
radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0) 0 0 / 22px 22px,
|
|
2664
|
-
var(--flow-background,
|
|
2672
|
+
var(--flow-background, var(--ui-bg-soft));
|
|
2665
2673
|
}
|
|
2666
2674
|
|
|
2667
2675
|
.appium-vue-flow .vue-flow__pane {
|
|
@@ -4036,11 +4044,11 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4036
4044
|
box-sizing: border-box;
|
|
4037
4045
|
width: fit-content;
|
|
4038
4046
|
max-width: 100%;
|
|
4039
|
-
padding:
|
|
4040
|
-
border: 1px solid
|
|
4041
|
-
border-radius:
|
|
4042
|
-
background:
|
|
4043
|
-
box-shadow:
|
|
4047
|
+
padding: 4px;
|
|
4048
|
+
border: 1px solid var(--ui-border);
|
|
4049
|
+
border-radius: var(--ui-radius-pill);
|
|
4050
|
+
background: var(--ui-bg-soft);
|
|
4051
|
+
box-shadow: var(--ui-shadow-inset);
|
|
4044
4052
|
}
|
|
4045
4053
|
|
|
4046
4054
|
.el-radio-group:has(.el-radio-button) .el-radio-button {
|
|
@@ -4054,12 +4062,13 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4054
4062
|
justify-content: center;
|
|
4055
4063
|
box-sizing: border-box;
|
|
4056
4064
|
min-height: 32px;
|
|
4057
|
-
padding: 6px
|
|
4065
|
+
padding: 6px 14px;
|
|
4058
4066
|
border: 0 !important;
|
|
4059
|
-
border-radius:
|
|
4067
|
+
border-radius: var(--ui-radius-pill) !important;
|
|
4060
4068
|
background: transparent;
|
|
4061
4069
|
box-shadow: none !important;
|
|
4062
4070
|
color: var(--ui-text-secondary);
|
|
4071
|
+
font-size: 13px;
|
|
4063
4072
|
font-weight: 500;
|
|
4064
4073
|
line-height: 1.25;
|
|
4065
4074
|
white-space: normal;
|
|
@@ -4068,19 +4077,19 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4068
4077
|
}
|
|
4069
4078
|
|
|
4070
4079
|
.el-radio-group:has(.el-radio-button) .el-radio-button:not(.is-active):not(.is-disabled) .el-radio-button__inner:hover {
|
|
4071
|
-
background:
|
|
4080
|
+
background: transparent;
|
|
4072
4081
|
color: var(--ui-primary);
|
|
4073
4082
|
}
|
|
4074
4083
|
|
|
4075
4084
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active .el-radio-button__inner {
|
|
4076
|
-
background:
|
|
4077
|
-
box-shadow:
|
|
4078
|
-
color:
|
|
4085
|
+
background: var(--ui-surface);
|
|
4086
|
+
box-shadow: var(--ui-shadow-control) !important;
|
|
4087
|
+
color: var(--ui-primary);
|
|
4079
4088
|
font-weight: 600;
|
|
4080
4089
|
}
|
|
4081
4090
|
|
|
4082
4091
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active:not(.is-disabled) .el-radio-button__inner:active {
|
|
4083
|
-
box-shadow: inset
|
|
4092
|
+
box-shadow: var(--ui-shadow-inset) !important;
|
|
4084
4093
|
transform: translateY(1px);
|
|
4085
4094
|
}
|
|
4086
4095
|
|
|
@@ -4090,8 +4099,9 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4090
4099
|
}
|
|
4091
4100
|
|
|
4092
4101
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active.is-disabled .el-radio-button__inner {
|
|
4093
|
-
background:
|
|
4094
|
-
|
|
4102
|
+
background: var(--ui-surface);
|
|
4103
|
+
box-shadow: none !important;
|
|
4104
|
+
color: var(--el-disabled-text-color);
|
|
4095
4105
|
}
|
|
4096
4106
|
|
|
4097
4107
|
.el-radio-group:has(.el-radio-button) .el-radio-button__original-radio:focus-visible + .el-radio-button__inner {
|
package/src/types.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type GeneratorForm = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export type ConfigForm = {
|
|
24
|
-
appium: { reportSummary?: ReportSummaryConfig; model: AiRecognitionModel; promptOptimizer?: { model: AiRecognitionModel }; aiPromptPresets?: AiPromptPreset[]; aiDeduplication?: AiDeduplicationConfig; flowBackgroundColor?: string; flowLineColor?: string; screenshotReport?: boolean };
|
|
24
|
+
appium: { reportSummary?: ReportSummaryConfig; model: AiRecognitionModel; promptOptimizer?: { model: AiRecognitionModel }; aiPromptPresets?: AiPromptPreset[]; aiDeduplication?: AiDeduplicationConfig; flowBackgroundColor?: string; flowLineColor?: string; flowLineStyle?: 'straight' | 'curved'; screenshotReport?: boolean };
|
|
25
25
|
runtime: {
|
|
26
26
|
androidSdkPath: string;
|
|
27
27
|
reportOutputPath: string;
|