title: "Block Audit: travel-styles, duration, single-supplement-wrapper, price, tagline (Tour post type meta & icons integration)"
issue: NEW
post_types:
- tour
blocks:
- lsx/travel-styles
- lsx/duration
- lsx/single-supplement-wrapper
- lsx/price
- lsx/tagline
dependencies:
- icons block
category: block-audit
author: tibiii
related_prs:
- 625
labels:
- enhancement
- block
- audit
Overview
- Block name/slug:
lsx/travel-styles, lsx/duration, lsx/single-supplement-wrapper, lsx/price, lsx/tagline
- Type: Static
- InnerBlocks: No
- Templates/Patterns using this block: Used in Tour templates/patterns.
- Icon usage: Replace inline image/icon with the new
icons block, following the standard for icon rendering.
- Dependencies: Should appear only when editing Tour post types (meta visibility restriction).
Block.json (target, API v3)
Provide comprehensive meta, ensuring these blocks:
- Use
apiVersion: 3
- Include fields:
title, description, keywords, icon (via icons block), category, version, textdomain, attributes (with proper types), selectors for post type tour, and robust supports.
- Only available for
tour post type via postTypes meta.
Registration
- Register server-side with
register_block_type( __DIR__ . '/build/blocks/rating' ), etc. for each block.
- Output wrapper attributes (
get_block_wrapper_attributes()).
Styling migration (CSS ➜ theme.json/selectors)
- Map legacy CSS to selectors and theme styles.
- Remove bespoke CSS, retain only minimal component styles.
- Document any required theme.json block settings.
Inserter Preview
- Provide example data and style variation previews for all blocks.
Special Notes
- Rating block: Currently uses hardcoded star icons - migrate to icons block
- Travel classification blocks: All use hardcoded image URLs that should be replaced with icons block integration
- Duration & minimum-child-age: Ensure proper data formatting and display
Block Locking (optional)
- Identify parts to lock (move/remove/edit/content-only) for patterns/templates.
SlotFills (if applicable)
- Note any editor UI extension points required.
Done When
This issue is based on improvements made in PR #613 (Standardize block metadata).
title: "Block Audit: travel-styles, duration, single-supplement-wrapper, price, tagline (Tour post type meta & icons integration)"
issue: NEW
post_types:
blocks:
dependencies:
category: block-audit
author: tibiii
related_prs:
labels:
Overview
lsx/travel-styles,lsx/duration,lsx/single-supplement-wrapper,lsx/price,lsx/taglineiconsblock, following the standard for icon rendering.Block.json (target, API v3)
Provide comprehensive meta, ensuring these blocks:
apiVersion: 3title,description,keywords,icon(via icons block),category,version,textdomain,attributes(with proper types),selectorsfor post type tour, and robustsupports.tourpost type viapostTypesmeta.Registration
register_block_type( __DIR__ . '/build/blocks/rating' ), etc. for each block.get_block_wrapper_attributes()).Styling migration (CSS ➜ theme.json/selectors)
Inserter Preview
Special Notes
Block Locking (optional)
SlotFills (if applicable)
Done When
This issue is based on improvements made in PR #613 (Standardize block metadata).