Skip to content

feat: ability to expand sidebar to see chats names #7816

Merged
DOsinga merged 6 commits intoblock:mainfrom
Abhijay007:feat/expandChat
Mar 20, 2026
Merged

feat: ability to expand sidebar to see chats names #7816
DOsinga merged 6 commits intoblock:mainfrom
Abhijay007:feat/expandChat

Conversation

@Abhijay007
Copy link
Collaborator

closes : #7791

Summary

Type of Change

  • Feature

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Tested on desktop app

Screenshots/Demos (for UX changes)

expandChat

@Abhijay007 Abhijay007 requested a review from alexhancock March 11, 2026 19:52
@Abhijay007 Abhijay007 changed the title Feat/expand chat feat: ability to expand sidebar to see chats names Mar 11, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 355d148484

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you use the settings.json to store this? we're trying to move away from localstorage

@Abhijay007
Copy link
Collaborator Author

P2 Badge Persist nav width after drag, not on every mousemove

Writing localStorage inside onMouseMove makes each pointer event perform a synchronous storage write, which blocks the UI thread and can make resize dragging noticeably janky on slower machines or busy render cycles. Keeping the width in React state during the drag and committing to storage in onMouseUp avoids this per-frame blocking while preserving persistence.

Useful? React with 👍 / 👎.

let me look into this

@Abhijay007 Abhijay007 requested a review from DOsinga March 11, 2026 20:21
@Abhijay007
Copy link
Collaborator Author

@DOsinga updated it to use settings.json to store

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ccc9cb554

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@jh-block jh-block self-assigned this Mar 12, 2026
Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on second thought, I'm wondering whether we should persist this at all.

consider CSS resize: horizontal on the nav panel (with min-width/max-width constraints) instead of manual mousedown/mousemove/mouseup tracking — it gives you native drag-to-resize with near-zero JS

it would be smoother, less code and yeah, might upset some people, but fixes the basic problem. what do you think?

@DOsinga
Copy link
Collaborator

DOsinga commented Mar 12, 2026

also what codex says

@Abhijay007
Copy link
Collaborator Author

on second thought, I'm wondering whether we should persist this at all.

consider CSS resize: horizontal on the nav panel (with min-width/max-width constraints) instead of manual mousedown/mousemove/mouseup tracking — it gives you native drag-to-resize with near-zero JS

it would be smoother, less code and yeah, might upset some people, but fixes the basic problem. what do you think?

I deleted this by mistake:

orginal comments I poseted : Hi @DOsinga I looked into this and the thing is the nav panel needs overflow-visible in condensed mode for the hover controls, but resize: horizontal requires overflow: hidden/auto/scroll those two are incompatible. There's also a conflict with framer-motion's JS-controlled width animation, I am not sure if I am I'm missing smth here, but the manual approach seems necessary here.

@Abhijay007 Abhijay007 requested a review from DOsinga March 13, 2026 12:54
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d104dd46e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80ecf05817

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

document.body.style.cursor = 'col-resize';
document.body.style.userSelect = 'none';
window.addEventListener('mousemove', onMouseMove);
window.addEventListener('mouseup', onMouseUp);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Cancel sidebar drag when pointer leaves the window

The drag lifecycle only ends on window's mouseup, so if the user starts resizing and releases the mouse outside the app window, cleanup never runs: dragStateRef stays set, userSelect/cursor overrides remain, and moving the mouse back over the app can keep resizing unexpectedly until another in-window mouseup happens. This is a user-visible interaction regression for common edge-drags and should be handled by also terminating drag on window blur/leave (or by using pointer capture).

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jh-block these are edge cases I think we can skip it for now

@DOsinga DOsinga added this pull request to the merge queue Mar 20, 2026
Merged via the queue into block:main with commit 387f124 Mar 20, 2026
20 checks passed
elijahsgh pushed a commit to elijahsgh/goose that referenced this pull request Mar 21, 2026
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: esnyder <elijah.snyder1@gmail.com>
elijahsgh pushed a commit to elijahsgh/goose that referenced this pull request Mar 21, 2026
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: esnyder <elijah.snyder1@gmail.com>
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.

Expand the left pane for longer chat names to remember the context

3 participants