feat(client): polish customUpCodes ui

This commit is contained in:
harsh-aghara committed 2026-06-18 22:27:38 +05:30
1 parent d8dafa311a
commit 6d433fd0ac
3 files changed
+13

No files matched your search

+9
View File
@@ -1117,6 +1117,15 @@ const CreateMonitorPage = () => {
"pages.createMonitor.form.advanced.option.customUpCodes.label"
)}
/>
<Typography
component="span"
color={theme.palette.text.secondary}
sx={{ opacity: 0.8 }}
>
{t(
"pages.createMonitor.form.advanced.option.customUpCodes.description"
)}
</Typography>
{selectedOptions.length > 0 && (
<Stack
flex={1}
+3
View File
@@ -80,6 +80,9 @@ export interface HttpStatusCodeOption {
name: string;
}
/**
* Must stay in sync with HttpStatusCodes in server/src/domain/monitors/monitor.types.ts
*/
export const ALL_HTTP_STATUS_CODES: HttpStatusCodeOption[] = [
{ id: 100, name: "100 - Continue" },
{ id: 101, name: "101 - Switching Protocols" },
+1
View File
@@ -508,6 +508,7 @@
},
"customUpCodes": {
"label": "Accepted status codes",
"description": "Add any non-2xx codes that should also be considered successful.",
"removeAriaLabel": "Remove status code"
}
},