feat: convert instructions audio into a Trip experience served by the Experiences API - #310
Merged
Conversation
…lidation on staging - Look up purchases by external_reference (our purchase UUID) instead of mismatched MP payment/preference IDs — fixes 'Payment not found' error - Made externalReference required in WebhookResult interface - Enable MP signature validation on staging (MP_BYPASS_SIGNATURE = false) Closes #307
…wHomeInstructions flag
…graph git ignore rules
…t endpoints
back_urls now always point to the API's HTTPS origin so Mercado
Pago auto_return works with any redirect URL scheme (deep link,
web, etc.). The original redirect URL is stored in purchase
metadata, and new GET /payments/return/:status/:purchaseId
endpoints 302 the browser back to the app's deep link.
Also includes:
- refactor(cors): simplify configureCors wrapper — reads all
env vars from c.env per request, uses Hono's cors() natively
- refactor(audio): extract shared streaming helpers
- chore: bucket binding rename BUCKET -> PRIVATE_BUCKET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #309
Summary
instrucciones.mp3) en un Trip first-class servido por la Experiences APIsonora-public-audio-staging) para contenido gratuito, sin authGET /audio/public/:keyen la APIuseInstructionsAudiocon resolución API + fallbackshowHomeInstructionsen remote config controla visibilidad en homeCLIENT_API_KEYen/audio/streamChanges
packages/shared/src/experiences.tspackages/shared/src/locales/en.tsonboardinglabelpackages/shared/src/locales/es.tsonboardinglabelpackages/shared/src/schemas/config.tsshowHomeInstructionsflagapps/api/src/db/seed.tsapps/api/src/routes/audio.ts/audio/public/:keyroute, remove client key bypassapps/api/src/index.tsPUBLIC_BUCKETtoEnvapps/api/wrangler.staging.tomlPUBLIC_BUCKETbindingapps/api/wrangler.tomlPUBLIC_BUCKETbindingapps/mobile/src/hooks/use-instructions-audio.tsapps/mobile/src/components/home-audio-player.tsxuseInstructionsAudiohookapps/mobile/src/config/app-config.ts/audio/public/...apps/mobile/src/data/experiences.tsapps/mobile/src/constants/images.tstrip-instructions-covermappingapps/mobile/src/store/remote-config-store.tsshowHomeInstructionsto initial configapps/mobile/src/app/(tabs)/index.tsxHomeAudioPlayerapps/mobile/src/components/track-map.tsxMakefileTest Plan
make test-front— 480 passedmake test-back— 183 passedmake test-shared— 96 passed