Skip to content

GrapSegment component#14196

Merged
PavelLaptev merged 18 commits into
masterfrom
pl-branch-2
Jun 12, 2026
Merged

GrapSegment component#14196
PavelLaptev merged 18 commits into
masterfrom
pl-branch-2

Conversation

@PavelLaptev

@PavelLaptev PavelLaptev commented Jun 11, 2026

Copy link
Copy Markdown
Contributor
Screen.Recording.2026-06-12.at.00.57.10.mov
image

Copilot AI review requested due to automatic review settings June 11, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 GraphSegment component 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.

Comment thread apps/lite/ui/src/components/GraphSegment.tsx Outdated
Comment thread apps/lite/ui/src/components/GraphSegment.tsx
Comment thread apps/lite/ui/src/components/GraphSegment.tsx
Comment thread apps/lite/ui/src/components/GraphSegment.tsx Outdated
Comment thread apps/lite/ui/src/components/GraphSegment.tsx
Comment thread apps/lite/ui/src/components/GraphSegment.stories.tsx Outdated
Comment thread apps/lite/ui/src/components/GraphSegment.stories.tsx Outdated
Comment thread apps/lite/ui/src/components/GraphSegment.stories.tsx Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

className,
...props
}) => (
<div {...props} className={classes(className, styles.graphSegment)} data-stretch={stretch}>
Comment thread apps/lite/ui/src/components/GraphSegment.tsx
Comment thread apps/lite/ui/src/components/GraphSegment.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlineTree.module.css Outdated
@PavelLaptev PavelLaptev requested a review from OliverJAsh June 11, 2026 23:00
Copilot AI review requested due to automatic review settings June 12, 2026 09:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment on lines +77 to +83
{glyph === "commit" ? (
commitGlyph
) : glyph === "group" ? (
groupGlyph
) : (
<path d={glyphPaths[glyph]} opacity="0.5" stroke="currentColor" strokeWidth="1.5" />
)}
@PavelLaptev PavelLaptev enabled auto-merge June 12, 2026 10:35
@PavelLaptev PavelLaptev merged commit f1a4210 into master Jun 12, 2026
36 checks passed
@PavelLaptev PavelLaptev deleted the pl-branch-2 branch June 12, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants