Automattic / Automattic/jetpack
Business Hours Block: include HTML in block editor
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
#### Steps to reproduce the issue
1. Go to Posts > Add New
2. Create a new post, including a business hours block.
3. Once published, the block will be displayed nicely on the frontend.
If however, you do one of the following, you will lose the actual HTML behind the block:
- View the post outside of WordPress, like in a subscription email.
- Try to edit the block's HTML code.
- Deactivate Jetpack.
Ideally, even if it does not keep the whole block's content, we should be able to offer an HTML fallback for this block. It should be more than just a block tag:
```
```
Compare it with a map block for example, that includes some fallback info (a div with an unordered list of links to each marker):
```
```
Contributor guide
Research direction
Start in the Business Hours block editor and compare its saved and rendered output with the map block example, which includes fallback HTML. Check the published post, external rendering, and block HTML-editing paths; done means the business hours data still produces useful HTML outside the active block and when Jetpack is unavailable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, wordpress
- Domain
- content, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100