Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Jun 8, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a new notifications system with a bell icon button displaying unread indicators.
    • Added a notifications panel with Inbox and Archive tabs supporting infinite scrolling and marking notifications as read.
    • Implemented a centralized notification state manager with optimized fetching, caching, and mutation handling.
    • Added a UI drawer component for mobile notification display with smooth open/close interactions.
  • Refactor

    • Replaced legacy notification button and fetching logic with the new unified Notifications button using only account ID.
    • Removed legacy notification callbacks and components from header and navigation for simplified notification handling.
  • Chores

    • Removed deprecated notification files and Storybook stories.
    • Updated dependencies by replacing "idb-keyval" with "vaul" for UI drawer functionality.

PR-Codex overview

This PR focuses on removing the NotificationButton component and its related files, replacing it with a new NotificationsButton component that enhances notification handling. Additionally, it updates the notification fetching logic and refactors related UI components.

Detailed summary

  • Deleted NotificationButton.tsx, fetch-notifications.ts, and related story files.
  • Introduced NotificationsButton component for improved notification UI.
  • Updated SecondaryNav, AccountHeader, and TeamHeader components to use NotificationsButton.
  • Refactored notification fetching logic in manager.ts for better state management.
  • Added new notification handling functions in notifications.ts for fetching and marking notifications.
  • Updated UI components to reflect changes in notification handling and display.

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

@vercel
Copy link

vercel bot commented Jun 8, 2025

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 Jun 9, 2025 8:17pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jun 9, 2025 8:17pm
login ⬜️ Skipped (Inspect) Jun 9, 2025 8:17pm
thirdweb_playground ⬜️ Skipped (Inspect) Jun 9, 2025 8:17pm
wallet-ui ⬜️ Skipped (Inspect) Jun 9, 2025 8:17pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 8, 2025 01:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 8, 2025 01:24 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 8, 2025 01:24 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Jun 8, 2025

⚠️ No Changeset found

Latest commit: e742929

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 8, 2025

## Walkthrough

A new notification system was introduced, replacing the previous implementation. This includes a new API module, React components for notification display, and a React hook for managing notification state. The old notification button components and related logic were removed from team and account headers, streamlining notification handling to use the new system based on account ID.

## Changes

| File(s) / Path(s)                                                                                      | Change Summary                                                                                                  |
|--------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| apps/dashboard/src/@/api/notifications.ts                                                              | Added new API module for notifications with typed functions and consistent error handling.                      |
| apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx                           | Added new `NotificationsButton` React component with bell icon, unread indicator, drawer/popover UI.            |
| apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx                            | Added new `NotificationEntry` component rendering notification details with mark-as-read action.                |
| apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx                             | Added new `NotificationList` component with Inbox and Archive tabs, infinite loading, and empty states.         |
| apps/dashboard/src/@/components/blocks/notifications/state/manager.ts                                  | Added new `useNotifications` hook managing unread/archived notifications, count, and mark-as-read mutation.     |
| apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx                                      | Removed old notification fetch/mark imports and props.                                                          |
| apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx                            | Removed notification-related props from stories.                                                                |
| apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx                                    | Replaced old notification button with new component; removed related props and types.                           |
| apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx                           | Replaced old notification button with new component; removed related props and types.                           |
| apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx         | **Deleted**: Storybook stories for old notification button.                                                     |
| apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx                 | **Deleted**: Old notification button UI and types.                                                              |
| apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts                 | **Deleted**: Old notification fetching and marking logic using IndexedDB.                                       |
| apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx                       | Removed notification-related stub props from stories.                                                           |
| apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx                               | Replaced old notification button with new component; removed related props and types.                           |
| apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx               | Removed old notification fetch/mark imports and props.                                                          |
| apps/dashboard/package.json                                                                            | Removed dependency "idb-keyval"; added dependency "vaul" for drawer UI components.                              |
| apps/dashboard/src/@/components/ui/drawer.tsx                                                         | Added new drawer UI components built on `vaul` primitives for use in notifications UI.                          |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant NotificationsButton
    participant useNotifications (Hook)
    participant Notifications API

    User->>NotificationsButton: Click bell icon
    NotificationsButton->>useNotifications: Fetch unread, archived notifications, count (accountId)
    useNotifications->>Notifications API: getUnreadNotifications / getArchivedNotifications / getUnreadNotificationsCount
    Notifications API-->>useNotifications: Return notifications data
    useNotifications-->>NotificationsButton: Provide notification state
    NotificationsButton->>User: Display drawer or popover with notification list
    User->>NotificationsButton: Mark notification as read
    NotificationsButton->>useNotifications: markNotificationAsRead(notificationId)
    useNotifications->>Notifications API: markNotificationAsRead
    Notifications API-->>useNotifications: Confirm update
    useNotifications-->>NotificationsButton: Update notification state

