Skip to content

push: add the missing money switch - #101

Merged
listixx merged 1 commit into
Xittered:mainfrom
gabytz777:fix/push-money-switch
Oct 23, 2026
Merged

listixx merged 1 commit into
Xittered:mainfrom
gabytz777:fix/push-money-switch

Conversation

@gabytz777

Copy link
Copy Markdown
Contributor

Money notifications were mapped to a money switch that was missing from both DEFAULTS and the settings template. As a result pushDue treated money as always on, and the push settings screen had no way to turn it off.

This adds the switch (default on), bumps the template checksum so clients pick up the new entry, and extends scripts/test-push.ts to check the default, the template entry, and saving money: "off". The script is added to the HTTP test step.

The new checks fail on main: push_settings.money is absent and the template has no money entry.

Tests:

  • bun run test:unit
  • bun scripts/test-push.ts ci_api_a ci_api_b testpass123 against a disposable local database and server

Money notifications were mapped to a "money" setting that was not in the defaults or the settings template, so they were always on and the screen had no switch. Add the switch, default it on, and cover it in the push test.
@listixx
listixx merged commit 531b52b into Xittered:main Oct 23, 2026
1 check passed
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.

2 participants