-
-
-
-
-
-
-
-
- <%= render partial: "transactions/search_form/account_filter", locals: { form: form } %>
-
-
- <%= render partial: "transactions/search_form/amount_filter", locals: { form: form } %>
-
-
- <%= render partial: "transactions/search_form/category_filter", locals: { form: form } %>
-
-
- <%= render partial: "transactions/search_form/merchant_filter", locals: { form: form } %>
-
-
+ <%# TODO: Refactor this for readability and maintainability %>
+
+
+
+
+
+
+
+
-
-
<%= q.conditions.reject { |condition| condition.values.any?(&:blank?) }.size %> filters applied
- <%= button_to "Clear all", search_transactions_path(clear: true), method: :post, class: "text-gray-900 font-medium", form: { "data-turbo-frame": "transactions_list" } %>
+
+
+ <%= render partial: "transactions/search_form/date_filter", locals: { form: form } %>
+
+
+ <%= render partial: "transactions/search_form/account_filter", locals: { form: form } %>
+
+
+ <%= render partial: "transactions/search_form/type_filter", locals: { form: form } %>
+
+
+ <%= render partial: "transactions/search_form/amount_filter", locals: { form: form } %>
+
+
+ <%= render partial: "transactions/search_form/category_filter", locals: { form: form } %>
+
+
+ <%= render partial: "transactions/search_form/merchant_filter", locals: { form: form } %>
+
diff --git a/app/views/transactions/search_form/_amount_filter.html.erb b/app/views/transactions/search_form/_amount_filter.html.erb
index 54bf8744..ae785f06 100644
--- a/app/views/transactions/search_form/_amount_filter.html.erb
+++ b/app/views/transactions/search_form/_amount_filter.html.erb
@@ -1,4 +1,4 @@
<%# locals: (form:) %>
-
Coming soon...
+
Filter by amount coming soon...
diff --git a/app/views/transactions/search_form/_date_filter.html.erb b/app/views/transactions/search_form/_date_filter.html.erb
new file mode 100644
index 00000000..abe66367
--- /dev/null
+++ b/app/views/transactions/search_form/_date_filter.html.erb
@@ -0,0 +1,4 @@
+<%# locals: (form:) %>
+
+
Filter by date coming soon...
+
diff --git a/app/views/transactions/search_form/_merchant_filter.html.erb b/app/views/transactions/search_form/_merchant_filter.html.erb
index 54bf8744..dd8e24a0 100644
--- a/app/views/transactions/search_form/_merchant_filter.html.erb
+++ b/app/views/transactions/search_form/_merchant_filter.html.erb
@@ -1,4 +1,4 @@
<%# locals: (form:) %>
-
Coming soon...
+
Filter by merchant coming soon...
diff --git a/app/views/transactions/search_form/_type_filter.html.erb b/app/views/transactions/search_form/_type_filter.html.erb
new file mode 100644
index 00000000..a273a374
--- /dev/null
+++ b/app/views/transactions/search_form/_type_filter.html.erb
@@ -0,0 +1,4 @@
+<%# locals: (form:) %>
+
+
Filter by type coming soon...
+