Skip to content

Conversation

@0xFirekeeper
Copy link
Member

@0xFirekeeper 0xFirekeeper commented Oct 21, 2025

Closes BLD-447


PR-Codex overview

This PR focuses on adding support for userId across various wallet APIs and updating related components to accommodate this new identifier, enhancing user identification in the application.

Detailed summary

  • Added userId support in wallet APIs and types.
  • Updated transformToWalletUser function to include userId.
  • Modified searchUsers to handle userId queries.
  • Enhanced AdvancedSearchInput with userId as a search type.
  • Updated SearchResults and InAppWalletUsersPageContent to display and copy userId.
  • Revised documentation to include userId details.
  • Adjusted utility functions to work with userId.

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

Summary by CodeRabbit

  • New Features
    • Added "User Identifier" as a searchable field and renamed ID option to "Auth Identifier" for clarity.
    • Search results and table now show both User Identifier and Auth Identifier with copy-to-clipboard and truncated display.
    • Email is surfaced as the primary contact in list views and CSV exports.
    • Wallet API responses now include a userId field where applicable.

Introduces support for the userId field throughout wallet-related APIs and dashboard components. Updates search, display, and transformation logic to handle userId in addition to existing identifiers, and improves UI to distinguish between 'User Identifier' (userId) and 'Auth Identifier'. Updates API client types and documentation to reflect the new userId field.

Closes BLD-447
@0xFirekeeper 0xFirekeeper requested review from a team as code owners October 21, 2025 22:49
@0xFirekeeper 0xFirekeeper added the Dashboard Involves changes to the Dashboard. label Oct 21, 2025
@linear
Copy link

linear bot commented Oct 21, 2025

@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2025

🦋 Changeset detected

Latest commit: 26f951c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@thirdweb-dev/api Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
thirdweb-www Ready Ready Preview Comment Oct 21, 2025 11:27pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 Skipped Skipped Oct 21, 2025 11:27pm
nebula Skipped Skipped Oct 21, 2025 11:27pm
thirdweb_playground Skipped Skipped Oct 21, 2025 11:27pm
wallet-ui Skipped Skipped Oct 21, 2025 11:27pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 21, 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.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 21, 2025

Walkthrough

The PR adds userId support across wallet APIs and the dashboard. Changes include a new userId search type in dashboard components, API response types populated with userId fields, search logic extended to query by userId, and UI updated to display both userId and auth identifier with truncation and copy functionality.

Changes

Cohort / File(s) Summary
Release Notes
\.changeset/breezy-heads-crash.md
Patch release notes documenting userId support across wallet APIs.
API Types & SDK Docs
packages/api/src/client/types.gen.ts, packages/api/src/client/sdk.gen.ts
Added userId field to multiple response types (CompleteAuthenticationResponses.200 now requires userId; several wallet responses/queries include optional userId). JSDoc extended.
Search Type Definition
apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
Expanded SearchType union to include "userId".
Search Input UI
apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
Added searchTypeLabels mapping; renamed dropdown label ("ID" → "Auth Identifier"); added "userId" option labeled "User Identifier"; updated placeholder generation.
Search Execution
apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts
transformToWalletUser now prefers apiWallet.userId for id resolution; search handler accepts "userId" and sets queryParams.userId.
Search Results Rendering
apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
Introduced getAuthIdentifier and truncateIdentifier; display shows both User Identifier and Auth Identifier using CopyTextButton with truncated labels.
Dashboard Table & CSV Export
apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
Added new "User Identifier" column; renamed/updated "Auth Identifier" column to use getAuthIdentifier and truncateIdentifier; replaced External Wallets column with Email (primary email) and updated CSV export mappings (user_identifier, auth_identifier, email).
Embedded Wallets Hook
apps/dashboard/src/@/hooks/useEmbeddedWallets.ts
transformToWalletUser updated to prefer apiWallet.userId when resolving user id.

Sequence Diagram(s)