Suggested reviewers

  • jnsdls

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 5bb9fd0e2e4f54f0f5e6801fa8408aa5c6515d21 and e742929b2ce4c3c34bc1edad94c2e87c17541354.

</details>

<details>
<summary>⛔ Files ignored due to path filters (1)</summary>

* `pnpm-lock.yaml` is excluded by `!**/pnpm-lock.yaml`

</details>

<details>
<summary>📒 Files selected for processing (17)</summary>

* `apps/dashboard/package.json` (1 hunks)
* `apps/dashboard/src/@/api/notifications.ts` (1 hunks)
* `apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx` (1 hunks)
* `apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx` (1 hunks)
* `apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx` (1 hunks)
* `apps/dashboard/src/@/components/blocks/notifications/state/manager.ts` (1 hunks)
* `apps/dashboard/src/@/components/ui/drawer.tsx` (1 hunks)
* `apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx` (0 hunks)
* `apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx` (0 hunks)
* `apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx` (2 hunks)
* `apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx` (2 hunks)
* `apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx` (0 hunks)
* `apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx` (0 hunks)
* `apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts` (0 hunks)
* `apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx` (0 hunks)
* `apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx` (2 hunks)
* `apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx` (1 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (6)</summary>

* apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx
* apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx
* apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx
* apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx
* apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts
* apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (11)</summary>

* apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx
* apps/dashboard/src/@/components/blocks/notifications/state/manager.ts
* apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx
* apps/dashboard/package.json
* apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx
* apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx
* apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx
* apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx
* apps/dashboard/src/@/api/notifications.ts
* apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx
* apps/dashboard/src/@/components/ui/drawer.tsx

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (8)</summary>

* GitHub Check: Unit Tests
* GitHub Check: Size
* GitHub Check: E2E Tests (pnpm, webpack)
* GitHub Check: E2E Tests (pnpm, esbuild)
* GitHub Check: E2E Tests (pnpm, vite)
* GitHub Check: Build Packages
* GitHub Check: Lint Packages
* GitHub Check: Analyze (javascript)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAbQARNERYAXxnWgBdSABBWnoMfHEAM3gGanh8DGREWUQaZkgAd3VYSGwMfzR6XCoGAGt4DCJopqT7bAFmdRp6OTDYD2xESkghKtovZDHbSAxHARWAdgBmAAYAJhQs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5io2eYDNmGaTpFZEwRZDN3n1zqkIS3Se3PhNfgrFtaOxYmOgXL9byLZFEsGQjwdNo4rqOwC4Dv5udbkRZIoAeRqAnkGyV5AYDUuDR1AAAfR+iIAbLB/QBnQBsusIBePSSy30kgAABWAAJwCBK9xwby4cDr2nBvLpwOvbQAYAAAOSvRrWODnASAkV7y9Fbr3RWSAAAFnOACBTg6V44IcGivRXaAdel5IYDUvVljgDADK8cGOC+XTgxwNAEVdoDnAYrDAC4DlciskATggVooL5boB16lIBVhq6Vc8sQBIApwJSHXu8sCAMrRQSvecFoCHBvLoV04IcAyuxWugRQAQEUAyt8pGYGVyvd5Yyv+WirfKEa+VeOCW82rXQOvdVeOB17fLvluvSQGivnBvLaAY4HkAytKQ0AhwEgKcFOAMAigCV0K6IHOteWyg0Vy3h9YYCVXaA0Vvq5Xsr3w3TgGV768DaCsTXvLxVga6cF8uLW69hwTLJsi8vFX/rDASK/DZqtE2zghN54GgAyvBWur715681bRvnBMbZwe2CTbGvTWBAvlooLQFOAkBErs1o60UFOBFBvLJASvdFYivVlorGV3K2gDQDeWGAh1qa81ZKs83+ka184L5f1sCAWrmV2G7DYysa1WbXQXyxlYYCJXorRNwm0dbr1BWMrI10a1AGsu4A7LaSxy3t2cu0AbLAyfQEAA== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=thirdweb-dev/js&utm_content=7302):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jun 8, 2025
@jnsdls jnsdls marked this pull request as ready for review June 8, 2025 01:24
@jnsdls jnsdls requested review from a team as code owners June 8, 2025 01:24
Copy link
Member Author

