From a5780efff5396a19c20f39ce00076abfefc1df33 Mon Sep 17 00:00:00 2001 From: mohadeseh safari Date: Tue, 25 Mar 2025 20:54:50 -0400 Subject: [PATCH] improve form --- src/Pages/Uptime/Create/index.jsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Pages/Uptime/Create/index.jsx b/src/Pages/Uptime/Create/index.jsx index 3b295f586..f7d0f6a4a 100644 --- a/src/Pages/Uptime/Create/index.jsx +++ b/src/Pages/Uptime/Create/index.jsx @@ -41,9 +41,9 @@ const CreateMonitor = () => { ]; const expectedValuePlaceholders = { - regex: "^[\w.-]+@gmail.com$", - equal: "janet@gmail.com", - include: "@gmail.com", + regex: "^2[0-9]{2}$", + equal: "200", + include: "success", }; const monitorTypeMaps = { @@ -465,8 +465,7 @@ const CreateMonitor = () => { color={theme.palette.primary.contrastTextTertiary} opacity={0.8} > - The expected value is used to match against response result, and the - match determines the status. + The expected value to check in the response. Examples: HTTP status code, text in response body, or specific value from JSON data. @@ -475,7 +474,7 @@ const CreateMonitor = () => { id="json-path" label="JSON Path" isOptional={true} - placeholder="data.email" + placeholder="data.status" value={monitor.jsonPath} onChange={(event) => handleChange(event, "jsonPath")} error={errors["jsonPath"] ? true : false} @@ -486,8 +485,8 @@ const CreateMonitor = () => { color={theme.palette.primary.contrastTextTertiary} opacity={0.8} > - This expression will be evaluated against the reponse JSON data and - the result will be used to match against the expected value. See  + Optional path to extract specific data from JSON responses. Common examples: "status", "data.status", "meta.code". Leave empty to check the entire response. + See