From ac0bdc23d172b0ac938c4a406c393a369ee2bc6e Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Tue, 18 Mar 2025 16:12:30 -0400 Subject: [PATCH] feat(ui): Display labels in cron and uptime create forms For things like Project, Environment, Name do not hide the label to help indicate that it's required --- static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx | 4 ---- static/app/views/monitors/components/monitorForm.tsx | 3 --- 2 files changed, 7 deletions(-) diff --git a/static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx b/static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx index 42baea4c899b3c..7bff94f8e6565c 100644 --- a/static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx +++ b/static/app/views/alerts/rules/uptime/uptimeAlertForm.tsx @@ -156,7 +156,6 @@ export function UptimeAlertForm({project, handleDelete, rule}: Props) { name="projectSlug" label={t('Project')} placeholder={t('Choose Project')} - hideLabel projects={projects} valueIsSlug inline={false} @@ -169,7 +168,6 @@ export function UptimeAlertForm({project, handleDelete, rule}: Props) { label={t('Environment')} placeholder={t('Select an environment')} noOptionsMessage={() => t('Start typing to create an environment')} - hideLabel onCreateOption={(env: any) => { setNewEnvironment(env); formModel.setValue('environment', env); @@ -317,7 +315,6 @@ export function UptimeAlertForm({project, handleDelete, rule}: Props) { } @@ -285,7 +283,6 @@ function MonitorForm({ platformsWithGuides.includes(project.platform) ? 'suggested' : 'other' }