Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Let Enter and Space reach links and buttons in Reports sections (#4377)

Guillem Arias Faustece78bac65bac
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index 7779b6648b..8e4612c138 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -80,9 +80,8 @@ class ReportsController < ApplicationController
sort_direction: params[:sort_direction]
}.compact
- # Build the full URL with the API key, if present
+ # The CSV URL the instructions tell people to add their API key to
@csv_url = export_transactions_reports_url(base_params.merge(format: :csv))
- @api_key_present = @csv_url.include?("api_key=")
# This action will render `app/views/reports/google_sheets_instructions.html.erb`
# It will render *inside* the modal frame.
diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb
index e678e06470..4286f9b319 100644
--- a/app/views/pages/dashboard.html.erb
+++ b/app/views/pages/dashboard.html.erb
@@ -112,7 +112,7 @@
<% end %>
<% two_column = Current.user.dashboard_two_column? %>
- <div class="grid grid-cols-1 <%= "2xl:grid-cols-2 2xl:items-start 2xl:gap-y-0 2xl:[grid-auto-flow:row_dense] 2xl:[grid-auto-rows:1px]" if two_column %> gap-6 pb-6 lg:pb-12" data-controller="sortable-list dashboard-masonry" data-sortable-list-url-value="<%= dashboard_preferences_path %>" data-sortable-list-param-value="preferences.section_order" data-sortable-list-hold-delay-value="800" data-sortable-list-drop-target-value="nearest" data-sortable-list-own-keys-only-value="true" data-action="dragover->sortable-list#dragOver drop->sortable-list#drop" role="list" aria-label="<%= t("pages.dashboard.sections_aria_label") %>">
+ <div class="grid grid-cols-1 <%= "2xl:grid-cols-2 2xl:items-start 2xl:gap-y-0 2xl:[grid-auto-flow:row_dense] 2xl:[grid-auto-rows:1px]" if two_column %> gap-6 pb-6 lg:pb-12" data-controller="sortable-list dashboard-masonry" data-sortable-list-url-value="<%= dashboard_preferences_path %>" data-sortable-list-param-value="preferences.section_order" data-sortable-list-hold-delay-value="800" data-sortable-list-drop-target-value="nearest" data-sortable-list-own-keys-only-value="true" data-action="dragover->sortable-list#dragOver drop->sortable-list#drop turbo:before-visit@window->sortable-list#saveBeforeVisit" role="list" aria-label="<%= t("pages.dashboard.sections_aria_label") %>">
<% if accessible_accounts.any? %>
<% @dashboard_sections.each do |section| %>
<section
@@ -248,13 +248,13 @@
cursor-grab and the colour shift, and deliberately skips the hover
background the other header controls use: a filled hover state
reads as "clickable" and would promise a click that never lands.
- Still sized to the same 24px box so the icons stay aligned. %>
- <button
- type="button"
+ Still sized to the same 24px box so the icons stay aligned. Keys
+ only grab the section itself, so it stays out of the tab order. %>
+ <span
class="cursor-grab active:cursor-grabbing hidden lg:flex items-center justify-center w-6 h-6 text-secondary hover:text-primary transition-colors opacity-0 group-hover:opacity-100"
- aria-label="<%= t("pages.dashboard.drag_to_reorder") %>">
+ aria-hidden="true">
<%= icon("grip-vertical", size: "sm") %>
- </button>
+ </span>
</div>
</div>
<div class="py-4" data-dashboard-section-target="content">
diff --git a/app/views/reports/google_sheets_instructions.html.erb b/app/views/reports/google_sheets_instructions.html.erb
index 0df96ecb4e..6285f39160 100644
--- a/app/views/reports/google_sheets_instructions.html.erb
+++ b/app/views/reports/google_sheets_instructions.html.erb
@@ -1,67 +1,34 @@
<%= render DS::Dialog.new(variant: "modal", width: "md") do |dialog| %>
+ <% dialog.with_header(title: t("reports.google_sheets_instructions.title_no_key")) %>
<% dialog.with_body do %>
- <div class="space-y-4">
- <div class="flex items-center justify-between gap-2">
- <h3 class="font-medium text-primary">
- <% if @api_key_present %>
- <%= t("reports.google_sheets_instructions.title_with_key") %>
- <% else %>
- <%= t("reports.google_sheets_instructions.title_no_key") %>
- <% end %>
- </h3>
- <%= icon("x", as_button: true, data: { action: "DS--dialog#close" }, class: "text-subdued hover:text-primary") %>
- </div>
-
- <div class="text-sm text-secondary space-y-3 whitespace-pre-line">
- <% if @api_key_present %>
- <p><%= t("reports.google_sheets_instructions.ready") %></p>
- <p><%= t("reports.google_sheets_instructions.steps") %></p>
- <div class="bg-surface-inset p-3 rounded-lg font-mono text-xs break-all">
- =IMPORTDATA("<%= @csv_url %>")
- </div>
- <p class="text-warning"><%= icon("alert-triangle", class: "w-4 h-4 inline") %> <%= t("reports.google_sheets_instructions.security_warning") %></p>
- <% else %>
- <p><%= t("reports.google_sheets_instructions.need_key") %></p>
- <ol class="list-decimal list-inside space-y-2">
- <li><%= t("reports.google_sheets_instructions.step1") %></li>
- <li><%= t("reports.google_sheets_instructions.step2") %></li>
- <li><%= t("reports.google_sheets_instructions.step3") %></li>
- <li><%= t("reports.google_sheets_instructions.step4") %></li>
- </ol>
- <p><strong><%= t("reports.google_sheets_instructions.example") %>:</strong></p>
- <div class="bg-surface-inset p-3 rounded-lg font-mono text-xs break-all">
- <%= @csv_url %>&api_key=YOUR_API_KEY_HERE
- </div>
- <p><%= t("reports.google_sheets_instructions.then_use") %></p>
- <% end %>
- </div>
-
- <div class="flex gap-2">
- <% if @api_key_present %>
- <%= render DS::Button.new(
- text: t("reports.google_sheets_instructions.open_sheets"),
- variant: "primary",
- full_width: true,
- href: "https://sheets.google.com/create",
- target: "_blank",
- data: { action: "click->DS--dialog#close" }
- ) %>
- <% else %>
- <%= render DS::Link.new(
- text: t("reports.google_sheets_instructions.go_to_api_keys"),
- variant: "primary",
- full_width: true,
- href: settings_api_keys_path,
- frame: "_top"
- ) %>
- <% end %>
- <%= render DS::Button.new(
- text: t("reports.google_sheets_instructions.close"),
- variant: "outline",
- full_width: true,
- data: { action: "DS--dialog#close" }
- ) %>
+ <div class="space-y-4 text-sm text-secondary">
+ <p><%= t("reports.google_sheets_instructions.need_key") %></p>
+ <ol class="list-decimal list-inside space-y-2">
+ <li><%= t("reports.google_sheets_instructions.step1") %></li>
+ <li><%= t("reports.google_sheets_instructions.step2") %></li>
+ <li><%= t("reports.google_sheets_instructions.step3") %></li>
+ <li><%= t("reports.google_sheets_instructions.step4") %></li>
+ </ol>
+ <div class="space-y-2">
+ <p class="font-medium text-primary"><%= t("reports.google_sheets_instructions.example") %></p>
+ <div class="bg-surface-inset p-3 rounded-lg font-mono text-xs text-primary break-all">
+ <%= @csv_url %>&api_key=YOUR_API_KEY_HERE
+ </div>
</div>
+ <p><%= t("reports.google_sheets_instructions.then_use") %></p>
</div>
<% end %>
+ <div class="flex justify-end gap-2 px-4">
+ <%= render DS::Button.new(
+ text: t("reports.google_sheets_instructions.close"),
+ variant: "ghost",
+ data: { action: "DS--dialog#close" }
+ ) %>
+ <%= render DS::Link.new(
+ text: t("reports.google_sheets_instructions.go_to_api_keys"),
+ variant: "primary",
+ href: settings_api_keys_path,
+ frame: "_top"
+ ) %>
+ </div>
<% end %>
diff --git a/app/views/reports/index.html.erb b/app/views/reports/index.html.erb
index 390c822f07..c31c60ba84 100644
--- a/app/views/reports/index.html.erb
+++ b/app/views/reports/index.html.erb
@@ -142,7 +142,8 @@
data-sortable-list-url-value="<%= update_preferences_reports_path %>"
data-sortable-list-param-value="preferences.reports_section_order"
data-sortable-list-hold-delay-value="800"
- data-action="dragover->sortable-list#dragOver drop->sortable-list#drop"
+ data-sortable-list-own-keys-only-value="true"
+ data-action="dragover->sortable-list#dragOver drop->sortable-list#drop turbo:before-visit@window->sortable-list#saveBeforeVisit"
role="list"
aria-label="<%= t("reports.index.sections_aria") %>">
<% @reports_sections.each do |section| %>
@@ -192,12 +193,13 @@
<%= render DS::Pill.new(label: t("shared.preview")) %>
<% end %>
</div>
- <button
- type="button"
+ <%# A mouse grab hint. Keys only grab the section itself, so the hint
+ stays out of the tab order instead of being an invisible stop. %>
+ <span
class="cursor-grab active:cursor-grabbing hidden lg:flex items-center justify-center w-6 h-6 text-secondary hover:text-primary transition-colors opacity-0 group-hover:opacity-100"
- aria-label="<%= t("reports.index.drag_to_reorder") %>">
+ aria-hidden="true">
<%= icon("grip-vertical", size: "sm") %>
- </button>
+ </span>
</div>
<div class="p-4" data-reports-section-target="content">
<%= render partial: section[:partial], locals: section[:locals] %>
diff --git a/config/locales/views/pages/ca.yml b/config/locales/views/pages/ca.yml
index 1edb72be5d..a319d91e36 100644
--- a/config/locales/views/pages/ca.yml
+++ b/config/locales/views/pages/ca.yml
@@ -49,7 +49,6 @@ ca:
load_error: No s'ha pogut carregar el flux de caixa. Torna-ho a provar.
retry: Torna-ho a provar
zoom_out: Torna al flux de caixa complet
- drag_to_reorder: Arrossega per reordenar la secció
investment_summary:
add_investment: Afegeix un compte d'inversió per seguir la teva cartera
contributions: Aportacions
diff --git a/config/locales/views/pages/de.yml b/config/locales/views/pages/de.yml
index 9a0c33651e..6747c6799f 100644
--- a/config/locales/views/pages/de.yml
+++ b/config/locales/views/pages/de.yml
@@ -15,7 +15,6 @@ de:
welcome: "Willkommen zurück, %{name}"
subtitle: "Hier siehst du, was in deinen Finanzen passiert."
new: "Neu"
- drag_to_reorder: "Bereich per Drag & Drop neu anordnen"
toggle_section: "Sichtbarkeit des Bereichs umschalten"
net_worth_chart:
data_not_available: Für den ausgewählten Zeitraum sind keine Daten verfügbar.
diff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.yml
index 581359b20e..78f9757764 100644
--- a/config/locales/views/pages/en.yml
+++ b/config/locales/views/pages/en.yml
@@ -42,7 +42,6 @@ en:
subtitle: "Here's what's happening with your finances"
new: "New"
sections_aria_label: "Dashboard sections"
- drag_to_reorder: "Drag to reorder section"
toggle_section: "Toggle section visibility"
customize:
start: "Customize"
diff --git a/config/locales/views/pages/es.yml b/config/locales/views/pages/es.yml
index 889b44ea55..6100c1d763 100644
--- a/config/locales/views/pages/es.yml
+++ b/config/locales/views/pages/es.yml
@@ -42,7 +42,6 @@ es:
subtitle: Esto es lo que está pasando con tus finanzas
new: Nuevo
sections_aria_label: Secciones del panel
- drag_to_reorder: Arrastra para reordenar la sección
toggle_section: Alternar visibilidad de la sección
widget_size:
label: Ajustar tamaño
diff --git a/config/locales/views/pages/fr.yml b/config/locales/views/pages/fr.yml
index 9d33c06151..0210d0e526 100644
--- a/config/locales/views/pages/fr.yml
+++ b/config/locales/views/pages/fr.yml
@@ -29,7 +29,6 @@ fr:
no_data_title: Aucune donnée de flux de trésorerie pour cette période
title: Flux de trésorerie
zoom_out: Retour à la trésorerie totale
- drag_to_reorder: Glisser pour réorganiser la section
insights_feed:
title: Analyses
investment_summary:
diff --git a/config/locales/views/pages/hu.yml b/config/locales/views/pages/hu.yml
index 6857dba38f..3545a6445b 100644
--- a/config/locales/views/pages/hu.yml
+++ b/config/locales/views/pages/hu.yml
@@ -38,7 +38,6 @@ hu:
welcome: "Üdvözöllek újra, %{name}"
subtitle: "Íme, mi történik a pénzügyeiddel"
new: "Új"
- drag_to_reorder: "Húzd át a szakasz átrendezéséhez"
toggle_section: "Szakasz láthatóságának váltása"
net_worth_chart:
data_not_available: A kiválasztott időszakra nincs elérhető adat
diff --git a/config/locales/views/pages/it.yml b/config/locales/views/pages/it.yml
index c668f7de5d..f0926b265c 100644
--- a/config/locales/views/pages/it.yml
+++ b/config/locales/views/pages/it.yml
@@ -42,7 +42,6 @@ it:
subtitle: "Ecco cosa sta succedendo con le tue finanze"
new: "Nuovo"
sections_aria_label: "Sezioni dashboard"
- drag_to_reorder: "Trascina per riordinare la sezione"
toggle_section: "Attiva/disattiva visibilità sezione"
widget_size:
label: "Regola dimensione"
diff --git a/config/locales/views/pages/nl.yml b/config/locales/views/pages/nl.yml
index 7ccd76b86e..a2e3604229 100644
--- a/config/locales/views/pages/nl.yml
+++ b/config/locales/views/pages/nl.yml
@@ -12,7 +12,6 @@ nl:
welcome: "Welkom terug, %{name}"
subtitle: "Dit gebeurt er met uw financiën"
new: "Nieuw"
- drag_to_reorder: "Sleep om sectie te herschikken"
toggle_section: "Zichtbaarheid sectie wijzigen"
net_worth_chart:
data_not_available: Gegevens niet beschikbaar voor de geselecteerde periode
diff --git a/config/locales/views/pages/pl.yml b/config/locales/views/pages/pl.yml
index 8d1bb4523f..ab14912627 100644
--- a/config/locales/views/pages/pl.yml
+++ b/config/locales/views/pages/pl.yml
@@ -51,7 +51,6 @@ pl:
no_data_title: Brak danych o przepływach pieniężnych dla tego okresu
title: Przepływy pieniężne
zoom_out: Wróć do pełnego przepływu środków
- drag_to_reorder: Przeciągnij, aby zmienić kolejność sekcji
insights_feed:
title: Analizy
investment_summary:
diff --git a/config/locales/views/pages/pt-BR.yml b/config/locales/views/pages/pt-BR.yml
index abdcaada7a..9577ab8dde 100644
--- a/config/locales/views/pages/pt-BR.yml
+++ b/config/locales/views/pages/pt-BR.yml
@@ -12,7 +12,6 @@ pt-BR:
welcome: "Bem-vindo(a) de volta, %{name}"
subtitle: "Veja o que está acontecendo com suas finanças"
new: "Novo"
- drag_to_reorder: "Arraste para reordenar a seção"
toggle_section: "Alternar visibilidade da seção"
net_worth_chart:
data_not_available: Dados não disponíveis para o período selecionado
diff --git a/config/locales/views/pages/pt-PT.yml b/config/locales/views/pages/pt-PT.yml
index 61c0e60161..288a5dbc94 100644
--- a/config/locales/views/pages/pt-PT.yml
+++ b/config/locales/views/pages/pt-PT.yml
@@ -47,7 +47,6 @@ pt-PT:
subtitle: "Acompanhe a evolução das suas finanças"
new: "Novo"
sections_aria_label: "Secções da Visão Geral"
- drag_to_reorder: "Arraste para reordenar a secção"
toggle_section: "Alternar a visibilidade da secção"
widget_size:
label: "Ajustar tamanho"
diff --git a/config/locales/views/pages/ru.yml b/config/locales/views/pages/ru.yml
index c0f70bf1fb..852aa97179 100644
--- a/config/locales/views/pages/ru.yml
+++ b/config/locales/views/pages/ru.yml
@@ -46,7 +46,6 @@ ru:
loading: Загрузка денежного потока…
load_error: Не удалось загрузить денежный поток. Попробуйте ещё раз.
retry: Повторить
- drag_to_reorder: Перетащите для изменения порядка
investment_summary:
add_investment: Добавьте инвестиционный счёт для отслеживания портфеля
contributions: Пополнения
diff --git a/config/locales/views/pages/tr.yml b/config/locales/views/pages/tr.yml
index 5703364528..9b74450b4a 100644
--- a/config/locales/views/pages/tr.yml
+++ b/config/locales/views/pages/tr.yml
@@ -48,7 +48,6 @@ tr:
loading: Nakit akışı yükleniyor…
load_error: Nakit akışı yüklenemedi. Lütfen tekrar deneyin.
retry: Tekrar dene
- drag_to_reorder: Bölümü yeniden sıralamak için sürükleyin
insights_feed:
title: İçgörüler
investment_summary:
diff --git a/config/locales/views/pages/uk.yml b/config/locales/views/pages/uk.yml
index 4d237e03af..ec69302bc8 100644
--- a/config/locales/views/pages/uk.yml
+++ b/config/locales/views/pages/uk.yml
@@ -58,7 +58,6 @@ uk:
subtitle: "Ось що відбувається з вашими фінансами"
new: "Нове"
sections_aria_label: "Розділи дашборду"
- drag_to_reorder: "Перетягніть, щоб змінити порядок розділу"
toggle_section: "Переключити видимість розділу"
widget_size:
label: "Налаштувати розмір"
diff --git a/config/locales/views/pages/vi.yml b/config/locales/views/pages/vi.yml
index ae7e355e6b..7cc10cd387 100644
--- a/config/locales/views/pages/vi.yml
+++ b/config/locales/views/pages/vi.yml
@@ -43,7 +43,6 @@ vi:
welcome: "Chào mừng trở lại, %{name}"
subtitle: "Đây là tình hình tài chính của bạn"
new: "Mới"
- drag_to_reorder: "Kéo để sắp xếp lại phần"
toggle_section: "Bật/tắt hiển thị phần"
net_worth_chart:
data_not_available: Dữ liệu không khả dụng cho khoảng thời gian đã chọn
diff --git a/config/locales/views/pages/zh-CN.yml b/config/locales/views/pages/zh-CN.yml
index 369d68eeac..9a4884f5fd 100644
--- a/config/locales/views/pages/zh-CN.yml
+++ b/config/locales/views/pages/zh-CN.yml
@@ -43,7 +43,6 @@ zh-CN:
welcome: 欢迎回来,%{name}
subtitle: 以下是您的财务状况概览
new: 新建
- drag_to_reorder: 拖动以重新排序模块
toggle_section: 切换模块可见性
net_worth_chart:
data_not_available: 所选时间段内无可用数据
diff --git a/config/locales/views/pages/zh-TW.yml b/config/locales/views/pages/zh-TW.yml
index 3197b5f2ae..374deeb347 100644
--- a/config/locales/views/pages/zh-TW.yml
+++ b/config/locales/views/pages/zh-TW.yml
@@ -47,7 +47,6 @@ zh-TW:
subtitle: 這是您目前的財務概況
new: 新增帳戶
sections_aria_label: 儀表板區塊
- drag_to_reorder: 拖曳以重新排列區塊
toggle_section: 切換區塊顯示狀態
widget_size:
label: 調整大小
diff --git a/config/locales/views/reports/ca.yml b/config/locales/views/reports/ca.yml
index 2e143a3bfa..d4e217871c 100644
--- a/config/locales/views/reports/ca.yml
+++ b/config/locales/views/reports/ca.yml
@@ -25,26 +25,16 @@ ca:
example: Exemple
go_to_api_keys: Ves a claus API
need_key: Per importar dades a Google Sheets, necessites una clau API.
- open_sheets: Obre Google Sheets
- ready: La teva URL CSV (amb clau API) està preparada.
- security_warning: Aquesta URL inclou la teva clau API. Mantén-la segura!
step1: Ves a Configuració → Claus API
step2: Crea una nova clau API amb permisos de "lectura"
step3: Copia la clau API
- step4: 'Afegeix-la a aquesta URL com: ?api_key=LA_TEVA_CLAU'
- steps: |-
- Per importar a Google Sheets:
- 1. Crea un full de Google nou
- 2. A la cel·la A1, introdueix la fórmula que es mostra a continuació
- 3. Prem Retorn
+ step4: 'Afegeix-la a aquesta URL com: &api_key=LA_TEVA_CLAU'
then_use: Després fes servir l'URL completa amb =IMPORTDATA() a Google Sheets.
- title_no_key: "⚠️ Es requereix clau API"
- title_with_key: "✅ Copia l'URL per a Google Sheets"
+ title_no_key: "Es requereix clau API"
index:
date_range:
from: Des de
to: Fins a
- drag_to_reorder: Arrossega per reordenar la secció
export: Exporta CSV
next_decade: Dècada següent
next_period: Període següent
diff --git a/config/locales/views/reports/de.yml b/config/locales/views/reports/de.yml
index a462293e38..de6b36fdf4 100644
--- a/config/locales/views/reports/de.yml
+++ b/config/locales/views/reports/de.yml
@@ -7,7 +7,6 @@ de:
subtitle: Umfassende Einblicke in deine finanzielle Situation
export: CSV exportieren
print_report: Bericht drucken
- drag_to_reorder: "Bereich per Drag & Drop neu anordnen"
sections_aria: Berichtsbereiche
toggle_section: "Sichtbarkeit des Bereichs umschalten"
periods:
@@ -193,19 +192,14 @@ de:
previous: Zurück
next: Weiter
google_sheets_instructions:
- title_with_key: "✅ URL für Google Sheets kopieren"
- title_no_key: "⚠️ API-Schlüssel erforderlich"
- ready: Deine CSV-URL (mit API-Schlüssel) ist bereit.
- steps: "So importierst du in Google Sheets:\n1. Erstelle ein neues Google Sheet\n2. Gib in Zelle A1 die unten angezeigte Formel ein\n3. Drücke Enter"
- security_warning: "Diese URL enthält deinen API-Schlüssel. Bewahre sie sicher auf!"
+ title_no_key: "API-Schlüssel erforderlich"
need_key: Um Daten in Google Sheets zu importieren, benötigst du einen API-Schlüssel.
step1: "Gehe zu Einstellungen → API-Schlüssel"
step2: "Erstelle einen neuen API-Schlüssel mit Lesezugriff"
step3: Kopiere den API-Schlüssel
- step4: "Füge ihn an diese URL an: ?api_key=DEIN_SCHLÜSSEL"
+ step4: "Füge ihn an diese URL an: &api_key=DEIN_SCHLÜSSEL"
example: Beispiel
then_use: Verwende dann die vollständige URL mit =IMPORTDATA() in Google Sheets.
- open_sheets: Google Sheets öffnen
go_to_api_keys: Zu den API-Schlüsseln
close: Verstanden
print:
diff --git a/config/locales/views/reports/en.yml b/config/locales/views/reports/en.yml
index 6dd0f85629..0809ec1612 100644
--- a/config/locales/views/reports/en.yml
+++ b/config/locales/views/reports/en.yml
@@ -6,7 +6,6 @@ en:
subtitle: Comprehensive insights into your financial health
export: Export CSV
print_report: Print Report
- drag_to_reorder: "Drag to reorder section"
sections_aria: Reports sections
toggle_section: "Toggle section visibility"
periods:
@@ -207,19 +206,14 @@ en:
net_flow: Net Flow
net_flow_description: Total net change
google_sheets_instructions:
- title_with_key: "✅ Copy URL for Google Sheets"
- title_no_key: "⚠️ API Key Required"
- ready: Your CSV URL (with API key) is ready.
- steps: "To import into Google Sheets:\n1. Create a new Google Sheet\n2. In cell A1, enter the formula shown below\n3. Press Enter"
- security_warning: "This URL includes your API key. Keep it secure!"
+ title_no_key: "API Key Required"
need_key: To import data into Google Sheets, you need an API key.
step1: "Go to Settings → API Keys"
step2: "Create a new API key with \"read\" permission"
step3: Copy the API key
- step4: "Add it to this URL as: ?api_key=YOUR_KEY"
+ step4: "Add it to this URL as: &api_key=YOUR_KEY"
example: Example
then_use: Then use the full URL with =IMPORTDATA() in Google Sheets.
- open_sheets: Open Google Sheets
go_to_api_keys: Go to API Keys
close: Got it
print:
diff --git a/config/locales/views/reports/es.yml b/config/locales/views/reports/es.yml
index 320299f0ea..c3da9e502d 100644
--- a/config/locales/views/reports/es.yml
+++ b/config/locales/views/reports/es.yml
@@ -6,7 +6,6 @@ es:
subtitle: Información completa sobre tu salud financiera
export: Exportar CSV
print_report: Imprimir informe
- drag_to_reorder: Arrastra para reordenar la sección
toggle_section: Mostrar / Ocultar sección
periods:
monthly: Mensual
@@ -177,25 +176,14 @@ es:
net_flow: Flujo neto
net_flow_description: Variación neta total
google_sheets_instructions:
- title_with_key: ✅ Copiar URL para Google Sheets
- title_no_key: ⚠️ Se requiere clave API
- ready: Tu URL de CSV (con clave API) está lista.
- steps: 'Para importar en Google Sheets:
-
- 1. Crea una nueva hoja de cálculo
-
- 2. En la celda A1, introduce la fórmula que se muestra abajo
-
- 3. Pulsa Enter'
- security_warning: Esta URL incluye tu clave API. ¡Mantenla segura!
+ title_no_key: Se requiere clave API
need_key: Para importar los datos en Google Sheets necesitas una clave API.
step1: Ve a Ajustes → Claves API
step2: Crea una nueva clave API con permiso de lectura ("read")
step3: Copia la clave API
- step4: 'Añádela a esta URL como: ?api_key=TU_CLAVE'
+ step4: 'Añádela a esta URL como: &api_key=TU_CLAVE'
example: Ejemplo
then_use: Después usa la URL completa con =IMPORTDATA() en Google Sheets.
- open_sheets: Abrir Google Sheets
go_to_api_keys: Ir a Claves API
close: Entendido
print:
diff --git a/config/locales/views/reports/fr.yml b/config/locales/views/reports/fr.yml
index 7333e15b72..b29187afb4 100644
--- a/config/locales/views/reports/fr.yml
+++ b/config/locales/views/reports/fr.yml
@@ -26,26 +26,16 @@ fr:
go_to_api_keys: Aller aux clés API
need_key: Pour importer des données dans Google Sheets, vous avez besoin d'une
clé API.
- open_sheets: Ouvrir Google Sheets
- ready: Votre URL CSV (avec clé API) est prête.
- security_warning: Cette URL inclut votre clé API. Gardez-la en sécurité !
step1: Allez dans Paramètres → Clés API
step2: Créez une nouvelle clé API avec la permission "lecture"
step3: Copiez la clé API
- step4: 'Ajoutez-la à cette URL comme : ?api_key=VOTRE_CLÉ'
- steps: |-
- Pour importer dans Google Sheets :
- 1. Créez une nouvelle feuille Google
- 2. Dans la cellule A1, entrez la formule ci-dessous
- 3. Appuyez sur Entrée
+ step4: 'Ajoutez-la à cette URL comme : &api_key=VOTRE_CLÉ'
then_use: Ensuite, utilisez l'URL complète avec =IMPORTDATA() dans Google Sheets.
- title_no_key: "⚠️ Clé API requise"
- title_with_key: "✅ Copier l'URL pour Google Sheets"
+ title_no_key: "Clé API requise"
index:
date_range:
from: Du
to: Au
- drag_to_reorder: Glisser pour réorganiser la section
export: Exporter CSV
next_decade: La prochaine décennie
next_period: Période suivante
diff --git a/config/locales/views/reports/hu.yml b/config/locales/views/reports/hu.yml
index c0dee944c7..433c22f97e 100644
--- a/config/locales/views/reports/hu.yml
+++ b/config/locales/views/reports/hu.yml
@@ -6,7 +6,6 @@ hu:
subtitle: Átfogó betekintés a pénzügyi helyzetedbe
export: CSV exportálása
print_report: Jelentés nyomtatása
- drag_to_reorder: "Húzd a szakasz átrendezéséhez"
toggle_section: "Szakasz láthatóságának váltása"
periods:
monthly: Havi
@@ -176,19 +175,14 @@ hu:
net_flow: Nettó pénzáramlás
net_flow_description: Teljes nettó változás
google_sheets_instructions:
- title_with_key: "✅ URL másolása Google Sheetshez"
- title_no_key: "⚠️ API-kulcs szükséges"
- ready: A CSV URL (API-kulccsal) készen áll.
- steps: "Importálás Google Sheetsbe:\n1. Hozz létre egy új Google Sheetet\n2. Az A1 cellába írd be az alábbi képletet\n3. Nyomj Entert"
- security_warning: "Ez az URL tartalmazza az API-kulcsodat. Tartsd biztonságban!"
+ title_no_key: "API-kulcs szükséges"
need_key: Az adatok Google Sheetsbe importálásához API-kulcs szükséges.
step1: "Menj a Beállítások → API-kulcsok menüpontra"
step2: "Hozz létre egy új API-kulcsot \"olvasás\" jogosultsággal"
step3: Másold ki az API-kulcsot
- step4: "Add hozzá az URL-hez így: ?api_key=A_TE_KULCSOD"
+ step4: "Add hozzá az URL-hez így: &api_key=A_TE_KULCSOD"
example: Példa
then_use: Ezután használd a teljes URL-t =IMPORTDATA() képlettel a Google Sheetsben.
- open_sheets: Google Sheets megnyitása
go_to_api_keys: Ugrás az API-kulcsokhoz
close: Rendben
print:
diff --git a/config/locales/views/reports/it.yml b/config/locales/views/reports/it.yml
index fc62782c5a..78e8b62f52 100644
--- a/config/locales/views/reports/it.yml
+++ b/config/locales/views/reports/it.yml
@@ -6,7 +6,6 @@ it:
subtitle: Analisi approfondita della tua salute finanziaria
export: Esporta CSV
print_report: Stampa rapporto
- drag_to_reorder: "Trascina per riordinare la sezione"
toggle_section: "Mostra/nascondi sezione"
periods:
monthly: Mensile
@@ -177,19 +176,14 @@ it:
net_flow: Flusso netto
net_flow_description: Variazione netta totale
google_sheets_instructions:
- title_with_key: "✅ Copia URL per Google Sheets"
- title_no_key: "⚠️ Chiave API richiesta"
- ready: Il tuo URL CSV (con chiave API) è pronto.
- steps: "Per importare in Google Sheets:\n1. Crea un nuovo Google Sheet\n2. Nella cella A1, inserisci la formula mostrata sotto\n3. Premi Invio"
- security_warning: "Questo URL include la tua chiave API. Tienila al sicuro!"
+ title_no_key: "Chiave API richiesta"
need_key: Per importare dati in Google Sheets, hai bisogno di una chiave API.
step1: "Vai su Impostazioni → Chiavi API"
step2: "Crea una nuova chiave API con permesso \"lettura\""
step3: Copia la chiave API
- step4: "Aggiungila a questo URL come: ?api_key=LA_TUA_CHIAVE"
+ step4: "Aggiungila a questo URL come: &api_key=LA_TUA_CHIAVE"
example: Esempio
then_use: Poi usa l'URL completo con =IMPORTDATA() in Google Sheets.
- open_sheets: Apri Google Sheets
go_to_api_keys: Vai alle chiavi API
close: Capito
print:
diff --git a/config/locales/views/reports/nl.yml b/config/locales/views/reports/nl.yml
index 09c12b4369..f6e586f291 100644
--- a/config/locales/views/reports/nl.yml
+++ b/config/locales/views/reports/nl.yml
@@ -6,7 +6,6 @@ nl:
subtitle: Uitgebreid inzicht in uw financiële gezondheid
export: CSV exporteren
print_report: Rapport afdrukken
- drag_to_reorder: "Sleep om sectie te herschikken"
toggle_section: "Zichtbaarheid sectie wijzigen"
periods:
monthly: Maandelijks
@@ -141,19 +140,14 @@ nl:
withdrawals: Opnames
net_flow: Netto stroom
google_sheets_instructions:
- title_with_key: "✅ Kopieer URL voor Google Sheets"
- title_no_key: "⚠️ API Key vereist"
- ready: Uw CSV URL (met API Key) is klaar.
- steps: "Om te importeren in Google Sheets:\n1. Maak een nieuwe Google Sheet\n2. Voer in cel A1 de onderstaande formule in\n3. Druk op Enter"
- security_warning: "Deze URL bevat uw API Key. Houd deze veilig!"
+ title_no_key: "API Key vereist"
need_key: Om gegevens te importeren in Google Sheets heeft u een API Key nodig.
step1: "Ga naar Instellingen → API Keys"
step2: "Maak een nieuwe API Key aan met \"lezen\" permissie"
step3: Kopieer de API Key
- step4: "Voeg deze toe aan de URL als: ?api_key=UW_KEY"
+ step4: "Voeg deze toe aan de URL als: &api_key=UW_KEY"
example: Voorbeeld
then_use: Gebruik dan de volledige URL met =IMPORTDATA() in Google Sheets.
- open_sheets: Google Sheets openen
go_to_api_keys: Ga naar API Keys
close: Begrepen
print:
diff --git a/config/locales/views/reports/pl.yml b/config/locales/views/reports/pl.yml
index 38fd9745ea..4dd08518e0 100644
--- a/config/locales/views/reports/pl.yml
+++ b/config/locales/views/reports/pl.yml
@@ -25,26 +25,16 @@ pl:
example: Przykład
go_to_api_keys: Przejdź do kluczy API
need_key: Aby importować dane do Google Sheets, potrzebujesz klucza API.
- open_sheets: Otwórz Google Sheets
- ready: Twój URL CSV (z kluczem API) jest gotowy.
- security_warning: Ten URL zawiera Twój klucz API. Przechowuj go bezpiecznie.
step1: Przejdź do Ustawienia → Klucze API
step2: Utwórz nowy klucz API z uprawnieniem "read"
step3: Skopiuj klucz API
- step4: 'Dodaj go do tego URL-a tak: ?api_key=YOUR_KEY'
- steps: |-
- Aby zaimportować do Google Sheets:
- 1. Utwórz nowy arkusz Google
- 2. W komórce A1 wpisz formułę pokazaną poniżej
- 3. Naciśnij Enter
+ step4: 'Dodaj go do tego URL-a tak: &api_key=YOUR_KEY'
then_use: Następnie użyj pełnego URL-a z =IMPORTDATA() w Google Sheets.
title_no_key: Wymagany klucz API
- title_with_key: Skopiuj URL do Google Sheets
index:
date_range:
from: Od
to: Do
- drag_to_reorder: Przeciągnij, aby zmienić kolejność sekcji
export: Eksportuj CSV
next_decade: Następna dekada
next_period: Następny okres
diff --git a/config/locales/views/reports/pt-BR.yml b/config/locales/views/reports/pt-BR.yml
index d48dfe0f5e..c2bff7417c 100644
--- a/config/locales/views/reports/pt-BR.yml
+++ b/config/locales/views/reports/pt-BR.yml
@@ -6,7 +6,6 @@ pt-BR:
subtitle: Insights completos sobre sua saúde financeira
export: Exportar CSV
print_report: Imprimir Relatório
- drag_to_reorder: "Arraste para reordenar a seção"
toggle_section: "Alternar visibilidade da seção"
periods:
monthly: Mensal
@@ -158,19 +157,14 @@ pt-BR:
withdrawals: Saques
net_flow: Fluxo Líquido
google_sheets_instructions:
- title_with_key: "✅ Copiar URL para Google Sheets"
- title_no_key: "⚠️ Chave de API Necessária"
- ready: Sua URL CSV (com chave de API) está pronta.
- steps: "Para importar no Google Sheets:\n1. Crie uma nova planilha no Google\n2. Na célula A1, insira a fórmula abaixo\n3. Pressione Enter"
- security_warning: "Esta URL inclui sua chave de API. Mantenha-a segura!"
+ title_no_key: "Chave de API Necessária"
need_key: Para importar dados no Google Sheets, você precisa de uma chave de API.
step1: "Vá em Configurações → Chaves de API"
step2: "Crie uma nova chave de API com permissão de \"leitura\""
step3: Copie a chave de API
- step4: "Adicione à URL como: ?api_key=SUA_CHAVE"
+ step4: "Adicione à URL como: &api_key=SUA_CHAVE"
example: Exemplo
then_use: Então use a URL completa com =IMPORTDATA() no Google Sheets.
- open_sheets: Abrir Google Sheets
go_to_api_keys: Ir para Chaves de API
close: Entendi
print:
diff --git a/config/locales/views/reports/pt-PT.yml b/config/locales/views/reports/pt-PT.yml
index 99667a58ce..15406af450 100644
--- a/config/locales/views/reports/pt-PT.yml
+++ b/config/locales/views/reports/pt-PT.yml
@@ -6,7 +6,6 @@ pt-PT:
subtitle: Informações abrangentes sobre a sua saúde financeira
export: Exportar CSV
print_report: Imprimir Relatório
- drag_to_reorder: "Arraste para reordenar a secção"
toggle_section: "Alternar a visibilidade da secção"
periods:
monthly: Mensal
@@ -177,19 +176,14 @@ pt-PT:
net_flow: Fluxo Líquido
net_flow_description: Alteração líquida total
google_sheets_instructions:
- title_with_key: "✅ Copiar URL para o Google Sheets"
- title_no_key: "⚠️ Chave de API Necessária"
- ready: O seu URL CSV (com chave de API) está pronto.
- steps: "Para importar no Google Sheets:\n1. Crie uma nova folha de cálculo no Google\n2. Na célula A1, introduza a fórmula mostrada abaixo\n3. Prima Enter"
- security_warning: "Este URL inclui a sua chave de API. Mantenha-a segura!"
+ title_no_key: "Chave de API Necessária"
need_key: Para importar dados no Google Sheets, precisa de uma chave de API.
step1: "Vá para Definições → Chaves de API"
step2: "Crie uma nova chave de API com permissão de \"leitura\""
step3: Copie a chave de API
- step4: "Adicione-a a este URL como: ?api_key=<chave>"
+ step4: "Adicione-a a este URL como: &api_key=<chave>"
example: Exemplo
then_use: Depois utilize o URL completo com =IMPORTDATA() no Google Sheets.
- open_sheets: Abrir o Google Sheets
go_to_api_keys: Ir para Chaves de API
close: Percebido
print:
diff --git a/config/locales/views/reports/ro.yml b/config/locales/views/reports/ro.yml
index 0c96d6ec89..c963f67480 100644
--- a/config/locales/views/reports/ro.yml
+++ b/config/locales/views/reports/ro.yml
@@ -120,18 +120,13 @@ ro:
previous: Anterioare
next: Următoarele
google_sheets_instructions:
- title_with_key: "✅ Copiază URL-ul pentru Google Sheets"
- title_no_key: "⚠️ Cheie API necesară"
- ready: URL-ul tău CSV (cu cheie API) este gata.
- steps: "Pentru a importa în Google Sheets:\n1. Creează o foaie Google nouă\n2. În celula A1, introdu formula afișată mai jos\n3. Apasă Enter"
- security_warning: "Acest URL include cheia ta API. Păstreaz-o în siguranță!"
+ title_no_key: "Cheie API necesară"
need_key: Pentru a importa date în Google Sheets, ai nevoie de o cheie API.
step1: "Mergi la Setări → Chei API"
step2: "Creează o cheie API nouă cu permisiunea „citire”"
step3: Copiază cheia API
- step4: "Adaug-o la acest URL ca: ?api_key=CHEIA_TA"
+ step4: "Adaug-o la acest URL ca: &api_key=CHEIA_TA"
example: Exemplu
then_use: Apoi utilizează URL-ul complet cu =IMPORTDATA() în Google Sheets.
- open_sheets: Deschide Google Sheets
go_to_api_keys: Mergi la Chei API
close: Am înțeles
diff --git a/config/locales/views/reports/ru.yml b/config/locales/views/reports/ru.yml
index 1f3749b781..941cd03f0c 100644
--- a/config/locales/views/reports/ru.yml
+++ b/config/locales/views/reports/ru.yml
@@ -25,26 +25,16 @@ ru:
example: Пример
go_to_api_keys: Перейти к API-ключам
need_key: Чтобы импортировать данные в Google Sheets, вам нужен API-ключ.
- open_sheets: Открыть Google Sheets
- ready: Ваш URL для CSV (с API-ключом) готов.
- security_warning: Этот URL включает ваш API-ключ. Держите его в безопасности!
step1: Перейдите в Настройки → API-ключи
step2: Создайте новый API-ключ с разрешением "чтение"
step3: Скопируйте API-ключ
- step4: 'Добавьте его в этот URL как: ?api_key=YOUR_KEY'
- steps: |-
- Чтобы импортировать в Google Sheets:
- 1. Создайте новый Google Sheet
- 2. В ячейке A1 введите формулу, показанную ниже
- 3. Нажмите Enter
+ step4: 'Добавьте его в этот URL как: &api_key=YOUR_KEY'
then_use: Затем используйте полный URL с =IMPORTDATA() в Google Sheets.
- title_no_key: "⚠️ Требуется API-ключ"
- title_with_key: "✅ Скопируйте URL для Google Sheets"
+ title_no_key: "Требуется API-ключ"
index:
date_range:
from: С
to: По
- drag_to_reorder: Перетащите для изменения порядка разделов
export: Экспорт CSV
next_decade: Следующее десятилетие
next_period: Следующий период
diff --git a/config/locales/views/reports/tr.yml b/config/locales/views/reports/tr.yml
index 0579e24af6..ea2b8da8fc 100644
--- a/config/locales/views/reports/tr.yml
+++ b/config/locales/views/reports/tr.yml
@@ -26,26 +26,16 @@ tr:
go_to_api_keys: API Anahtarlarına Git
need_key: Google E-Tablolar'a veri aktarmak için bir API anahtarına ihtiyacınız
var.
- open_sheets: Google E-Tablolar'ı Aç
- ready: CSV URL'niz (API anahtarıyla birlikte) hazır.
- security_warning: Bu URL, API anahtarınızı içerir. Güvende tutun!
step1: Ayarlar → API Anahtarları'na gidin
step2: '"okuma" izniyle yeni bir API anahtarı oluşturun'
step3: API anahtarını kopyalayın
- step4: 'Bu URL''ye şu şekilde ekleyin: ?api_key=ANAHTARINIZ'
- steps: |-
- Google E-Tablolar'a aktarmak için:
- 1. Yeni bir Google E-Tablo oluşturun
- 2. A1 hücresine aşağıda gösterilen formülü girin
- 3. Enter'a basın
+ step4: 'Bu URL''ye şu şekilde ekleyin: &api_key=ANAHTARINIZ'
then_use: Ardından Google E-Tablolar'da =IMPORTDATA() ile tam URL'yi kullanın.
- title_no_key: "⚠️ API Anahtarı Gerekli"
- title_with_key: "✅ Google E-Tablolar için URL'yi Kopyala"
+ title_no_key: "API Anahtarı Gerekli"
index:
date_range:
from: Başlangıç
to: Bitiş
- drag_to_reorder: Bölümü yeniden sıralamak için sürükleyin
export: CSV Dışa Aktar
next_decade: Sonraki on yıl
next_period: Sonraki dönem
diff --git a/config/locales/views/reports/uk.yml b/config/locales/views/reports/uk.yml
index 2560faa59c..536cab5c36 100644
--- a/config/locales/views/reports/uk.yml
+++ b/config/locales/views/reports/uk.yml
@@ -5,7 +5,6 @@ uk:
subtitle: Комплексне уявлення про ваше фінансове здоров'я
export: Експорт CSV
print_report: Друк звіту
- drag_to_reorder: "Перетягніть, щоб змінити порядок розділу"
toggle_section: "Переключити видимість розділу"
periods:
monthly: Щомісяця
@@ -184,19 +183,14 @@ uk:
net_flow: Чистий потік
net_flow_description: Загальна чиста зміна
google_sheets_instructions:
- title_with_key: "✅ Скопіюйте URL-адресу для Google Sheets"
- title_no_key: "⚠️ Потрібен ключ API"
- ready: Ваша URL-адреса CSV (з ключем API) готова.
- steps: "Щоб імпортувати в Google Sheets:\n1. Створіть нову таблицю Google\n2. У клітинці A1 введіть формулу, показану нижче\n3. Натисніть Enter"
- security_warning: "Ця URL-адреса містить ваш ключ API. Зберігайте її в безпеці!"
+ title_no_key: "Потрібен ключ API"
need_key: Щоб імпортувати дані в Google Sheets, вам потрібен ключ API.
step1: "Перейдіть до Налаштування → Ключі API"
step2: "Створіть новий ключ API з дозволом на читання"
step3: Скопіюйте ключ API
- step4: "Додайте його до цієї URL-адреси як: ?api_key=ВАШ_КЛЮЧ"
+ step4: "Додайте його до цієї URL-адреси як: &api_key=ВАШ_КЛЮЧ"
example: Приклад
then_use: Потім використовуйте повну URL-адресу з =IMPORTDATA() в Google Sheets.
- open_sheets: Відкрити Google Sheets
go_to_api_keys: Перейти до ключів API
close: Зрозуміло
print:
diff --git a/config/locales/views/reports/vi.yml b/config/locales/views/reports/vi.yml
index e4a0e7f25f..21ad5d6983 100644
--- a/config/locales/views/reports/vi.yml
+++ b/config/locales/views/reports/vi.yml
@@ -6,7 +6,6 @@ vi:
subtitle: Thông tin chi tiết toàn diện về sức khỏe tài chính của bạn
export: Xuất CSV
print_report: In báo cáo
- drag_to_reorder: "Kéo để sắp xếp lại phần"
toggle_section: "Bật/tắt hiển thị phần"
periods:
monthly: Hàng tháng
@@ -176,19 +175,14 @@ vi:
net_flow: Dòng tiền thuần
net_flow_description: Tổng thay đổi thuần
google_sheets_instructions:
- title_with_key: "✅ Sao chép URL cho Google Sheets"
- title_no_key: "⚠️ Cần khóa API"
- ready: URL CSV (kèm khóa API) đã sẵn sàng.
- steps: "Để nhập vào Google Sheets:\n1. Tạo Google Sheet mới\n2. Trong ô A1, nhập công thức bên dưới\n3. Nhấn Enter"
- security_warning: "URL này chứa khóa API của bạn. Hãy giữ bí mật!"
+ title_no_key: "Cần khóa API"
need_key: Để nhập dữ liệu vào Google Sheets, bạn cần khóa API.
step1: "Vào Cài đặt → Khóa API"
step2: "Tạo khóa API mới với quyền \"đọc\""
step3: Sao chép khóa API
- step4: "Thêm vào URL như sau: ?api_key=YOUR_KEY"
+ step4: "Thêm vào URL như sau: &api_key=YOUR_KEY"
example: Ví dụ
then_use: Sau đó dùng URL đầy đủ với =IMPORTDATA() trong Google Sheets.
- open_sheets: Mở Google Sheets
go_to_api_keys: Đến Khóa API
close: Đã hiểu
print:
diff --git a/config/locales/views/reports/zh-CN.yml b/config/locales/views/reports/zh-CN.yml
index fdf9cde4cc..a52379df69 100644
--- a/config/locales/views/reports/zh-CN.yml
+++ b/config/locales/views/reports/zh-CN.yml
@@ -6,7 +6,6 @@ zh-CN:
subtitle: 您财务健康状况的全面洞察
export: 导出 CSV
print_report: 打印报表
- drag_to_reorder: 拖动以重新排序模块
toggle_section: 切换模块可见性
periods:
monthly: 按月
@@ -177,19 +176,14 @@ zh-CN:
net_flow: 净流入
net_flow_description: 总净变化
google_sheets_instructions:
- title_with_key: ✅ 复制 Google 表格 URL
- title_no_key: ⚠️ 需要 API 密钥
- ready: 您的 CSV URL(含 API 密钥)已准备好。
- steps: "导入到 Google 表格的步骤:\n1. 新建一个 Google 表格\n2. 在 A1 单元格中输入下方公式\n3. 按回车"
- security_warning: "此 URL 包含您的 API 密钥,请妥善保管!"
+ title_no_key: 需要 API 密钥
need_key: 要导入数据到 Google 表格,您需要一个 API 密钥。
step1: 前往 设置 → API 密钥
step2: 创建一个具有“read”权限的新 API 密钥
step3: 复制该 API 密钥
- step4: 将其添加到此 URL 中:?api_key=YOUR_KEY
+ step4: 将其添加到此 URL 中:&api_key=YOUR_KEY
example: 示例
then_use: 然后在 Google 表格中使用完整 URL 和 =IMPORTDATA()。
- open_sheets: 打开 Google 表格
go_to_api_keys: 前往 API 密钥
close: 知道了
print:
diff --git a/config/locales/views/reports/zh-TW.yml b/config/locales/views/reports/zh-TW.yml
index 491c450df1..04b3a8f4d1 100644
--- a/config/locales/views/reports/zh-TW.yml
+++ b/config/locales/views/reports/zh-TW.yml
@@ -6,7 +6,6 @@ zh-TW:
subtitle: 深入洞察您的財務健康狀況
export: 匯出 CSV
print_report: 列印報表
- drag_to_reorder: 拖曳以重新排列區塊
toggle_section: 切換區塊顯示狀態
periods:
monthly: 按月
@@ -178,25 +177,14 @@ zh-TW:
net_flow: 淨流量
net_flow_description: 淨變動總額
google_sheets_instructions:
- title_with_key: ✅ 複製 Google 試算表用的網址
- title_no_key: ⚠️ 需要 API 金鑰
- ready: 您的 CSV URL(含 API 金鑰)已就緒。
- steps: '若要匯入 Google 試算表:
-
- 1. 建立一個新的 Google 試算表
-
- 2. 在 A1 儲存格中輸入下方公式
-
- 3. 按下 Enter 鍵'
- security_warning: 此 URL 包含您的 API 金鑰。請妥善保管!
+ title_no_key: 需要 API 金鑰
need_key: 若要將資料匯入 Google 試算表,您需要一個 API 金鑰。
step1: 前往「設定」→「API 金鑰」
step2: 建立一個具備「讀取」權限的新 API 金鑰
step3: 複製該 API 金鑰
- step4: 將其加入此 URL 結尾:?api_key=您的金鑰
+ step4: 將其加入此 URL 結尾:&api_key=您的金鑰
example: 範例
then_use: 接著在 Google 試算表中使用帶有 =IMPORTDATA() 的完整連結。
- open_sheets: 開啟 Google 試算表
go_to_api_keys: 前往 API 金鑰設定
close: 我知道了
print:
diff --git a/test/system/reports_test.rb b/test/system/reports_test.rb
index f448a710d5..4499bef26e 100644
--- a/test/system/reports_test.rb
+++ b/test/system/reports_test.rb
@@ -63,6 +63,29 @@ class ReportsTest < ApplicationSystemTestCase
assert_operator saved_order.index(second), :<, saved_order.index(first)
end
+ test "Enter on a link inside a section follows the link instead of grabbing the section" do
+ section = find("section[data-section-key='transactions_breakdown']")
+ section.find_link(I18n.t("reports.transactions_breakdown.export.google_sheets")).send_keys(:enter)
+
+ assert_selector "dialog[open]"
+ assert_equal "false", section["aria-grabbed"]
+ end
+
+ test "following a link while a section is held saves its new place first" do
+ keys = all("section[data-section-key]").map { |section| section["data-section-key"] }
+ moved = "transactions_breakdown"
+ above = keys[keys.index(moved) - 1]
+
+ section = find("section[data-section-key='#{moved}']")
+ section.send_keys(:enter)
+ page.send_keys(:arrow_up)
+ section.find_link(I18n.t("reports.transactions_breakdown.table.amount"), match: :first).send_keys(:enter)
+
+ assert_current_path(/sort_by=amount/)
+ saved_order = users(:family_admin).reload.reports_section_order
+ assert_operator saved_order.index(moved), :<, saved_order.index(above)
+ end
+
private
def clicked_hotkeys
page.evaluate_script("window.clickedHotkeys")