Merge upstream/main into main (weekly sync, 2026-10-06)
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 are1718e4215(forkmain, after #317, #309, #318 and #314) andeb34c06f0(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
| SHA | Subject | Upstream PR |
|---|---|---|
eb34c06f0 | Revert "fix(enable_banking): tell id-less rows that share a content hash apart" (reverts 503229d2c) | (direct revert) |
503229d2c | fix(enable_banking): tell id-less rows that share a content hash apart | we-promise/sure#3913 |
3832d6c42 | Show a bill row's verb only when the bill needs you now | we-promise/sure#3947 |
6875725f5 | Hide the bills month pulse on a page of only paused bills | we-promise/sure#3923 |
bc093a1a5 | Give the bills overview one focus ring and readable autopay rows | we-promise/sure#3911 |
f3dd2e990 | Fix release highlight dismissal for hotfix tags | we-promise/sure#3961 |
2f17d7c6a | Add Hosted usage overview and daily web preview event | we-promise/sure#3939 |
e480350d1 | Bump Pipelock CI action to v3.6.0 | we-promise/sure#3951 |
14638a701 | fix(transactions): stop Cancel in Convert to trade from converting | we-promise/sure#3941 |
6ef4859b9 | fix(onchain): let Track selected assets submit on self-hosted installs | we-promise/sure#3940 |
efe34c6ff | fix(kraken): a crypto ledger row moves units, not cash | we-promise/sure#3875 |
25d9bf87a | Keep the money field's currency handler next to the caller's action | we-promise/sure#3916 |
02ac6043e | Fix Stripe error on demo family deletion | we-promise/sure#3896 |
23ec71b21 | Use the config key Rails documents, so a local run comes back clean | we-promise/sure#3910 |
e435dbd3d | Fix Bills locale test to target the occurrence drawer link | we-promise/sure#3938 |
db7c3b47c | Money paste follow-ups: separator hint and symbol drift test | we-promise/sure#3882 |
1eb7a9991 | Keep bills banner and notices to the bills the page lists | we-promise/sure#3922 |
b34d6f46a | Stack the bills pay-period band on narrow lists | we-promise/sure#3928 |
d12543f5d | Fix Back for drawers, modals, the period picker and URL rewrites | we-promise/sure#3886 |
70c47b38a | Hide the bills month pulse and AI prompts on an empty page | we-promise/sure#3905 |
ee30e377d | Show the Income plan AI chips only when there is a plan | we-promise/sure#3917 |
4c9d2dc2e | Show a dated bill row's due date where its rail is hidden | we-promise/sure#3901 |
e07cdb661 | Define date.formats.short_with_year for every locale | we-promise/sure#3918 |
c34065e67 | Fix demo loan schedules before the generation transaction commits | we-promise/sure#3933 |
e8e142db6 | feat(transactions): create a category from the list's quick category picker | we-promise/sure#3772 |
31c9e4c5e | Bump version to next iteration after v0.7.6-alpha.1 release | we-promise/sure#3930 |
ec4282e0e | Open bills in the drawer instead of expanding the row | we-promise/sure#3885 |
51192d087 | Let users hide dashboard widgets from a Customize mode | we-promise/sure#3860 |
97fa8a2ed | fix(transactions): cache only IDs of upcoming recurring transactions | we-promise/sure#3907 |
c194885ad | Let the third-currency reports test run on a month's first two days | we-promise/sure#3902 |
f50c67017 | Give each Income plan period one hero figure | we-promise/sure#3879 |
ba0d329a1 | Give Bills' Next up strip a focus ring and one padding scale | we-promise/sure#3877 |
98e825d03 | Update the insights lightbulb badge live on dismiss and refresh | we-promise/sure#3880 |
8da2b768f | Make "Really free" read as the cash panel's answer | we-promise/sure#3878 |
ab39cb205 | Fix Disconnect and saves in Bank sync connection rows | we-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
| File | Fork side | Upstream side | Resolution |
|---|---|---|---|
app/models/demo/generator.rb | The 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.rb | 0a8a9670b / 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.rb | 64a92d9f4 (#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=Dlists only the two bills views above. - For every test file this upstream range adds or modifies, every upstream
test "..."name is present atHEAD, with two exceptions, both pre-existing on forkmainand 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 forkmainsince 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 forkmainfrom #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 testat 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 unmergedorigin/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.3Hash#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(nonode_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.