mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #286] [MERGED] feat(ui): add rename button and toggle folder on click #4547
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/286
Author: @ghost
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @SpicyMarinara
Base:
main← Head:chat_folder_click📝 Commits (1)
ce48362feat(ui): add rename button and toggle folder on click📊 Changes
1 file changed (+29 additions, -18 deletions)
View changed files
📝
packages/client/src/components/layout/ChatSidebar.tsx(+29 -18)📄 Description
Linked Issue
Closes #278.
Why this change
This improves usability on phones with small screens, where tapping the arrow button to expand/collapse the folder can be difficult.
What changed
<div>(from grip handle through to the count badge, excluding icon buttons) now handles fold/unfold via a singleonClick={() => onToggleCollapse(folder)}on the parent container. Previously only the chevron button and folder name span had individual click handlers.onClick={() => setRename(true)}from the folder name<span>and removed its local rename state trigger. Clicking the name now delegates to the parent's toggle collapse.Pencilicon button positioned between the count badge and delete button. Usese.stopPropagation()to prevent triggering parent collapse. Triggers inline rename mode viasetRenameValue(folder.name)+setRenaming(true).<button>with hover scale transform to a static<div>styled with cursor-pointer. Now participates in the parent's click area rather than having its own handler.<button onClick={...}>to<ChevronRight ...>with class-based rotation, sharing the parent's click handler.e.stopPropagation()to prevent the parent header click from firing when clicked.Validation
pnpm checkpasses locallyClicking anywhere in the folder area will expand/collapse the folder.
UI evidence (if applicable)
Summary by CodeRabbit
UI Improvements
Behavioral Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.