From 833075249fbf4911af48daa9bde6443cc5eed3df Mon Sep 17 00:00:00 2001
From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com>
Date: Tue, 15 Jul 2025 18:36:09 +0530
Subject: [PATCH] fix: inconsistent workflow->updated_at between list view &
workflow page
---
daras_ai_v2/base.py | 8 ++++----
daras_ai_v2/icons.py | 1 +
widgets/saved_workflow.py | 7 +++----
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py
index f8f6741d1..1c11faa76 100644
--- a/daras_ai_v2/base.py
+++ b/daras_ai_v2/base.py
@@ -596,11 +596,11 @@ def _render_saved_generated_timestamp(self):
):
self._render_report_button()
gui.write(get_relative_time(dt))
- with gui.tooltip(
- tooltip_content,
+ with (
+ gui.tooltip(tooltip_content),
+ gui.tag("span", className="text-muted d-inline-block"),
):
- with gui.tag("span", className="text-muted d-inline-block"):
- gui.html("")
+ gui.html(icons.info)
def _render_options_button_with_dialog(self):
ref = gui.use_alert_dialog(key="options-modal")
diff --git a/daras_ai_v2/icons.py b/daras_ai_v2/icons.py
index 023f83e60..021fe6bb2 100644
--- a/daras_ai_v2/icons.py
+++ b/daras_ai_v2/icons.py
@@ -46,6 +46,7 @@
phone = ''
stars = ''
filter = ''
+info = ""
# brands
github = ''
diff --git a/widgets/saved_workflow.py b/widgets/saved_workflow.py
index c57d4d773..2391529d8 100644
--- a/widgets/saved_workflow.py
+++ b/widgets/saved_workflow.py
@@ -205,15 +205,14 @@ def render_footer_breadcrumbs(
):
gui.html(f"{icons.notes} {html.escape(latest_version.change_notes)}")
- updated_at = published_run.saved_run.updated_at
if (
- updated_at
- and isinstance(updated_at, datetime.datetime)
+ published_run.updated_at
+ and isinstance(published_run.updated_at, datetime.datetime)
and not hide_last_editor
):
with gui.div():
gui.write(
- f"{icons.time} {get_relative_time(updated_at)}",
+ f"{icons.time} {get_relative_time(published_run.updated_at)}",
unsafe_allow_html=True,
className="text-muted",
)