8919 Commits
Author SHA1 Message Date
gregfromstl 4fda846e7c [SDK]: Chore: Fix AWS dependencies in dependabot config (#5760)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the `.github/dependabot.yml` configuration file to include new dependencies to be ignored during updates for specific versions of AWS SDK clients.

### Detailed summary
- Added `ignore` section for dependencies:
  - `@aws-sdk/client-kms`: version `3.592.0`
  - `@aws-sdk/client-lambda`: version `3.592.0`
  - `@aws-sdk/credential-providers`: version `3.592.0`

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

<!-- end pr-codex -->
2024-12-16 21:52:38 +00:00
MananTank d85df8bb55 [DASH-635] Fix useActiveWalletChain not returning custom chain (#5752)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR adds functionality to handle custom chains by mapping them to a new format and storing them in a separate array.

### Detailed summary
- Added a line to push mapped custom chains to the `allChainsV5` array using `mapV4ChainToV5Chain(c)`.
- Included an ESLint directive to disable the `no-restricted-syntax` rule for the new line.

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

<!-- end pr-codex -->
2024-12-16 21:35:39 +00:00
MananTank 2110792821 [DASH-639] Remove unused assets (#5759)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on the deletion of numerous image files from various directories within the `apps/dashboard/public/assets` folder, including images related to partners, ambassadors, landing pages, and grants.

### Detailed summary
- Deleted multiple image files from `partners`, `ambassadors`, `landingpage`, `community`, and `grant` directories.
- Removed images such as `aws.png`, `polygon.png`, `coinbase.png`, `superchain/logo-dashboard.png`, and many others.
- A total of 160 image files were deleted.

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

<!-- end pr-codex -->
2024-12-16 21:13:37 +00:00
dependabot[bot] ba685b9deb Bump knip from 5.39.4 to 5.41.0 (#5755)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 13:12:57 -08:00
Jonas Daniels 89efc28234 update dependencies (#5749) 2024-12-16 13:06:52 -08:00
MananTank 7fc619165d [DASH-444] Nebula - Update login flow (#5750)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on refactoring and updating the chat and login components in the `nebula-app`, enhancing the handling of chat sessions, prompts, and user interactions.

### Detailed summary
- Added `initialPrompt` to `ChatPageContent` and `EmptyStateChatPageContent`.
- Simplified `EmptyStateChatPageContent` props.
- Introduced `LoginAndOnboardingPageContent` for better login handling.
- Updated `NebulaLogin` to use `NebulaLoginPage`.
- Refactored message handling and session management in `ChatPageContent`.
- Removed unnecessary props in `Chatbar` and `EmptyStateChatPageContent`.

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

<!-- end pr-codex -->
2024-12-16 20:18:28 +00:00
saminaandgreg b205280960 initial nebula docs (#5720)
Co-authored-by: greg <[email protected]>
2024-12-16 11:53:35 -08:00
MananTank b173ad2866 Remove duplicated in-app-wallet and account-abstraction settings UI from /connect layout (#5748)
## Problem solved

Fixes: DASH-630

In-App wallet and Account abstraction settings are already available in project settings layout

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring the `AccountAbstractionPage` and `SmartWallets` components by removing the `twAccount` property and associated logic, along with deleting unused configuration files. It streamlines the code and improves maintainability.

### Detailed summary
- Deleted files: `page.tsx` and `loading.tsx` in `connect/in-app-wallets/config`.
- Removed `twAccount` property from `AccountAbstractionPage` and `SmartWallets` components.
- Updated `AccountAbstractionPage` to only fetch `team` and `project` data.
- Removed `getValidAccount` function call.
- Deleted `Sponsorship Policies` tab and related logic from `SmartWallets`.

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

<!-- end pr-codex -->
2024-12-16 18:48:07 +00:00
MananTank f1cf2fad2b Fix API key redirect URL schema on in-app wallet settings and unresponsive general project settings page (#5747)
## Problem solved

Fixes: DASH-629

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the validation schema and related components for project settings, particularly around custom authentication endpoints and redirect URIs. The changes enhance the form handling and validation logic in the dashboard.

### Detailed summary
- Introduced `expandCustomAuthEndpointField` for conditional rendering of custom authentication endpoint fields.
- Updated `checked` property of `GatedSwitch` to use the new variable.
- Modified the placeholder of `Textarea` in `NativeAppsFieldset`.
- Changed `UpdateAPIForm` type to use `ProjectSettingsPageFormSchema`.
- Updated form initialization to use `projectSettingsPageFormSchema`.
- Refined validation logic for redirect URIs, allowing specific formats.
- Created a new `redirectUriSchema` for validating redirect URIs.
- Updated `redirectUrls` validation to use the new schema.
- Changed the exported validation type from `ApiKeyValidationSchema` to `ProjectSettingsPageFormSchema`.

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

<!-- end pr-codex -->
2024-12-16 16:59:51 +00:00
kien-ngo 7819e1ebab [Dashboard] Add a form to let user manually input data for Marketplace listings (#5654)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR enhances the `CreateListingButton` and `CreateListingsForm` components by adding support for multiple listing modes (automatic and manual) and improving NFT validation logic, ensuring users can list NFTs more effectively based on the selected mode.

### Detailed summary
- Introduced `LISTING_MODES` for "Select NFT" and "Manual" modes.
- Added logic to toggle between automatic and manual listing modes.
- Enhanced NFT validation for manual mode, including contract address and token ID checks.
- Updated NFT approval checks based on listing mode.
- Modified form controls and error handling for improved user experience.

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

<!-- end pr-codex -->
2024-12-16 16:46:51 +00:00
Jonas Danielsandgithub-actions[bot] 6994310d16 Version Packages (#5741)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@thirdweb-dev/[email protected] @thirdweb-dev/[email protected] [email protected]
2024-12-17 01:08:47 +13:00
Joaquim Verges e42ffc6a93 Fix migration to enclave wallets in react native (#5746) 2024-12-17 00:27:00 +13:00
gregfromstl 0ddc123807 [Dashboard] Fix: Nebula send transaction params (#5744)
<!-- start pr-codex -->

## PR-Codex overview
This PR enhances the `SendTransactionButton` component in `Chats.tsx` by introducing improved transaction handling and validation through the addition of a blockchain `chain` context and the `sendTransaction` method.

### Detailed summary
- Added import for `sendTransaction` from `thirdweb`.
- Introduced `chain` variable using `useV5DashboardChain`.
- Updated transaction validation to check for both `txData` and `chain`.
- Refactored transaction sending logic to use `sendTransaction` with detailed parameters.

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

<!-- end pr-codex -->
2024-12-15 23:38:20 +00:00
gregfromstl f91f6310e9 [CI] Feature: Deploy typedoc to permalink (#5740)
<!-- start pr-codex -->

## PR-Codex overview
This PR introduces a new `TypeDoc` workflow for generating documentation and updates the `parse.mjs` script to process documentation data. It also modifies the `package.json` to include the `typedoc-better-json` dependency and adjusts the `pnpm-lock.yaml` accordingly.

### Detailed summary
- Added `TypeDoc` GitHub Actions workflow in `.github/workflows/typedoc.yml`.
- Created a new `parse.mjs` script in `packages/thirdweb/scripts` for transforming documentation data.
- Updated `package.json` to include `typedoc-better-json` as a dependency.
- Adjusted `pnpm-lock.yaml` to reflect changes in dependencies and versions.

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

<!-- end pr-codex -->
2024-12-14 17:43:16 +00:00
gregfromstl dc1e07b5e4 [CI] Chore: Only run actions for contributors (#5739)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR enhances the GitHub workflows for pull requests by adding conditions for author associations and expanding issue types.

### Detailed summary
- In `.github/workflows/auto-assign.yml`, added checks to assign authors only if they are `MEMBER`, `OWNER`, or `COLLABORATOR`.
- In `.github/workflows/issue.yml`, expanded the `types` to include `ready_for_review`.
- Added logic to automatically pass checks for external contributors.

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

<!-- end pr-codex -->
2024-12-14 17:38:51 +00:00
kien-ngo 2b5080d901 Playground: Examples for Wallet components (#5692)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new `Wallet` navigation link and implements a new `Wallet` page with components for displaying wallet icons and names, enhancing the user interface for crypto wallet applications.

### Detailed summary
- Added a new navigation link for `Wallet`.
- Created `page.tsx` for the `Wallet` section with metadata and layout.
- Implemented `APIHeader` for the `Wallet` page.
- Added three components: `WalletIconBasic`, `WalletNameBasic`, and `WalletNameFormat` in `wallet-examples.tsx`.
- Each component includes a description and code example for usage.

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

<!-- end pr-codex -->
2024-12-14 11:27:08 +00:00
kien-ngo 5be197bac9 [SDK] Headless Wallet components | CNCT-2620 (#5691)
CNCT-2620

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces new headless components for wallet management in the `thirdweb` library, enhancing user interface options for wallet context, icons, and names.

### Detailed summary
- Added `WalletProvider`, `WalletIcon`, and `WalletName` components.
- Updated `ChainProvider` to mark it as `@beta`.
- Introduced utility functions `getQueryKeys` for both chain and wallet components.
- Updated documentation and tests for new wallet components.

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

<!-- end pr-codex -->
2024-12-14 10:26:48 +00:00
MananTank 34165cb608 [DASH-616] Nebula - Add Alpha badge in sidebar (#5738)
## Problem solved

DASH-616
2024-12-13 21:33:58 +00:00
MananTank 9954b37b01 [DASH-624] Add tracking in insight playground (#5737)
## Problem solved

DASH-624

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `CodeBlockContainer` and related components to support an `onCopy` callback, allowing for custom actions when code is copied. It also introduces tracking for user interactions within the `BlueprintPlayground` component.

### Detailed summary
- Added `onCopy` prop to `CodeBlockContainer`, `RenderCode`, `PlainTextCodeBlock`, and `CodeClient`.
- Updated button click handler in `CodeBlockContainer` to call `onCopy` and pass the copied code.
- Integrated `useTrack` for tracking user events in `BlueprintPlayground`.
- Added tracking for "run", "copy-url", and "copy-response" actions in relevant components.

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

<!-- end pr-codex -->
2024-12-13 21:10:48 +00:00
MananTank 9b58a086b6 [Dashboard] Nebula - Update context filters + Add OG image (#5736)
## Problem solved

DASH-615

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on enhancing the context filter functionality within the application by introducing support for `walletAddresses`, updating related types, and modifying components to accommodate these changes.

### Detailed summary
- Added `walletAddresses` to various types and API parameters.
- Updated `SessionContextFilter` to include `wallet_addresses`.
- Modified `ChatPageContent` to handle and display `walletAddresses`.
- Enhanced `ContextFiltersButton` to show wallet address badges.
- Updated form handling to include validation for `walletAddresses`.

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

<!-- end pr-codex -->
2024-12-13 20:08:49 +00:00
greg 22bc557090 [CI] Chore: Update allowed teams (#5735) 2024-12-13 10:31:00 -08:00
jnsdls 80b54a937c use resolved ENS name if available (#5734)
fixes: DASH-572
2024-12-13 18:14:08 +00:00
Will Cory be6433dcf2 docs: Add more context on guest mode (#5733)
Signed-off-by: Will Cory <[email protected]>
2024-12-13 09:42:05 -08:00
MananTank f6c040719c [DASH-612] Nebula: Add title and description meta (#5732)
DASH-612
2024-12-13 17:11:58 +00:00
MananTank 2db85824f0 [DASH-610] Fix useActiveWalletChain missing chain overrides added in dashboard (#5731)
Fixes: DASH-610
2024-12-13 16:59:01 +00:00
kien-ngo 498a26ebbc [Playground] Chain components (#5678)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces new `Chain` components to enhance the user interface for blockchain applications, allowing for the display of chain icons and names. It includes new pages and components that integrate these features into the existing playground web application.

### Detailed summary
- Added a new `Chain` entry in `navLinks.ts`.
- Created a new page in `page.tsx` for `Chain` components with metadata.
- Integrated `ThirdwebProvider`, `APIHeader`, `ChainIconBasic`, and `ChainNameBasic` components.
- Implemented `ChainIconBasic` and `ChainNameBasic` components in `chain-examples.tsx` to showcase chain icons and names.

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

<!-- end pr-codex -->
2024-12-13 16:14:41 +00:00
kumaryash90 8761fe6102 Process deploy param ref only when non-empty (#5730)
PROT-935

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the handling of `implementationConstructorParams` and `initializeParams` by adding null checks to ensure that they are defined before processing. This improves the robustness of the code.

### Detailed summary
- Changed `processedImplParams` and `processedInitializeParams` from constants to `undefined` initially.
- Added checks to confirm that `implementationConstructorParams` and `initializeParams` are defined before processing.
- Retained the logic for processing parameters using `processRefDeployments`.

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

<!-- end pr-codex -->
2024-12-13 09:16:09 +00:00
Joaquim Verges 77c8d0eff0 test: Add wallet connection hook tests (#5689) 2024-12-13 20:25:13 +13:00
Jonas Danielsandgithub-actions[bot] 29d32b8409 Version Packages (#5727)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@thirdweb-dev/[email protected]
2024-12-13 19:43:45 +13:00
jnsdls 67f63c3a48 remove client ID derivation from secret key (#5729)
fixes: DASH-621

we explicitly *DO NOT* want to derive from secretKey anymore - this would otherwise block multi secret key per project
2024-12-13 06:18:35 +00:00
jnsdls a0770238d4 allow passing null to service scope, do not check domains on secretKey auth (#5728)
fixes: DASH-621

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the authorization process by introducing an `authMethod` property and allowing `null` service scopes, while modifying billing statuses and service configuration types.

### Detailed summary
- Added `authMethod` to `teamAndProjectResponse`.
- Allowed passing `null` to `serviceScope` in `CoreServiceConfig`.
- Changed `billingStatus` from `"noCustomer"` to `"noPayment"`.
- Updated `TeamAndProjectResponse` to include `authMethod` type.
- Adjusted authorization logic for `secretKey` and null service scopes.

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

<!-- end pr-codex -->
2024-12-13 06:12:14 +00:00
gregfromstl 90a16da48e [Service Utils] Feature: Accept Request in authorizeNode (#5724)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `authorizeNode` function by improving type handling for request headers and refactoring how headers are accessed. It introduces a type guard for distinguishing between header types and updates the way headers are retrieved in various functions.

### Detailed summary
- Updated `req` type in `AuthInput` to allow `Request`.
- Added `isNodeHeaders` function to differentiate between `IncomingHttpHeaders` and `Headers`.
- Refactored `getHeader` function to use `isNodeHeaders` for retrieving headers.
- Modified `extractAuthorizationData` to use `getHeader` for constructing the URL.
- Updated `logHttpRequest` to use `getHeader` for SDK-related headers.

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

<!-- end pr-codex -->
2024-12-13 05:48:05 +00:00
Jonas Daniels e8b1f494fd Remove pre-release script and simplify release workflows (#5726) 2024-12-12 21:31:14 -08:00
Jonas Danielsandgithub-actions[bot] aa72ba2186 Version Packages (#5725)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@thirdweb-dev/[email protected]
2024-12-12 21:11:53 -08:00
Jonas Daniels a57bfdb565 add dummy changeset (#5723) 2024-12-12 21:09:13 -08:00
Jonas Daniels c432342ce9 do not manually change version before publishing (#5722) 2024-12-12 21:07:27 -08:00
kien-ngo 64f4103ef7 [Playground] Add Token components, fix links (#5677)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new `Token` navigation link, updates documentation links, and adds a new SVG file. It also implements a `Token` components page with multiple examples and components for displaying tokens, enhancing the UI for token-related functionalities.

### Detailed summary
- Added a new navigation link for `Token` in `navLinks.ts`.
- Updated documentation links in `page.tsx` for better references.
- Introduced a new SVG file for `usdc`.
- Created a new `Token` components page with examples for:
  - `TokenImageBasic`
  - `TokenImageOverride`
  - `TokenNameBasic`
  - `TokenSymbolBasic`
  - `TokenCard`

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

<!-- end pr-codex -->
2024-12-13 02:43:35 +00:00
Jonas Danielsandgithub-actions[bot] d90857ee5e Version Packages (#5717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-13 15:42:23 +13:00
Joaquim Verges 8d2e2ad92d [SDK] Feature: Add wagmi adapter for in-app wallet (#5644) 2024-12-13 15:33:00 +13:00
Nicholas St. Germain c91ca93eba fix ignore of mimeTime set in mediaRenderer (#5683) 2024-12-13 14:03:09 +13:00
Yash db6b0fc1f8 add onramp status for buy with fiat in portal (#5713) 2024-12-13 14:01:54 +13:00
Jonas Danielsandgithub-actions[bot] 203da76f32 Version Packages (#5714)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@thirdweb-dev/[email protected] [email protected]
2024-12-12 14:39:38 -08:00
greg cd55ada5b2 [SDK] Feature: Adds defaultCountryCode prop to ConnectButton (#5709) 2024-12-12 13:55:00 -08:00
joaquim-verges 3ec808dc78 Update /use and types to v2 (#5708)
## Problem solved

CNCT-2640

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on refactoring the `service-utils` package to remove the `usageLimit` module, update types and endpoints to version 2, and enhance authorization logic by integrating team and project responses.

### Detailed summary
- Deleted `usageLimit` module files.
- Updated API endpoint and types to version 2.
- Modified `authorizeClient` and `authorizeService` functions to use `TeamAndProjectResponse`.
- Adjusted authorization tests to reflect new structure.
- Revised caching logic for keys.
- Enhanced rate limiting to use project IDs instead of account IDs.

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

<!-- end pr-codex -->
2024-12-12 21:43:13 +00:00
MananTank 7d2547979d [Dashboard] Add Insight blueprint playground (#5631)
DASH-554

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on the removal of certain components related to `BlueprintsPage`, updates to the `useHeightObserver` function, and enhancements to the `BlueprintPlayground` functionality, including new utility functions for fetching blueprint data.

### Detailed summary
- Deleted components: `BlueprintsPage`, `BlueprintsExplorer`, `BlueprintsPageHeader`.
- Updated `useHeightObserver` to be an exported function.
- Changed height from `40px` to `32px` in CSS.
- Added new props (`scrollableContainerClassName`, `shadowColor`) to several components.
- Implemented a new utility for fetching blueprints and their specifications.
- Enhanced `BlueprintPlayground` to handle fetching and displaying blueprints.

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

<!-- end pr-codex -->
2024-12-12 21:31:41 +00:00
gregfromstl bc368c5a26 [Portal] Fix: Broken Link (#5716)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the link in the `page.mdx` file for the wallet overview section, directing users to the correct "get started" guide for thirdweb wallets.

### Detailed summary
- Changed the `href` attribute from `/wallet/get-started/overview` to `/connect/wallet/get-started` in the `page.mdx` file.

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

<!-- end pr-codex -->
2024-12-12 20:35:23 +00:00
gregfromstl 19487cb430 [Portal] Fix: Broken Link (#5715)
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates a link in the documentation for the `Wallet Connection functions`. The link's path has been changed, likely to reflect an updated structure in the documentation.

### Detailed summary
- Changed the link from `/typescript/v5/functions#wallets` to `/typescript/v5/wallets` in the `page.mdx` file.

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

<!-- end pr-codex -->
2024-12-12 20:16:18 +00:00
ElasticBottle 03b6d0d516 feat: add unlinking for in app wallet accounts (#5604)
https://linear.app/thirdweb/issue/CNCT-2497/unlink-auth-method-for-enclave-wallets

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces functionality to unlink accounts from the in-app wallet, allowing users to manage multiple linked profiles more effectively.

### Detailed summary
- Added `UnlinkParams` type for unlinking profiles.
- Implemented `unlinkProfile` method in `InAppNativeConnector` and `InAppWebConnector`.
- Updated `unlinkAccount` function to handle profile unlinking.
- Added `useUnlinkProfile` hook for React.
- Enhanced `LinkedProfilesScreen` to include unlink buttons when multiple profiles exist.
- Added tests for unlinking functionality.

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

<!-- end pr-codex -->
2024-12-12 19:05:18 +00:00
MananTank f7e60419c9 [Nebula] Fix page not redirected to new chat page when deleting active 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 -->
2024-12-12 18:19:17 +00:00
MananTank 08420456af [Nebula] Remove presence message when adding an error message (#5711)
Fixes: DASH-614

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving error handling in the `setMessages` function within the `ChatPageContent` component. It modifies how error messages are added to the message list, ensuring that the previous messages are preserved correctly.

### Detailed summary
- Refactored `setMessages` to create a new array `newMessages` based on previous messages.
- Added a condition to exclude the last message if its type is "presence".
- Pushed a new error message object containing the error details to `newMessages`.
- Returned `newMessages` from `setMessages`.

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

<!-- end pr-codex -->
2024-12-12 18:19:16 +00:00