Skip to content

v4: add operator overview activity and settings - #55

Merged
Phloraxx merged 3 commits into
mainfrom
v4/operator-state
Sep 1, 2026
Merged

v4: add operator overview activity and settings#55
Phloraxx merged 3 commits into
mainfrom
v4/operator-state

Conversation

@Phloraxx

@Phloraxx Phloraxx commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Scope

Thirteenth stacked PayGate v4 implementation slice. Depends on PR #54.

Implements

  • shared operator Overview model for web + Android
  • India-local reporting-day boundaries for UPI operations
  • collected-today, payments-today, paid-today, pending, expired-today and all-status counts
  • seven-day paid-volume trend
  • active collection profile, relay connection/last-seen/app-version summary
  • pending/exhausted/last-successful webhook summary
  • unified Activity feed combining payment history, normalized incoming-payment observations and webhook delivery state
  • persisted webhook endpoint/signing-secret settings in SQLite
  • signing secret is generated server-side and returned only on first configuration/rotation; ordinary settings reads expose only secretConfigured
  • disabling the webhook persists an explicit disabled state
  • webhook worker config can be updated atomically at runtime; worker stays alive while unconfigured so enabling later does not require restart
  • persisted webhook settings can be applied to a fresh worker at startup

Tests

Covers India-local Overview counts/volume, active profile/relay summary, combined Activity kinds, generated/hidden/rotated webhook secret, live worker update and disable behavior. Full internal/v4/... unit tests, race tests, vet and diff checks pass locally.

Safety

No production route registration or UI cutover yet. SQLite remains the sole v4 state source.

@Phloraxx
Phloraxx changed the base branch from v4/webhooks to main September 1, 2026 06:27
@Phloraxx
Phloraxx marked this pull request as ready for review September 1, 2026 06:28
# Conflicts:
#	internal/v4/webhooks/service.go
@Phloraxx
Phloraxx merged commit bdac6ea into main Sep 1, 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.

1 participant