From 9196ffa63adc3c16baf6811e07ca729ea3abdadd Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Mon, 9 Jun 2025 15:07:20 -0400 Subject: [PATCH] Run linter with autocorrect --- app/controllers/concerns/self_hostable.rb | 2 +- app/views/accountable_sparklines/_error.html.erb | 2 +- app/views/accounts/_sparkline_error.html.erb | 2 +- app/views/accounts/new/_method_selector.html.erb | 4 ++-- app/views/chats/_chat.html.erb | 10 +++++----- app/views/credit_cards/new.html.erb | 6 +++--- app/views/cryptos/new.html.erb | 6 +++--- app/views/depositories/new.html.erb | 6 +++--- app/views/imports/_table.html.erb | 2 +- app/views/investments/new.html.erb | 6 +++--- app/views/layouts/blank.html.erb | 2 +- app/views/loans/new.html.erb | 6 +++--- app/views/pages/dashboard/_balance_sheet.html.erb | 2 +- app/views/pages/redis_configuration_error.html.erb | 2 +- app/views/plaid_items/_auto_link_opener.html.erb | 8 ++++---- app/views/plaid_items/edit.html.erb | 10 +++++----- app/views/plaid_items/new.html.erb | 10 +++++----- 17 files changed, 43 insertions(+), 43 deletions(-) diff --git a/app/controllers/concerns/self_hostable.rb b/app/controllers/concerns/self_hostable.rb index 695cb4ea..4208e03a 100644 --- a/app/controllers/concerns/self_hostable.rb +++ b/app/controllers/concerns/self_hostable.rb @@ -18,7 +18,7 @@ module SelfHostable def verify_self_host_config return unless self_hosted? - + # Special handling for Redis configuration error page if controller_name == "pages" && action_name == "redis_configuration_error" # If Redis is now working, redirect to home diff --git a/app/views/accountable_sparklines/_error.html.erb b/app/views/accountable_sparklines/_error.html.erb index 70ce745e..f43f609f 100644 --- a/app/views/accountable_sparklines/_error.html.erb +++ b/app/views/accountable_sparklines/_error.html.erb @@ -5,4 +5,4 @@

Error

-<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/accounts/_sparkline_error.html.erb b/app/views/accounts/_sparkline_error.html.erb index 2f813a0d..dbee8dbf 100644 --- a/app/views/accounts/_sparkline_error.html.erb +++ b/app/views/accounts/_sparkline_error.html.erb @@ -5,4 +5,4 @@

Error

