Restore staging payment and package management #1

Merged
root merged 49 commits from delivery/payment-package-epay into main 2026-07-30 10:05:54 +08:00

49 Commits

Author SHA1 Message Date
linmeng d3c806cb60 Merge staging admin payment permissions 2026-07-30 10:01:36 +08:00
linmeng d44a41408b fix: grant staging admin payment access
Deploy staging to test server / deploy (push) Successful in 3m34s
Add the missing least-privilege grants and RLS policies so self-hosted admin payment and package APIs can use the admin_runtime database role.
2026-07-30 10:01:17 +08:00
linmeng c88a4eef8f Merge staging payment and package fixes 2026-07-30 09:34:55 +08:00
linmeng dd8e2ad9c7 fix: restore staging package and epay management
Deploy staging to test server / deploy (push) Successful in 3m42s
Use direct PostgreSQL access for package and Z-Pay administration so self-hosted staging can load and save settings reliably, while restoring admin scrolling and default channel collapse.
2026-07-30 09:33:41 +08:00
linmeng 3fb635be1b fix: restore staging payment management
Deploy staging to test server / deploy (push) Successful in 9m55s
Use self-hosted PostgreSQL for payment records and expose separate package and Z-Pay flows so administrators and chat users can complete the payment journey reliably.
2026-07-29 17:45:49 +08:00
linmeng c11f3b109e ci: retry staging web build
Deploy staging to test server / deploy (push) Has been cancelled
2026-07-29 16:50:46 +08:00
linmeng 4a044570b2 fix: refresh server-only integrity
Deploy staging to test server / deploy (push) Successful in 3m14s
2026-07-29 16:46:54 +08:00
linmeng d956da2993 feat: manage epay settings securely
Deploy staging to test server / deploy (push) Failing after 5m31s
2026-07-29 16:36:35 +08:00
linmeng 9a20b748e0 feat: unify payment administration
Deploy staging to test server / deploy (push) Successful in 3m28s
2026-07-29 13:40:10 +08:00
linmeng 43c8b59c24 fix: expose payment admin navigation
Deploy staging to test server / deploy (push) Successful in 2m59s
2026-07-29 13:13:47 +08:00
linmeng 9184ea294d ci: retry header admin deployment
Deploy staging to test server / deploy (push) Successful in 4m12s
2026-07-29 12:48:15 +08:00
linmeng ce4054fb78 feat: move admin entry to header
Deploy staging to test server / deploy (push) Successful in 3m5s
2026-07-29 12:44:31 +08:00
linmeng 435e628806 ci: trigger recovered staging runner
Deploy staging to test server / deploy (push) Successful in 3m22s
2026-07-29 11:35:06 +08:00
linmeng 2f2b174822 ci: retry single-domain staging deploy
Deploy staging to test server / deploy (push) Has been cancelled
2026-07-29 11:32:39 +08:00
linmeng 248e1b8a07 fix: unify staging admin access
Deploy staging to test server / deploy (push) Successful in 3m16s
2026-07-29 11:28:15 +08:00
linmeng 5b5f72d403 ci: retry staging deployment
Deploy staging to test server / deploy (push) Successful in 2m7s
2026-07-29 10:20:32 +08:00
linmeng 2dac8bc47b fix: expose staging admin entry
Deploy staging to test server / deploy (push) Successful in 3m11s
Use persisted self-hosted roles and the isolated admin origin so authorized staging accounts can discover the protected admin surface.
2026-07-29 10:14:39 +08:00
linmeng f7fd3e6a60 Merge remote-tracking branch 'origin/main' into staging
Deploy staging to test server / deploy (push) Successful in 10m13s
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/src/app/admin/codes/page.tsx
#	frontend/src/app/admin/layout.tsx
#	frontend/src/app/api/admin/codes/route.ts
#	frontend/src/app/api/admin/users/route.ts
#	frontend/src/lib/supabase/admin.ts
#	frontend/tests/staging-backend-workflows.test.ts
2026-07-29 09:32:29 +08:00
linmeng f430ebd2c8 docs: record successful staging rollout 2026-07-28 18:09:44 +08:00
linmeng a7ff511f55 fix: preserve staging compose images
Deploy staging to test server / deploy (push) Successful in 5m38s
2026-07-28 17:59:55 +08:00
linmeng 859ff26510 fix: deploy into root-owned staging tree
Deploy staging to test server / deploy (push) Failing after 2m13s
2026-07-28 17:53:07 +08:00
linmeng 8de49e60fd fix: close payment QR condition
Deploy staging to test server / deploy (push) Failing after 5m50s
2026-07-28 17:41:59 +08:00
linmeng 56f0ee089b fix: bound Gitea checkout latency
Deploy staging to test server / deploy (push) Failing after 7m40s
2026-07-28 17:25:44 +08:00
linmeng d81713527b fix: accelerate staging apt installs
Deploy staging to test server / deploy (push) Has been cancelled
2026-07-28 17:21:32 +08:00
linmeng e1fb1777ec fix: accelerate staging Python installs
Deploy staging to test server / deploy (push) Has been cancelled
2026-07-28 17:07:32 +08:00
linmeng 31aa75f409 fix: use reachable staging base images
Deploy staging to test server / deploy (push) Has been cancelled
2026-07-28 16:24:12 +08:00
linmeng 9837033e4b fix: simplify Gitea staging deployment
Deploy staging to test server / deploy (push) Failing after 5m2s
2026-07-28 15:58:33 +08:00
Jesse 2da848a1d9 docs: configure agent engineering workflows 2026-07-28 14:40:24 +08:00
Jesse_Chen 75b217273b ops: add guarded staging account reset 2026-07-28 14:24:53 +08:00
Jesse_Chen 092efa0ed2 ops: manage staging rectification rollout 2026-07-28 13:48:29 +08:00
Jesse_Chen 8ade6ed5c8 refactor: rebuild birth time rectification agent 2026-07-28 13:04:30 +08:00
Jesse ac5aef5f89 docs: record final staging admin delivery 2026-07-28 11:32:16 +08:00
Jesse 5206fb2323 fix(admin): keep root redirect on public host 2026-07-28 11:10:24 +08:00
linmeng d94bc53e04 fix: restore cross-platform quality gate
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 8m59s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
2026-07-28 10:52:52 +08:00
Jesse f950bfd8da docs: record staging controller blocker 2026-07-28 10:24:31 +08:00
Jesse 218cee579e fix(admin): preserve capability route contract 2026-07-28 10:04:36 +08:00
Jesse 635c91920c docs: record staging admin delivery state 2026-07-28 09:47:13 +08:00
Jesse 02ec5db361 feat(admin): add audited Refine staging console 2026-07-28 09:47:13 +08:00
linmeng 7a36169f5d fix: avoid Docker Hub timeout in Gitea builds
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 9m1s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
2026-07-28 09:37:32 +08:00
linmeng f711e77849 fix: isolate Gitea Python dependencies
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Successful in 20m16s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Failing after 5m23s
Run Python tooling in repository virtual environments so xiaoxin respects the PEP 668 system package boundary.
2026-07-27 21:23:29 +08:00
linmeng 1b8d6fcce6 feat: add configurable payments and Gitea staging delivery
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 5m10s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
Add database-backed administrators, configurable Alipay packages, idempotent payment settlement and platform reporting. Standardize Gitea workflows on the xiaoxin runner so reviewed staging commits are tested, packaged, and deployed by immutable image digest.
2026-07-27 20:19:05 +08:00
linmeng 9dc115509e fix: use python3 on xiaoxin
Staging Backend Quality Gate / validate (push) Failing after 4m46s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
2026-07-27 18:16:15 +08:00
linmeng e1ae5feaf6 fix: export Gitea run context
Staging Backend Quality Gate / validate (push) Failing after 3m48s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
2026-07-27 17:58:18 +08:00
linmeng 1f776bb99d fix: checkout from Gitea repository URL
Staging Backend Quality Gate / validate (push) Failing after 1s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
2026-07-27 17:55:31 +08:00
linmeng 848e599333 fix: remove GitHub action dependencies
Staging Backend Quality Gate / validate (push) Failing after 1s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
2026-07-27 17:51:37 +08:00
linmeng b6fecb01d7 fix: run staging automation on xiaoxin
Staging Backend Quality Gate / validate (push) Failing after 5m10s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
Move validation and immutable ACR deployment to the online Linux runner and restore Bash-native deployment handling.
2026-07-27 17:42:20 +08:00
linmeng 68c97fe19b fix: target registered Windows runner
Match staging validation and deployment jobs to the runner label registered in Gitea.
2026-07-27 13:03:07 +08:00
linmeng 742f8f48b2 feat: automate staging deploy from Windows Gitea runner
Build immutable API and web images in Aliyun ACR after staging validation, then deploy them safely to the staging host.
2026-07-27 11:54:45 +08:00
linmeng d5334ebecb Resolve merge conflicts with upstream - keep GitHub versions 2026-07-27 09:29:58 +08:00