AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(frontend): add exact timestamp tooltip on run timestamps (#12087)
Ubbe30e854569ae7
diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsxindex 1ad40fcef4..8815069011 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/ScheduleListItem.tsx@@ -29,6 +29,7 @@ export function ScheduleListItem({description={formatDistanceToNow(schedule.next_run_time, {addSuffix: true,})}+ descriptionTitle={new Date(schedule.next_run_time).toString()}onClick={onClick}selected={selected}icon={diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/SidebarItemCard.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/SidebarItemCard.tsxindex 4f4e9962ce..a438568b74 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/SidebarItemCard.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/SidebarItemCard.tsx@@ -7,6 +7,7 @@ import React from "react";interface Props {title: string;description?: string;+ descriptionTitle?: string;icon?: React.ReactNode;selected?: boolean;onClick?: () => void;@@ -16,6 +17,7 @@ interface Props {export function SidebarItemCard({title,description,+ descriptionTitle,icon,selected,onClick,@@ -38,7 +40,11 @@ export function SidebarItemCard({>{title}</Text>- <Text variant="body" className="leading-tight !text-zinc-500">+ <Text+ variant="body"+ className="leading-tight !text-zinc-500"+ title={descriptionTitle}+ >{description}</Text></div>diff --git a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsxindex 8970e82b64..b9320822fc 100644--- a/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx+++ b/autogpt_platform/frontend/src/app/(platform)/library/agents/[id]/components/NewAgentLibraryView/components/sidebar/SidebarRunsList/components/TaskListItem.tsx@@ -81,6 +81,9 @@ export function TaskListItem({? formatDistanceToNow(run.started_at, { addSuffix: true }): "—"}+ descriptionTitle={+ run.started_at ? new Date(run.started_at).toString() : undefined+ }onClick={onClick}selected={selected}actions={