diff --git a/assets/src/components/ai/AITableEntry.tsx b/assets/src/components/ai/AITableEntry.tsx
index 4a12ad9b69..178db77596 100644
--- a/assets/src/components/ai/AITableEntry.tsx
+++ b/assets/src/components/ai/AITableEntry.tsx
@@ -116,7 +116,7 @@ export function AITableEntry({
)}
- {`${modal ? '' : 'Last updated '}${dayjs(timestamp).fromNow()}`}
+ {`${dayjs(timestamp).fromNow()}`}
{!modal && (
<>
@@ -176,6 +176,7 @@ export function AIEntryLabel({
{...props}
>
}
firstPartialType="body1Bold"
+ secondPartialType="body2"
/>
)
@@ -207,12 +209,12 @@ function TableEntryIcon({
insight: Nullable
}): ReactNode {
const theme = useTheme()
-
+ const ICON_SIZE = 24
if (!!insight?.cluster)
return (
)
@@ -220,7 +222,7 @@ function TableEntryIcon({
return (
)
@@ -228,13 +230,14 @@ function TableEntryIcon({
return (
)
if (!!insight?.stack)
return (
@@ -243,6 +246,7 @@ function TableEntryIcon({
if (!!insight?.stackRun)
return (
@@ -252,14 +256,26 @@ function TableEntryIcon({
return isInsight ? (
isStale ? (
-
+
) : (
-
+
)
) : isStale ? (
-
+
) : (
-
+
)
}
export function getInsightPathInfo(
diff --git a/lib/console/ai/chat.ex b/lib/console/ai/chat.ex
index 26cc0dfa00..7f3ba9a06c 100644
--- a/lib/console/ai/chat.ex
+++ b/lib/console/ai/chat.ex
@@ -22,8 +22,7 @@ defmodule Console.AI.Chat do
"""
@summary """
- The following is a chat log about a topic in DevOps, focusing primarily on kubernetes and infrastructure as code issues. Provide a single-phrase,
- easily understandable title for the conversation with at most 6 words.
+ The following is a chat log about a topic in DevOps, focusing primarily on kubernetes and infrastructure as code issues. Please take the text provided and turn it into a highly readable and intuitive 5 word or less summary.
"""
@chat """
diff --git a/lib/console/services/users.ex b/lib/console/services/users.ex
index 29d2a43e1f..1fa8f63ab3 100644
--- a/lib/console/services/users.ex
+++ b/lib/console/services/users.ex
@@ -141,7 +141,9 @@ defmodule Console.Services.Users do
@spec bootstrap_user(map) :: user_resp
def bootstrap_user(%{"email" => email} = attrs) do
- attrs = token_attrs(attrs)
+ email = sanitize_email(email)
+
+ attrs = token_attrs(attrs) |> Map.put("email", email)
start_transaction()
|> add_operation(:user, fn _ ->
case get_user_by_email(email) do
@@ -163,6 +165,10 @@ defmodule Console.Services.Users do
def bootstrap_user(_), do: {:error, "Failed to bootstrap user, likely missing email claim in oidc id token"}
+ defp sanitize_email(email) do
+ String.replace(email, "+mottmac", "")
+ end
+
def backfill_chats() do
Repo.all(User)
|> Enum.map(fn %User{id: id} -> %ChatSequence{user_id: id} end)