diff --git a/app/assets/stylesheets/application.tailwind.css b/app/assets/stylesheets/application.tailwind.css index d3ba7908..110f31d0 100644 --- a/app/assets/stylesheets/application.tailwind.css +++ b/app/assets/stylesheets/application.tailwind.css @@ -107,8 +107,12 @@ @apply bg-gray-900 text-white hover:bg-gray-700; } - .btn--light { - @apply bg-gray-25 border border-alpha-black-200 text-gray-900 hover:bg-gray-50; + .btn--outline { + @apply border border-alpha-black-200 text-gray-900 hover:bg-gray-50; + } + + .btn--ghost { + @apply border border-transparent text-gray-900 hover:bg-gray-50; } } diff --git a/app/models/demo/generator.rb b/app/models/demo/generator.rb index 76b54918..20e5c01c 100644 --- a/app/models/demo/generator.rb +++ b/app/models/demo/generator.rb @@ -70,6 +70,7 @@ class Demo::Generator email: "user@maybe.local", first_name: "Demo", last_name: "User", + role: "admin", password: "password" end diff --git a/app/views/accounts/_sync_all_button.html.erb b/app/views/accounts/_sync_all_button.html.erb index 9b5f7213..0cf16bbd 100644 --- a/app/views/accounts/_sync_all_button.html.erb +++ b/app/views/accounts/_sync_all_button.html.erb @@ -1,4 +1,4 @@ -<%= button_to sync_all_accounts_path, class: "btn btn--light flex items-center gap-2", title: "Sync All" do %> +<%= button_to sync_all_accounts_path, class: "btn btn--outline flex items-center gap-2", title: "Sync All" do %> <%= lucide_icon "refresh-cw", class: "w-5 h-5" %> <%= t("accounts.sync_all.button_text") %> <% end %> diff --git a/app/views/settings/_nav.html.erb b/app/views/settings/_nav.html.erb index 3ed3c58b..7edaf8a8 100644 --- a/app/views/settings/_nav.html.erb +++ b/app/views/settings/_nav.html.erb @@ -1,66 +1,76 @@ -
- <%= link_to return_to_path(params), class: "flex items-center gap-1 text-gray-900 font-medium text-sm" do %> - <%= lucide_icon "chevron-left", class: "w-5 h-5 text-gray-500" %> - Back - <% end %> - - esc - -
- + + + diff --git a/app/views/settings/profiles/show.html.erb b/app/views/settings/profiles/show.html.erb index b2eda05c..595f749b 100644 --- a/app/views/settings/profiles/show.html.erb +++ b/app/views/settings/profiles/show.html.erb @@ -61,12 +61,6 @@

<%= Current.user.role %>

-
- -
<% end %> diff --git a/app/views/transactions/_header.html.erb b/app/views/transactions/_header.html.erb index 874f0d3f..6e47a265 100644 --- a/app/views/transactions/_header.html.erb +++ b/app/views/transactions/_header.html.erb @@ -11,7 +11,7 @@ <% end %> - <%= link_to new_import_path(enable_type_selector: true), class: "rounded-lg bg-gray-50 border border-gray-200 flex items-center gap-1 justify-center px-3 py-2", data: { turbo_frame: "modal" } do %> + <%= link_to new_import_path(enable_type_selector: true), class: "btn btn--outline flex items-center gap-2", data: { turbo_frame: "modal" } do %> <%= lucide_icon("download", class: "text-gray-500 w-4 h-4") %>

<%= t(".import") %>

<% end %> diff --git a/app/views/transactions/searches/_form.html.erb b/app/views/transactions/searches/_form.html.erb index 2cbccd63..84f628b3 100644 --- a/app/views/transactions/searches/_form.html.erb +++ b/app/views/transactions/searches/_form.html.erb @@ -15,7 +15,7 @@
- diff --git a/app/views/transactions/searches/_menu.html.erb b/app/views/transactions/searches/_menu.html.erb index d474ca55..a42840ef 100644 --- a/app/views/transactions/searches/_menu.html.erb +++ b/app/views/transactions/searches/_menu.html.erb @@ -33,7 +33,7 @@
<% if @q.present? %> - <%= link_to t(".clear_filters"), transactions_path, class: "text-sm underline text-gray-500" %> + <%= link_to t(".clear_filters"), transactions_path, class: "btn btn--ghost" %> <% end %>
diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml index 700ec20a..e4bbb1bb 100644 --- a/config/locales/views/settings/en.yml +++ b/config/locales/views/settings/en.yml @@ -34,8 +34,8 @@ en: password_placeholder: "*******" port: Port port_placeholder: 587 - send_test_email: Send Test Email - send_test_email_button: Send Test Email + send_test_email: Send test email + send_test_email_button: Send test email send_test_email_description: Verify SMTP settings by sending a test email title: SMTP Email Configuration username: Username @@ -62,6 +62,7 @@ en: feedback_label: Feedback general_section_title: General imports_label: Imports + logout: Logout merchants_label: Merchants other_section_title: More preferences_label: Preferences @@ -89,13 +90,12 @@ en: destroy: success: Account deleted successfully. show: - add_member: Add Member confirm_delete: body: Are you sure you want to permanently delete your account? This action is irreversible. title: Delete account? danger_zone_title: Danger Zone - delete_account: Delete Account + delete_account: Delete account delete_account_warning: Deleting your account will permanently remove all your data and cannot be undone. household_form_input_placeholder: Enter household name