1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 23:15:24 +02:00

Run linter with autocorrect

This commit is contained in:
Zach Gollwitzer 2025-06-09 15:07:20 -04:00
parent 1918b34098
commit 9196ffa63a
17 changed files with 43 additions and 43 deletions

View file

@ -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

View file

@ -5,4 +5,4 @@
</div>
<p class="font-mono text-right text-xs text-warning">Error</p>
</div>
<% end %>
<% end %>

View file

@ -5,4 +5,4 @@
</div>
<p class="font-mono text-right text-xs text-warning">Error</p>
</div>
<% end %>
<% end %>

View file

@ -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 %>
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">
@ -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 %>
<span class="flex w-8 h-8 shrink-0 grow-0 items-center justify-center rounded-lg bg-alpha-black-50 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.02)]">

View file

@ -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",

View file

@ -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 %>

View file

@ -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 %>

View file

@ -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 %>

View file

@ -14,7 +14,7 @@
<tr>
<% headers.each_with_index do |header, index| %>
<th class="
bg-container-inset px-3 py-2 font-medium border-b border-b-alpha-black-200 text-left whitespace-nowrap
bg-container-inset px-3 py-2 font-medium border-b border-b-alpha-black-200 text-left whitespace-nowrap
<%= index == 0 ? "rounded-tl-lg" : "" %>
<%= index == headers.length - 1 ? "rounded-tr-lg" : "" %>
<%= index < headers.length - 1 ? "border-r border-r-alpha-black-200" : "" %>

View file

@ -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 %>

View file

@ -10,4 +10,4 @@
<%= render "layouts/shared/footer" %>
<% end %>
</div>
<% end %>
<% end %>

View file

@ -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 %>

View file

@ -116,7 +116,7 @@
<% else %>
<div class="ml-auto flex items-center text-right gap-6">
<div class="w-28 shrink-0 flex items-center justify-end gap-2">
<%
<%
# 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

View file

@ -56,4 +56,4 @@
</div>
</div>
</div>
</div>
</div>

View file

@ -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
} %>
} %>

View file

@ -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 %>
<% end %>

View file

@ -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 %>
<% end %>