Select the sidebar's top site and scroll to top after deleting a site - #4287
Closed
sejas wants to merge 15 commits into
Closed
Select the sidebar's top site and scroll to top after deleting a site#4287sejas wants to merge 15 commits into
sejas wants to merge 15 commits into
Conversation
…studio into archive-chats-on-site-delete
…e-delete # Conflicts: # apps/ui/src/components/site-list/index.test.tsx # apps/ui/src/components/site-list/index.tsx # apps/ui/src/ui-classic/components/session-view/style.module.css
…e-delete # Conflicts: # apps/ui/src/components/site-list/index.test.tsx # apps/ui/src/components/site-list/index.tsx
…e-delete # Conflicts: # apps/ui/src/data/core/connectors/ipc/index.ts # apps/ui/src/ui-classic/router/layout-root/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
I noticed that my first site was not selected, in my case it was the second one. Also the sidebar was not scrolled to the top. In this PR I address both issues.
How AI was used in this PR
Used to trace the post-delete redirect path and the sidebar's ordering/scroll behavior, and to draft the fix and test updates. Changes were reviewed, and verified with lint, typecheck, and unit tests.
Proposed Changes
Testing Instructions
node apps/cli/dist/cli/main.mjs site delete --path <site>— same result.remove-with-scroll.mp4
Pre-merge Checklist