Skip to content

[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

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Dec 12, 2024

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

  • Added useNewChatPageLink hook in useNewChatPageLink.ts.
  • Updated MobileNav to import useNewChatPageLink from hooks.
  • Modified ChatPageContent to set the chat page URL in newChatPageUrlStore.
  • Integrated useNewChatPageLink in ChatSidebarLink and adjusted navigation logic.
  • Removed duplicate useNewChatPageLink function from ChatSidebar.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Dec 12, 2024

⚠️ No Changeset found

Latest commit: f7e6041

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Dec 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 6:22pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Dec 12, 2024 6:22pm
thirdweb_playground ⬜️ Skipped (Inspect) Dec 12, 2024 6:22pm
wallet-ui ⬜️ Skipped (Inspect) Dec 12, 2024 6:22pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 12, 2024 12:37 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 12, 2024 12:37 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 12, 2024 12:37 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Dec 12, 2024
Copy link

linear bot commented Dec 12, 2024

Copy link
Member Author

MananTank commented Dec 12, 2024


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.53%. Comparing base (0842045) to head (f7e6041).
Report is 1 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 0842045
packages 48.24% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Copy link
Contributor

github-actions bot commented Dec 12, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 2.1 s (+2.12% 🔺) 3 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 5.4 s (-6.91% 🔽) 7.6 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 194 ms (-46.5% 🔽) 305 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 71 ms (-1.66% 🔽) 81 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 867 ms (+49.35% 🔺) 1.3 s

@MananTank MananTank force-pushed the 12-12-_nebula_remove_presence_message_when_adding_an_error_message branch 2 times, most recently from 9fbd0f0 to 6f04b6e Compare December 12, 2024 15:14
@MananTank MananTank force-pushed the 12-12-_nebula_fix_page_not_redirected_to_new_chat_page_when_deleting_active_chat branch from 25c231a to dfa5e52 Compare December 12, 2024 15:14
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 12, 2024 15:14 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 12, 2024 15:14 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 12, 2024 15:14 Inactive
@MananTank MananTank force-pushed the 12-12-_nebula_remove_presence_message_when_adding_an_error_message branch from 6f04b6e to 2cb3c48 Compare December 12, 2024 15:58
@MananTank MananTank force-pushed the 12-12-_nebula_fix_page_not_redirected_to_new_chat_page_when_deleting_active_chat branch from dfa5e52 to b69f294 Compare December 12, 2024 15:58
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 12, 2024 15:58 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 12, 2024 15:58 Inactive
Copy link
Contributor

graphite-app bot commented Dec 12, 2024

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 -->
@MananTank MananTank force-pushed the 12-12-_nebula_remove_presence_message_when_adding_an_error_message branch from 2cb3c48 to 0842045 Compare December 12, 2024 18:19
@MananTank MananTank force-pushed the 12-12-_nebula_fix_page_not_redirected_to_new_chat_page_when_deleting_active_chat branch from b69f294 to f7e6041 Compare December 12, 2024 18:19
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 12, 2024 18:20 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 12, 2024 18:20 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 12, 2024 18:20 Inactive
Base automatically changed from 12-12-_nebula_remove_presence_message_when_adding_an_error_message to main December 12, 2024 18:22
@graphite-app graphite-app bot merged commit f7e6041 into main Dec 12, 2024
31 checks passed
@graphite-app graphite-app bot deleted the 12-12-_nebula_fix_page_not_redirected_to_new_chat_page_when_deleting_active_chat branch December 12, 2024 18:24
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 12, 2024 18:24 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui December 12, 2024 18:24 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 December 12, 2024 18:24 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants