Merge pull request #950 from getmaxun/ui-name
feat: rename name & target url labels
This commit is contained in:
@@ -266,7 +266,7 @@
|
|||||||
},
|
},
|
||||||
"save_recording": {
|
"save_recording": {
|
||||||
"title": "Save Robot",
|
"title": "Save Robot",
|
||||||
"robot_name": "Robot Name",
|
"robot_name": "Name",
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"confirm": "Confirm"
|
"confirm": "Confirm"
|
||||||
@@ -440,7 +440,7 @@
|
|||||||
"warning": "⚠️ Ensure the new page has the same structure as the original page."
|
"warning": "⚠️ Ensure the new page has the same structure as the original page."
|
||||||
},
|
},
|
||||||
"fields": {
|
"fields": {
|
||||||
"target_url": "Robot Target URL"
|
"target_url": "Target URL"
|
||||||
},
|
},
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"duplicate": "Duplicate Robot",
|
"duplicate": "Duplicate Robot",
|
||||||
@@ -456,7 +456,7 @@
|
|||||||
},
|
},
|
||||||
"robot_settings": {
|
"robot_settings": {
|
||||||
"title": "Robot Settings",
|
"title": "Robot Settings",
|
||||||
"target_url": "Robot Target URL",
|
"target_url": "Target URL",
|
||||||
"robot_id": "Robot ID",
|
"robot_id": "Robot ID",
|
||||||
"robot_limit": "Robot Limit",
|
"robot_limit": "Robot Limit",
|
||||||
"created_by_user": "Created By User",
|
"created_by_user": "Created By User",
|
||||||
@@ -470,7 +470,7 @@
|
|||||||
},
|
},
|
||||||
"robot_edit": {
|
"robot_edit": {
|
||||||
"title": "Edit Robot",
|
"title": "Edit Robot",
|
||||||
"change_name": "Robot Name",
|
"change_name": "Name",
|
||||||
"robot_limit": "Robot Limit",
|
"robot_limit": "Robot Limit",
|
||||||
"save": "Save Changes",
|
"save": "Save Changes",
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
|
|||||||
@@ -399,12 +399,12 @@ const RobotCreate: React.FC = () => {
|
|||||||
<Box sx={{ width: '100%', maxWidth: 700 }}>
|
<Box sx={{ width: '100%', maxWidth: 700 }}>
|
||||||
<Box sx={{ mb: 3 }}>
|
<Box sx={{ mb: 3 }}>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Robot Name"
|
placeholder="Name"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
fullWidth
|
fullWidth
|
||||||
value={extractRobotName}
|
value={extractRobotName}
|
||||||
onChange={(e) => setExtractRobotName(e.target.value)}
|
onChange={(e) => setExtractRobotName(e.target.value)}
|
||||||
label="Robot Name"
|
label="Name"
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
@@ -693,7 +693,7 @@ const RobotCreate: React.FC = () => {
|
|||||||
value={scrapeRobotName}
|
value={scrapeRobotName}
|
||||||
onChange={(e) => setScrapeRobotName(e.target.value)}
|
onChange={(e) => setScrapeRobotName(e.target.value)}
|
||||||
sx={{ mb: 2 }}
|
sx={{ mb: 2 }}
|
||||||
label="Robot Name"
|
label="Name"
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
placeholder="Example: https://www.ycombinator.com/companies/"
|
placeholder="Example: https://www.ycombinator.com/companies/"
|
||||||
@@ -854,7 +854,7 @@ const RobotCreate: React.FC = () => {
|
|||||||
|
|
||||||
<Box sx={{ width: '100%', maxWidth: 700, mb: 2 }}>
|
<Box sx={{ width: '100%', maxWidth: 700, mb: 2 }}>
|
||||||
<TextField
|
<TextField
|
||||||
label="Robot Name"
|
label="Name"
|
||||||
placeholder="Example: YC Companies Crawler"
|
placeholder="Example: YC Companies Crawler"
|
||||||
fullWidth
|
fullWidth
|
||||||
value={crawlRobotName}
|
value={crawlRobotName}
|
||||||
@@ -1013,7 +1013,7 @@ const RobotCreate: React.FC = () => {
|
|||||||
|
|
||||||
<Box sx={{ width: '100%', maxWidth: 700, mb: 2 }}>
|
<Box sx={{ width: '100%', maxWidth: 700, mb: 2 }}>
|
||||||
<TextField
|
<TextField
|
||||||
label="Robot Name"
|
label="Name"
|
||||||
placeholder="Example: AI News Monitor"
|
placeholder="Example: AI News Monitor"
|
||||||
fullWidth
|
fullWidth
|
||||||
value={searchRobotName}
|
value={searchRobotName}
|
||||||
|
|||||||
@@ -1094,7 +1094,7 @@ export const RobotEditPage = ({ handleStart }: RobotSettingsProps) => {
|
|||||||
<>
|
<>
|
||||||
<TextField
|
<TextField
|
||||||
label={t("robot_edit.change_name")}
|
label={t("robot_edit.change_name")}
|
||||||
key="Robot Name"
|
key="Name"
|
||||||
type="text"
|
type="text"
|
||||||
value={robot.recording_meta.name}
|
value={robot.recording_meta.name}
|
||||||
onChange={(e) => handleRobotNameChange(e.target.value)}
|
onChange={(e) => handleRobotNameChange(e.target.value)}
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export const RobotSettingsPage = ({ handleStart }: RobotSettingsProps) => {
|
|||||||
{robot.recording_meta.type !== 'search' && (
|
{robot.recording_meta.type !== 'search' && (
|
||||||
<TextField
|
<TextField
|
||||||
label={t("robot_settings.target_url")}
|
label={t("robot_settings.target_url")}
|
||||||
key="Robot Target URL"
|
key="Target URL"
|
||||||
value={targetUrl}
|
value={targetUrl}
|
||||||
InputProps={{
|
InputProps={{
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user