Skip to content

Commit 0529598

Browse files
committed
webview-ui: add 'press' action text and keyboard icon; localize step counter; add en i18n key
1 parent 9c484f0 commit 0529598

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

webview-ui/src/components/chat/BrowserSessionRow.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ const BrowserActionBox = ({
730730
return t("chat:browser.actions.click", { coordinate: coordinate?.replace(",", ", ") })
731731
case "type":
732732
return t("chat:browser.actions.type", { text })
733+
case "press":
734+
return t("chat:browser.actions.press", { text })
733735
case "scroll_down":
734736
return t("chat:browser.actions.scrollDown")
735737
case "scroll_up":
@@ -745,6 +747,7 @@ const BrowserActionBox = ({
745747
case "click":
746748
return <MousePointerIcon className="w-4 h-4 opacity-80" />
747749
case "type":
750+
case "press":
748751
return <Keyboard className="w-4 h-4 opacity-80" />
749752
case "scroll_down":
750753
return <ArrowDown className="w-4 h-4 opacity-80" />
@@ -799,7 +802,10 @@ const BrowserActionBox = ({
799802
{showNav && (
800803
<>
801804
<span style={{ fontSize: "12px", color: "var(--vscode-descriptionForeground)" }}>
802-
{currentStep ?? 1} of {totalSteps ?? 1}
805+
{t("chat:browser.navigation.step", {
806+
current: currentStep ?? 1,
807+
total: totalSteps ?? 1,
808+
})}
803809
</span>
804810
<VSCodeButton
805811
appearance="secondary"

webview-ui/src/i18n/locales/en/chat.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
"launch": "Launch browser at {{url}}",
334334
"click": "Click ({{coordinate}})",
335335
"type": "Type \"{{text}}\"",
336+
"press": "Press {{text}}",
336337
"scrollDown": "Scroll down",
337338
"scrollUp": "Scroll up",
338339
"close": "Close browser"

0 commit comments

Comments
 (0)