Improvements (#379)

* Improvements

- Fix button visibility in reports on light theme
- Unify logic for provider syncs
- Add default option is to skip accounts linking ( no op default )

* Stability fixes and UX improvements

* FIX add unlinking when deleting lunch flow connection as well

* Wrap updates in transaction

* Some more improvements

* FIX proper provider setup check

* Make provider section collapsible

* Fix balance calculation

* Restore focus ring

* Use browser default focus

* Fix lunch flow balance for credit cards
This commit is contained in:
soky srm
2025-11-25 20:21:29 +01:00
committed by GitHub
parent 97a8cb9407
commit 91a91c3834
28 changed files with 732 additions and 89 deletions

View File

@@ -26,14 +26,21 @@ en:
one: "Successfully linked %{count} account"
other: "Successfully linked %{count} accounts"
lunchflow_item:
accounts_need_setup: Accounts need setup
delete: Delete connection
deletion_in_progress: deletion in progress...
error: Error
no_accounts_description: This connection has no linked accounts yet.
no_accounts_title: No accounts
setup_action: Set Up New Accounts
setup_description: "%{linked} of %{total} accounts linked. Choose account types for your newly imported Lunch Flow accounts."
setup_needed: New accounts ready to set up
status: "Synced %{timestamp} ago"
status_never: Never synced
status_with_summary: "Last synced %{timestamp} ago • %{summary}"
syncing: Syncing...
total: Total
unlinked: Unlinked
select_accounts:
accounts_selected: accounts selected
api_error: "API error: %{message}"
@@ -66,6 +73,70 @@ en:
lunchflow_account_not_found: Lunch Flow account not found
missing_parameters: Missing required parameters
success: "Successfully linked %{account_name} with Lunch Flow"
setup_accounts:
account_type_label: "Account Type:"
all_accounts_linked: "All your Lunch Flow accounts have already been set up."
api_error: "API error: %{message}"
fetch_failed: "Failed to Fetch Accounts"
no_accounts_to_setup: "No Accounts to Set Up"
no_api_key: "Lunch Flow API key is not configured. Please check your connection settings."
account_types:
skip: Skip this account
depository: Checking or Savings Account
credit_card: Credit Card
investment: Investment Account
loan: Loan or Mortgage
other_asset: Other Asset
subtype_labels:
depository: "Account Subtype:"
credit_card: ""
investment: "Investment Type:"
loan: "Loan Type:"
other_asset: ""
subtype_messages:
credit_card: "Credit cards will be automatically set up as credit card accounts."
other_asset: "No additional options needed for Other Assets."
subtypes:
depository:
checking: Checking
savings: Savings
hsa: Health Savings Account
cd: Certificate of Deposit
money_market: Money Market
investment:
brokerage: Brokerage
pension: Pension
retirement: Retirement
"401k": "401(k)"
roth_401k: "Roth 401(k)"
"403b": "403(b)"
tsp: Thrift Savings Plan
"529_plan": "529 Plan"
hsa: Health Savings Account
mutual_fund: Mutual Fund
ira: Traditional IRA
roth_ira: Roth IRA
angel: Angel
loan:
mortgage: Mortgage
student: Student Loan
auto: Auto Loan
other: Other Loan
balance: Balance
cancel: Cancel
choose_account_type: "Choose the correct account type for each Lunch Flow account:"
create_accounts: Create Accounts
creating_accounts: Creating Accounts...
historical_data_range: "Historical Data Range:"
subtitle: Choose the correct account types for your imported accounts
sync_start_date_help: Select how far back you want to sync transaction history. Maximum 3 years of history available.
sync_start_date_label: "Start syncing transactions from:"
title: Set Up Your Lunch Flow Accounts
complete_account_setup:
all_skipped: "All accounts were skipped. No accounts were created."
creation_failed: "Failed to create accounts: %{error}"
no_accounts: "No accounts to set up."
success: "Successfully created %{count} account(s)."
sync:
success: Sync started
update:

View File

@@ -31,7 +31,9 @@ en:
placeholder: "Paste your SimpleFin setup token here..."
help_text: "The token should be a long string starting with letters and numbers"
complete_account_setup:
success: SimpleFin accounts have been set up successfully! Your transactions and holdings are being imported in the background.
all_skipped: "All accounts were skipped. No accounts were created."
no_accounts: "No accounts to set up."
success: "Successfully created %{count} SimpleFIN account(s)! Your transactions and holdings are being imported in the background."
simplefin_item:
add_new: Add new connection
confirm_accept: Delete connection

View File

@@ -319,6 +319,8 @@ Rails.application.routes.draw do
member do
post :sync
get :setup_accounts
post :complete_account_setup
end
end