jnsdls commented Jun 8, 2025


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.

@jnsdls jnsdls added the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Jun 8, 2025 — with Graphite App
cursor[bot]

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.57%. Comparing base (dacfd94) to head (e742929).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7302   +/-   ##
=======================================
  Coverage   55.57%   55.57%           
=======================================
  Files         909      909           
  Lines       58673    58673           
  Branches     4158     4158           
=======================================
  Hits        32607    32607           
  Misses      25959    25959           
  Partials      107      107           
Flag Coverage Δ
packages 55.57% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

🧹 Nitpick comments (8)
apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1)

22-23: Improve the implementation comment and consider refactoring.

The comment "kinda jank but it works" suggests the unread count logic could be improved. Consider either:

  1. Improving the implementation to be more robust
  2. Adding a more descriptive comment explaining why this approach is necessary
-          {/* kinda jank but it works: always take the last page and check the unread count of IT */}
+          {/* Display notification indicator when there are unread notifications */}
apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx (1)

45-53: Consider adding accessibility improvements to the mark as read button.

The icon-only button lacks an accessible label for screen readers.

           <Button
             variant="ghost"
             size="icon"
             onClick={() => onMarkAsRead(notification.id)}
             className="text-muted-foreground hover:text-foreground"
+            aria-label="Mark notification as read"
           >
             <Trash2Icon className="h-4 w-4" />
           </Button>
apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (1)

59-60: Consider making the max height configurable.

The hardcoded max height of 600px might not be ideal for all screen sizes. Consider making this configurable or responsive.

-      <div className="max-h-[600px] w-full overflow-y-auto">
+      <div className="max-h-[min(600px,80vh)] w-full overflow-y-auto">
apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (3)

78-79: Improve type safety for pageParam.

The type assertion pattern used for pageParam could be simplified and made more type-safe.

-      const cursor = (pageParam ?? undefined) as string | undefined;
+      const cursor = pageParam as string | undefined;

Since pageParam is already typed through initialPageParam, the nullish coalescing and type assertion are redundant.

Also applies to: 93-94


135-135: Extract magic numbers into named constants.

The stale time values should be extracted into named constants for better maintainability.

At the top of the file, add:

+const STALE_TIME = {
+  UNREAD_COUNT: 60_000, // 1 minute
+  PRODUCT_UPDATES: 60_000 * 15, // 15 minutes
+} as const;

Then update the usages:

-    staleTime: 60_000, // 1min
+    staleTime: STALE_TIME.UNREAD_COUNT,
-    staleTime: 60_000 * 15, // 15min
+    staleTime: STALE_TIME.PRODUCT_UPDATES,

