Skip to content

feat(promo): Política B — effectivePrice + Appwrite RT (web/Android) - #8

Open
danielitoCode wants to merge 3 commits into
masterfrom
policy/promotions-b
Open

feat(promo): Política B — effectivePrice + Appwrite RT (web/Android)#8
danielitoCode wants to merge 3 commits into
masterfrom
policy/promotions-b

Conversation

@danielitoCode

Copy link
Copy Markdown
Owner

Política B (promociones)

Alineación de clientes con dash_alejo_taller política B:

  • product.price = precio de lista
  • effectivePrice desde promo product_discount activa
  • Banner sin producto permitido
  • Realtime canónico: Appwrite collections.promotions.documents
  • Operador: sin cambios (amount congelado en Sale)

Incluido en este PR (parcial / en progreso)

Web

  • Entity + DTO + mapper (productId, kind, status)
  • Policy doc .policies/notification/PROMOTION_POLICY.md

Android

  • Promotion + PromotionPricing.effectivePrice (shared-core)
  • DTO/mappers ampliados
  • Room v13 (pendiente subir migration file si falta en remote)

Pendiente de completar en la misma rama (workspace local)

Si al revisar faltan archivos, están en el working tree local policy/promotions-b:

  • web/.../PromotionPolicy.ts
  • web/.../appwrite-promotion-realtime.ts
  • web/.../promotion.store.ts (Appwrite RT en lugar de Pusher)
  • ProductCard.svelte + cart.store.ts (unitPrice efectivo)
  • RealTimeManagerImpl.kt (subscribe Appwrite promos)
  • ProductListItem.kt / ProductScreen.kt
  • AppBDMigrations.kt MIGRATION_12_13

Cómo probar

  1. Appwrite: lectura pública/staff de promotions + atributos kind/status opcionales
  2. Crear promo product_discount en panel → clientes deben ver precio efectivo
  3. Banner sin productId → UI avisos, sin cambiar precio

@github-actions

Copy link
Copy Markdown

Qodana for JVM

4 new problems were found

Inspection name Severity Problems
Unstable API Usage 🔶 Warning 4
View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.3.2
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

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