Merge upstream/main into main (weekly sync, 2026-10-06)

Merged
JA
2mo ago
+6880-1931

Requested by Jonathan · project thread

Summary

Brings jaysbeekay/sure fork's main up to we-promise/sure's upstream main head (eb34c06f0, 2026-10-05). Fork main was 35 commits behind; the merge base was 20352e1a0, the head merged by #272. Upstream main has not moved since the reminder in #322 was written. mirror/upstream-main is at the same commit.

Head branch: sync/upstream-2026-10-06
Commits on the branch:

  • 959bf6f3e: the merge. Its parents are 1718e4215 (fork main, after #317, #309, #318 and #314) and eb34c06f0 (upstream head). It had 3 conflicting files, resolved as described below.
  • e186e5c3c: skips two new upstream tests (we-promise/sure#3933) that the fork's demo loans cannot satisfy. They are skipped, not dropped. See below.

Merge it with a merge commit, not a squash, per #118 duty 4.

35 upstream commits merged

SHASubjectUpstream PR
eb34c06f0Revert "fix(enable_banking): tell id-less rows that share a content hash apart" (reverts 503229d2c)(direct revert)
503229d2cfix(enable_banking): tell id-less rows that share a content hash apartwe-promise/sure#3913
3832d6c42Show a bill row's verb only when the bill needs you nowwe-promise/sure#3947
6875725f5Hide the bills month pulse on a page of only paused billswe-promise/sure#3923
bc093a1a5Give the bills overview one focus ring and readable autopay rowswe-promise/sure#3911
f3dd2e990Fix release highlight dismissal for hotfix tagswe-promise/sure#3961
2f17d7c6aAdd Hosted usage overview and daily web preview eventwe-promise/sure#3939
e480350d1Bump Pipelock CI action to v3.6.0we-promise/sure#3951
14638a701fix(transactions): stop Cancel in Convert to trade from convertingwe-promise/sure#3941
6ef4859b9fix(onchain): let Track selected assets submit on self-hosted installswe-promise/sure#3940
efe34c6fffix(kraken): a crypto ledger row moves units, not cashwe-promise/sure#3875
25d9bf87aKeep the money field's currency handler next to the caller's actionwe-promise/sure#3916
02ac6043eFix Stripe error on demo family deletionwe-promise/sure#3896
23ec71b21Use the config key Rails documents, so a local run comes back cleanwe-promise/sure#3910
e435dbd3dFix Bills locale test to target the occurrence drawer linkwe-promise/sure#3938
db7c3b47cMoney paste follow-ups: separator hint and symbol drift testwe-promise/sure#3882
1eb7a9991Keep bills banner and notices to the bills the page listswe-promise/sure#3922
b34d6f46aStack the bills pay-period band on narrow listswe-promise/sure#3928
d12543f5dFix Back for drawers, modals, the period picker and URL rewriteswe-promise/sure#3886
70c47b38aHide the bills month pulse and AI prompts on an empty pagewe-promise/sure#3905
ee30e377dShow the Income plan AI chips only when there is a planwe-promise/sure#3917
4c9d2dc2eShow a dated bill row's due date where its rail is hiddenwe-promise/sure#3901
e07cdb661Define date.formats.short_with_year for every localewe-promise/sure#3918
c34065e67Fix demo loan schedules before the generation transaction commitswe-promise/sure#3933
e8e142db6feat(transactions): create a category from the list's quick category pickerwe-promise/sure#3772
31c9e4c5eBump version to next iteration after v0.7.6-alpha.1 releasewe-promise/sure#3930
ec4282e0eOpen bills in the drawer instead of expanding the rowwe-promise/sure#3885
51192d087Let users hide dashboard widgets from a Customize modewe-promise/sure#3860
97fa8a2edfix(transactions): cache only IDs of upcoming recurring transactionswe-promise/sure#3907
c194885adLet the third-currency reports test run on a month's first two dayswe-promise/sure#3902
f50c67017Give each Income plan period one hero figurewe-promise/sure#3879
ba0d329a1Give Bills' Next up strip a focus ring and one padding scalewe-promise/sure#3877
98e825d03Update the insights lightbulb badge live on dismiss and refreshwe-promise/sure#3880
8da2b768fMake "Really free" read as the cash panel's answerwe-promise/sure#3878
ab39cb205Fix Disconnect and saves in Bank sync connection rowswe-promise/sure#3844

There are no new migrations, no db/ changes, and no Gemfile, Gemfile.lock or package.json changes in this range, so db/schema.rb is untouched and duty 2 does not arise. Two files are deleted by upstream we-promise/sure#3885: app/views/bills/pane.html.erb and pane_close.html.erb. Bills now open in the drawer.

Conflict resolutions

FileFork sideUpstream sideResolution
app/models/demo/generator.rbThe fork keeps its own demo loans (#184; this file has been fork-side since #232 and #272). They are bare Loan.new records. generate_loan_payments! pays flat monthly figures (600/1,100, 350/100, 300/130) for 36 months.c34065e67 (we-promise/sure#3933) adds .reload before account.loan.amortization_schedule.payments in upstream's schedule-driven generate_loan_payments!.Fork hunk kept. The fork's method never reads a schedule, so the stale-association bug that #3933 fixes cannot occur there. The other upstream change to this file, 02ac6043e (we-promise/sure#3896, DEMO_STRIPE_SUBSCRIPTION_ID = Subscription::DEMO_STRIPE_ID), merged cleanly and is in.
test/controllers/reports_controller_test.rb0a8a9670b / 60e2d35ec rewrote the third-currency disposal test on the portfolio test helpers: create_portfolio_account, security_under_test, sell_trade and set_rate.c194885ad (we-promise/sure#3902) uses find_or_initialize_by(...).update! for EUR→GBP. Without it, a fresh row for the month's first day collides with the fixtures' rows on the 1st and 2nd of the month.Fork hunk kept. The fork's set_rate (test/support/portfolio_returns_test_helper.rb:210) already does find_or_create_by! and then update!, so it covers the same collision. The fork's longer comment above the test was kept as well.
test/lib/generators/provider/family_generator_test.rb64a92d9f4 (#243) added a Codacy false-positive note (#239) beside the inline ERB.new call.ab39cb205 (we-promise/sure#3844) extracts a render_template(name, **locals) helper, used by the unlinking test and a new controller-template test.Merged. Took upstream's helper and call site. The fork's Codacy note moves onto the ERB.new line inside the helper, so it still sits on the only manual ERB call.

Two upstream tests skipped, not dropped (e186e5c3c): owner decision needed

we-promise/sure#3933 also adds two tests to test/models/demo/generator_test.rb, and both merged without conflict:

  • sample data generates loan payments before its transaction commits
  • default demo generates loan payments inside a refresh transaction

Both assert that each demo loan records every payment on its amortisation schedule up to today. On the fork, both fail with Home Mortgage should have payments due, because the fork's demo loans carry no terms. The reload line they guard has no counterpart in the fork.

Following #279 (never drop upstream tests in a sync), both tests and their helpers (stub_non_loan_activity, assert_demo_loan_payments) stay in the file with a skip that gives the reason. Upstream's later edits to them will keep merging cleanly, and the gap stays visible. To make them pass, the fork would have to port upstream's schedule-driven demo loans (from 117dd80c1, we-promise/sure#3473) onto the fork's engine, which already has term_months, start_date, initial_balance, rate_changes= and amortization_schedule, and drop the down-payment and insurance attributes the fork lacks. That is fork loan or demo work, not a sync resolution, so it is left for the owner (#184).

Checks on dropped tests (#279 lesson)

  • No test file is deleted or emptied by the merge. git diff --stat origin/main...HEAD -- test/ shows no all-deletion entries, and --diff-filter=D lists only the two bills views above.
  • For every test file this upstream range adds or modifies, every upstream test "..." name is present at HEAD, with two exceptions, both pre-existing on fork main and not introduced here:
    • test/models/demo/generator_test.rb: the three demo-loan schedule tests from we-promise/sure#3473/#3474. They have been absent on fork main since the loan-engine resolutions in #232 and #272.
    • test/controllers/reports_controller_test.rb: index provides the download toasts the desktop app shows (we-promise/sure#3571) and the card preloads the rates its disposals need (we-promise/sure#3616). Both are absent on fork main from #185 (6345863d0) onwards. This looks like the same class as #279. It is flagged for a follow-up rather than changed in this sync.

Local validation

Ruby 3.3.6 (the pin overridden locally only, not committed), PostgreSQL, Redis; RAILS_ENV=test bin/rails db:create db:schema:load, bin/rails tailwindcss:build.

  • Full bin/rails test at the branch tree: 12,094 runs, 52,278 assertions, 4 failures, 1 error, 35 skips. All 5 are this sandbox's known environmental failures. I ran the same three files on unmerged origin/main (1718e4215) and got the same 4 failures and 1 error:
    • Provider::RegistryTest#test_anthropic_provider_initializes_from_ANTHROPIC_API_KEY_env (Anthropic env)
    • Provider::OpenaiTest#test_extra_headers_stringifies_nested_values_Ruby-style (Ruby 3.3 Hash#inspect)
    • Settings::HostingsControllerTest: three Anthropic base-URL tests (rejects_non-URL_anthropic_base_url, requires_anthropic_model_when_a_custom_base_url_is_set, clears_anthropic_base_url_when_blank_value_submitted)
  • The three conflicted test files pass on their own, apart from the two skipped #3933 tests.
  • bin/rubocop: 3,023 files, no offenses.
  • bin/brakeman --no-pager -q: 0 warnings (9 ignored, unchanged).
  • Not run here: erb_lint (the gem executable is not installed in this sandbox), npm run lint (no node_modules), and system tests. The fork's GitHub CI is authoritative for those.

Issue

Closes #322 (weekly upstream-sync reminder). Follows #118's "Staying in sync while building locally", duty 1. The #118 sync log can record this sync once it merges.