127-129: Consider using a more robust error handling approach.

Using console.error in production code might not be ideal. Consider using a proper error tracking service or at least a more centralized error handling approach.

-      cleanupProductUpdates(res.data).catch((err) => {
-        console.error("Failed to cleanup product updates", err);
-      });
+      cleanupProductUpdates(res.data).catch((err) => {
+        // Log to error tracking service if available
+        if (process.env.NODE_ENV === "development") {
+          console.error("Failed to cleanup product updates", err);
+        }
+      });
apps/dashboard/src/@/api/notifications.ts (2)

128-144: Clarify the dual behavior of markNotificationAsRead function.

The function's behavior changes significantly based on whether notificationId is provided, but this isn't clear from the function signature alone.

Consider splitting into two separate functions for clarity:

-export async function markNotificationAsRead(notificationId?: string) {
+export async function markNotificationAsRead(notificationId: string) {
+  const authToken = await getAuthToken();
+  if (!authToken) {
+    throw new Error("No auth token found");
+  }
+  const url = new URL(
+    "/v1/dashboard-notifications/mark-as-read",
+    NEXT_PUBLIC_THIRDWEB_API_HOST,
+  );
+  const response = await fetch(url, {
+    method: "PUT",
+    headers: {
+      Authorization: `Bearer ${authToken}`,
+      "Content-Type": "application/json",
+    },
+    body: JSON.stringify({ notificationId }),
+  });
+  // ... rest of function
+}
+
+export async function markAllNotificationsAsRead() {
   const authToken = await getAuthToken();
   if (!authToken) {
     throw new Error("No auth token found");
   }
   const url = new URL(
     "/v1/dashboard-notifications/mark-as-read",
     NEXT_PUBLIC_THIRDWEB_API_HOST,
   );
   const response = await fetch(url, {
     method: "PUT",
     headers: {
       Authorization: `Bearer ${authToken}`,
       "Content-Type": "application/json",
     },
-    // if notificationId is provided, mark it as read, otherwise mark all as read
-    body: JSON.stringify(notificationId ? { notificationId } : {}),
+    body: JSON.stringify({}),
   });
-  if (!response.ok) {
-    const body = await response.text();
-    return {
-      status: "error",
-      reason: "unknown",
-      body,
-    } as const;
-  }
-  return {
-    status: "success",
-  } as const;
+  // ... rest of function
 }

41-47: Enhance error handling with more specific error types.

All functions return generic "unknown" error reasons. Consider providing more specific error categorization based on HTTP status codes.

-    return {
-      status: "error",
-      reason: "unknown",
-      body,
-    } as const;
+    let reason: string;
+    switch (response.status) {
+      case 401:
+        reason = "unauthorized";
+        break;
+      case 403:
+        reason = "forbidden";
+        break;
+      case 404:
+        reason = "not_found";
+        break;
+      case 429:
+        reason = "rate_limited";
+        break;
+      case 500:
+        reason = "server_error";
+        break;
+      default:
+        reason = "unknown";
+    }
+    return {
+      status: "error",
+      reason,
+      body,
+      statusCode: response.status,
+    } as const;

Also applies to: 77-83, 109-115, 146-152, 179-184

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b3e42f7 and 59b6357.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (15)
  • apps/dashboard/src/@/api/notifications.ts (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (1 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx (1 hunks)
💤 Files with no reviewable changes (6)
  • apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx
🧰 Additional context used
🧬 Code Graph Analysis (6)
apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx (1)
apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1)
  • NotificationsButton (14-36)
apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (3)
apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (1)
  • useNotifications (52-269)
apps/dashboard/src/@/components/ui/tabs.tsx (1)
  • TabButtons (85-159)
apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx (1)
  • NotificationEntry (13-57)
apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx (1)
apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1)
  • NotificationsButton (14-36)
apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx (2)
apps/dashboard/src/@/api/notifications.ts (1)
  • Notification (7-16)
apps/dashboard/src/@/components/ui/button.tsx (1)
  • Button (85-85)
apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (1)
apps/dashboard/src/@/api/notifications.ts (8)
  • Notification (7-16)
  • NotificationsApiResponse (18-21)
  • getUnreadNotifications (23-56)
  • getArchivedNotifications (58-92)
  • getUnreadNotificationsCount (94-126)
  • fetchProductUpdates (170-191)
  • markNotificationAsRead (128-157)
  • ProductUpdateItem (163-168)
apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx (1)
apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1)
  • NotificationsButton (14-36)
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (9)
apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx (1)

