feat: add SQL query tool, platform debug, loyalty settings, and multi-module improvements
Some checks failed
Some checks failed
- Add admin SQL query tool with saved queries, schema explorer presets, and collapsible category sections (dev_tools module) - Add platform debug tool for admin diagnostics - Add loyalty settings page with owner-only access control - Fix loyalty settings owner check (use currentUser instead of window.__userData) - Replace HTTPException with AuthorizationException in loyalty routes - Expand loyalty module with PIN service, Apple Wallet, program management - Improve store login with platform detection and multi-platform support - Update billing feature gates and subscription services - Add store platform sync improvements and remove is_primary column - Add unit tests for loyalty (PIN, points, stamps, program services) - Update i18n translations across dev_tools locales Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,7 @@ class ProgramStatsResponse(BaseModel):
|
||||
# Cards
|
||||
total_cards: int = 0
|
||||
active_cards: int = 0
|
||||
new_this_month: int = 0
|
||||
|
||||
# Stamps (if enabled)
|
||||
total_stamps_issued: int = 0
|
||||
@@ -250,6 +251,7 @@ class ProgramStatsResponse(BaseModel):
|
||||
# Points (if enabled)
|
||||
total_points_issued: int = 0
|
||||
total_points_redeemed: int = 0
|
||||
total_points_balance: int = 0
|
||||
points_this_month: int = 0
|
||||
points_redeemed_this_month: int = 0
|
||||
|
||||
@@ -257,6 +259,12 @@ class ProgramStatsResponse(BaseModel):
|
||||
cards_with_activity_30d: int = 0
|
||||
average_stamps_per_card: float = 0.0
|
||||
average_points_per_card: float = 0.0
|
||||
avg_points_per_member: float = 0.0
|
||||
|
||||
# 30-day metrics
|
||||
transactions_30d: int = 0
|
||||
points_issued_30d: int = 0
|
||||
points_redeemed_30d: int = 0
|
||||
|
||||
# Value
|
||||
estimated_liability_cents: int = 0 # Unredeemed stamps/points value
|
||||
|
||||
Reference in New Issue
Block a user