Add collapsible panel groups to reduce horizontal clutter in the tiling layout

未关闭
#175 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
typescript
领域
frontend

调研方向

The issue describes changes to panel grouping in the tiling layout, including collapse and expand interactions, resizing, persistence, tests, and styles, but names no files or test entry points. Start by locating the tiling layout implementation and related tests, then trace how panel state is saved and restored. Done means groups can be collapsed and expanded, resizing remains usable, and the collapsed state survives an app restart; note that the author says an implementation already exists on a local branch.

由索引模型根据 Issue 内容生成。

描述

Problem

When many tasks or agent panels are open at the same time, the current tiling layout can become very crowded horizontally and requires frequent horizontal scrolling.

This is especially noticeable when multiple panels belong to the same project or are part of the same coordinated workflow. They are logically related, but they are still displayed as fully separate panels in the UI. Even if the user only wants to keep those related tasks available in the background, they still take up a lot of horizontal space.

Proposed solution

I would like to add support for collapsible panel groups.

The general idea is to group adjacent panels that belong to the same project and the same task type, for example:

  • regular independent task panels
  • coordinator / coordinated task panels

Each group can be collapsed. When collapsed:

  • the first panel in the group remains visible
  • the other panels in the same group are temporarily hidden
  • an expand button is shown beside the visible panel
  • resize handle behavior remains reasonable while collapsed
  • the collapsed state can be persisted and restored after restarting the app

This would reduce horizontal space usage while still keeping related task context available, making multi-task workflows easier to manage.

Current status

I already have an initial implementation in a local branch, but I have not pushed it to a remote branch yet.

The current implementation roughly includes:

  • detecting and rendering panel groups in the tiling layout
  • adding collapse / expand interactions for groups
  • adapting resize handle behavior for collapsed groups
  • saving and restoring panel group collapsed state
  • adding related tests
  • adjusting visual styles to make grouping and collapse controls clearer
Image Image

Next steps

I think the ability to expand or collapse a group of task panels is quite useful. I have a branch implementing this feature, and I have to admit that the current implementation still has room for improvement. For example, the background color of the task panel covering the task panel looks a bit awkward. I would like to hear your thoughts.

主要语言
TypeScript
星标
1k
派生
144
平均合并
4 天 19 小时
30 天内合并 PR
28

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

johannesjo/parallel-code 的其他 Issue

查看 johannesjo/parallel-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。