mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 22:31:33 +09:00
42af9210934f0c5c8fb1f1943bd66cd086c85032
## Description Allows Head component Hidden under `headSlotComponent` flag Vercel fixture now have a HTMLRewriter example. Improves development. ## Todo In Next PR - Head Title support - Icons - Allow reset `as` field - [x] - BG is now white always - [x] - It's shown as fixed element to not break layout ## Implementation details This component has more priority above PageSettings meta tags e.g. If some tag exists in PageSettings and in HeadSlot the HeadSlot wins ## Steps for reproduction Create HeadSlot <img width="674" alt="image" src="https://github.com/user-attachments/assets/b41f878e-b8fd-48b4-9204-5f079dc1719b" /> - [x] - Visit https://webstudio-fixture-project-a-0su3o.wstd.work/head-tag check server response. <img width="433" alt="image" src="https://github.com/user-attachments/assets/efb7de0d-c23e-4b0d-b775-170e6b61648e" /> See `og:title` is not duplicated. - [x] - Check Elements Panel <img width="565" alt="image" src="https://github.com/user-attachments/assets/5742c3a8-47b1-4877-9b01-528eb3afffe5" /> See no duplicated. All tags exists. - [x] - Click Home. See no meta tags are in Elements panel from `/head-tag` page - [x] - Click back button <img width="555" alt="image" src="https://github.com/user-attachments/assets/2b166249-5fd0-4d0f-a451-ff3c1b4e62b5" /> See all meta is rendered and is not duplicated. ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
Learning Resources
- Blog
- Documentation
- Brand and Product Design
- Contributing Guide for Devs
- Github Discussions
- Wishlist
- Builder Issues Tracker
- Roadmap
Social Media
Thanks
Thanks to Lost Pixel for providing the visual testing platform that helps us review UI changes and catch visual regressions.
Languages
TypeScript
97.9%
PLpgSQL
1.5%
CSS
0.3%
Shell
0.2%
JavaScript
0.1%
