Skip to content

Conversation

@vsilent
Copy link
Collaborator

@vsilent vsilent commented Feb 11, 2026

Step 0: Pricing persistence

  • Add price (DOUBLE PRECISION), billing_cycle, currency columns to stack_template
  • Accept plan_type, price, currency in CreateTemplateRequest and UpdateTemplateRequest
  • Store pricing in create_draft() and update_metadata() DB functions
  • Migration: 20260211100000_add_pricing_to_stack_template

Step 1: Fix vendor_name bug

  • Webhook now sends template.creator_name instead of user ID string

Step 2: Enrich webhook payload

  • Add long_description, tech_stack, creator_name, deploy_count, view_count, approved_at, required_plan_name fields to MarketplaceWebhookPayload
  • Send actual price/billing_cycle/currency from DB instead of hardcoded None
  • Both send_template_approved and send_template_updated updated

Note: sqlx offline cache (.sqlx/) needs regeneration after migration.
Run: cargo sqlx prepare -- --lib

Step 0: Pricing persistence
- Add price (DOUBLE PRECISION), billing_cycle, currency columns to stack_template
- Accept plan_type, price, currency in CreateTemplateRequest and UpdateTemplateRequest
- Store pricing in create_draft() and update_metadata() DB functions
- Migration: 20260211100000_add_pricing_to_stack_template

Step 1: Fix vendor_name bug
- Webhook now sends template.creator_name instead of user ID string

Step 2: Enrich webhook payload
- Add long_description, tech_stack, creator_name, deploy_count, view_count,
  approved_at, required_plan_name fields to MarketplaceWebhookPayload
- Send actual price/billing_cycle/currency from DB instead of hardcoded None
- Both send_template_approved and send_template_updated updated

Note: sqlx offline cache (.sqlx/) needs regeneration after migration.
Run: cargo sqlx prepare -- --lib
@vsilent vsilent merged commit e8d6d6b into dev Feb 11, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant