title: "Block Audit: checkin-time & checkout-time blocks (Accommodation post type meta & icons integration)"
issue: 644
post_types:
- accommodation
blocks:
- lsx/checkin-time
- lsx/checkout-time
dependencies:
- icons block
category: block-audit
author: tibiii
related_prs:
- 613
labels:
- enhancement
- block
- audit
Overview
- Block name/slug:
lsx/checkin-time, lsx/checkout-time
- Type: Static
- InnerBlocks: Yes
- Templates/Patterns using this block: Used in Accommodation templates/patterns.
- Icon usage: Replace inline image (currently using URL
lsxToEditor.assetsUrl + 'blocks/check-in-check-out-time.svg') with the new icons block, following the standard for icon rendering.
- Dependencies: Should appear only when editing Accommodation 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 accommodation, and robust supports.
- Only available for
accommodation post type via postTypes meta.
Registration
- Register server-side with
register_block_type( __DIR__ . '/build/blocks/checkin-time' ) and similarly for checkout-time.
- 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 both blocks.
Done When
This issue is based on improvements made in PR #613 (Standardize block metadata).
title: "Block Audit: checkin-time & checkout-time blocks (Accommodation post type meta & icons integration)"
issue: 644
post_types:
blocks:
dependencies:
category: block-audit
author: tibiii
related_prs:
labels:
Overview
lsx/checkin-time,lsx/checkout-timelsxToEditor.assetsUrl + 'blocks/check-in-check-out-time.svg') with the newiconsblock, 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 accommodation, and robustsupports.accommodationpost type viapostTypesmeta.Registration
register_block_type( __DIR__ . '/build/blocks/checkin-time' )and similarly for checkout-time.get_block_wrapper_attributes()).Styling migration (CSS ➜ theme.json/selectors)
Inserter Preview
Done When
This issue is based on improvements made in PR #613 (Standardize block metadata).