major fixes

This commit is contained in:
2026-08-22 18:51:17 +02:00
parent 0ff24b1534
commit 0c154254c3
36 changed files with 2212 additions and 42 deletions
+4
View File
@@ -58,6 +58,10 @@ type CreditsOverview struct {
Sections map[string]bool `json:"sections,omitempty"`
DisabledFeatures []string `json:"disabled_features,omitempty"`
FeatureETag string `json:"feature_etag,omitempty"`
// Per-member access overlay (settings > team). Set by the /me handler so the
// dashboard can say "ask your administrator" rather than "upgrade your plan".
MemberRestricted bool `json:"member_restricted,omitempty"`
MemberDeniedFeatures []string `json:"member_denied_features,omitempty"`
}
func (s *Service) CreditsOverview(ctx context.Context, companyID uuid.UUID, lowThreshold int) (CreditsOverview, error) {