13-13: LGTM! Notification props properly removed.

The removal of notification-related imports and props from the team header aligns with the centralized notification system refactor.

apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1)

14-36: Well-designed component with simplified props interface.

The new NotificationsButton component successfully centralizes notification state management through the useNotifications hook and simplifies the component interface to just require an accountId.

apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx (2)

5-5: Correct import update for new notification system.

The import change from the old notification component to the new NotificationsButton aligns with the refactor.


20-20: Simplified component usage improves maintainability.

The new NotificationsButton only requires the accountId prop, eliminating the need for async callback functions and simplifying the component interface.

apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx (2)

8-8: Correct import for new notification system.

Import of the new NotificationsButton component is consistent with the refactor pattern.


119-119:

✅ Verification successful

Verify notification coverage across UI variants.

The NotificationsButton is added to the mobile UI. Ensure that the desktop UI also has notification access (likely through the SecondaryNav component).


🏁 Script executed:

#!/bin/bash
# Verify that both mobile and desktop UIs have notification functionality
echo "Checking desktop UI notification coverage..."
rg -A 10 -B 5 "SecondaryNav" apps/dashboard/src/app/\(app\)/account/components/AccountHeaderUI.tsx

echo "Checking SecondaryNav includes notifications..."
rg -A 5 -B 5 "NotificationsButton" apps/dashboard/src/app/\(app\)/components/Header/SecondaryNav/SecondaryNav.tsx

Length of output: 2496


Notification coverage verified across UI variants

– In AccountHeaderUI.tsx (mobile view): <NotificationsButton accountId={props.account.id} /> is present.
– In SecondaryNav.tsx (desktop view): <NotificationsButton accountId={props.account.id} /> is already rendered.

No further changes needed.

apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx (1)

9-9: Clean implementation of the new notifications system.

The replacement of the old notification button with the new NotificationsButton component simplifies the props interface by requiring only the accountId. The import path correctly uses the alias pattern.

Also applies to: 198-198

apps/dashboard/src/@/api/notifications.ts (2)

1-6: LGTM! Server-side setup is correctly configured.

The file properly uses server-only directives and imports the necessary dependencies for server-side API operations.


7-22: Well-defined type structures.

The type definitions are comprehensive and properly structured for the notification system. The optional nextCursor in NotificationsApiResponse correctly supports pagination.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.57 KB (0%) 1.3 s (0%) 374 ms (+221.97% 🔺) 1.7 s
thirdweb (cjs) 345.55 KB (0%) 7 s (0%) 963 ms (+7.71% 🔺) 7.9 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 90 ms (+761.96% 🔺) 204 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 16 ms (+555.19% 🔺) 27 ms
thirdweb/react (minimal + tree-shaking) 19.56 KB (0%) 392 ms (0%) 77 ms (+351.31% 🔺) 468 ms

@jnsdls jnsdls force-pushed the _Dashboard_Add_notifications_system_with_unread_tracking branch from 59b6357 to fa3c433 Compare June 8, 2025 01:57
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 8, 2025 01:57 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 8, 2025 01:57 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 8, 2025 01:57 Inactive
cursor[bot]

This comment was marked as outdated.

