Skip to content

feat: add automatic renewal tracking - #214

Merged
ZingerLittleBee merged 65 commits into
mainfrom
feat/renewal-tracking-integration
Oct 6, 2026
Merged

ZingerLittleBee merged 65 commits into
mainfrom
feat/renewal-tracking-integration

Conversation

@ZingerLittleBee

@ZingerLittleBee ZingerLittleBee commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Server billing deadlines previously required manual edits each period, and an expiration rule with a continuously true reminder window could consume its once admission for every later period. This change adds opt-in automatic renewal tracking across the Server, Web dashboard and native iOS client.

The Server owns calendar advancement, validation and occurrence admission. Projected and frozen deadlines retain their provenance alongside the last operator-confirmed expiry. Clients use the stored billing timezone for date entry and display and refresh affected catalog and cost views after changes.

Acceptance mapping

#208 requirement Implementation and validation
Default off, IANA billing timezone, complete local expiry date, UTC persistence and legacy instant preservation Typed renewal contract, real predecessor-schema migration and HTTP/SQLite date tests; Web/iOS request and date models
Monthly/quarterly/yearly anchors, month-end/leap-day/DST, startup and periodic catch-up while Agent is offline Server-owned recurrence and shared narrow clock; HTTP/SQLite projection tests, including reopened databases and invalid-record containment
Confirmed/projected/frozen provenance and explicit edit intent Date/interval/timezone/disable-and-clear and unchanged-form acceptance tests; existing billing editors preserve unrelated saves and confirmation history
One eligible once admission per rule/server/occurrence, zero-day and long windows, retry/concurrency/restart/freeze Durable occurrence state and encrypted outbox admission in the same writer transaction; real queue/commit faults, independent owners and reopened SQLite tests
Existing rule/channel/permission semantics and neutral calendar supersession Full mobile notification regression, exact historical detail keys, current rule snapshots and retained pure-expiration state during legacy conversion
Detail/list/dashboard refresh and independent cost/traffic periods REST catalog invalidation and cache fencing; actual Chromium production routes, reconnect and open-editor request checks; native router/model coverage
Private billing contract and native controls Public-status regressions, generated OpenAPI/TypeScript models, native wire models and actual Simulator acceptance evidence below

Validation

  • Final candidate 29a91c66faba752fbcd2d88e559e5359dcb18a76 exactly matches reviewed corrective source d82ed7006b4ac070f6e3d01930e773c4e98532b4. Server/Web source and all runtime bundle files retain their tested d100 binding. Native DEBUG support provides complete isolated session metadata through the normal auth boundary; local client fixture transport and physical UI interactions are corrected without changing authorization policy. Native billing timezone selection uses an ordinary searchable list with the complete IANA data and the same date-preserving editor binding.
  • 475 Rust tests passed: 215 integration cases, 150 Common tests and 110 affected Server unit tests. The integration run includes all 90 mobile notification tests and 17 reminder cases.
  • 889 Web tests across 132 files passed; production build and typecheck passed.
  • Navigation checks, the 47-target CI registry and all 29 repository script tests passed.
  • Exact CI workspace check and Clippy flags, changed-crate formatting, committed generated contracts and the 47-target integration registry passed. All 18 fixture startup/result/auth-transport harness tests passed, including real process/socket/HTTP red→green coverage; the original 10-second budget and UI assertions remain.
  • Chromium passed five production-route scenarios on this exact candidate after a fresh production build: 85 HTTP records, 14 client WebSocket frames and zero page errors. All 89 runtime files are hashed in the source-bound evidence. The client fixture now waits for its actual pending-page WebSocket registration before injecting a catalog event; the original 15-second budget and product assertions remain. Two prior fixture-order failures are retained separately.
  • Documentation typecheck, contracts, English/Chinese Compose examples and production build passed on 8a6; documentation sources are byte-identical in the final candidate. Production route checks covered eight localized routes, 43 search queries, five Markdown exports and 62 sitemap URLs; all 11 original browser scenarios passed with real system Chromium 151.0.7922.173. The managed browser CDN returned 403 locally, so a local executable-path launcher was used with unchanged assertions; the prescribed hosted Documentation job has also succeeded with its managed Chromium installation and all 11 original scenarios.
  • Repository installer/channel transaction tests, changelog extraction and their POSIX syntax checks passed on the final candidate. These simulated installer checks do not substitute for the release runbook’s real disposable-host matrix; the hosted Install job has also succeeded with its actual dash, BusyBox, changelog and shellcheck checks.
  • Independent whole-feature Standards and Spec reviews against starting main 762026d0635ca58e1d324c1546e38a9e27df71de have zero mandatory findings after corrective re-review.
  • Hosted macOS run 37393322949 succeeded on this exact candidate: 473 native tests passed with zero failures/skips, including all 19 renewal methods and the original-session-proof case. All three actual Simulator UI methods passed together, including ordinary timezone navigation, search, real UTC row selection, local-date preservation, normal Save and reopen. The executed JSON/fixture gates verified five exact PUT intents across all three scenarios, zero fixture errors and 14 real screenshot attachments. Native xcresult and raw logs were independently crosschecked. A bounded copy of GitHub artifact 11382332335 was materialized and verified against all 177 mapped hashes, including 173 unchanged original files. The original unit/UI JSON passed the checked-out strict validator; 120 recorded HTTP requests include five successful PUTs matching persisted fixture state. All 14 screenshot attachments were hash-verified, and six critical screenshots were actually inspected. The full xcresult and videos remain retained in GitHub and the transfer source. These are Simulator results, not physical-device validation.

A follow-up Spec review confirmed that timezone-only saves preserve the current selected expiry date and the historical confirmed UTC instant. Formatting that historical instant in the new billing timezone can change its displayed calendar date; it does not record a new confirmation. The actual timezone UI evidence shows this distinction on Save and reopen.

Hosted native and Simulator results are separate from browser and Server integration evidence. Physical-device notification delivery, provider charging and live Railway renewal smoke have not been exercised by these tests. Publication and production deployment follow their separate release, backup and validation gates.

Closes #208
Closes #209
Closes #210
Closes #211
Closes #212

@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
serverbee-docs Ready Ready Preview Oct 6, 2026 12:41am UTC

@ZingerLittleBee
ZingerLittleBee marked this pull request as ready for review October 6, 2026 01:04
@ZingerLittleBee
ZingerLittleBee merged commit d9ecd48 into main Oct 6, 2026
19 checks passed
@ZingerLittleBee
ZingerLittleBee deleted the feat/renewal-tracking-integration branch October 6, 2026 01:05

This branch was successfully deployed

1 active deployment
Preview — 29a91c66 Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment