mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 23:39:03 +00:00
fix(provider/metadata): add plaid_eu entry
`plaid_eu` is registered as a separate Provider::ConfigurationRegistry entry but had no Provider::Metadata row, so its card in the Available grid fell through to the gray-500 default and rendered empty (no region, kind, tier, or tagline). The title also came out as "Plaid Eu" because `titleize` doesn't know "EU" is an initialism. - Add a `plaid_eu` row to Provider::Metadata::REGISTRY with the same shape as `plaid` (US → EU, otherwise identical). - Introduce an optional `name:` field in metadata; controller falls back to it before titleizing the provider key. Lets `plaid_eu` render as "Plaid EU". - Add the missing `settings.providers.taglines.plaid_eu` translation.
This commit is contained in:
committed by
Guillem Arias
parent
ee798aed9e
commit
77a100b345
@@ -301,11 +301,12 @@ class Settings::ProvidersController < ApplicationController
|
||||
# view to render either a provider_form or a family panel partial.
|
||||
def build_provider_entries
|
||||
configuration_entries = @provider_configurations.map do |config|
|
||||
meta = Provider::Metadata.for(config.provider_key)
|
||||
{
|
||||
provider_key: config.provider_key.to_s,
|
||||
title: config.provider_key.to_s.titleize,
|
||||
title: meta[:name] || config.provider_key.to_s.titleize,
|
||||
configuration: config,
|
||||
maturity: Provider::Metadata.for(config.provider_key)[:maturity],
|
||||
maturity: meta[:maturity],
|
||||
summary: view_context.provider_summary(config.provider_key)
|
||||
}
|
||||
end
|
||||
|
||||
@@ -78,6 +78,15 @@ class Provider
|
||||
maturity: :stable,
|
||||
logo_bg: "bg-indigo-600",
|
||||
logo_text: "PL"
|
||||
},
|
||||
plaid_eu: {
|
||||
name: "Plaid EU",
|
||||
region: "EU",
|
||||
kind: "Bank",
|
||||
tier: "Paid",
|
||||
maturity: :stable,
|
||||
logo_bg: "bg-indigo-600",
|
||||
logo_text: "PL"
|
||||
}
|
||||
}.freeze
|
||||
|
||||
|
||||
@@ -231,6 +231,7 @@ en:
|
||||
indexa_capital: Track your Indexa Capital automated investment portfolio.
|
||||
sophtron: Connect US & Canadian banks and utilities.
|
||||
plaid: Connect thousands of US financial institutions via Plaid.
|
||||
plaid_eu: Connect European financial institutions via Plaid (PSD2 / Open Banking).
|
||||
search_filters:
|
||||
aria_label: Search providers
|
||||
placeholder:
|
||||
|
||||
Reference in New Issue
Block a user