Conversation
- 卡片 760×664 定高,只有表单区滚动;左侧协议栏(内置 + 插件两组,底部「获取更多协议…」打开插件管理器) - 分页:常规 / 终端 / SSH 选项 / 转发 / 高级,按协议出现;换协议后当前页不存在就落回常规 - 删除「高级选项」折叠开关:插件 IsAdvanced 字段放到「高级」页,页签上报字段数; 原先编辑时自动展开改为页签旁的「有非默认值」圆点 - 认证方式改为分段按钮;标签颜色加色块预览;老算法与 agent 转发加警示标签 - 页脚新增连接目标预览;测试 / 保存改描边按钮,连接改强调药丸(DESIGN.md §5.1) - 新增 16 个文案键,五份 resx 齐;DESIGN.md §6.1 改为协议栏与分页页签的动效口径
joesdu
added a commit
to VelaShellLabs/velashell-docs
that referenced
this pull request
Oct 1, 2026
…sign docs(host): 新建连接对话框改为左侧协议栏 + 右侧分页表单(joesdu/VelaShell#540)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
主要改动
按设计稿
VelaShell-zh.pen「新建连接 v2」重构新建 / 编辑连接对话框(ConnectionProfileView)。原先是 508 宽的一列到底表单,页脚一个「高级选项」开关管着其余一切:SSH 展开后有三十来行,窗口被钳在 768 高里只能一路滚;横排的协议页签在插件协议一多时挤出窗口;「连接」按钮是实心强调色,与 DESIGN.md §5.1 不符。min(768, 工作区 − 48)钳高。ConnectionProfileViewModel.OpenPluginManager打开插件管理器(非模态,在那边启用的协议经注册表Changed当场补进来);没注入时不出现。ConnectionProfileSection(常规 / 终端 / SSH 选项 / 转发 / 高级)。终端与转发只对 SSH,SSH 选项对 SSH 与 SFTP,高级对 FTP(默认打开路径)与声明了IsAdvanced字段的插件协议。换协议后当前页不存在就落回常规。选中下划线沿用原先协议页签的滑动实现。IsAdvancedVisible/ToggleAdvancedCommand):插件字段按「属于当前页且显示条件成立」下发可见性,常规与高级两页共用一个PluginFieldRow模板;AdvancedBadge改为高级页签上的字段数。原先「编辑时有非默认值就自动展开」改为页签旁的圆点(Is*SectionModified)。SelectAuthMethodCommand;FTP 在那一格放加密方式)、插件常用字段、整理(名称 / 分组 / 标签三栏)。标签颜色加色块预览;允许老算法、agent 转发标题旁加警示标签;说明文字由TextMuted换成对比度够的TextTertiary。EndpointPreview(user@host:port,SFTP / FTP 带 scheme,IPv6 加方括号,匿名 FTP 不带用户名);测试 / 保存改VelaOutlineButtonTheme,连接改VelaAccentPillButtonTheme,同高 28。ControlTheme,焦点只在:focus-visible时画;原先给协议页签手工挂焦点装饰器的代码后置删掉。Profile_AdvancedOptions、Profile_SshFeatures改短作页签名,四个认证方式键改短作分段按钮(只有这里用)。与设计稿的两处出入:FTP 加密方式沿用原位置(用户名旁);插件字段仍一行一个、说明在下方(字段由插件声明,宿主判断不了哪两项适合并排)。
测试
ConnectionProfileSectionsTests(18 例):各协议有哪几页、换协议落回常规 / 页还在就不动、切到插件协议离开 SSH 专属页、选不进不存在的页、圆点在已存配置 / 新建 / 编辑时的亮灭与通知、预览的六种写法与通知、分段按钮、插件管理器入口。ConnectionProfileViewModelTests里依赖折叠开关的 5 条改写成分页口径,新增「最后一个高级字段消失时落回常规」。SectionTabIndicator_SlidesToSelectedSection(取代协议页签那条)与OnlyTheSelectedSectionIsShown;Todo2PixelRegressionTests改为按协议栏 SFTP 项的实际边界采样(原先写死的坐标落到了标题栏上)。ConnectionType变化时的落回 → 切插件协议那条变红;下划线把「转发」错映射到「常规」→ 指示条用例变红。编译 0 警告。
dotnet test VelaShell.slnx:VelaShell.Tests1646 通过 / 8 跳过,VelaShell.Core.Tests616 通过 / 10 跳过 / 1 失败,其余全过。唯一的失败X11_RefusedByServer_KeepsAgentForwardingAndWarnsOnce与本 PR 无关(#539 里记过:本机velashell-test-shells镜像过旧,重建即可)。文档
涉及文档修改。
plan.md§145;feature-plan.md「三、文档待同步」登记一行(已指到 velashell-docs#79);DESIGN.md§6.1 改为协议栏与分页页签的动效与焦点口径。zh/host/交互与界面规格.md§13.1 与英文镜像en/host/interaction-and-ui-specs.md,zh/host/design-specs.md/en/host/design-specs.md,zh/host/架构设计.md/en/host/architecture-design.md,以及zh/host/S3协议插件化设计.md、zh/host/Redis客户端插件化调研与设计.md、zh/templates/dev-guide.md。文档同步见 VelaShellLabs/velashell-docs#79,与本 PR 一起合。