diff --git a/app/views/chats/_ai_avatar.html.erb b/app/views/chats/_ai_avatar.html.erb index 82cc8007..baa5a6f6 100644 --- a/app/views/chats/_ai_avatar.html.erb +++ b/app/views/chats/_ai_avatar.html.erb @@ -1,3 +1,4 @@
- <%= image_tag "ai.svg", alt: "AI", class: "w-full h-full" %> + <%# Never use svg as an image tag, it appears blurry in Safari %> + <%= inline_svg_tag "ai.svg", alt: "AI", class: "w-full h-full" %>
diff --git a/app/views/chats/_ai_greeting.html.erb b/app/views/chats/_ai_greeting.html.erb index b13f7022..597486fd 100644 --- a/app/views/chats/_ai_greeting.html.erb +++ b/app/views/chats/_ai_greeting.html.erb @@ -1,4 +1,4 @@ -
+
<%= render "chats/ai_avatar" %>
@@ -13,11 +13,11 @@ <% questions = [ { - icon: "bar-chart-2", + icon: "chart-area", text: "Evaluate investment portfolio" }, { - icon: "credit-card", + icon: "wallet-minimal", text: "Show spending insights" }, { @@ -31,7 +31,7 @@ <% end %>
diff --git a/app/views/chats/index.html.erb b/app/views/chats/index.html.erb index 23702931..f109ad13 100644 --- a/app/views/chats/index.html.erb +++ b/app/views/chats/index.html.erb @@ -1,5 +1,5 @@ <%= turbo_frame_tag chat_frame do %> -
+
<% end %>
- - <%= render "messages/chat_form" %>
<% end %> diff --git a/app/views/chats/new.html.erb b/app/views/chats/new.html.erb index 4a00ceec..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 %>
diff --git a/app/views/chats/show.html.erb b/app/views/chats/show.html.erb index 990c84be..28f9b8c1 100644 --- a/app/views/chats/show.html.erb +++ b/app/views/chats/show.html.erb @@ -4,7 +4,7 @@

<%= @chat.title %>

-
+
<%= render "chats/chat_nav", chat: @chat %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 01d94d2f..2487dcfb 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -5,6 +5,7 @@ data-controller="sidebar" data-sidebar-user-id-value="<%= Current.user.id %>" data-sidebar-config-value="<%= sidebar_config.to_json %>"> + <% unless controller_name == 'chats' %>
+ <% end %>
<%= tag.div class: class_names("py-4 shrink-0 h-full overflow-y-auto transition-all duration-300 hidden lg:block"), diff --git a/app/views/messages/_chat_form.html.erb b/app/views/messages/_chat_form.html.erb index 167b336e..7e5157fa 100644 --- a/app/views/messages/_chat_form.html.erb +++ b/app/views/messages/_chat_form.html.erb @@ -4,32 +4,25 @@ <% model = chat && chat.persisted? ? [chat, Message.new] : Chat.new %> <%= form_with model: model, - class: "flex flex-col gap-2 bg-container px-2 py-1.5 rounded-lg shadow-border-xs", + class: "flex items-center gap-2 bg-container p-2 rounded-full shadow-sm border border-gray-100 h-11", data: { chat_target: "form" } do |f| %> <%# In the future, this will be a dropdown with different AI models %> <%= f.hidden_field :ai_model, value: "gpt-4o" %> + + <%= f.text_area :content, placeholder: "Ask anything ...", value: message_hint, - class: "w-full border-0 focus:ring-0 text-sm resize-none px-1 bg-transparent", + class: "w-full border-0 focus:ring-0 text-sm resize-none bg-transparent py-0", data: { chat_target: "input", action: "input->chat#autoResize keydown->chat#handleInputKeyDown" }, rows: 1 %> -
-
- <%# These are disabled for now, but in the future, will all open specific menus with their own context and search %> - <% ["plus", "command", "at-sign", "mouse-pointer-click"].each do |icon| %> - - <% end %> -
- - -
+ <% end %> -

AI responses are informational only and are not financial advice.

+

AI responses are informational only and are not financial advice.

diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erb index 13390ce4..ee5a5be9 100644 --- a/app/views/pages/dashboard/_balance_sheet.html.erb +++ b/app/views/pages/dashboard/_balance_sheet.html.erb @@ -53,9 +53,9 @@
-
+
<% 10.times do |i| %> -
+
<% end %>

<%= number_to_percentage(account_group.weight, precision: 2) %>

diff --git a/public/logo-pwa.png b/public/logo-pwa.png index d6f46549..e8f910a9 100644 Binary files a/public/logo-pwa.png and b/public/logo-pwa.png differ