-
Notifications
You must be signed in to change notification settings - Fork 619
[NEB-225] Fix Nebula new chat button link #6912
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
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. |
apps/dashboard/src/app/nebula-app/(app)/hooks/useNewChatPageLink.ts
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6912 +/- ##
=======================================
Coverage 55.11% 55.11%
=======================================
Files 896 896
Lines 57192 57192
Branches 3955 3955
=======================================
Hits 31519 31519
Misses 25576 25576
Partials 97 97
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on refactoring the chat application by removing the usage of `newChatPageUrlStore` and replacing it with layout segment navigation. It streamlines the chat page link logic and cleans up unused code related to session ID management.
### Detailed summary
- Removed `newChatPageUrlStore` from `stores.ts` and `useNewChatPageLink.ts`.
- Updated `useNewChatPageLink` to use `useSelectedLayoutSegment` for navigation.
- Removed session ID management logic from `ChatPageContent.tsx`.
- Cleaned up unused state and callback related to session ID.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->

PR-Codex overview
This PR focuses on refactoring the chat page functionality by removing the dependency on
newChatPageUrlStoreand adapting the logic for determining the chat page link based on the selected layout segment.Detailed summary
newChatPageUrlStorefromstores.tsanduseNewChatPageLink.ts.useNewChatPageLinkto useuseSelectedLayoutSegmentfor determining the return URL.setSessionIdcallback logic that updated the URL andnewChatPageUrlStoreinChatPageContent.tsx._setSessionIdtosetSessionIdinChatPageContent.tsx.