From 0c6f9bdcf8c3db5ceeb5a7abf69aacbaed1059a4 Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Mon, 11 May 2026 13:10:40 -0500 Subject: [PATCH] Revert "fix(ui): improve routine properties panel and history UX" (#5723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip orchestrates AI agents through visible, governable task and routine workflows. > - The routines UI includes the routine detail page, properties panel, history tab, and shared sidebar components. > - PR #5703 changed that workflow by widening the routine properties panel and moving revision inspection/comparison into dialogs. > - The product direction for that change is being paused for now, so the safest path is a direct revert instead of partial edits. > - This pull request reverts merge commit `74cb560c41305ac3283067d1ec8d3060ffdc28cb` from #5703. > - The benefit is restoring the prior routines UI behavior while keeping the revert easy to review and re-apply later if needed. ## What Changed - Reverted #5703: `fix(ui): improve routine properties panel and history UX`. - Restored the previous routine properties panel sizing, panel context API, routine detail layout, and routine history rendering behavior. - Removed the reverted sidebar pane test additions and restored the previous focused routine history test expectations. ## Verification - `git diff --check origin/master..HEAD` - `pnpm vitest run ui/src/components/RoutineHistoryTab.test.tsx` - `pnpm --filter @paperclipai/ui typecheck` ### Screenshots This is a direct revert of #5703. The visual state after this PR corresponds to the "Before" screenshots from #5703, and the state being removed corresponds to the "After" screenshots from #5703. #### Trigger Panel Width | Before this revert | After this revert | | --- | --- | | triggers-before-this-revert | triggers-after-this-revert | #### History Panel | Before this revert | After this revert | | --- | --- | | history-before-this-revert | history-after-this-revert | ## Risks - Low technical risk: this is a clean Git revert of a recently merged UI-only PR. - Product risk: the routine properties panel and revision history return to the older, narrower workflow that #5703 was improving. - Re-application risk: future work that wants the #5703 behavior back should re-apply it deliberately rather than cherry-picking around this revert. > For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and discuss it in `#dev` before opening the PR. Feature PRs that overlap with planned core work may need to be redirected — check the roadmap first. See `CONTRIBUTING.md`. ## Model Used - OpenAI Codex, GPT-5 coding agent, tool-enabled with local shell and GitHub CLI access. Context window size was not exposed in this session. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] If this change affects the UI, I have included before/after screenshots - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] I will address all Greptile and reviewer comments before requesting merge Co-authored-by: Paperclip --- ui/src/components/PropertiesPanel.tsx | 62 +- .../components/ResizableSidebarPane.test.tsx | 143 ---- ui/src/components/ResizableSidebarPane.tsx | 130 +-- ui/src/components/RoutineHistoryTab.test.tsx | 2 - ui/src/components/RoutineHistoryTab.tsx | 748 ++++++++++++------ ui/src/components/ScrollToBottom.tsx | 2 +- ui/src/context/PanelContext.tsx | 24 +- ui/src/pages/RoutineDetail.tsx | 26 +- 8 files changed, 553 insertions(+), 584 deletions(-) diff --git a/ui/src/components/PropertiesPanel.tsx b/ui/src/components/PropertiesPanel.tsx index 75c09474..c289a312 100644 --- a/ui/src/components/PropertiesPanel.tsx +++ b/ui/src/components/PropertiesPanel.tsx @@ -1,59 +1,29 @@ import { X } from "lucide-react"; import { usePanel } from "../context/PanelContext"; import { Button } from "@/components/ui/button"; -import { ResizableSidebarPane } from "./ResizableSidebarPane"; - -const PROPERTIES_PANEL_DEFAULT = 320; -const PROPERTIES_PANEL_MIN = 320; -const PROPERTIES_PANEL_MAX = 640; -const PROPERTIES_PANEL_STORAGE_KEY = "paperclip.properties.width"; +import { ScrollArea } from "@/components/ui/scroll-area"; export function PropertiesPanel() { - const { panelContent, panelLayout, panelVisible, setPanelVisible } = usePanel(); + const { panelContent, panelVisible, setPanelVisible } = usePanel(); if (!panelContent) return null; - const storageKey = panelLayout.storageKey ?? PROPERTIES_PANEL_STORAGE_KEY; - const defaultWidth = panelLayout.defaultWidth ?? PROPERTIES_PANEL_DEFAULT; - const minWidth = panelLayout.minWidth ?? PROPERTIES_PANEL_MIN; - const maxWidth = panelLayout.maxWidth ?? PROPERTIES_PANEL_MAX; - const compactBelowViewport = panelLayout.compactBelowViewport; - const compactMaxWidth = panelLayout.compactMaxWidth; - return ( -