GrapSegment component#14196
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a new GraphSegment React component (with accompanying CSS module and Storybook stories) to render small git-graph glyph segments in the Lite UI, and tweaks workspace row layout spacing/alignment.
Changes:
- Add
GraphSegmentcomponent rendering multiple graph glyph variants via SVG paths. - Add Storybook stories to preview individual and all glyph variants.
- Adjust workspace item row alignment/padding to better fit the 28px-tall graph glyph.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| apps/lite/ui/src/routes/project/$id/workspace/WorkspaceItemRow.module.css | Align row contents vertically and adjust left/right padding. |
| apps/lite/ui/src/components/GraphSegment.tsx | New component to render graph glyph SVGs (optionally stretchable). |
| apps/lite/ui/src/components/GraphSegment.stories.tsx | New Storybook stories for GraphSegment glyph exploration. |
| apps/lite/ui/src/components/GraphSegment.module.css | New styling for fixed-size glyph segment + optional stretch segment. |
| className, | ||
| ...props | ||
| }) => ( | ||
| <div {...props} className={classes(className, styles.graphSegment)} data-stretch={stretch}> |
Comment on lines
+77
to
+83
| {glyph === "commit" ? ( | ||
| commitGlyph | ||
| ) : glyph === "group" ? ( | ||
| groupGlyph | ||
| ) : ( | ||
| <path d={glyphPaths[glyph]} opacity="0.5" stroke="currentColor" strokeWidth="1.5" /> | ||
| )} |
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.
Screen.Recording.2026-06-12.at.00.57.10.mov