feat: one server button, and only primary agents to pick
The session screen now has a single server icon that opens the instance list; picking an instance drops the live connection and connects to it, and disconnecting moved into that list. A custom SVG rack stands in for the missing server symbol on Android. The agent sheet lists primary agents only: a session cannot run a subagent (General, Explore) as its own agent. Bump version to 0.1.5 (build 6).
This commit is contained in:
1 parent
9d9678e294
commit
e240a33e31
8 files changed
+76
-10
No files matched your search
@@ -171,6 +171,14 @@ func connectViaForm(t *testing.T, a *uitest.App, url string) {
|
||||
a.Tap("连接")
|
||||
}
|
||||
|
||||
// disconnectViaInstances opens the instance list and drops the live
|
||||
// connection from there; the sessions header has only the list button.
|
||||
func disconnectViaInstances(t *testing.T, a *uitest.App) {
|
||||
t.Helper()
|
||||
a.Tap("实例")
|
||||
a.Tap("断开当前连接")
|
||||
}
|
||||
|
||||
func unlockWith(t *testing.T, a *uitest.App, password string) {
|
||||
t.Helper()
|
||||
a.WaitFor("这台服务器需要密码。")
|
||||
@@ -261,7 +269,7 @@ func TestMultipleConnectionsAndSwitch(t *testing.T) {
|
||||
a := mount(t, st)
|
||||
a.WaitFor("Session A")
|
||||
|
||||
a.Tap("断开")
|
||||
disconnectViaInstances(t, a)
|
||||
a.Expect("A")
|
||||
a.Expect("B")
|
||||
|
||||
@@ -277,7 +285,7 @@ func TestAddAnotherConnection(t *testing.T) {
|
||||
}}
|
||||
a := mount(t, st)
|
||||
a.WaitFor("Session A")
|
||||
a.Tap("断开")
|
||||
disconnectViaInstances(t, a)
|
||||
a.Tap("添加服务器")
|
||||
a.Type("http://192.168.1.5:3000", srvB.URL)
|
||||
a.Type("名称(可选)", "B")
|
||||
@@ -296,7 +304,7 @@ func TestDeleteConnection(t *testing.T) {
|
||||
}}
|
||||
a := mount(t, st)
|
||||
a.WaitFor("Session A")
|
||||
a.Tap("断开")
|
||||
disconnectViaInstances(t, a)
|
||||
|
||||
a.Tap("操作")
|
||||
a.Tap("删除")
|
||||
|
||||
Reference in new issue
Block a user