Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
11e26be
feat(ios): preserve renewal local dates in billing timezone
ZingerLittleBee Oct 5, 2026
da601d6
fix(ios): preserve billing dates through timezone transitions
ZingerLittleBee Oct 5, 2026
1a9d1aa
feat(web): edit renewal dates in the billing timezone
ZingerLittleBee Oct 5, 2026
fe4bfef
feat(renewal): store billing calendar dates without changing legacy s…
ZingerLittleBee Oct 5, 2026
861f078
feat(renewal): integrate billing calendar web editor
ZingerLittleBee Oct 5, 2026
ebfa524
feat(renewal): integrate native billing calendar editor
ZingerLittleBee Oct 5, 2026
5005a79
feat(renewal): publish typed billing calendar contract
ZingerLittleBee Oct 5, 2026
4e3047a
fix(web): preserve billing dates across browser timezones
ZingerLittleBee Oct 5, 2026
9066e3b
fix(renewal): validate the final calendar edit atomically
ZingerLittleBee Oct 5, 2026
b00b23e
fix(renewal): display local deadlines beside independent cost estimates
ZingerLittleBee Oct 5, 2026
46cf9f8
feat(renewal): integrate stored-timezone date contract
ZingerLittleBee Oct 5, 2026
8870323
ci(ios): validate renewal integration before pull request
ZingerLittleBee Oct 5, 2026
5d5c372
feat(renewal): validate opt-in prerequisites atomically
ZingerLittleBee Oct 5, 2026
f39969e
ci(ios): integrate early native validation evidence
ZingerLittleBee Oct 5, 2026
0386465
feat(ios): add automatic renewal controls and provenance
ZingerLittleBee Oct 5, 2026
1932bf5
chore(ios): merge latest integration validation
ZingerLittleBee Oct 5, 2026
018b5d9
feat(web): add automatic renewal controls and forecast provenance
ZingerLittleBee Oct 5, 2026
32c0741
chore(web): sync renewal integration before handoff
ZingerLittleBee Oct 5, 2026
f562d46
feat(renewal): persist anchored forecasts and catch up offline schedules
ZingerLittleBee Oct 5, 2026
14089dc
feat(renewal): align expiry advisories with shared renewal evaluation…
ZingerLittleBee Oct 5, 2026
6c918e7
feat(renewal): integrate Web projection controls
ZingerLittleBee Oct 5, 2026
ab8e7f8
feat(renewal): integrate native projection controls
ZingerLittleBee Oct 5, 2026
9f54824
feat(renewal): publish typed automatic renewal input contract
ZingerLittleBee Oct 5, 2026
bb79ca1
fix(web): hide automatic renewal controls for legacy servers
ZingerLittleBee Oct 5, 2026
96a288e
fix(renewal): skip unavailable dates and isolate invalid schedules
ZingerLittleBee Oct 5, 2026
2b16d30
feat(renewal): integrate anchored automatic forecasts
ZingerLittleBee Oct 5, 2026
c01f6ce
feat(ios): refresh renewal catalogs and superseded reminders
ZingerLittleBee Oct 5, 2026
d252d82
feat(ios): retain renewal data in the private server catalog
ZingerLittleBee Oct 5, 2026
e4b437f
feat(ios): integrate renewal catalog and advisory refresh
ZingerLittleBee Oct 5, 2026
29fcdb6
test(ios): add strict loopback renewal acceptance fixture
ZingerLittleBee Oct 5, 2026
3574b85
test(ios): exercise renewal billing through native controls
ZingerLittleBee Oct 5, 2026
14da0da
ci(ios): retain serial Simulator renewal acceptance evidence
ZingerLittleBee Oct 5, 2026
b7aa002
fix(ios): preserve websocket tags during catalog refresh
ZingerLittleBee Oct 5, 2026
4a9ee36
fix(ios): reject numeric fixture renewal switch intent
ZingerLittleBee Oct 5, 2026
0205665
fix(ios): preserve full sync tags during renewal refresh
ZingerLittleBee Oct 5, 2026
f58dede
feat(web): refresh renewal catalog and occurrence advisories
ZingerLittleBee Oct 5, 2026
edfdbd4
feat(web): integrate renewal catalog and cost refresh
ZingerLittleBee Oct 5, 2026
b82e91f
fix(ci): select Xcode-supported renewal Simulator destinations
ZingerLittleBee Oct 5, 2026
4739b2a
test(renewal): cover billing edit intent and persistent anchors
ZingerLittleBee Oct 5, 2026
bd59b68
feat(renewal): admit once reminders for each projected occurrence
ZingerLittleBee Oct 5, 2026
31eaf69
test(renewal): integrate persistent edit contract coverage
ZingerLittleBee Oct 5, 2026
dce2352
fix(web): reject stale renewal requests during catalog refresh
ZingerLittleBee Oct 5, 2026
f3589b8
chore(renewal): merge current integration into web refresh
ZingerLittleBee Oct 5, 2026
1da602c
chore(ios): merge renewal edit acceptance integration
ZingerLittleBee Oct 5, 2026
7216291
feat(renewal): evaluate local reminders and silently supersede old ta…
ZingerLittleBee Oct 5, 2026
7bc201b
fix(web): integrate renewal refresh request race handling
ZingerLittleBee Oct 5, 2026
bc5b099
test(ios): integrate hosted renewal control acceptance
ZingerLittleBee Oct 5, 2026
d133d03
fix(web): preserve renewal edit intent during catalog updates
ZingerLittleBee Oct 5, 2026
ab09146
chore(renewal): merge native validation into web refresh
ZingerLittleBee Oct 5, 2026
2510b8e
feat(renewal): refresh committed occurrence alerts and retain exact h…
ZingerLittleBee Oct 5, 2026
e9dde2c
fix(web): preserve opened renewal intent across catalog refresh
ZingerLittleBee Oct 5, 2026
8dac94d
fix(renewal): preserve consumed legacy reminders and recovery cycles
ZingerLittleBee Oct 5, 2026
88fc17f
style(renewal): simplify recovered occurrence admission
ZingerLittleBee Oct 5, 2026
d100194
fix(renewal): preserve local day and committed rule admission
ZingerLittleBee Oct 5, 2026
511215d
feat(renewal): integrate occurrence reminders and refreshed advisories
ZingerLittleBee Oct 5, 2026
90e75d8
fix(ios): start renewal loopback fixture without reverse DNS
ZingerLittleBee Oct 5, 2026
3c18ef3
fix(ios): integrate bounded loopback fixture startup
ZingerLittleBee Oct 5, 2026
66eeda1
fix(ios): isolate renewal UI sessions and tap native switches
ZingerLittleBee Oct 5, 2026
d2ef417
fix(ios): integrate isolated renewal acceptance sessions
ZingerLittleBee Oct 5, 2026
7a35ce2
fix(ios): scroll timezone menu and dismiss renewal calendar
ZingerLittleBee Oct 5, 2026
8a6c1a0
fix(ios): integrate renewal popup interactions
ZingerLittleBee Oct 5, 2026
4d0f147
fix(ios): drag across the visible timezone menu
ZingerLittleBee Oct 5, 2026
99f9eb1
fix(ios): integrate visible timezone menu drag
ZingerLittleBee Oct 5, 2026
d82ed70
fix(ios): make billing timezone selection searchable
ZingerLittleBee Oct 6, 2026
29a91c6
fix(ios): integrate searchable billing timezone selection
ZingerLittleBee Oct 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions .github/workflows/ci-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ name: CI iOS