@jnsdls jnsdls force-pushed the _Dashboard_Add_notifications_system_with_unread_tracking branch from fa3c433 to 0ac15b4 Compare June 8, 2025 17:48
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 8, 2025 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 8, 2025 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 8, 2025 17:48 Inactive
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (4)
apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (3)

129-131: Consider extracting side effects from query function.

The cleanup operation inside the query function is an anti-pattern as query functions should be pure. Consider moving this to a separate effect or mutation.

-      // as a side effect, clean up the read notifications
-      cleanupProductUpdates(res.data).catch((err) => {
-        console.error("Failed to cleanup product updates", err);
-      });

Move the cleanup to a separate effect:

+// Add this effect after the query definition
+useEffect(() => {
+  if (updatesQuery.isSuccess && updatesQuery.data) {
+    const currentUpdates = updatesQuery.data.map(d => ({ ...d, isRead: false }));
+    cleanupProductUpdates(currentUpdates).catch((err) => {
+      console.error("Failed to cleanup product updates", err);
+    });
+  }
+}, [updatesQuery.isSuccess, updatesQuery.data]);

277-277: Track the temporary IndexedDB implementation.

The comment indicates this is a temporary solution that will be replaced by a proper API. Consider creating a tracking issue to ensure this technical debt is addressed.

Would you like me to generate a GitHub issue template to track the replacement of the IndexedDB implementation with a proper API?


88-88: Consider making refetch intervals configurable.

The hardcoded 1-minute refetch intervals might not be optimal for all use cases and could impact performance or user experience.

