-
Notifications
You must be signed in to change notification settings - Fork 539
[Nebula] Fix page not redirected to new chat page when deleting active chat #5712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Nebula] Fix page not redirected to new chat page when deleting active chat #5712
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5712 +/- ##
=======================================
Coverage 51.53% 51.53%
=======================================
Files 1094 1094
Lines 57592 57592
Branches 4755 4755
=======================================
Hits 29681 29681
Misses 27193 27193
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
9fbd0f0
to
6f04b6e
Compare
25c231a
to
dfa5e52
Compare
6f04b6e
to
2cb3c48
Compare
dfa5e52
to
b69f294
Compare
Merge activity
|
…e chat (#5712) Fixes: DASH-613 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the usage of the `newChatPageUrlStore` by introducing a custom hook, `useNewChatPageLink`, to manage the chat page URL more effectively across different components. ### Detailed summary - Added `useNewChatPageLink` hook in `useNewChatPageLink.ts` to retrieve the chat page URL. - Updated imports of `useNewChatPageLink` in `NebulaMobileNav.tsx`, `ChatSidebarLink.tsx`, and `ChatSidebar.tsx`. - Removed duplicate `useNewChatPageLink` function from `ChatSidebar.tsx`. - Set `newChatPageUrlStore` value directly in `ChatPageContent.tsx` based on the current page type. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
2cb3c48
to
0842045
Compare
b69f294
to
f7e6041
Compare
Fixes: DASH-613
PR-Codex overview
This PR focuses on refactoring the chat page link management by introducing the
useNewChatPageLink
hook and updating various components to use it, improving the code structure and maintainability.Detailed summary
useNewChatPageLink
hook inuseNewChatPageLink.ts
.MobileNav
to importuseNewChatPageLink
from hooks.ChatPageContent
to set the chat page URL innewChatPageUrlStore
.useNewChatPageLink
inChatSidebarLink
and adjusted navigation logic.useNewChatPageLink
function fromChatSidebar
.