-<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/accounts/new/_method_selector.html.erb b/app/views/accounts/new/_method_selector.html.erb index e30c2463..03beaa92 100644 --- a/app/views/accounts/new/_method_selector.html.erb +++ b/app/views/accounts/new/_method_selector.html.erb @@ -11,7 +11,7 @@ <% if show_us_link %> <%# Default US-only Link %> - <%= link_to new_plaid_item_path(region: "us", accountable_type: accountable_type), + <%= link_to new_plaid_item_path(region: "us", accountable_type: accountable_type), class: "text-primary flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-gray-50 border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-gray-50 rounded-lg p-2", data: { turbo_frame: "modal" } do %> @@ -23,7 +23,7 @@ <%# EU Link %> <% if show_eu_link %> - <%= link_to new_plaid_item_path(region: "eu", accountable_type: accountable_type), + <%= link_to new_plaid_item_path(region: "eu", accountable_type: accountable_type), class: "text-primary flex items-center gap-4 w-full text-center focus:outline-hidden focus:bg-gray-50 border border-transparent focus:border focus:border-gray-200 px-2 hover:bg-gray-50 rounded-lg p-2", data: { turbo_frame: "modal" } do %> diff --git a/app/views/chats/_chat.html.erb b/app/views/chats/_chat.html.erb index c61c5a04..129cdbe7 100644 --- a/app/views/chats/_chat.html.erb +++ b/app/views/chats/_chat.html.erb @@ -13,12 +13,12 @@ <%= render MenuComponent.new(icon_vertical: true) do |menu| %> <% menu.with_item( - variant: "link", - text: "Edit chat title", - href: edit_chat_path(chat, ctx: "list"), - icon: "pencil", + variant: "link", + text: "Edit chat title", + href: edit_chat_path(chat, ctx: "list"), + icon: "pencil", frame: dom_id(chat, "title")) %> - + <% menu.with_item( variant: "button", text: "Delete chat", diff --git a/app/views/credit_cards/new.html.erb b/app/views/credit_cards/new.html.erb index f6cd7bca..95bca964 100644 --- a/app/views/credit_cards/new.html.erb +++ b/app/views/credit_cards/new.html.erb @@ -1,7 +1,7 @@ <% if params[:step] == "method_select" %> - <%= render "accounts/new/method_selector", - path: new_credit_card_path(return_to: params[:return_to]), - show_us_link: @show_us_link, + <%= render "accounts/new/method_selector", + path: new_credit_card_path(return_to: params[:return_to]), + show_us_link: @show_us_link, show_eu_link: @show_eu_link, accountable_type: "CreditCard" %> <% else %> diff --git a/app/views/cryptos/new.html.erb b/app/views/cryptos/new.html.erb index a803df7b..8e93242f 100644 --- a/app/views/cryptos/new.html.erb +++ b/app/views/cryptos/new.html.erb @@ -1,7 +1,7 @@ <% if params[:step] == "method_select" %> - <%= render "accounts/new/method_selector", - path: new_crypto_path(return_to: params[:return_to]), - show_us_link: @show_us_link, + <%= render "accounts/new/method_selector", + path: new_crypto_path(return_to: params[:return_to]), + show_us_link: @show_us_link, show_eu_link: @show_eu_link, accountable_type: "Crypto" %> <% else %> diff --git a/app/views/depositories/new.html.erb b/app/views/depositories/new.html.erb index c2110726..23bbd79b 100644 --- a/app/views/depositories/new.html.erb +++ b/app/views/depositories/new.html.erb @@ -1,7 +1,7 @@ <% if params[:step] == "method_select" %> - <%= render "accounts/new/method_selector", - path: new_depository_path(return_to: params[:return_to]), - show_us_link: @show_us_link, + <%= render "accounts/new/method_selector", + path: new_depository_path(return_to: params[:return_to]), + show_us_link: @show_us_link, show_eu_link: @show_eu_link, accountable_type: "Depository" %> <% else %> diff --git a/app/views/imports/_table.html.erb b/app/views/imports/_table.html.erb index 5cc3a49c..8de7cea3 100644 --- a/app/views/imports/_table.html.erb +++ b/app/views/imports/_table.html.erb @@ -14,7 +14,7 @@ <% headers.each_with_index do |header, index| %> <%= index == headers.length - 1 ? "rounded-tr-lg" : "" %> <%= index < headers.length - 1 ? "border-r border-r-alpha-black-200" : "" %> diff --git a/app/views/investments/new.html.erb b/app/views/investments/new.html.erb index d31af9c9..1c2fb8e4 100644 --- a/app/views/investments/new.html.erb +++ b/app/views/investments/new.html.erb @@ -1,7 +1,7 @@ <% if params[:step] == "method_select" %> - <%= render "accounts/new/method_selector", - path: new_investment_path(return_to: params[:return_to]), - show_us_link: @show_us_link, + <%= render "accounts/new/method_selector", + path: new_investment_path(return_to: params[:return_to]), + show_us_link: @show_us_link, show_eu_link: @show_eu_link, accountable_type: "Investment" %> <% else %> diff --git a/app/views/layouts/blank.html.erb b/app/views/layouts/blank.html.erb index e2d50896..7193dcb6 100644 --- a/app/views/layouts/blank.html.erb +++ b/app/views/layouts/blank.html.erb @@ -10,4 +10,4 @@ <%= render "layouts/shared/footer" %> <% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/loans/new.html.erb b/app/views/loans/new.html.erb index ae16df8e..c3784ffd 100644 --- a/app/views/loans/new.html.erb +++ b/app/views/loans/new.html.erb @@ -1,7 +1,7 @@ <% if params[:step] == "method_select" %> - <%= render "accounts/new/method_selector", - path: new_loan_path(return_to: params[:return_to]), - show_us_link: @show_us_link, + <%= render "accounts/new/method_selector", + path: new_loan_path(return_to: params[:return_to]), + show_us_link: @show_us_link, show_eu_link: @show_eu_link, accountable_type: "Loan" %> <% else %> diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erb index 337e5268..62a5077a 100644 --- a/app/views/pages/dashboard/_balance_sheet.html.erb +++ b/app/views/pages/dashboard/_balance_sheet.html.erb @@ -116,7 +116,7 @@ <% else %>
- <% + <% # Calculate weight as percentage of classification total classification_total = classification_group.total_money.amount account_weight = classification_total.zero? ? 0 : account.converted_balance / classification_total * 100 diff --git a/app/views/pages/redis_configuration_error.html.erb b/app/views/pages/redis_configuration_error.html.erb index 40fec098..303ce4a7 100644 --- a/app/views/pages/redis_configuration_error.html.erb +++ b/app/views/pages/redis_configuration_error.html.erb @@ -56,4 +56,4 @@
- \ No newline at end of file + diff --git a/app/views/plaid_items/_auto_link_opener.html.erb b/app/views/plaid_items/_auto_link_opener.html.erb index 0a43028b..7e9c7695 100644 --- a/app/views/plaid_items/_auto_link_opener.html.erb +++ b/app/views/plaid_items/_auto_link_opener.html.erb @@ -1,9 +1,9 @@ <%# locals: (link_token:, region:, item_id:, is_update: false) %> -<%= tag.div data: { - controller: "plaid", - plaid_link_token_value: link_token, +<%= tag.div data: { + controller: "plaid", + plaid_link_token_value: link_token, plaid_region_value: region, plaid_item_id_value: item_id, plaid_is_update_value: is_update - } %> \ No newline at end of file + } %> diff --git a/app/views/plaid_items/edit.html.erb b/app/views/plaid_items/edit.html.erb index 31620ad9..4830ad4e 100644 --- a/app/views/plaid_items/edit.html.erb +++ b/app/views/plaid_items/edit.html.erb @@ -1,8 +1,8 @@ <%# We render this in the empty modal frame so if Plaid flow is closed, user stays on same page they were on %> <%= turbo_frame_tag "modal" do %> - <%= render "plaid_items/auto_link_opener", - link_token: @link_token, - region: @plaid_item.plaid_region, - item_id: @plaid_item.id, + <%= render "plaid_items/auto_link_opener", + link_token: @link_token, + region: @plaid_item.plaid_region, + item_id: @plaid_item.id, is_update: true %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/plaid_items/new.html.erb b/app/views/plaid_items/new.html.erb index a3d83660..b927d375 100644 --- a/app/views/plaid_items/new.html.erb +++ b/app/views/plaid_items/new.html.erb @@ -1,8 +1,8 @@ <%# We render this in the empty modal frame so if Plaid flow is closed, user stays on same page they were on %> <%= turbo_frame_tag "modal" do %> - <%= render "plaid_items/auto_link_opener", - link_token: @link_token, - region: params[:region], - item_id: "", + <%= render "plaid_items/auto_link_opener", + link_token: @link_token, + region: params[:region], + item_id: "", is_update: false %> -<% end %> \ No newline at end of file +<% end %>