on:
push:
branches: [main]
# Validate native changes on the renewal integration branch before its PR.
branches: [main, feat/renewal-tracking-integration]
paths:
- 'apps/ios/**'
- 'tests/fixtures/push*-envelope-v1.json'
- 'tests/check-push-secret-boundaries.py'
- 'scripts/ios-install.sh'
- 'scripts/ios-renewal-ui-check.sh'
- 'tests/fixtures/ios-renewal-http.py'
- 'tests/check-ios-renewal-*.py'
- 'crates/server/**'
- 'apps/push-relay/**'
- 'bun.lock'
Expand All @@ -20,6 +24,9 @@ on:
- 'tests/fixtures/push*-envelope-v1.json'
- 'tests/check-push-secret-boundaries.py'
- 'scripts/ios-install.sh'
- 'scripts/ios-renewal-ui-check.sh'
- 'tests/fixtures/ios-renewal-http.py'
- 'tests/check-ios-renewal-*.py'
- 'crates/server/**'
- 'apps/push-relay/**'
- 'bun.lock'
Expand All @@ -38,6 +45,8 @@ jobs:
- uses: actions/checkout@v4
- name: Check official app identity and Keychain group configuration
run: python3 tests/check-push-secret-boundaries.py --static-only
- name: Validate renewal fixture startup and native result gates
run: python3 tests/check-ios-renewal-harness.py
- uses: actions/setup-node@v4
with:
node-version: 24
Expand Down Expand Up @@ -65,7 +74,6 @@ jobs:
path: ${{ runner.temp }}/push-traces
if-no-files-found: error
retention-days: 1

