hub v0.51.0: DR-tier-by-default — per-customer dr_tier flag (default ON, legacy backfill from reality), cascade stages, WG-registration auto-provision hook, offsite-requires-DR guard (F-6 policy), host-page capability chips (inactive=neutral)

Claude-Session: https://claude.ai/code/session_01NptTCFtu7dz2Ru89qHRagN
This commit is contained in:
2026-07-12 20:37:00 +02:00
parent 007946faf4
commit 448a68237a
18 changed files with 824 additions and 87 deletions
+2 -1
View File
@@ -225,10 +225,11 @@ func TestCustomerActions_RedirectAnchors(t *testing.T) {
cfg := &store.CustomerConfig{
CustomerID: "c1", CustomerName: "Acme", Domain: "acme.hu",
RetrievalPassword: "pw", APIKey: "k", Status: "active", ConfigJSON: "{}",
DRTier: true, // offsite requires the DR tier since v0.51.0 (the F-6 coupling)
}
// Provision the shared offsite tier through the real applyOffsite leg so reissue/freeze
// find exactly one labelled sub-account.
r := postForm("/configs/c1/edit", "offsite_enabled=on&offsite_type=shared&offsite_quota_gb=50")
r := postForm("/configs/c1/edit", "dr_tier=on&offsite_enabled=on&offsite_type=shared&offsite_quota_gb=50")
if err := s.applyOffsite(r.Context(), r, cfg); err != nil {
t.Fatalf("provision: %v", err)
}