Skip to content

feat(buy): hint savings plan can be set up recurring and multiple times#686

Open
TaprootFreak wants to merge 3 commits into
stagingfrom
feature/autoinvest-recurring-hints
Open

feat(buy): hint savings plan can be set up recurring and multiple times#686
TaprootFreak wants to merge 3 commits into
stagingfrom
feature/autoinvest-recurring-hints

Conversation

@TaprootFreak

Copy link
Copy Markdown
Contributor

Context

Part of #666 (RealUnit Phase 2), Baustein 4: Autoinvest / Sparplan. Closes #685.

The autoinvest/savings-plan feature is functionally complete. This PR adds the remaining frontend hint: telling the user that the RealUnit purchase can be set up recurring (a bank standing order / Dauerauftrag) and multiple times (several plans in parallel).

What changed

  • Hint placement: lib/screens/buy/widgets/payment_information_details.dart — on the buy payment-information screen (the screen that shows the IBAN/BIC for the bank transfer). The hint is rendered directly below the existing payment-information description, reusing the same info-row layout (Icons.autorenew in RealUnitColors.realUnitBlue, Theme.textTheme.bodyMedium, spacing: 12).
  • Copy — new key buyRecurringPaymentHint in both strings_de.arb and strings_en.arb (alphabetically placed):
    • EN: "Tip: set up a recurring bank standing order with these details to invest regularly. You can also create several plans in parallel with different amounts or intervals."
    • DE: "Tipp: Richten Sie mit diesen Angaben einen wiederkehrenden Dauerauftrag bei Ihrer Bank ein, um regelmässig zu investieren. Sie können auch mehrere Sparpläne parallel mit unterschiedlichen Beträgen oder Intervallen anlegen."
  • Tests: test/screens/buy/widgets/payment_information_details_test.dart asserts the hint text and the autorenew icon (colour + size) render. Existing payment_information_test.dart unchanged and green.
  • Goldens: the existing buy_payment_info_loaded baseline changes (the new hint row). Regenerated via golden-regenerate.yaml on this branch (dfx01). No new handbook page — this is a changed existing page, so only its existing baseline is refreshed; no scripts/assemble-handbook-screenshots.sh row change needed.

Scope notes

  • No new backend logic / no new recurring-buy mechanism (already functional).
  • No cubit/service touched → scoped coverage floor unaffected (verified locally at 100% of the README-scoped surface).

Local gates

  • flutter analyze → No issues found
  • flutter test --coverage --exclude-tags golden → 2307 passed; scoped lines 4874/4874 = 100%
  • dart format --page-width=100 on touched files → clean

Surface the standing-order / multi-plan autoinvest capability on the
Zahlungsdetails page (post-confirm bank-transfer instructions), which is
where the IBAN/BIC details now live after the payment-details rework.

Add buyRecurringPaymentHint (de+en) and cover it in the page widget test.
@TaprootFreak TaprootFreak force-pushed the feature/autoinvest-recurring-hints branch from b2264b4 to 1c0f05a Compare July 13, 2026 15:07
Refresh Zahlungsdetails goldens after adding the recurring standing-order
hint row. Baselines taken from the self-hosted VR runner (testImage).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant