improvement(ui): hide divider when following subblock value is null#2608
Merged
waleedlatif1 merged 2 commits intostagingfrom Dec 27, 2025
Merged
improvement(ui): hide divider when following subblock value is null#2608waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryImproved UI by conditionally hiding dividers between subblocks when the following subblock renders empty content (e.g., Key changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Editor
participant SubBlock
participant ScheduleInfo
participant CSS
Editor->>Editor: Render subblock rows
Editor->>Editor: Add .subblock-row class
Editor->>SubBlock: Render SubBlock component
SubBlock->>SubBlock: Add .subblock-content class
SubBlock->>SubBlock: Call renderLabel()
alt No title or switch type
SubBlock->>SubBlock: renderLabel() returns null
else Has title
SubBlock->>SubBlock: renderLabel() returns JSX
end
SubBlock->>SubBlock: Call renderInput()
alt schedule-info type
SubBlock->>ScheduleInfo: Render ScheduleInfo
alt No schedule data
ScheduleInfo->>SubBlock: Return null
SubBlock->>SubBlock: renderInput() returns null
else Has schedule data
ScheduleInfo->>SubBlock: Return JSX
SubBlock->>SubBlock: renderInput() returns JSX
end
else Other input types
SubBlock->>SubBlock: renderInput() returns JSX
end
SubBlock->>Editor: Return rendered content
Editor->>Editor: Render .subblock-divider between rows
CSS->>CSS: Evaluate :has() selector
alt .subblock-content is empty
CSS->>CSS: Hide .subblock-divider
else .subblock-content has children
CSS->>CSS: Show .subblock-divider
end
|
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.
Summary
Type of Change
Testing
Tested manually
Checklist