Skip to content

Lite: misc + refactor components#14005

Merged
OliverJAsh merged 90 commits into
masterfrom
push-kowrvulptqzw
May 30, 2026
Merged

Lite: misc + refactor components#14005
OliverJAsh merged 90 commits into
masterfrom
push-kowrvulptqzw

Conversation

@OliverJAsh
Copy link
Copy Markdown
Contributor

@OliverJAsh OliverJAsh commented May 30, 2026

See commits.

Copilot AI review requested due to automatic review settings May 30, 2026 16:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 refactors the Lite UI component layer by removing several wrapper components (e.g., Button, ShortcutButton, DropdownButton, Tooltip, ToggleGroup) and migrating call sites to Base UI primitives plus shared styling helpers (getButtonClassName, TooltipPopup, Toggle*Styles). It also tweaks panel behavior and focus logic in the workspace.

Changes:

  • Replace Button usages with native <button> elements styled via getButtonClassName.
  • Replace the custom Tooltip/ShortcutButton abstractions with @base-ui/react tooltip primitives and a shared TooltipPopup.
  • Remove DropdownButton/ButtonGroup wrappers and reimplement the commit dropdown layout directly in OutlinePanel CSS/JSX.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/lite/ui/src/Updater.tsx Replace Button with <button> + getButtonClassName.
apps/lite/ui/src/routes/RootLayout.tsx Replace ShortcutButton with Base UI Tooltip primitives for the project picker trigger.
apps/lite/ui/src/routes/project/$id/workspace/WorkspacePage.tsx Replace Button with <button> + getButtonClassName in error boundary UI.
apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx Migrate hotkey tooltips to Base UI primitives; replace dropdown/button wrappers with explicit markup.
apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.module.css Add direct styling for the new commit dropdown “button group” layout.
apps/lite/ui/src/routes/project/$id/workspace/OperationTooltip.tsx Replace ShortcutButton + custom tooltip wrapper with Base UI tooltip primitives and TooltipPopup.
apps/lite/ui/src/routes/project/$id/workspace/FilesPanel.tsx Replace Button render usage with styled <button> in toolbar menus.
apps/lite/ui/src/routes/project/$id/workspace/DetailsPanel.tsx Replace local toggle/shortcut abstractions with Base UI toggles + Toggle*Styles and Base UI tooltips.
apps/lite/ui/src/routes/project/$id/workspace/DependencyIndicatorButton.tsx Replace custom tooltip wrapper with Base UI tooltip primitives + TooltipPopup.
apps/lite/ui/src/routes/project/$id/route.tsx Remove an extra blank line.
apps/lite/ui/src/routes/index.tsx Remove an extra blank line.
apps/lite/ui/src/panels/state.ts Change initial filesVisible default (behavior change).
apps/lite/ui/src/panels.ts Refactor adjacent-panel focusing logic using an explicit ordered panel list.
apps/lite/ui/src/components/Tooltip.tsx Replace wrapper tooltip component with TooltipPopup presentation component.
apps/lite/ui/src/components/Tooltip.stories.tsx Update Storybook usage to Base UI tooltip primitives + TooltipPopup.
apps/lite/ui/src/components/Tooltip.module.css Adjust tooltip spacing/padding and remove unused .text styling.
apps/lite/ui/src/components/ToggleGroup.tsx Replace wrapper components with ToggleGroupStyles / ToggleStyles render helpers.
apps/lite/ui/src/components/ToggleGroup.stories.tsx Update stories to use Base UI toggle components with local style render helpers.
apps/lite/ui/src/components/ShortcutButton.tsx Remove component (no longer used).
apps/lite/ui/src/components/ShortcutButton.stories.tsx Remove stories (component removed).
apps/lite/ui/src/components/ProjectButton.tsx Replace custom tooltip wrapper with Base UI tooltip primitives + TooltipPopup.
apps/lite/ui/src/components/Kbd.stories.tsx Remove an extra blank line.
apps/lite/ui/src/components/Icon.tsx Refactor icon storage to a Map, tighten typing, and simplify class/style composition.
apps/lite/ui/src/components/Icon.stories.tsx Adjust story generation to consume the exported icon map.
apps/lite/ui/src/components/Icon.module.css Refactor selector structure for SVG sizing.
apps/lite/ui/src/components/DropdownButton.tsx Remove component (replaced by explicit markup in OutlinePanel).
apps/lite/ui/src/components/DropdownButton.stories.tsx Remove stories (component removed).
apps/lite/ui/src/components/DiffStat.stories.tsx Remove an extra blank line.
apps/lite/ui/src/components/ButtonGroup.tsx Remove component (no longer used).
apps/lite/ui/src/components/ButtonGroup.stories.tsx Remove stories (component removed).
apps/lite/ui/src/components/ButtonGroup.module.css Remove styles (component removed).
apps/lite/ui/src/components/Button.tsx Replace Button component with styling helper getButtonClassName + exported style types.
apps/lite/ui/src/components/Button.stories.tsx Update stories to use native <button> with getButtonClassName.
.prettierignore Ignore apps/lite/release output directory.

Comment thread apps/lite/ui/src/panels/state.ts
Comment thread apps/lite/ui/src/components/ToggleGroup.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx
@OliverJAsh OliverJAsh changed the title Lite: refactor components Lite: misc + refactor components May 30, 2026
@OliverJAsh OliverJAsh force-pushed the push-kowrvulptqzw branch from 7bcb6a2 to 2916054 Compare May 30, 2026 19:03
Copilot AI review requested due to automatic review settings May 30, 2026 19:08
@OliverJAsh OliverJAsh force-pushed the push-kowrvulptqzw branch from 2916054 to 7c797e9 Compare May 30, 2026 19:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 43 out of 43 changed files in this pull request and generated 5 comments.

Comment thread apps/lite/ui/src/routes/project/$id/workspace/WorkspaceItemRow.tsx
Comment thread apps/lite/ui/src/routes/RootLayout.module.css
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.module.css Outdated
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.module.css Outdated
Comment thread apps/lite/ui/src/global.css Outdated
@OliverJAsh OliverJAsh force-pushed the push-kowrvulptqzw branch from 9feb6c8 to 0563c2c Compare May 30, 2026 19:36
Copilot AI review requested due to automatic review settings May 30, 2026 19:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 41 out of 41 changed files in this pull request and generated 3 comments.

Comment thread apps/lite/ui/src/routes/RootLayout.tsx
Comment thread apps/lite/ui/src/routes/RootLayout.module.css
Not all buttons are `<button>`s, so it's better to abstract styles only.
Let's revisit this later on when we think about testing strategies. For now we'll keep it simple.
Copilot AI review requested due to automatic review settings May 30, 2026 19:57
@OliverJAsh OliverJAsh force-pushed the push-kowrvulptqzw branch from 55ea7d0 to 3302900 Compare May 30, 2026 19:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 40 out of 40 changed files in this pull request and generated 10 comments.

Comment thread apps/lite/ui/src/routes/project/$id/workspace/WorkspaceItemRow.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/FilesPanel.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx
Comment thread apps/lite/ui/src/routes/RootLayout.module.css
Comment thread apps/lite/ui/src/routes/project/$id/workspace/WorkspaceItemRow.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/FilesPanel.tsx
Comment thread apps/lite/ui/src/routes/project/$id/workspace/OutlinePanel.tsx
Comment thread apps/lite/ui/src/routes/RootLayout.module.css
@OliverJAsh OliverJAsh merged commit 1906bdd into master May 30, 2026
37 checks passed
@OliverJAsh OliverJAsh deleted the push-kowrvulptqzw branch May 30, 2026 20:09
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.

2 participants