diff --git a/app/helpers/forms_helper.rb b/app/helpers/forms_helper.rb
index 22861eb0..55c8c74c 100644
--- a/app/helpers/forms_helper.rb
+++ b/app/helpers/forms_helper.rb
@@ -17,7 +17,7 @@ module FormsHelper
end
end
- def period_select(form:, selected:, classes: "border border-tertiary shadow-xs rounded-lg text-sm pr-7 cursor-pointer text-primary focus:outline-hidden focus:ring-0")
+ def period_select(form:, selected:, classes: "border border-secondary rounded-lg text-sm pr-7 cursor-pointer text-primary focus:outline-hidden focus:ring-0")
periods_for_select = Period.all.map { |period| [ period.label_short, period.key ] }
form.select(:period, periods_for_select, { selected: selected.key }, class: classes, data: { "auto-submit-form-target": "auto" })
diff --git a/app/javascript/controllers/list_filter_controller.js b/app/javascript/controllers/list_filter_controller.js
index dafb214a..279d8b47 100644
--- a/app/javascript/controllers/list_filter_controller.js
+++ b/app/javascript/controllers/list_filter_controller.js
@@ -4,6 +4,10 @@ import { Controller } from "@hotwired/stimulus";
export default class extends Controller {
static targets = ["input", "list", "emptyMessage"];
+ connect() {
+ this.inputTarget.focus();
+ }
+
filter() {
const filterValue = this.inputTarget.value.toLowerCase();
const items = this.listTarget.querySelectorAll(".filterable-item");
diff --git a/app/javascript/controllers/sidebar_controller.js b/app/javascript/controllers/sidebar_controller.js
index 7ed40418..e0577edf 100644
--- a/app/javascript/controllers/sidebar_controller.js
+++ b/app/javascript/controllers/sidebar_controller.js
@@ -8,7 +8,7 @@ export default class extends Controller {
toggle() {
this.panelTarget.classList.toggle("w-0");
this.panelTarget.classList.toggle("opacity-0");
- this.panelTarget.classList.toggle("w-[260px]");
+ this.panelTarget.classList.toggle("w-80");
this.panelTarget.classList.toggle("opacity-100");
this.contentTarget.classList.toggle("max-w-4xl");
this.contentTarget.classList.toggle("max-w-5xl");
diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js
index d3cc05cc..7fc86100 100644
--- a/app/javascript/controllers/time_series_chart_controller.js
+++ b/app/javascript/controllers/time_series_chart_controller.js
@@ -446,7 +446,7 @@ export default class extends Controller {
get _margin() {
if (this.useLabelsValue) {
- return { top: 20, right: 0, bottom: 30, left: 0 };
+ return { top: 20, right: 0, bottom: 10, left: 0 };
}
return { top: 0, right: 0, bottom: 0, left: 0 };
}
diff --git a/app/views/accountable_sparklines/show.html.erb b/app/views/accountable_sparklines/show.html.erb
index b5a479a8..ba915d57 100644
--- a/app/views/accountable_sparklines/show.html.erb
+++ b/app/views/accountable_sparklines/show.html.erb
@@ -6,6 +6,6 @@
<%= tag.p @series.trend.percent_formatted,
style: "color: #{@series.trend.color}",
- class: "text-right text-xs font-medium text-primary" %>
+ class: "font-mono text-right text-xs font-medium text-primary" %>
<% end %>
diff --git a/app/views/accounts/_account_sidebar_tabs.html.erb b/app/views/accounts/_account_sidebar_tabs.html.erb
index 3bf4d64e..d42fab86 100644
--- a/app/views/accounts/_account_sidebar_tabs.html.erb
+++ b/app/views/accounts/_account_sidebar_tabs.html.erb
@@ -8,21 +8,21 @@
data-tabs-inactive-class="text-secondary"
data-tabs-default-tab-value="assets-tab">
-
- <%= link_to new_account_path(step: "method_select"),
+ <%= link_to new_account_path(step: "method_select", classification: "asset"),
class: "flex items-center gap-3 btn btn--ghost text-secondary mb-1",
data: { turbo_frame: "modal" } do %>
<%= icon("plus") %>
@@ -37,7 +37,7 @@
- <%= link_to new_account_path(step: "method_select"),
+ <%= link_to new_account_path(step: "method_select", classification: "liability"),
class: "flex items-center gap-3 btn btn--ghost text-secondary mb-1",
data: { turbo_frame: "modal" } do %>
<%= icon("plus") %>
diff --git a/app/views/accounts/_accountable_group.html.erb b/app/views/accounts/_accountable_group.html.erb
index c5b4e90e..008cc4b1 100644
--- a/app/views/accounts/_accountable_group.html.erb
+++ b/app/views/accounts/_accountable_group.html.erb
@@ -19,12 +19,12 @@
<% account_group.accounts.each do |account| %>
- <%= link_to account_path(account), class: "block flex items-center gap-2 btn btn--ghost" do %>
+ <%= link_to account_path(account), class: "block flex items-center gap-2 btn btn--ghost", title: account.name do %>
<%= render "accounts/logo", account: account, size: "sm", color: account_group.color %>
-
- <%= tag.p account.name, class: "text-sm font-medium mb-0.5" %>
- <%= tag.p account.subtype&.humanize.presence || account_group.name, class: "text-sm text-secondary" %>
+
+ <%= tag.p account.name, class: "text-sm font-medium mb-0.5 truncate" %>
+ <%= tag.p account.subtype&.humanize.presence || account_group.name, class: "text-sm text-secondary truncate" %>
diff --git a/app/views/accounts/_logo.html.erb b/app/views/accounts/_logo.html.erb
index e9bd7cde..9286a0f3 100644
--- a/app/views/accounts/_logo.html.erb
+++ b/app/views/accounts/_logo.html.erb
@@ -8,9 +8,9 @@
} %>
<% if account.plaid_account_id? && account.institution_domain.present? %>
- <%= image_tag "https://logo.synthfinance.com/#{account.institution_domain}", class: "rounded-full #{size_classes[size]}" %>
+ <%= image_tag "https://logo.synthfinance.com/#{account.institution_domain}", class: "shrink-0 rounded-full #{size_classes[size]}" %>
<% elsif account.logo.attached? %>
- <%= image_tag account.logo, class: "rounded-full #{size_classes[size]}" %>
+ <%= image_tag account.logo, class: "shrink-0 rounded-full #{size_classes[size]}" %>
<% else %>
<%= circle_logo(account.name, hex: color || account.accountable.color, size: size) %>
<% end %>
diff --git a/app/views/accounts/chart.html.erb b/app/views/accounts/chart.html.erb
index f71750e9..467fd35f 100644
--- a/app/views/accounts/chart.html.erb
+++ b/app/views/accounts/chart.html.erb
@@ -16,7 +16,7 @@
<%= tag.span period.comparison_label, class: "text-secondary" %>
-
+
<% if series.any? %>
- <%= render "account_type", accountable: Depository.new %>
- <%= render "account_type", accountable: Investment.new %>
- <%= render "account_type", accountable: Crypto.new %>
- <%= render "account_type", accountable: Property.new %>
- <%= render "account_type", accountable: Vehicle.new %>
- <%= render "account_type", accountable: CreditCard.new %>
- <%= render "account_type", accountable: Loan.new %>
- <%= render "account_type", accountable: OtherAsset.new %>
- <%= render "account_type", accountable: OtherLiability.new %>
+ <% unless params[:classification] == "liability" %>
+ <%= render "account_type", accountable: Depository.new %>
+ <%= render "account_type", accountable: Investment.new %>
+ <%= render "account_type", accountable: Crypto.new %>
+ <%= render "account_type", accountable: Property.new %>
+ <%= render "account_type", accountable: Vehicle.new %>
+ <% end %>
+
+ <% unless params[:classification] == "asset" %>
+ <%= render "account_type", accountable: CreditCard.new %>
+ <%= render "account_type", accountable: Loan.new %>
+ <% end %>
+
+ <% unless params[:classification] == "liability" %>
+ <%= render "account_type", accountable: OtherAsset.new %>
+ <% end %>
+
+ <% unless params[:classification] == "asset" %>
+ <%= render "account_type", accountable: OtherLiability.new %>
+ <% end %>
<% unless params[:return_to].present? %>
<%= button_to imports_path(import: { type: "AccountImport" }),
diff --git a/app/views/accounts/sparkline.html.erb b/app/views/accounts/sparkline.html.erb
index b4e587fb..3a3316ce 100644
--- a/app/views/accounts/sparkline.html.erb
+++ b/app/views/accounts/sparkline.html.erb
@@ -6,6 +6,6 @@
<%= tag.p @account.sparkline_series.trend.percent_formatted,
style: "color: #{@account.sparkline_series.trend.color}",
- class: "text-right text-xs font-medium text-primary" %>
+ class: "font-mono text-right text-xs font-medium text-primary" %>
<% end %>
diff --git a/app/views/categories/_color_avatar.html.erb b/app/views/categories/_color_avatar.html.erb
index 1c00f365..6d2aea94 100644
--- a/app/views/categories/_color_avatar.html.erb
+++ b/app/views/categories/_color_avatar.html.erb
@@ -1,6 +1,6 @@
<%# locals: (category:) %>
-
diff --git a/app/views/categories/_form.html.erb b/app/views/categories/_form.html.erb
index 81afcab4..29989991 100644
--- a/app/views/categories/_form.html.erb
+++ b/app/views/categories/_form.html.erb
@@ -24,7 +24,7 @@
<% end %>
@@ -46,7 +46,7 @@
<% Category.icon_codes.each do |icon| %>