Skip to content

feat(reg-lite): wire REG_LITE_NO_TICKETS_AVAILABLE_MESSAGE to marketing-api#205

Merged
gcutrini merged 1 commit into
mainfrom
feature/reg-lite-no-tickets-available-marketing-key
May 27, 2026
Merged

feat(reg-lite): wire REG_LITE_NO_TICKETS_AVAILABLE_MESSAGE to marketing-api#205
gcutrini merged 1 commit into
mainfrom
feature/reg-lite-no-tickets-available-marketing-key

Conversation

@JpMaxMan

Copy link
Copy Markdown
Contributor

Summary

  • Adds regLiteNoTicketsAvailableMessage key (REG_LITE_NO_TICKETS_AVAILABLE_MESSAGE) to MARKETING_SETTINGS_KEYS in useMarketingSettings.js
  • Fetches the value in useRegistrationWidgetProps.js and passes it through to the widget as noTicketsAvailableMessage
  • Matches the existing pattern for REG_LITE_NO_ALLOWED_TICKETS_MESSAGE — no new patterns introduced

Without this, the "There are no tickets currently available for purchase. If you have a promo code, enter it below to check for eligible tickets." message shown when no ticket types are purchasable could not be overridden per-summit via marketing-api, despite the widget prop existing for exactly this purpose.

How to test

  1. In marketing-api, set REG_LITE_NO_TICKETS_AVAILABLE_MESSAGE for a summit to a custom string
  2. Open the registration widget for that summit with no purchasable ticket types available
  3. Confirm the custom message displays instead of the i18n default

No-op if key not set

If REG_LITE_NO_TICKETS_AVAILABLE_MESSAGE is not present in marketing-api for the summit, getSettingByKey returns undefined and the widget falls back to the i18n default — identical behaviour to before this change.

🤖 Generated with Claude Code

@netlify

netlify Bot commented May 27, 2026

Copy link
Copy Markdown

Deploy Preview for qa-fnvirtual ready!

Name Link
🔨 Latest commit 532ee52
🔍 Latest deploy log https://app.netlify.com/projects/qa-fnvirtual/deploys/6a1779ca8daeec0008354135
😎 Deploy Preview https://deploy-preview-205--qa-fnvirtual.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JpMaxMan JpMaxMan requested a review from gcutrini May 27, 2026 22:34

@gcutrini gcutrini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…ng-api

Exposes the "no tickets currently available" widget message as a
per-summit override via marketing-api, matching the existing pattern
for REG_LITE_NO_ALLOWED_TICKETS_MESSAGE. Without this the widget always
falls back to the i18n default regardless of what is set in marketing-api.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@gcutrini gcutrini force-pushed the feature/reg-lite-no-tickets-available-marketing-key branch from be660a2 to 532ee52 Compare May 27, 2026 23:10
@gcutrini gcutrini merged commit a684a78 into main May 27, 2026
5 of 6 checks passed
@gcutrini gcutrini deleted the feature/reg-lite-no-tickets-available-marketing-key branch May 27, 2026 23:10
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.

2 participants