-
-
Notifications
You must be signed in to change notification settings - Fork 0
Destinations Fast Facts Block Variation #388
Copy link
Copy link
Labels
comp:block-variationsBlock variationsBlock variationsstatus:needs-devEarly execution signal (triage queue for engineering)Early execution signal (triage queue for engineering)
Milestone
Description
Title: Fast Facts Block for Single Country and Single Region Templates
Description:
The Single Country and Single Region (commonly called Destinations) templates will include a Fast Facts section that displays key information. This block will consist of Row Blocks with icons, labels, and either custom fields or dynamically populated data. If a custom field is empty, the corresponding row should not display. Each template will have slightly different content requirements, detailed below.
Requirements:
Single Country Template Fast Facts:
- Regions: A list of regions within the country, dynamically populated from the child elements of the country (not a bound custom field).
- Travel Styles: A list pointing to the Travel Styles custom taxonomy (not a bound custom field).
Single Region Template Fast Facts:
- Country: The country that the region belongs to, dynamically linked to the parent of the region (not a bound custom field).
- Travel Styles: A list pointing to the Travel Styles custom taxonomy.
- Spoken Languages: A bound custom field listing the languages spoken in the region.
Block Structure:
- The block will be a Group Block containing Row Blocks for each fact.
- Each Row Block will contain:
- An icon.
- A label.
- A dynamically populated field or bound custom field displaying the relevant information.
Conditional Display:
- If any custom field is empty, the entire Row Block should not display.
Block Behaviour:
- The block should be locked from insert, meaning no new rows can be added by users.
- The rows should be rearrangeable, allowing users to change the order of the facts.
- The block should only be allowed inside the Single Post Template.
Styling:
- The block should allow customisation of:
- Spacing and positioning.
- Typography (font size, style, etc.).
- Background colour.
- Text colour.
Acceptance Criteria:
- A Fast Facts block is developed for both the Single Country and Single Region templates.
- The Single Country block displays the Regions (pulled from child elements) and Travel Styles.
- The Single Region block displays the Country (linked to the parent), Travel Styles, and Spoken Languages.
- No empty rows are displayed if a field is empty.
- The block is locked from insert, rearrangeable, and only allowed inside the Single Post template.
- Custom styling options for spacing, typography, background, and text colour are available.
Additional Notes:
- Test thoroughly to ensure that data is populated correctly and no empty rows are visible.
- Ensure the block behaves correctly within the Single Post template and is not allowed in other contexts.
Resources:
Images:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
comp:block-variationsBlock variationsBlock variationsstatus:needs-devEarly execution signal (triage queue for engineering)Early execution signal (triage queue for engineering)
Type
Projects
Status
✅ Done