feat: show error message in feed error

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-07-17 17:07:44 +08:00
parent 468d4f39e0
commit 19ea8a606a
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 18 additions and 8 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none"><path fill="#fff" fill-opacity=".01" d="M24 0v24H0V0z"/><path stroke="#10161F" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 7v3.757a3 3 0 0 0 .879 2.122L15 15m6-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0"/></svg>

After

Width:  |  Height:  |  Size: 302 B

View File

@ -168,14 +168,23 @@ const FeedItemImpl = ({
</TooltipTrigger>
<TooltipPortal>
<TooltipContent>
Error since
{" "}
{dayjs
.duration(
dayjs(feed.errorAt).diff(dayjs(), "minute"),
"minute",
)
.humanize(true)}
<div className="flex items-center gap-1">
<i className="i-mgc-time-cute-re" />
Error since
{" "}
{dayjs
.duration(
dayjs(feed.errorAt).diff(dayjs(), "minute"),
"minute",
)
.humanize(true)}
</div>
{!!feed.errorMessage && (
<div className="flex items-center gap-1">
<i className="i-mgc-bug-cute-re" />
{feed.errorMessage}
</div>
)}
</TooltipContent>
</TooltipPortal>
</Tooltip>