Skip to content

Add server delete/edit, TLS bypass option, and container UI fixes#4

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-delete-button-and-validation-issues
Draft

Add server delete/edit, TLS bypass option, and container UI fixes#4
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-delete-button-and-validation-issues

Conversation

Copy link

Copilot AI commented Mar 26, 2026

Users had no way to delete or edit servers, couldn't connect to HTTPS endpoints with self-signed/invalid certificates, and the container list was cramped due to a fixed-height stats card with oversized action buttons that wrapped on small screens.

Server management

  • Delete & Edit buttons added to Server Detail → Quick Actions. Delete shows a confirmation dialog using the server name. Edit opens ServerFormPage pre-filled with the existing config.
  • ServerFormPage now accepts an optional existing: ApiConfig parameter to enable edit mode (title, all fields, and ignoreTls pre-populated).
  • Server list refreshes on return from detail page so deletes/edits are immediately reflected.

TLS bypass (ignoreTls)

  • New ignoreTls: bool field on ApiConfig (serialized, defaults false).
  • SwitchListTile toggle in the server form with explanatory subtitle.
  • When enabled, DioClient and ServerConnectionService skip certificate validation via badCertificateCallback.
  • Cross-platform safe: conditional Dart exports route to tls_bypass_io.dart (mobile/desktop) or tls_bypass_stub.dart (no-op on web) — avoids raw dart:io import on web targets.
// tls_bypass.dart — conditional export
export 'tls_bypass_stub.dart'
    if (dart.library.io) 'tls_bypass_io.dart';

Container UI

  • Stats card converted to a collapsible ExpansionTile. Collapsed state shows inline count badges (total / running / stopped), freeing the full viewport for the container list by default.
  • Action buttons replaced with icon-only _IconActionButton + Tooltip. Eliminates wrapping on narrow screens while keeping discoverability via long-press tooltip.
Original prompt

This section details on the original issue you should resolve

<issue_title>测试反馈-2026年3月26日</issue_title>
<issue_description>设备环境:小米13,miui14
app版本:0.5.0 al.1
接入方式:https+域名带证书(easytier内网隧道)

BUG:

1.找不到服务器删除按钮或入口,服务器信息详情中硬盘信息无显示。
Image

2.应用商店安装页面提示异常(全部应用)
Image

3.服务器地址没tls检验忽略功能,导致https类型的ip地址无法登陆。
Image

4.安全页面报错
Image

5.数据库页面报错
Image

6.防火墙页面报错(404)

7.终端页面报错(404)

8.监控,监控设置,启用监控,保存失败

9.安全设置,访问控制和密码策略没有设置功能

10.容器管理,网络,信息无显示

11.容器管理,编排,信息无显示

12.容器管理,容器,升级容器报错
Image

13.文件,文件上传,无弹窗选择文件
——
——
——
——
UI优化:

1.容器管理,容器统计模块固化,导致容器列表屏幕只剩下一半,显示内容不足。
Image

2.容器管理的,四个按钮分行了,没在同一行。
Image

3.文件管理,文件长按的多项操作小字提醒具体功能,比如"复制"、"粘贴"等
Image

4.系统设置,api密钥管理,密钥信息显示异常
Image

5.安全设置,访问控制,安全入口显示异常
Image

6.容器管理,自定义分区中"编排"属于最常用的功能之一(涉及compose管理),建议默认固定在第二位。
——
——
——
——
功能需求:

1.文件管理默认进入上一退出路径(目前是每次进入在根目录),web版有实现。

2.容器管理,编排,路径自助填充有一定难度,交易增加选择功能。

3.容器管理,容器,容器操作,增加容器终端功能。

4.容器管理,容器,容器操作,停止、启动、重启增加二次确认和执行状态结果弹窗。(特别是重启,完全看不出来是否重启过了)

5.app增加debug模式,快速提取错误日志方便排查。</issue_description>

Comments on the Issue (you are @copilot in this section)

@IsKenKenYa 感谢反馈,这些问题预计本周内修复。

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

… UI improvements

- Add Edit and Delete buttons to Server Detail page quick actions
- Add ignoreTls field to ApiConfig with persistent storage
- Add TLS validation bypass toggle to ServerFormPage
- Implement cross-platform TLS bypass (IO/web conditional imports)
- Convert container stats to collapsible ExpansionTile (saves screen space)
- Replace container action buttons with compact icon-only buttons (fixes wrapping)
- Add edit mode to ServerFormPage (pre-fills existing config)
- Refresh server list after edit/delete from detail page
- Add i18n strings for new features (EN + ZH)

Co-authored-by: IsKenKenYa <92219680+IsKenKenYa@users.noreply.github.com>
Agent-Logs-Url: https://github.com/IsKenKenYa/1Panel-Client/sessions/a3444718-00e9-4fcf-9871-ada397f9433c
Copilot AI changed the title [WIP] Fix server delete button visibility and validation errors Add server delete/edit, TLS bypass option, and container UI fixes Mar 26, 2026
Copilot AI requested a review from IsKenKenYa March 26, 2026 09:39
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.

测试反馈-2026年3月26日

2 participants