test:
name: iOS Test
needs: push-trace
Expand Down Expand Up @@ -99,3 +107,31 @@ jobs:
action: test
working-directory: apps/ios
trust-plugins: true
verbosity: verbose

- name: Preserve native test results
if: always()
uses: actions/upload-artifact@v4
with:
name: ios-native-tests-${{ github.sha }}
path: apps/ios/test.xcresult
if-no-files-found: error
retention-days: 1

- name: Validate native units and run renewal controls on installed Simulator
if: ${{ !cancelled() }}
timeout-minutes: 25
env:
SERVERBEE_RENEWAL_EVIDENCE_DIR: ${{ runner.temp }}/serverbee-renewal-ui
RENEWAL_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
RENEWAL_PR_MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }}
run: bash ../../scripts/ios-renewal-ui-check.sh

- name: Preserve renewal Simulator acceptance evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: ios-renewal-ui-${{ github.sha }}
path: ${{ runner.temp }}/serverbee-renewal-ui
if-no-files-found: error
retention-days: 7
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ jobs:
--test router_monitoring
--test router_probes_extra
--test router_security_rate
--test renewal_dates
--test renewal_edits
--test renewal_projection
--test renewal_reminders
--test router_server_crud
--test router_server_extra
--test router_server_extra2
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- **Renewal reminders follow each current occurrence** -- Expiration rules in once mode admit one durable reminder per rule, server and renewal occurrence, including consecutive monthly deadlines inside the same reminder window. Automatic calendar advancement silently supersedes old targets, and authenticated Web and native iOS views refresh deadlines, alert history and cost advisories

- **Opt-in automatic renewal tracking** -- Web and native iOS administrators can enable anchored monthly, quarterly or yearly expiry forecasts. The Server catches up after downtime while the Agent is offline, preserves confirmed expiry history and freezes the same projected deadline when tracking is disabled. Forecasts do not confirm provider renewal or payment

- **Billing-calendar renewal dates** -- Web and native iOS administrators can edit a local expiry date in its stored IANA billing timezone. The Server preserves historical expiry instants on unchanged saves and applies the complete local expiry day to explicit date changes

### Fixed

- **IP Quality capability guidance matches Agent-owned permissions** -- A compact disabled notice opens a dialog explaining permanent configuration and temporary host-local grants instead of pointing to a nonexistent server-side toggle. Each command has a copy button with clipboard feedback. Manual checks use the Agent-reported capability, and an unavailable report is shown separately from a disabled capability
Expand Down
8 changes: 8 additions & 0 deletions apps/docs/content/docs/en/alerts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ Each alert rule specifies which servers it applies to:
- Sends a notification only on the **first trigger**.
- No further notifications are sent until the condition recovers and triggers again.

### Renewal Expiration Reminders

For a server with a stored renewal occurrence, an expiration rule in `once` mode sends at most one reminder for each rule, server and occurrence. A new monthly deadline can therefore send its own reminder even when a 60-day window stays continuously true. Retries, Server restart and disabling automatic tracking do not resend the same occurrence.

The threshold uses the stored billing timezone's local expiry date. A zero-day reminder remains eligible throughout that date. Automatic tracking catches up to the current deadline after downtime without sending a backlog for missed occurrences. Previous automatic targets appear as **Superseded** in alert history; advancement sends no recovery notification and does not confirm provider renewal, payment or service availability. An explicitly edited date or a condition that stops matching can still produce the normal recovery transition.

Authenticated Web and native iOS views refetch the Server-owned deadline, alert history and cost advisories after catalog changes and reconnects. Clients do not calculate recurring deadlines.

### State Persistence

Trigger state is persisted to the `alert_states` table in SQLite and loaded into a hot cache on startup. As a result:
Expand Down
8 changes: 8 additions & 0 deletions apps/docs/content/docs/zh/alerts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,14 @@ Alerts 页面为 `capability_grant_detected`(「临时授予能力」)提供
- 仅在**首次触发**时发送通知。
- 在条件恢复并再次触发之前,不会发送后续通知。

### 续期到期提醒

对于已保存续期周期标识的服务器,`once` 到期规则按规则、服务器和当前续期周期最多发送一次提醒。因此,即使 60 天提醒窗口持续满足条件,新的每月到期日仍可发送自己的提醒。重试、Server 重启或关闭自动追踪不会重复提醒同一周期。

