mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +00:00
* Add pending transaction handling and duplicate reconciliation logic - Implemented logic to exclude pending transactions from budgets and analytics calculations. - Introduced mechanisms for reconciling pending transactions with posted versions. - Added duplicate detection with support for merging or dismissing matches. - Updated transaction search filters to include a `status_filter` for pending/confirmed transactions. - Introduced UI elements for reviewing and resolving duplicates. - Enhanced `ProviderSyncSummary` with stats for reconciled and stale pending transactions. * Refactor translation handling and enhance transaction and sync logic - Moved hardcoded strings to locale files for improved translation support. - Refined styling for duplicate transaction indicators and sync summaries. - Improved logic for excluding stale pending transactions and updating timestamps on batch exclusion. - Added unique IDs to status filters for better element targeting in UI. - Optimized database queries to avoid N+1 issues in stale pending calculations. * Add sync settings and enhance pending transaction handling - Introduced a new "Sync Settings" section in hosting settings with UI to toggle inclusion of pending transactions. - Updated handling of pending transactions with improved inference logic for `posted=0` and `transacted_at` in processors. - Added priority order for pending transaction inclusion: explicit argument > environment variable > runtime configurable setting. - Refactored settings and controllers to store updated sync preferences. * Refactor sync settings and pending transaction reconciliation - Extracted logic for pending transaction reconciliation, stale exclusion, and unmatched tracking into dedicated methods for better maintainability. - Updated sync settings to infer defaults from multiple provider environment variables (`SIMPLEFIN_INCLUDE_PENDING`, `PLAID_INCLUDE_PENDING`). - Refined UI and messaging to handle multi-provider configurations in sync settings. # Conflicts: # app/models/simplefin_item/importer.rb * Debounce transaction reconciliation during imports - Added per-run reconciliation debouncing to prevent repeated scans for the same account during chunked history imports. - Trimmed size of reconciliation stats to retain recent details only. - Introduced error tracking for reconciliation steps to improve UI visibility of issues. * Apply ABS() in pending transaction queries and improve error handling - Updated pending transaction logic to use ABS() for consistent handling of negative amounts. - Adjusted amount bounds calculations to ensure accuracy for both positive and negative values. - Refined exception handling in `merge_duplicate` to log failures and update user alert. - Replaced `Date.today` with `Date.current` in tests to ensure timezone consistency. - Minor optimization to avoid COUNT queries by loading limited records directly. * Improve error handling in duplicate suggestion and dismissal logic - Added exception handling for `store_duplicate_suggestion` to log failures and prevent crashes during fuzzy/low-confidence matches. - Enhanced `dismiss_duplicate` action to handle `ActiveRecord::RecordInvalid` and display appropriate user alerts. --------- Co-authored-by: Josh Waldrep <joshua.waldrep5+github@gmail.com>
85 lines
4.8 KiB
YAML
85 lines
4.8 KiB
YAML
---
|
|
en:
|
|
settings:
|
|
hostings:
|
|
invite_code_settings:
|
|
description: Control how new people sign up for your instance of %{product}.
|
|
email_confirmation_description: When enabled, users must confirm their email
|
|
address when changing it.
|
|
email_confirmation_title: Require email confirmation
|
|
generate_tokens: Generate new code
|
|
generated_tokens: Generated codes
|
|
title: Onboarding
|
|
states:
|
|
open: Open
|
|
closed: Closed
|
|
invite_only: Invite-only
|
|
show:
|
|
general: General Settings
|
|
financial_data_providers: Financial Data Providers
|
|
sync_settings: Sync Settings
|
|
invites: Invite Codes
|
|
title: Self-Hosting
|
|
danger_zone: Danger Zone
|
|
clear_cache: Clear data cache
|
|
clear_cache_warning: Clearing the data cache will remove all exchange rates, security prices, account balances, and other data. This will not delete accounts, transactions, categories, or other user-owned data.
|
|
confirm_clear_cache:
|
|
title: Clear data cache?
|
|
body: Are you sure you want to clear the data cache? This will remove all exchange rates, security prices, account balances, and other data. This action cannot be undone.
|
|
provider_selection:
|
|
title: Provider Selection
|
|
description: Choose which service to use for fetching exchange rates and security prices. Yahoo Finance is free and doesn't require an API key. Twelve Data requires a free API key but may offer more data coverage.
|
|
exchange_rate_provider_label: Exchange Rate Provider
|
|
securities_provider_label: Securities (Stock Prices) Provider
|
|
env_configured_message: Provider selection is disabled because environment variables (EXCHANGE_RATE_PROVIDER or SECURITIES_PROVIDER) are set. To enable selection here, remove these environment variables from your configuration.
|
|
providers:
|
|
twelve_data: Twelve Data
|
|
yahoo_finance: Yahoo Finance
|
|
brand_fetch_settings:
|
|
description: Enter the Client ID provided by Brand Fetch
|
|
label: Client ID
|
|
placeholder: Enter your Client ID here
|
|
title: Brand Fetch Settings
|
|
openai_settings:
|
|
description: Enter the access token and optionally configure a custom OpenAI-compatible provider
|
|
env_configured_message: Successfully configured through environment variables.
|
|
access_token_label: Access Token
|
|
access_token_placeholder: Enter your access token here
|
|
uri_base_label: API Base URL (Optional)
|
|
uri_base_placeholder: "https://api.openai.com/v1 (default)"
|
|
model_label: Model (Optional)
|
|
model_placeholder: "gpt-4.1 (default)"
|
|
json_mode_label: JSON Mode
|
|
json_mode_auto: Auto (recommended)
|
|
json_mode_strict: Strict (best for thinking models)
|
|
json_mode_none: None (best for standard models)
|
|
json_mode_json_object: JSON Object
|
|
json_mode_help: "Strict mode works best with thinking models (qwen-thinking, deepseek-reasoner). None mode works best with standard models (llama, mistral, gpt-oss)."
|
|
title: OpenAI
|
|
yahoo_finance_settings:
|
|
title: Yahoo Finance
|
|
description: Yahoo Finance provides free access to stock prices, exchange rates, and financial data without requiring an API key.
|
|
status_active: Yahoo Finance is active and working
|
|
status_inactive: Yahoo Finance connection failed
|
|
connection_failed: Unable to connect to Yahoo Finance
|
|
troubleshooting: Check your internet connection and firewall settings. Yahoo Finance may be temporarily unavailable.
|
|
twelve_data_settings:
|
|
api_calls_used: "%{used} / %{limit} API daily calls used (%{percentage})"
|
|
description: Enter the API key provided by Twelve Data
|
|
env_configured_message: Successfully configured through the TWELVE_DATA_API_KEY environment variable.
|
|
label: API Key
|
|
placeholder: Enter your API key here
|
|
plan: "%{plan} plan"
|
|
title: Twelve Data
|
|
update:
|
|
failure: Invalid setting value
|
|
success: Settings updated
|
|
invalid_onboarding_state: Invalid onboarding state
|
|
clear_cache:
|
|
cache_cleared: Data cache has been cleared. This may take a few moments to complete.
|
|
not_authorized: You are not authorized to perform this action
|
|
sync_settings:
|
|
include_pending_label: Include pending transactions
|
|
include_pending_description: When enabled, pending (uncleared) transactions will be imported and automatically reconciled when they post. Disable if your bank provides unreliable pending data.
|
|
env_configured_message: This setting is disabled because a provider environment variable (SIMPLEFIN_INCLUDE_PENDING or PLAID_INCLUDE_PENDING) is set. Remove it to enable this setting.
|