android-midscene-automation 1.1.6 → 1.1.8
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 +12 -0
- package/README.md +12 -0
- package/package.json +1 -1
- package/server/appium-auto-save.test.ts +12 -0
- package/server/appium-config.test.ts +18 -1
- package/server/appium-recorder/appium-runner.ts +4 -1
- package/server/appium-recorder/element-tap.test.ts +61 -0
- package/server/appium-recorder/flow-layout.test.ts +52 -0
- package/server/appium-recorder/request-timeout.test.ts +34 -0
- package/server/appium-recorder/request-timeout.ts +7 -3
- package/server/config.ts +18 -3
- package/src/App.vue +4 -0
- package/src/appium-recorder/AppiumPage.vue +15 -4
- package/src/appium-recorder/components/AiRecognitionSettings.vue +1 -1
- package/src/appium-recorder/components/FlowCanvas.vue +109 -25
- package/src/appium-recorder/components/FlowNodeCard.vue +39 -19
- package/src/appium-recorder/components/FlowRoundedEdge.vue +31 -46
- package/src/appium-recorder/components/FlowStepEditor.vue +45 -10
- package/src/appium-recorder/components/LongPressSettings.vue +1 -1
- package/src/appium-recorder/components/RecordedSteps.vue +9 -1
- package/src/appium-recorder/flow-appearance.ts +46 -2
- package/src/appium-recorder/flow-graph.ts +44 -28
- package/src/components/config/AppiumConfigPanel.vue +10 -2
- package/src/components/config/FlowAppearanceSettings.vue +123 -43
- package/src/config/use-appium-auto-save.ts +2 -0
- package/src/config/use-model-config.ts +5 -1
- package/src/pages/ConfigPage.vue +6 -6
- package/src/style.css +57 -41
- package/src/types.ts +1 -1
package/src/style.css
CHANGED
|
@@ -2656,7 +2656,7 @@ select {
|
|
|
2656
2656
|
overflow: hidden;
|
|
2657
2657
|
border: 1px solid #e6edf5;
|
|
2658
2658
|
border-radius: 12px;
|
|
2659
|
-
background: var(--flow-background,
|
|
2659
|
+
background: var(--flow-background, var(--ui-bg-soft));
|
|
2660
2660
|
}
|
|
2661
2661
|
|
|
2662
2662
|
.appium-flow-canvas--dialog.appium-flow-canvas--vue {
|
|
@@ -2668,8 +2668,8 @@ select {
|
|
|
2668
2668
|
width: 100%;
|
|
2669
2669
|
height: 100%;
|
|
2670
2670
|
background:
|
|
2671
|
-
radial-gradient(circle at 1px 1px,
|
|
2672
|
-
var(--flow-background,
|
|
2671
|
+
radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--flow-background) 75%, var(--ui-text-muted)) 1px, transparent 0) 0 0 / 22px 22px,
|
|
2672
|
+
var(--flow-background, var(--ui-bg-soft));
|
|
2673
2673
|
}
|
|
2674
2674
|
|
|
2675
2675
|
.appium-vue-flow .vue-flow__pane {
|
|
@@ -2703,7 +2703,7 @@ select {
|
|
|
2703
2703
|
.appium-vue-flow .vue-flow__edge-path,
|
|
2704
2704
|
.appium-vue-flow .vue-flow__connection-path {
|
|
2705
2705
|
stroke: var(--appium-flow-line-color, #94a3b8);
|
|
2706
|
-
stroke-width: 2.
|
|
2706
|
+
stroke-width: 2.25;
|
|
2707
2707
|
stroke-linecap: round;
|
|
2708
2708
|
stroke-linejoin: round;
|
|
2709
2709
|
fill: none;
|
|
@@ -2752,12 +2752,15 @@ select {
|
|
|
2752
2752
|
pointer-events: none;
|
|
2753
2753
|
}
|
|
2754
2754
|
|
|
2755
|
-
.appium-flow-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2755
|
+
.appium-flow-graph-node--step .appium-flow-handle {
|
|
2756
|
+
width: 7px;
|
|
2757
|
+
height: 7px;
|
|
2758
|
+
min-width: 7px;
|
|
2759
|
+
min-height: 7px;
|
|
2760
|
+
border: 1px solid var(--ui-surface);
|
|
2761
|
+
border-radius: 50%;
|
|
2762
|
+
background: var(--appium-flow-line-color, #94a3b8);
|
|
2763
|
+
opacity: 1;
|
|
2761
2764
|
}
|
|
2762
2765
|
|
|
2763
2766
|
/* Invisible split handles share one point; Vue Flow's 5px minimum creates a gap. */
|
|
@@ -2768,6 +2771,8 @@ select {
|
|
|
2768
2771
|
min-height: 0;
|
|
2769
2772
|
top: 50%;
|
|
2770
2773
|
bottom: auto;
|
|
2774
|
+
left: 50%;
|
|
2775
|
+
right: auto;
|
|
2771
2776
|
transform: translate(-50%, -50%);
|
|
2772
2777
|
}
|
|
2773
2778
|
|
|
@@ -2778,9 +2783,9 @@ select {
|
|
|
2778
2783
|
width: 180px;
|
|
2779
2784
|
height: 62px;
|
|
2780
2785
|
padding: 10px 14px;
|
|
2781
|
-
border: 1px solid
|
|
2786
|
+
border: 1px solid var(--ui-border);
|
|
2782
2787
|
border-radius: 8px;
|
|
2783
|
-
background:
|
|
2788
|
+
background: var(--ui-surface);
|
|
2784
2789
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
|
|
2785
2790
|
}
|
|
2786
2791
|
|
|
@@ -2803,14 +2808,14 @@ select {
|
|
|
2803
2808
|
}
|
|
2804
2809
|
|
|
2805
2810
|
.appium-flow-start-card strong {
|
|
2806
|
-
color:
|
|
2811
|
+
color: var(--ui-text);
|
|
2807
2812
|
font-size: 14px;
|
|
2808
2813
|
line-height: 1.2;
|
|
2809
2814
|
}
|
|
2810
2815
|
|
|
2811
2816
|
.appium-flow-start-card small {
|
|
2812
2817
|
margin-top: 4px;
|
|
2813
|
-
color:
|
|
2818
|
+
color: var(--ui-text-muted);
|
|
2814
2819
|
font-size: 12px;
|
|
2815
2820
|
}
|
|
2816
2821
|
|
|
@@ -2885,9 +2890,9 @@ select {
|
|
|
2885
2890
|
width: 340px;
|
|
2886
2891
|
min-height: 78px;
|
|
2887
2892
|
padding: 10px 14px;
|
|
2888
|
-
border: 1px solid
|
|
2893
|
+
border: 1px solid var(--ui-border);
|
|
2889
2894
|
border-radius: 8px;
|
|
2890
|
-
background:
|
|
2895
|
+
background: var(--ui-surface);
|
|
2891
2896
|
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
|
|
2892
2897
|
color: inherit;
|
|
2893
2898
|
text-align: left;
|
|
@@ -2909,18 +2914,20 @@ select {
|
|
|
2909
2914
|
}
|
|
2910
2915
|
|
|
2911
2916
|
.appium-flow-step-shell--condition .appium-flow-step-card {
|
|
2912
|
-
border-color:
|
|
2913
|
-
|
|
2917
|
+
border-color: var(--ui-border);
|
|
2918
|
+
border-left: 3px solid #f6a23a;
|
|
2919
|
+
background: color-mix(in srgb, var(--ui-surface) 94%, #f6a23a);
|
|
2914
2920
|
}
|
|
2915
2921
|
|
|
2916
2922
|
.appium-flow-step-shell--assertion .appium-flow-step-card {
|
|
2917
|
-
border-color:
|
|
2918
|
-
|
|
2923
|
+
border-color: var(--ui-border);
|
|
2924
|
+
border-left: 3px solid #95d475;
|
|
2925
|
+
background: color-mix(in srgb, var(--ui-surface) 94%, #95d475);
|
|
2919
2926
|
}
|
|
2920
2927
|
|
|
2921
2928
|
.appium-flow-step-shell--selected .appium-flow-step-card {
|
|
2922
2929
|
border-color: #2f7df6;
|
|
2923
|
-
background:
|
|
2930
|
+
background: color-mix(in srgb, var(--ui-surface) 90%, var(--ui-primary));
|
|
2924
2931
|
box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.16);
|
|
2925
2932
|
}
|
|
2926
2933
|
|
|
@@ -2944,21 +2951,21 @@ select {
|
|
|
2944
2951
|
}
|
|
2945
2952
|
|
|
2946
2953
|
.appium-flow-step-card__content strong {
|
|
2947
|
-
color:
|
|
2954
|
+
color: var(--ui-text);
|
|
2948
2955
|
font-size: 14px;
|
|
2949
2956
|
line-height: 1.35;
|
|
2950
2957
|
}
|
|
2951
2958
|
|
|
2952
2959
|
.appium-flow-step-card__content small {
|
|
2953
2960
|
margin-top: 3px;
|
|
2954
|
-
color:
|
|
2961
|
+
color: var(--ui-text-muted);
|
|
2955
2962
|
font-size: 12px;
|
|
2956
2963
|
line-height: 1.35;
|
|
2957
2964
|
}
|
|
2958
2965
|
|
|
2959
2966
|
.appium-flow-step-card__content em {
|
|
2960
2967
|
margin-top: 3px;
|
|
2961
|
-
color:
|
|
2968
|
+
color: var(--ui-text);
|
|
2962
2969
|
font-style: normal;
|
|
2963
2970
|
font-size: 12px;
|
|
2964
2971
|
line-height: 1.35;
|
|
@@ -2979,16 +2986,16 @@ select {
|
|
|
2979
2986
|
width: 22px;
|
|
2980
2987
|
height: 22px;
|
|
2981
2988
|
margin: 0;
|
|
2982
|
-
color:
|
|
2989
|
+
color: var(--ui-text-muted);
|
|
2983
2990
|
}
|
|
2984
2991
|
|
|
2985
2992
|
.appium-flow-step-editor {
|
|
2986
2993
|
grid-area: 2 / 1;
|
|
2987
2994
|
width: 340px;
|
|
2988
2995
|
margin-top: 8px;
|
|
2989
|
-
border-color:
|
|
2996
|
+
border-color: var(--ui-border);
|
|
2990
2997
|
border-radius: 8px;
|
|
2991
|
-
background:
|
|
2998
|
+
background: var(--ui-surface);
|
|
2992
2999
|
}
|
|
2993
3000
|
|
|
2994
3001
|
.appium-action-dropdown .el-dropdown-menu {
|
|
@@ -4044,11 +4051,11 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4044
4051
|
box-sizing: border-box;
|
|
4045
4052
|
width: fit-content;
|
|
4046
4053
|
max-width: 100%;
|
|
4047
|
-
padding:
|
|
4048
|
-
border: 1px solid
|
|
4049
|
-
border-radius:
|
|
4050
|
-
background:
|
|
4051
|
-
box-shadow:
|
|
4054
|
+
padding: 4px;
|
|
4055
|
+
border: 1px solid var(--ui-border);
|
|
4056
|
+
border-radius: var(--ui-radius-pill);
|
|
4057
|
+
background: var(--ui-bg-soft);
|
|
4058
|
+
box-shadow: var(--ui-shadow-inset);
|
|
4052
4059
|
}
|
|
4053
4060
|
|
|
4054
4061
|
.el-radio-group:has(.el-radio-button) .el-radio-button {
|
|
@@ -4062,12 +4069,13 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4062
4069
|
justify-content: center;
|
|
4063
4070
|
box-sizing: border-box;
|
|
4064
4071
|
min-height: 32px;
|
|
4065
|
-
padding: 6px
|
|
4072
|
+
padding: 6px 14px;
|
|
4066
4073
|
border: 0 !important;
|
|
4067
|
-
border-radius:
|
|
4074
|
+
border-radius: var(--ui-radius-pill) !important;
|
|
4068
4075
|
background: transparent;
|
|
4069
4076
|
box-shadow: none !important;
|
|
4070
4077
|
color: var(--ui-text-secondary);
|
|
4078
|
+
font-size: 13px;
|
|
4071
4079
|
font-weight: 500;
|
|
4072
4080
|
line-height: 1.25;
|
|
4073
4081
|
white-space: normal;
|
|
@@ -4076,19 +4084,19 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4076
4084
|
}
|
|
4077
4085
|
|
|
4078
4086
|
.el-radio-group:has(.el-radio-button) .el-radio-button:not(.is-active):not(.is-disabled) .el-radio-button__inner:hover {
|
|
4079
|
-
background:
|
|
4087
|
+
background: transparent;
|
|
4080
4088
|
color: var(--ui-primary);
|
|
4081
4089
|
}
|
|
4082
4090
|
|
|
4083
4091
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active .el-radio-button__inner {
|
|
4084
|
-
background:
|
|
4085
|
-
box-shadow:
|
|
4086
|
-
color:
|
|
4092
|
+
background: var(--ui-surface);
|
|
4093
|
+
box-shadow: var(--ui-shadow-control) !important;
|
|
4094
|
+
color: var(--ui-primary);
|
|
4087
4095
|
font-weight: 600;
|
|
4088
4096
|
}
|
|
4089
4097
|
|
|
4090
4098
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active:not(.is-disabled) .el-radio-button__inner:active {
|
|
4091
|
-
box-shadow: inset
|
|
4099
|
+
box-shadow: var(--ui-shadow-inset) !important;
|
|
4092
4100
|
transform: translateY(1px);
|
|
4093
4101
|
}
|
|
4094
4102
|
|
|
@@ -4098,8 +4106,9 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4098
4106
|
}
|
|
4099
4107
|
|
|
4100
4108
|
.el-radio-group:has(.el-radio-button) .el-radio-button.is-active.is-disabled .el-radio-button__inner {
|
|
4101
|
-
background:
|
|
4102
|
-
|
|
4109
|
+
background: var(--ui-surface);
|
|
4110
|
+
box-shadow: none !important;
|
|
4111
|
+
color: var(--el-disabled-text-color);
|
|
4103
4112
|
}
|
|
4104
4113
|
|
|
4105
4114
|
.el-radio-group:has(.el-radio-button) .el-radio-button__original-radio:focus-visible + .el-radio-button__inner {
|
|
@@ -4165,3 +4174,10 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
|
|
|
4165
4174
|
.el-input .el-input__wrapper, .el-select .el-select__wrapper,
|
|
4166
4175
|
.el-textarea .el-textarea__inner { transition: none; }
|
|
4167
4176
|
}
|
|
4177
|
+
|
|
4178
|
+
/* Dark flow palettes are scoped to the canvas; the surrounding app keeps its theme. */
|
|
4179
|
+
.appium-flow-canvas--dark-nodes {
|
|
4180
|
+
--ui-shadow-card: 0 2px 10px rgb(0 0 0 / 20%);
|
|
4181
|
+
--ui-shadow-control: 0 2px 5px rgb(0 0 0 / 20%);
|
|
4182
|
+
--ui-shadow-inset: inset 0 1px 3px rgb(0 0 0 / 15%);
|
|
4183
|
+
}
|
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; flowNodeColor?: string; flowNodeBorderColor?: string; flowLineColor?: string; flowLineStyle?: 'straight' | 'curved'; flowLayoutDirection?: 'vertical' | 'horizontal'; screenshotReport?: boolean };
|
|
25
25
|
runtime: {
|
|
26
26
|
androidSdkPath: string;
|
|
27
27
|
reportOutputPath: string;
|