到期阈值使用已保存账单时区的本地到期日期。零天提醒在该日期全天有效。停机后,自动追踪直接推进到当前到期日,不补发错过周期的历史提醒。旧的自动目标在告警历史中显示为**已替代**;日历推进不会发送恢复通知,也不代表服务商已续期、已付款或服务已恢复。明确修改日期或告警条件不再满足时,仍可发生正常的恢复转换。

收到目录变更或重新连接后,已认证的 Web 与原生 iOS 页面会重新获取 Server 管理的到期日、告警历史和费用建议。客户端不计算周期到期日。

### 状态持久化

告警触发状态会持久化到 SQLite 的 `alert_states` 表,并在启动时加载到热缓存。因此:
Expand Down
8 changes: 6 additions & 2 deletions apps/ios/ServerBee/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ struct ContentView: View {
Task { await alertsViewModel.handleWSAlertEvent(apiClient: apiClient) }
},
security: { broadcast in securityFeed?.ingest(broadcast) },
upgrades: { msg in ContentView.applyUpgrade(msg, to: upgradeJobs) }
upgrades: { msg in ContentView.applyUpgrade(msg, to: upgradeJobs) },
catalogRefresh: { ids in
await serversViewModel.refreshCatalog(serverIds: ids, apiClient: apiClient)
await alertsViewModel?.fetchEvents(apiClient: apiClient)
}
)
router.dispatch(message)
await router.dispatchAndRefresh(message)
}
}
if let context = auth.captureContext() {
Expand Down
223 changes: 223 additions & 0 deletions apps/ios/ServerBee/Localizable.xcstrings
Original file line number Diff line number Diff line change
@@ -1,6 +1,166 @@
{
"sourceLanguage": "en",
"strings": {
"Superseded": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "已被替代"
}
}
}
},
"A newer renewal deadline superseded this reminder.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "新的续费截止日期已替代此提醒。"
}
}
}
},
"Renewal": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "续费"
}
}
}
},
"Automatic renewal": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "自动续费"
}
}
}
},
"Automatic renewal requires an expiry date.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "自动续费需要到期日期。"
}
}
}
},
"Automatic renewal requires a monthly, quarterly, or yearly cycle.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "自动续费需要按月、季度或年计费。"
}
}
}
},
"Advance the forecast after each renewal date. Turning this off freezes the current deadline.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "每个续费日期结束后推进预测日期。关闭此项将冻结当前期限。"
}
}
}
},
"Automatic renewal advances a forecast after the expiry day ends. Provider renewal and payment remain your responsibility.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "自动续费在到期日结束后推进预测日期。服务商的续费和付款仍需您自行处理。"
}
}
}
},
"Saved renewal deadline": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "已保存的续费期限"
}
}
}
},
"Last confirmed expiry": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "上次确认的到期日期"
}
}
}
},
"Confirmed renewal deadline": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "已确认的续费期限"
}
}
}
},
"Projected renewal deadline": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "预测的续费期限"
}
}
}
},
"Frozen renewal deadline": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "已冻结的续费期限"
}
}
}
},
"This deadline was recorded by an operator from provider information.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "此期限由管理员根据服务商信息记录。"
}
}
}
},
"This deadline is a forecast. It does not confirm provider renewal or payment.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "此期限为预测日期,并不确认服务商已续费或收款。"
}
}
}
},
"Automatic renewal is off. This forecast is frozen; it does not confirm provider renewal or payment.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "自动续费已关闭。此预测日期已冻结,并不确认服务商已续费或收款。"
}
}
}
},
"Selected session": {
"localizations": {
"zh-Hans": {
Expand Down Expand Up @@ -14530,6 +14690,23 @@
}
}
},
"Search billing timezones": {
"extractionState": "manual",
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "Search billing timezones"
}
},
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "搜索账单时区"
}
}
}
},
"Search name, IP, tag": {
"extractionState": "manual",
"localizations": {
Expand Down Expand Up @@ -18721,6 +18898,52 @@
}
}
}
},
"Billing timezone": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "账单时区"
}
}
}
},
"Choose a valid billing timezone.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "请选择有效的账单时区。"
}
}
}
},
"Valid through the selected date in the billing timezone.": {
"localizations": {
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "在账单时区内,有效期持续至所选日期结束。"
}
}
}
},
"The renewal deadline is separate from the cost estimation period.": {
"localizations": {
"en": {
"stringUnit": {
"state": "translated",
"value": "The renewal deadline is separate from the cost estimation period."
}
},
"zh-Hans": {
"stringUnit": {
"state": "translated",
"value": "续费到期日独立于费用估算周期。"
}
}
}
}
},
"version": "1.0"
Expand Down
Loading
Loading