diff --git a/app/views/chats/_chat_nav.html.erb b/app/views/chats/_chat_nav.html.erb
index c4be93ee..5f4d44b5 100644
--- a/app/views/chats/_chat_nav.html.erb
+++ b/app/views/chats/_chat_nav.html.erb
@@ -9,6 +9,8 @@
variant: "icon",
icon: "menu",
href: path,
+ frame: chat_frame,
+ text: "All chats"
) %>
@@ -24,7 +26,8 @@
variant: "link",
text: "Edit chat title",
href: edit_chat_path(chat, ctx: "chat"),
- icon: "pencil", data: { turbo_frame: dom_id(chat, "title") }) %>
+ icon: "pencil",
+ frame: dom_id(chat, "title")) %>
<% menu.with_item(
variant: "button",
diff --git a/app/views/chats/index.html.erb b/app/views/chats/index.html.erb
index 8560ef97..1b8f6d1d 100644
--- a/app/views/chats/index.html.erb
+++ b/app/views/chats/index.html.erb
@@ -2,32 +2,31 @@
<%= turbo_frame_tag chat_frame do %>
<% if @chats.any? %>
-
- <% end %>
-
-
- <% if @chats.any? %>
-
Chats
+
+
+
Chats
+ <%= render LinkComponent.new(
+ id: "new-chat",
+ icon: "plus",
+ variant: "icon",
+ href: new_chat_path,
+ frame: chat_frame,
+ text: "New chat"
+ ) %>
+
<%= render @chats %>
- <% else %>
+
+ <% else %>
+
Chats
<%= render "chats/ai_greeting" %>
-
<%= render "messages/chat_form" %>
- <% end %>
-
+
+ <% end %>
<% end %>
diff --git a/app/views/chats/new.html.erb b/app/views/chats/new.html.erb
index fd1311b3..8bee5429 100644
--- a/app/views/chats/new.html.erb
+++ b/app/views/chats/new.html.erb
@@ -1,5 +1,5 @@
<%= turbo_frame_tag chat_frame do %>
-
+
<%= render "chats/chat_nav", chat: @chat %>