Empty state for program blocks
What's new
Daily rewards, loyalty program, and progression program blocks in a page layout accept three new
optional fields: unavailable_behavior, unavailable_title, and unavailable_message. They control
what the block shows while the hub has no program for the player.
Impact
unavailable_behavior takes one of three values:
hide: the block disappearsshow_default: the hub renders its own default empty stateshow_message: the hub renders the block'sunavailable_titleandunavailable_message
Daily rewards and loyalty program blocks default to show_default. Progression program blocks
default to hide. Existing pages keep working without changes.
Changes
| Resource | Change |
|---|---|
| create_page | Accepts and returns the new fields on program blocks |
| update_page | Accepts and returns the new fields on program blocks |
| bulk_update_page | Accepts and returns the new fields on program blocks |
| get_pages | Returns the new fields on program blocks |
| get_page | Returns the new fields on program blocks |
| translate_page | Returns the new fields on program blocks |
| Components | Added the ProgramUnavailableBehavior enum |
The fields appear on the page's own layout and on its parent layout.
Upgrade
- No changes needed. Set
unavailable_behavioron a block if you want something other than the default empty state. - If you use
show_message, also setunavailable_titleandunavailable_message.
需要技术支持?
联系我们的集成技术团队: [email protected]