From c4025cd2f7c0c4a61778567eac9b4a38a4c04379 Mon Sep 17 00:00:00 2001 From: nntrivi2001 Date: Mon, 14 Sep 2026 13:10:16 +0700 Subject: [PATCH] style(lanes): render the create-readme option as a selectable card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Matches LaneStripCard's selected/unselected treatment and moves the hint inside the card. Drops the "codex has no slash commands" clause from the hint — the option is already hidden for a codex lane. --- client/src/components/lanes/AddLaneModal.tsx | 41 ++++++++++++++------ client/src/i18n/locales/en/lanes.json | 2 +- client/src/i18n/locales/vi/lanes.json | 2 +- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/client/src/components/lanes/AddLaneModal.tsx b/client/src/components/lanes/AddLaneModal.tsx index d0023491..ac9a0831 100644 --- a/client/src/components/lanes/AddLaneModal.tsx +++ b/client/src/components/lanes/AddLaneModal.tsx @@ -408,18 +408,35 @@ export function AddLaneModal({ {tool === "claude" && ( -
- -

{t("addLaneWriteDocsHint")}

-
+ )} {mode === "worktree" && branches && ( diff --git a/client/src/i18n/locales/en/lanes.json b/client/src/i18n/locales/en/lanes.json index b273ee14..a4ef5c16 100644 --- a/client/src/i18n/locales/en/lanes.json +++ b/client/src/i18n/locales/en/lanes.json @@ -40,7 +40,7 @@ "addLaneToolClaude": "Claude Code", "addLaneToolCodex": "Codex", "addLaneToolHint": "Which CLI drives this lane. Cannot be changed later.", - "addLaneWriteDocsHint": "Opens the lane's terminal on creation and runs the /sg-all:sg-md-writing skill there. Claude lanes only — codex has no slash commands.", + "addLaneWriteDocsHint": "Opens the lane's terminal on creation and runs the /sg-all:sg-md-writing skill there.", "addLaneWriteDocsLabel": "Create/update readme file", "mode.repo": "Repo", "mode.repoHint": "Adopt this directory as a lane, as-is — no worktree, no new branch.", diff --git a/client/src/i18n/locales/vi/lanes.json b/client/src/i18n/locales/vi/lanes.json index e6b4b65f..a61f5154 100644 --- a/client/src/i18n/locales/vi/lanes.json +++ b/client/src/i18n/locales/vi/lanes.json @@ -40,7 +40,7 @@ "addLaneToolClaude": "Claude Code", "addLaneToolCodex": "Codex", "addLaneToolHint": "CLI nào điều khiển lane này. Không thể thay đổi sau này.", - "addLaneWriteDocsHint": "Khi tạo lane sẽ mở terminal của lane và chạy skill /sg-all:sg-md-writing tại đó. Chỉ áp dụng cho lane Claude — codex không có slash command.", + "addLaneWriteDocsHint": "Khi tạo lane sẽ mở terminal của lane và chạy skill /sg-all:sg-md-writing tại đó.", "addLaneWriteDocsLabel": "Tạo/cập nhật file readme", "mode.repo": "Repo", "mode.repoHint": "Gắn thẳng thư mục này làm lane, nguyên trạng — không worktree, không nhánh mới.",