diff --git a/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx b/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx index 4ec4c83dfb..49a5a21fef 100644 --- a/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx +++ b/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx @@ -198,19 +198,7 @@ const AdvancedDatePicker: React.FC = ({ const { from, to } = option.getValue() const newValue = { from, to } - // Immediately apply the selected option - onValueChange(newValue) - - // Apply the same background adjustment logic as the original component - requestIdleCallback( - () => { - const adjustedValue = adjustDateRange(newValue) - onValueChange(adjustedValue) - }, - { timeout: 100 }, - ) - - // Update local state to reflect the selection + // Update local state to reflect the selection (don't apply immediately) setTempValue(newValue) setSelectedOption(option.shortLabel) @@ -218,8 +206,7 @@ const AdvancedDatePicker: React.FC = ({ setStartDate(moment(from).format("YYYY-MM-DD")) setEndDate(moment(to).format("YYYY-MM-DD")) - // Close the dropdown - setIsOpen(false) + // Don't close the dropdown - let user click Apply to confirm } const updateTempValueFromInputs = useCallback(() => { diff --git a/ui/litellm-dashboard/src/components/user_agent_activity.tsx b/ui/litellm-dashboard/src/components/user_agent_activity.tsx index 6662c8aef1..139bf1e8dc 100644 --- a/ui/litellm-dashboard/src/components/user_agent_activity.tsx +++ b/ui/litellm-dashboard/src/components/user_agent_activity.tsx @@ -22,7 +22,7 @@ import { TabPanel, TabPanels, } from "@tremor/react"; -import { Select } from "antd"; +import { Select, Tooltip } from "antd"; import { formatNumberWithCommas } from "@/utils/dataUtils"; import { userAgentSummaryCall, tagDauCall, tagWauCall, tagMauCall, tagDistinctCall } from "./networking"; import AdvancedDatePicker from "./shared/advanced_date_picker"; @@ -241,7 +241,7 @@ const UserAgentActivity: React.FC = ({ return tag; }; - // Helper function to truncate user agent name with tooltip + // Helper function to truncate user agent name (used with Ant Design Tooltip) const truncateUserAgent = (userAgent: string): string => { if (userAgent.length > 15) { return userAgent.substring(0, 15) + "..."; @@ -450,9 +450,11 @@ const UserAgentActivity: React.FC = ({ const displayName = truncateUserAgent(userAgent); return ( - - {displayName} - + + + {displayName} + +
Success Requests