sequenceDiagram
  participant User as Dashboard User
  participant UI as AdvancedSearchInput
  participant API as Wallet API
  participant Transform as transformToWalletUser
  participant Table as Results Table

  User->>UI: Enter query + select "User Identifier" (userId)
  UI->>API: GET /wallets?userId=<query>
  API-->>UI: 200 OK (wallets with optional userId)
  UI->>Transform: map API wallet -> WalletUser (prefer apiWallet.userId)
  Transform-->>Table: WalletUser rows (include user_identifier, auth_identifier)
  Table->>User: Render rows with truncated identifiers + CopyTextButton
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings, 1 inconclusive)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description references the linked issue (BLD-447) and includes a PR-Codex overview that provides a detailed summary of changes. However, the description is incomplete according to the repository template. Specifically, it lacks the "Notes for the reviewer" section for important context and the "How to test" section that would guide reviewers on validation approach. While the PR-Codex overview does provide technical details about the changes, these are not substitutes for the structured template sections that help ensure consistent communication and proper testing guidance.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Out of Scope Changes Check ❓ Inconclusive The changeset includes several modifications that appear to go beyond basic userId search implementation. These include: renaming getUserIdentifier to getAuthIdentifier, introducing a new Auth Identifier concept separate from User Identifier, replacing the External Wallets column with an Email column, adding truncateIdentifier utility functions, and restructuring identifier display logic across multiple components. While these changes appear intentional based on the PR objectives which explicitly mention "Enhanced UI components to display userId and Auth Identifier", the minimal linked issue description makes it difficult to confirm whether this broader refactoring scope was explicitly required or represents scope creep. Consider clarifying whether the broader UI restructuring (identifier separation, column reorganization, function renaming) was explicitly required by BLD-447 or if it represents enhancements beyond the original scope. If it's intended as part of the feature, the linked issue should be updated with more complete acceptance criteria. If it's beyond scope, these changes should be separated into a follow-up PR focused on identifier display improvements.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "[Dashboard] Add userId support across wallet APIs and UI" directly summarizes the main change in the changeset. The title is specific and clear, accurately describing that userId support is being added to both backend wallet APIs and frontend UI components. The title follows a consistent format with scope prefix and concise language that makes the primary intent immediately understandable to anyone reviewing the repository history.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch firekeeper/user-id-search

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.89%. Comparing base (29d05a5) to head (26f951c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8290   +/-   ##
=======================================
  Coverage   54.89%   54.89%           
=======================================
  Files         919      919           
  Lines       60623    60623           
  Branches     4116     4116           
=======================================
  Hits        33282    33282           
  Misses      27240    27240           
  Partials      101      101           
Flag Coverage Δ
packages 54.89% <ø> (ø)
🚀 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.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.51 KB (0%) 1.3 s (0%) 215 ms (+172.99% 🔺) 1.6 s
thirdweb (cjs) 365.68 KB (0%) 7.4 s (0%) 756 ms (+3.45% 🔺) 8.1 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 95 ms (+1554.04% 🔺) 209 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 76 ms (+3831.94% 🔺) 86 ms
thirdweb/react (minimal + tree-shaking) 19.13 KB (0%) 383 ms (0%) 142 ms (+3630.43% 🔺) 524 ms

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: 0

🧹 Nitpick comments (1)
apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx (1)

28-33: Avoid duplicating identifier truncation logic

The same truncateIdentifier helper now lives here and in in-app-wallet-users-content.tsx. Hoisting this into a shared utility (or at least into a common module within this folder) would keep the behavior consistent and reduce drift if we need to tweak the formatting later.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 29d05a5 and 5020076.

📒 Files selected for processing (9)
  • .changeset/breezy-heads-crash.md (1 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx (3 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx (4 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx (4 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts (2 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts (1 hunks)
  • apps/dashboard/src/@/hooks/useEmbeddedWallets.ts (1 hunks)
  • packages/api/src/client/sdk.gen.ts (2 hunks)
  • packages/api/src/client/types.gen.ts (7 hunks)
🧰 Additional context used
📓 Path-based instructions (7)
.changeset/*.md

📄 CodeRabbit inference engine (AGENTS.md)

.changeset/*.md: Each change in packages/* must include a changeset for the appropriate package
Version bump rules: patch for non‑API changes; minor for new/modified public API

Files:

  • .changeset/breezy-heads-crash.md
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
  • apps/dashboard/src/@/hooks/useEmbeddedWallets.ts
  • packages/api/src/client/types.gen.ts
  • packages/api/src/client/sdk.gen.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
  • apps/dashboard/src/@/hooks/useEmbeddedWallets.ts
  • packages/api/src/client/types.gen.ts
  • packages/api/src/client/sdk.gen.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/* (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
  • apps/dashboard/src/@/hooks/useEmbeddedWallets.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/searchUsers.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
  • apps/dashboard/src/@/hooks/useEmbeddedWallets.ts
  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
**/types.ts

📄 CodeRabbit inference engine (AGENTS.md)

Provide and re‑use local type barrels in a types.ts file

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
🧬 Code graph analysis (3)
apps/dashboard/src/@/components/in-app-wallet-users-content/AdvancedSearchInput.tsx (1)
apps/dashboard/src/@/components/in-app-wallet-users-content/types.ts (1)
  • SearchType (1-7)
apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx (1)
apps/dashboard/src/@/components/ui/CopyTextButton.tsx (1)
  • CopyTextButton (9-68)
apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx (1)
apps/dashboard/src/@/components/ui/CopyTextButton.tsx (1)
  • CopyTextButton (9-68)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
.changeset/breezy-heads-crash.md (1)

1-5: Verify version bump classification against API scope.

According to the coding guidelines, version bumps should be: "patch for non‑API changes; minor for new/modified public API".

The AI summary indicates that userId fields are being added to multiple public response types (CompleteAuthenticationResponses, GetMyWalletResponses, ListUserWalletsResponses, etc.) and that "public typings [are] extended to document userId fields." Adding new fields to exported response types represents a modification to the public API surface, which typically warrants a minor version bump rather than patch.

Please verify that this changeset should be classified as "patch" or if it should be bumped to "minor" based on the scope of public API modifications.

Replaces the 'External Wallets' column with an 'Email' column in the in-app wallet users table. Adds a utility to extract the primary email from linked accounts and updates CSV export to include the email instead of external wallet addresses. Simplifies the getAuthIdentifier logic to prioritize the 'id' field.
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 21, 2025 23:19 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula October 21, 2025 23:19 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 21, 2025 23:19 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 21, 2025 23:19 Inactive
@0xFirekeeper 0xFirekeeper added the merge-queue Adds the pull request to Graphite's merge queue. label Oct 21, 2025
Copy link
Member Author

0xFirekeeper commented Oct 21, 2025

Merge activity

  • Oct 21, 11:21 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 21, 11:37 PM UTC: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

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: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5020076 and 26f951c.

📒 Files selected for processing (2)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx (3 hunks)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx (4 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/dashboard/src/@/components/in-app-wallet-users-content/SearchResults.tsx
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

apps/{dashboard,playground-web}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/* (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx
🧬 Code graph analysis (1)
apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx (1)
apps/dashboard/src/@/components/ui/CopyTextButton.tsx (1)
  • CopyTextButton (9-68)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (4)
apps/dashboard/src/@/components/in-app-wallet-users-content/in-app-wallet-users-content.tsx (4)

100-121: LGTM!

The Auth Identifier column correctly uses the renamed getAuthIdentifier function and applies truncation consistently. The tooltip and header labels are clear and descriptive.


132-152: LGTM!

The Email column correctly uses getPrimaryEmail with appropriate fallback display and copy functionality. The decision not to truncate emails is appropriate for readability.


261-272: LGTM!

The CSV export logic correctly maps the new fields (email, auth_identifier, user_identifier) with appropriate fallbacks, maintaining consistency with the table display.


79-99: User Identifier column implementation verified.

The id property exists in the WalletUser type as a string field in UserStatus (packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts:39). The implementation correctly accesses this property, handles null/undefined cases with the fallback to "N/A", and uses component utilities (truncateIdentifier, CopyTextButton) appropriately.

@0xFirekeeper 0xFirekeeper merged commit f2121e9 into main Oct 21, 2025
23 checks passed
@0xFirekeeper 0xFirekeeper deleted the firekeeper/user-id-search branch October 21, 2025 23:35
@joaquim-verges joaquim-verges mentioned this pull request Oct 21, 2025
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. merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant