주요 콘텐츠로 건너뛰기

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 disappears
  • show_default: the hub renders its own default empty state
  • show_message: the hub renders the block's unavailable_title and unavailable_message

Daily rewards and loyalty program blocks default to show_default. Progression program blocks default to hide. Existing pages keep working without changes.

Changes

ResourceChange
create_pageAccepts and returns the new fields on program blocks
update_pageAccepts and returns the new fields on program blocks
bulk_update_pageAccepts and returns the new fields on program blocks
get_pagesReturns the new fields on program blocks
get_pageReturns the new fields on program blocks
translate_pageReturns the new fields on program blocks
ComponentsAdded the ProgramUnavailableBehavior enum

The fields appear on the page's own layout and on its parent layout.

Upgrade

  • No changes needed. Set unavailable_behavior on a block if you want something other than the default empty state.
  • If you use show_message, also set unavailable_title and unavailable_message.

도움이 필요하세요?
통합팀에 문의하십시오 [email protected]