Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(web): render blob storage export start date directly below export mode (#14935)

Steffen Schmitzde927c085f69
diff --git a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx
index 842be5093e..32283a516e 100644
--- a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx
+++ b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx
@@ -775,6 +775,43 @@ const BlobStorageIntegrationSettingsForm = ({
)}
/>
+ {watchedExportMode === BlobStorageExportMode.FROM_CUSTOM_DATE && (
+ <FormField
+ control={blobStorageForm.control}
+ name="exportStartDate"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Export Start Date</FormLabel>
+ <FormControl>
+ <Input
+ type="date"
+ max={(() => {
+ const t = new Date();
+ return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`;
+ })()}
+ value={
+ field.value instanceof Date
+ ? field.value.toISOString().split("T")[0]
+ : ""
+ }
+ onChange={(e) => {
+ const date = e.target.value
+ ? new Date(e.target.value)
+ : null;
+ field.onChange(date);
+ }}
+ placeholder="Select start date"
+ />
+ </FormControl>
+ <FormDescription>
+ Data before this date will not be included in exports
+ </FormDescription>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ )}
+
{!hideExportSource && (
<FormField
control={blobStorageForm.control}
@@ -951,43 +988,6 @@ const BlobStorageIntegrationSettingsForm = ({
)}
/>
- {watchedExportMode === BlobStorageExportMode.FROM_CUSTOM_DATE && (
- <FormField
- control={blobStorageForm.control}
- name="exportStartDate"
- render={({ field }) => (
- <FormItem>
- <FormLabel>Export Start Date</FormLabel>
- <FormControl>
- <Input
- type="date"
- max={(() => {
- const t = new Date();
- return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`;
- })()}
- value={
- field.value instanceof Date
- ? field.value.toISOString().split("T")[0]
- : ""
- }
- onChange={(e) => {
- const date = e.target.value
- ? new Date(e.target.value)
- : null;
- field.onChange(date);
- }}
- placeholder="Select start date"
- />
- </FormControl>
- <FormDescription>
- Data before this date will not be included in exports
- </FormDescription>
- <FormMessage />
- </FormItem>
- )}
- />
- )}
-
{/* Parquet compresses internally — gzip does not apply. */}
{!isParquetExport && (
<FormField