[PR #3149] [MERGED] [codex] Fix color picker drag lag and panel text clipping #5814

Closed
opened 2026-10-22 04:19:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3149
Author: @SpicyMarinara
Created: 7/2/2026
Status: ✅ Merged
Merged: 7/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/fix-ui-issues-3147-3148


📝 Commits (1)

  • fc37eb6 fix color picker drag and panel text clipping

📊 Changes

4 files changed (+186 additions, -53 deletions)

View changed files

📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+19 -7)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+77 -12)
📝 packages/client/src/components/ui/ColorPicker.tsx (+87 -31)

📄 Description

Summary

  • Coalesce high-frequency native color picker, gradient-stop, and angle-slider updates through requestAnimationFrame so drag operations do not flood React/global settings updates.
  • Apply the same frame-coalesced path to the Appearance conversation-gradient swatches, while keeping typed hex values and reset actions immediate.
  • Let Presets and Connections rows reserve action-button space only on touch or hover, and add explicit line-height/truncation so text ellipsizes instead of being visually clipped.

Root Cause

Color picker drag events could fire many updates in a tight burst, including global UI store writes for Appearance gradients and parent callbacks from reusable color pickers. Presets and Connections also permanently reserved action-button padding on narrow rows, leaving too little room for text and making existing truncation look like clipping.

Fixes #3147
Fixes #3148

Validation

  • pnpm --filter @marinara-engine/client lint
  • pnpm check
  • Headless browser stress test: dispatched 180 rapid Appearance swatch updates; final color persisted, app stayed mounted, no page or console errors.
  • Headless browser mobile layout pass: Presets and Connections visible rows reported 0 vertical clipping and 0 unexpected horizontal overflow.

Manual Verification Needed

  • Manually drag Appearance conversation-gradient color pickers in Chrome/Opera on Windows and confirm there is no severe lag or React crash.
  • Manually verify Presets text on the reporter's Windows/browser layout.
  • Manually verify Connections text on the reporter's Windows/browser layout.

Summary by CodeRabbit

  • New Features

    • Improved the appearance editor so color and gradient changes feel smoother while adjusting values.
    • Updated list rows for connections and presets with better responsive spacing and clearer truncated text.
  • Bug Fixes

    • Reduced visual jank when editing theme colors and gradients by applying changes more consistently during interaction.
    • Improved labels and tooltips so long names and authors remain readable without breaking layout.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3149 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/2/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/fix-ui-issues-3147-3148` --- ### 📝 Commits (1) - [`fc37eb6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fc37eb644efae18aa5f999e9342521f48b995e95) fix color picker drag and panel text clipping ### 📊 Changes **4 files changed** (+186 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+19 -7) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+77 -12) 📝 `packages/client/src/components/ui/ColorPicker.tsx` (+87 -31) </details> ### 📄 Description ## Summary - Coalesce high-frequency native color picker, gradient-stop, and angle-slider updates through `requestAnimationFrame` so drag operations do not flood React/global settings updates. - Apply the same frame-coalesced path to the Appearance conversation-gradient swatches, while keeping typed hex values and reset actions immediate. - Let Presets and Connections rows reserve action-button space only on touch or hover, and add explicit line-height/truncation so text ellipsizes instead of being visually clipped. ## Root Cause Color picker drag events could fire many updates in a tight burst, including global UI store writes for Appearance gradients and parent callbacks from reusable color pickers. Presets and Connections also permanently reserved action-button padding on narrow rows, leaving too little room for text and making existing truncation look like clipping. Fixes #3147 Fixes #3148 ## Validation - `pnpm --filter @marinara-engine/client lint` - `pnpm check` - Headless browser stress test: dispatched 180 rapid Appearance swatch updates; final color persisted, app stayed mounted, no page or console errors. - Headless browser mobile layout pass: Presets and Connections visible rows reported 0 vertical clipping and 0 unexpected horizontal overflow. ## Manual Verification Needed - [ ] Manually drag Appearance conversation-gradient color pickers in Chrome/Opera on Windows and confirm there is no severe lag or React crash. - [ ] Manually verify Presets text on the reporter's Windows/browser layout. - [ ] Manually verify Connections text on the reporter's Windows/browser layout. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved the appearance editor so color and gradient changes feel smoother while adjusting values. * Updated list rows for connections and presets with better responsive spacing and clearer truncated text. * **Bug Fixes** * Reduced visual jank when editing theme colors and gradients by applying changes more consistently during interaction. * Improved labels and tooltips so long names and authors remain readable without breaking layout. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:19:45 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5814
No description provided.