From aa6d755402f530fb3497cf2d2a998e9b618a2bc6 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Mon, 16 Sep 2024 19:18:07 -0400 Subject: [PATCH] Fix styles on import modal (#1188) * Fix styles on import modal * Remove stale translations --- app/views/imports/_type_selector.html.erb | 83 ++++++++--------------- config/locales/views/imports/en.yml | 6 +- 2 files changed, 31 insertions(+), 58 deletions(-) diff --git a/app/views/imports/_type_selector.html.erb b/app/views/imports/_type_selector.html.erb index 9f68c343..eac0476e 100644 --- a/app/views/imports/_type_selector.html.erb +++ b/app/views/imports/_type_selector.html.erb @@ -29,62 +29,37 @@
- + + <% end %> +
  • + <%= link_to new_import_path, class: "flex items-center gap-3 p-4 group cursor-pointer", data: { turbo: false } do %> +
    + <%= lucide_icon("file-spreadsheet", class: "w-5 h-5 text-indigo-500") %> +
    + + <%= t(".import_from_csv") %> + + <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-500 ml-auto") %> <% end %> -
  • - <%= link_to new_import_path, class: "flex items-center gap-3 p-4 group cursor-pointer", data: { turbo: false } do %> -
    - <%= lucide_icon("file-spreadsheet", class: "w-5 h-5 text-indigo-500") %> -
    - - <%= t(".import_from_csv") %> - - <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-500 ml-auto") %> - <% end %> -
    -
    -
    -
  • -
  • -
    - <%= image_tag("mint-logo.jpeg", alt: "Mint logo", class: "w-8 h-8 rounded-md") %> - - <%= t(".import_from_mint") %> - - <%= t(".soon") %> - <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-300 ml-auto") %> -
    +
    +
    +
    +
  • +
  • +
    + <%= image_tag("mint-logo.jpeg", alt: "Mint logo", class: "w-8 h-8 rounded-md") %> + + <%= t(".import_from_mint") %> + + <%= t(".soon") %> + <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-300 ml-auto") %> +
    -
    -
    -
    -
  • -
  • -
    - <%= image_tag("empower-logo.jpeg", alt: "Mint logo", class: "w-8 h-8 border border-alpha-black-100 rounded-md") %> - - <%= t(".import_from_empower") %> - - <%= t(".soon") %> - <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-300 ml-auto") %> -
    - -
    -
    -
    -
  • -
  • -
    - <%= image_tag("apple-logo.png", alt: "Mint logo", class: "w-8 h-8 rounded-md") %> - - <%= t(".import_from_apple") %> - - <%= t(".soon") %> - <%= lucide_icon("chevron-right", class: "w-5 h-5 text-gray-300 ml-auto") %> -
    -
  • - +
    +
    +
    + + - diff --git a/config/locales/views/imports/en.yml b/config/locales/views/imports/en.yml index 37b11f4f..c459e2f5 100644 --- a/config/locales/views/imports/en.yml +++ b/config/locales/views/imports/en.yml @@ -95,11 +95,9 @@ en: import_published: Import has started in the background invalid_data: Your import is invalid type_selector: - description: You can manually import transactions from CSVs or from other financial - apps like Mint, Empower (formerly Personal Capital) or Apple Card. - import_from_apple: Import from Apple Card + description: You can manually import transactions from CSVs or other financial + apps like Mint. import_from_csv: New import from CSV - import_from_empower: Import from Empower import_from_mint: Import from Mint import_transactions: Import transactions resume_latest_import: Resume latest import