summaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2025-11-19 17:42:31 -0500
committerBen Sima <ben@bsima.me>2025-11-19 17:42:31 -0500
commitd15f9fbae7ea4cac1e7c06a7d911a3ccfd6ef5ba (patch)
treeef415f0be87b8fd1a561bc97e2a088e30264cdd8 /.envrc
parentd1613e8ed216135924067fe70ece215379203b73 (diff)
Implement usage tracking and limits enforcement
- Fix get_usage() to count from user_episodes table instead of episodes.user_id - Now correctly tracks when episodes are added to user's feed - Handles shared/existing episodes properly (count against the user who added them) - Add comprehensive test suite for usage limits (TestUsageLimits): - test_usage_counts_episodes_added_to_feed - test_usage_counts_existing_episodes_correctly - test_free_tier_limit_enforcement (10 articles) - test_can_submit_blocks_at_limit - test_paid_tier_unlimited - Billing.can_submit() now properly enforces 10 article limit for free tier - Usage tracking via user_episodes.added_at ensures accurate billing Completes t-144eKR1
Diffstat (limited to '.envrc')
0 files changed, 0 insertions, 0 deletions