+interface UseNotificationsOptions {
+  refetchInterval?: number;
+}
+
-export function useNotifications(accountId: string) {
+export function useNotifications(
+  accountId: string, 
+  options: UseNotificationsOptions = {}
+) {
+  const { refetchInterval = 60_000 } = options;

Then use refetchInterval in the query configurations instead of the hardcoded values.

Also applies to: 104-104, 116-116

apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (1)

14-14: Consider more specific prop typing for better maintainability.

Using the entire return type of useNotifications makes the component tightly coupled and brittle to changes in the hook interface.

+interface NotificationListProps {
+  unreadNotifications: Notification[];
+  archivedNotifications: Notification[];
+  updates: (ProductUpdateItem & { isRead: boolean })[];
+  totalUnreadCount: number;
+  unreadUpdatesCount: number;
+  unreadNotificationsCount: number;
+  isLoadingUnread: boolean;
+  isLoadingArchived: boolean;
+  isLoadingUpdates: boolean;
+  hasMoreUnread: boolean;
+  hasMoreArchived: boolean;
+  isFetchingMoreUnread: boolean;
+  isFetchingMoreArchived: boolean;
+  loadMoreUnread: () => void;
+  loadMoreArchived: () => void;
+  markAsRead: (id: string) => void;
+  markAllAsRead: () => void;
+  markUpdateAsRead: (id: string) => void;
+}
+
-export function NotificationList(props: ReturnType<typeof useNotifications>) {
+export function NotificationList(props: NotificationListProps) {
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ca8ffa3 and d1e0c1d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (15)
  • apps/dashboard/src/@/api/notifications.ts (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (1 hunks)
  • apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (1 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx (1 hunks)
💤 Files with no reviewable changes (6)
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.stories.tsx
  • apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.stories.tsx
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.stories.tsx
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/NotificationButton.tsx
  • apps/dashboard/src/app/(app)/team/components/NotificationButton/fetch-notifications.ts
🚧 Files skipped from review as they are similar to previous changes (7)
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/team-header-logged-in.client.tsx
  • apps/dashboard/src/app/(app)/team/components/TeamHeader/TeamHeaderUI.tsx
  • apps/dashboard/src/app/(app)/account/components/AccountHeaderUI.tsx
  • apps/dashboard/src/app/(app)/components/Header/SecondaryNav/SecondaryNav.tsx
  • apps/dashboard/src/@/components/blocks/notifications/notification-button.tsx
  • apps/dashboard/src/@/components/blocks/notifications/notification-entry.tsx
  • apps/dashboard/src/@/api/notifications.ts
🧰 Additional context used
🧬 Code Graph Analysis (1)
apps/dashboard/src/@/components/blocks/notifications/state/manager.ts (1)
apps/dashboard/src/@/api/notifications.ts (8)
  • Notification (7-16)
  • NotificationsApiResponse (18-21)
  • getUnreadNotifications (23-56)
  • getArchivedNotifications (58-92)
  • getUnreadNotificationsCount (94-126)
  • fetchProductUpdates (170-191)
  • markNotificationAsRead (128-157)
  • ProductUpdateItem (163-168)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
apps/dashboard/src/@/components/blocks/notifications/notification-list.tsx (2)

245-245: Good implementation of intersection observer optimization.

The observer.unobserve(entry.target) call prevents duplicate trigger events, which is a solid optimization for the infinite scrolling behavior.


16-22: Well-designed initial tab selection logic.

The priority-based tab selection (Inbox → Updates → Archive) based on unread counts provides a good user experience by showing the most relevant content first.

@jnsdls jnsdls removed the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Jun 9, 2025
@jnsdls jnsdls force-pushed the _Dashboard_Add_notifications_system_with_unread_tracking branch from d1e0c1d to 5bb9fd0 Compare June 9, 2025 19:23
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 9, 2025 19:23 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 9, 2025 19:23 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 9, 2025 19:23 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 9, 2025 19:23 Inactive
@socket-security
Copy link

socket-security bot commented Jun 9, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvaul@​1.1.21001008283100

View full report

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ BugBot reviewed your changes and found no bugs!


Was this report helpful? Give feedback by reacting with 👍 or 👎

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 9, 2025

Merge activity

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Introduced a new notifications system with a bell icon button displaying unread indicators.
  - Added a notifications panel with Inbox and Archive tabs supporting infinite scrolling and marking notifications as read.
  - Implemented a centralized notification state manager with optimized fetching, caching, and mutation handling.
  - Added a UI drawer component for mobile notification display with smooth open/close interactions.

- **Refactor**
  - Replaced legacy notification button and fetching logic with the new unified Notifications button using only account ID.
  - Removed legacy notification callbacks and components from header and navigation for simplified notification handling.

- **Chores**
  - Removed deprecated notification files and Storybook stories.
  - Updated dependencies by replacing "idb-keyval" with "vaul" for UI drawer functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on removing the `NotificationButton` component and its related files, replacing it with a new `NotificationsButton` component that integrates notifications more effectively within the application.

### Detailed summary
- Deleted `NotificationButton.tsx`, `fetch-notifications.ts`, and `NotificationButton.stories.tsx`.
- Added `NotificationsButton` component with enhanced functionality for displaying notifications.
- Updated various components (`AccountHeaderUI`, `SecondaryNav`, `TeamHeaderUI`) to use `NotificationsButton`.
- Removed references to `getInboxNotifications` and `markNotificationAsRead` from multiple components.
- Introduced new notification management logic and UI components in `notification-list.tsx` and `notification-entry.tsx`.
- Updated dependencies in `package.json` to include the new `vaul` library for UI elements.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the _Dashboard_Add_notifications_system_with_unread_tracking branch from 5bb9fd0 to e742929 Compare June 9, 2025 20:09
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 9, 2025 20:09 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 9, 2025 20:09 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 9, 2025 20:09 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 9, 2025 20:09 Inactive
@graphite-app graphite-app bot merged commit e742929 into main Jun 9, 2025
24 checks passed
@graphite-app graphite-app bot deleted the _Dashboard_Add_notifications_system_with_unread_tracking branch June 9, 2025 20:17
@vercel vercel bot temporarily deployed to Production – wallet-ui June 9, 2025 20:17 Inactive
@vercel vercel bot temporarily deployed to Production – login June 9, 2025 20:17 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 June 9, 2025 20:17 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground June 9, 2025 20:17 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.

3 participants