Files
multica/packages/views/locales/zh-Hans/layout.json
Jiayuan Zhang 55926c072d refactor(views): make the sidebar Discord promo a footer row (MUL-5454) (#6138)
* refactor(views): restyle sidebar Discord promo as a nav row

The dismissible Discord promo was drawn heavier than the navigation above
it: border + fill + saturated brand icon + a permanently visible close
button. Light mode rendered the fill at 1.04:1 against the sidebar (border
1.10:1), so both structural layers read as a smudge; dark mode inverted it
into a bright ring around a dim box. The 11px description failed WCAG AA
at 4.17:1 and was the only hardcoded 11px in the package.

Reshape it to match SidebarMenuButton metrics (h-8 / rounded-md / gap-2 /
text-sm) with no resting border or fill, drop the description line, render
the mark in currentColor, and add the ArrowUpRight the Help menu already
uses for outbound links. The dismiss button gains a 24px hit area, a focus
ring, and hover/focus reveal with a coarse-pointer fallback.

Co-authored-by: multica-agent <github@multica.ai>

* refactor(views): merge the Discord link into the help footer strip

The footer stacked a full-width Discord row above a right-aligned help
trigger, leaving the trigger's leading two-thirds empty and the promo
isolated in its own band. Put both on one strip: the link takes the free
leading space and `justify-end` keeps the trigger right-aligned once the
link is dismissed. Footer height drops 68px -> 48px.

Sharing a 224px strip leaves 128px for the label, and the external-link
arrow plus the dismiss button together overflow it (label is 109px in en
and 125px in zh), so the two cannot coexist at the default sidebar width.
Drop the arrow rather than the dismiss button: dismissal is a user-facing
capability while the arrow is only a hint the Discord mark already carries.
Measured in the running app -- no locale clips at the default width.

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Lambda <lambda@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-07-30 17:59:45 +08:00

63 lines
1.6 KiB
JSON

{
"nav": {
"inbox": "收件箱",
"chat": "聊天",
"my_issues": "我的 issue",
"issues": "Issues",
"projects": "项目",
"autopilots": "自动化",
"agents": "智能体",
"squads": "小队",
"usage": "用量",
"runtimes": "运行时",
"skills": "Skills",
"settings": "设置"
},
"tab": {
"issue": "Issue",
"project": "项目",
"autopilot": "自动化",
"agent": "智能体",
"member": "成员",
"squad": "小队",
"skill": "Skill",
"machine": "机器",
"runtime": "运行时",
"attachment": "附件",
"create_agent": "创建智能体",
"unknown": "未知页面"
},
"help": {
"trigger": "帮助",
"docs": "文档",
"changelog": "更新日志",
"discord": "Discord",
"feedback": "反馈",
"server_version": "服务器版本 {{version}}"
},
"workspace_loader": {
"loading_workspace": "正在加载工作区...",
"loading_named_prefix": "正在加载"
},
"sidebar": {
"unpin_tooltip": "取消固定",
"workspaces_label": "工作区",
"create_workspace": "创建工作区",
"pending_invitations_label": "待处理的邀请",
"invitation_workspace_fallback": "工作区",
"invitation_join": "加入",
"invitation_decline": "拒绝",
"log_out": "退出登录",
"new_issue": "新建 issue",
"new_issue_shortcut": "C",
"pinned_label": "固定",
"workspace_group": "工作区",
"configure_group": "配置",
"unread_overflow": "99+",
"discord_card": {
"title": "加入我们的 Discord",
"dismiss": "关闭"
}
}
}