Remove HTML elements for empty Figma JSON values#220
Draft
saurabhsircar11 wants to merge 1 commit into
Draft
Conversation
saurabhsircar11
requested review from
KetakiD-Deshwandikar,
aishwaryamathuria and
maagrawal16
July 13, 2026 05:23
aishwaryamathuria
approved these changes
Jul 13, 2026
maagrawal16
approved these changes
Jul 13, 2026
saurabhsircar11
marked this pull request as draft
July 15, 2026 14:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Centralizes empty-value handling across all block renderers: a shared isEmptyValue predicate ('', null, false, [], {}), central .to-remove flagging in handleComponents with a cascade for emptied parent wrappers (never structural divs), and guards in blocks that build DOM directly (table, logo-gallery, carousel). Includes review fixes: null action-area guard, blank product-lockup filtering, and hero-marquee action-area unflagging.
<img width="1512" height="633" alt="Screenshot 2026-07-13 at 10 52 51 AM" src="https://github.com/user-attachments/assets/ba9f13a0-4482-4bda-95c0-97b04827232d" />Related Issue
N/A
Test URLs