Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Sep 30, 2025


PR-Codex overview

This PR enhances the TransactionsTableUI component by adding filtering capabilities for transactions based on id and from fields. It modifies the data fetching function to include these new parameters, improving the user interface for transaction management.

Detailed summary

  • Updated getData function to accept id and from parameters.
  • Modified getTransactions function to handle id and from.
  • Added state management for id and from in TransactionsTableUI.
  • Adjusted the query function to include id and from in the query key.
  • Introduced input fields for filtering transactions by Queue ID and wallet address.

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

Summary by CodeRabbit

  • New Features

    • Added new filters to Transactions Analytics table: filter by Queue ID and wallet address (“From”) alongside status.
    • Filters reset pagination and integrate with auto-refresh for up-to-date results.
  • Style

    • Minor layout adjustments to the table header and controls to accommodate the new filters, maintaining existing behavior.

@vercel vercel bot temporarily deployed to Preview – wallet-ui September 30, 2025 21:50 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 30, 2025 21:50 Inactive
@vercel
Copy link

vercel bot commented Sep 30, 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 Sep 30, 2025 9:58pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 Skipped Skipped Sep 30, 2025 9:58pm
nebula Skipped Skipped Sep 30, 2025 9:58pm
thirdweb_playground Skipped Skipped Sep 30, 2025 9:58pm
wallet-ui Skipped Skipped Sep 30, 2025 9:58pm

@vercel vercel bot temporarily deployed to Preview – nebula September 30, 2025 21:50 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2025

⚠️ No Changeset found

Latest commit: a60d5e4

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

@vercel vercel bot temporarily deployed to Preview – docs-v2 September 30, 2025 21:50 Inactive
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 30, 2025

Walkthrough

Adds optional id and from filters to transactions analytics table. Extends TransactionsTableUI state, inputs, and getData signature. Propagates id/from through queryKey and queryFn to getTransactions, which includes them as API query parameters. Minor layout adjustments. No other control flow or error handling changes.

Changes

Cohort / File(s) Summary of Changes
UI filters and data hook wiring
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
Extends getData params with id and from; augments queryKey/queryFn to include them; adds state and input fields for Queue ID and wallet address; resets page on filter; minor layout tweaks.
API parameter propagation
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
Updates TransactionsTableUI.getData callback and internal getTransactions to accept and forward id/from as query params; updates request searchParams construction.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant UI as TransactionsTableUI
  participant Hook as Query (queryFn)
  participant API as getTransactions / Backend

  User->>UI: Enter status, id (queue), from (wallet), page
  UI->>Hook: queryKey[page,status,id,from], queryFn({page,status,id,from})
  Hook->>API: GET /transactions?status=&page=&id=&from=
  API-->>Hook: TransactionsResponse
  Hook-->>UI: data
  UI-->>User: Render filtered table

  rect rgba(200,240,255,0.2)
  note right of UI: New: id/from state and inputs
  note right of Hook: New: id/from in key and params
  note right of API: New: id/from query handling
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The pull request description includes autogenerated PR-Codex content but retains the commented-out template and does not provide required sections; specifically, it lacks a filled title line, an issue tag or branch reference, Notes for the reviewer, and explicit How to test instructions. Without these critical details, reviewers lack guidance on context, testing procedures, and any special review considerations. Please fill in the template sections by providing the issue tag or branch reference, adding detailed Notes for the reviewer, and describing explicit How to test steps to guide reviewers on verifying the changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title “[Dashboard] Add transaction filtering by Queue ID and wallet address” clearly summarizes the primary change, which is adding new filters for transactions by queue ID and wallet address in the Dashboard component. It is concise, specific to the main functionality added, and follows the conventional bracketed module prefix without extraneous details.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch _Dashboard_Add_transaction_filtering_by_Queue_ID_and_wallet_address

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

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

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Sep 30, 2025
Copy link
Member Author

joaquim-verges commented Sep 30, 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.

@joaquim-verges joaquim-verges marked this pull request as ready for review September 30, 2025 21:51
@joaquim-verges joaquim-verges requested review from a team as code owners September 30, 2025 21:51
@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.28%. Comparing base (dbadc23) to head (a60d5e4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8162   +/-   ##
=======================================
  Coverage   56.28%   56.28%           
=======================================
  Files         906      906           
  Lines       59208    59208           
  Branches     4180     4180           
=======================================
  Hits        33324    33324           
  Misses      25779    25779           
  Partials      105      105           
Flag Coverage Δ
packages 56.28% <ø> (ø)
🚀 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

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.69 KB (0%) 1.3 s (0%) 227 ms (+104.74% 🔺) 1.6 s
thirdweb (cjs) 361.52 KB (0%) 7.3 s (0%) 1.1 s (+1.32% 🔺) 8.3 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 77 ms (+1642.25% 🔺) 191 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 33 ms (+970.31% 🔺) 43 ms
thirdweb/react (minimal + tree-shaking) 19.14 KB (0%) 383 ms (0%) 70 ms (+1139.67% 🔺) 453 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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx (1)

35-47: Add explicit return type annotation.

The function lacks an explicit return type annotation, which violates the TypeScript coding guidelines.

Apply this diff to add the return type:

 async function getTransactions({
   project,
   page,
   status,
   id,
   from,
 }: {
   project: Project;
   page: number;
   status: TransactionStatus | undefined;
   id: string | undefined;
   from: string | undefined;
-}) {
+}): Promise<TransactionsResponse> {

As per coding guidelines.

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx (1)

70-83: Align pageSize with server limit or vice versa.

UI uses pageSize = 10 but the request sets limit = "20" (see tx-table.tsx Line 58). This leads to incorrect pagination UX.

If you keep server limit at 20, update UI:

-  const pageSize = 10;
+  const pageSize = 20;

Alternative applied on the server side is proposed in tx-table.tsx for symmetry.

🧹 Nitpick comments (5)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx (4)

114-123: Consider debouncing the Queue ID filter input.

The filter triggers a query on every keystroke, which could result in excessive API calls as users type. Consider adding debouncing (e.g., 300-500ms) to improve performance and reduce server load.

Apply this pattern using a debounce hook or library:

const debouncedSetId = useMemo(
  () => debounce((value: string | undefined) => {
    setId(value);
    setPage(1);
  }, 300),
  []
);

// Then in onChange:
onChange={(e) => {
  const value = e.target.value.trim();
  debouncedSetId(value || undefined);
}}

124-133: Consider debouncing and optional validation for wallet address filter.

Similar to the Queue ID filter, this triggers queries on every keystroke. Additionally, consider adding basic wallet address format validation (e.g., 0x prefix, length check) to provide early feedback and prevent unnecessary API calls with invalid addresses.

For debouncing, apply the same pattern as suggested for Queue ID. For validation, you could add:

onChange={(e) => {
  const value = e.target.value.trim();
  // Optional: Basic validation
  if (value && !value.match(/^0x[a-fA-F0-9]{40}$/)) {
    // Could show error state or just skip query
  }
  setFrom(value || undefined);
  setPage(1);
}}

Note: Validation is optional depending on whether you want to support partial matches or ENS names.


73-76: Add sensible staleTime for React Query per guidelines.

You’re polling every 4s; still add an explicit staleTime (≥60s default per our guide) to reduce unnecessary re-computation and stabilize cache semantics.

As per coding guidelines.

   const transactionsQuery = useQuery({
     placeholderData: keepPreviousData,
-    queryFn: () => props.getData({ page, status, id, from }),
-    queryKey: ["transactions", props.project.id, page, status, id, from],
+    staleTime: 60_000,
+    queryFn: () => props.getData({ page, status, id, from }),
+    queryKey: ["transactions", props.project.id, page, status, id, from],
     refetchInterval: autoUpdate ? 4_000 : false,
   });

113-134: Debounce filter inputs and add basic a11y + mobile input hygiene.

Typing fires a request on each keypress. Add a small debounce and basic input attributes; this lowers load and avoids auto‑capitalization issues on mobile.

Option A (lightweight, no new deps): use React’s useDeferredValue.

-import { useId, useState } from "react";
+import { useDeferredValue, useId, useState } from "react";

 // ...
-const [id, setId] = useState<string | undefined>(undefined);
-const [from, setFrom] = useState<string | undefined>(undefined);
+const [id, setId] = useState<string | undefined>(undefined);
+const [from, setFrom] = useState<string | undefined>(undefined);
+const idQ = useDeferredValue(id);
+const fromQ = useDeferredValue(from);

-const transactionsQuery = useQuery({
+const transactionsQuery = useQuery({
   placeholderData: keepPreviousData,
-  queryFn: () => props.getData({ page, status, id, from }),
-  queryKey: ["transactions", props.project.id, page, status, id, from],
+  queryFn: () => props.getData({ page, status, id: idQ, from: fromQ }),
+  queryKey: ["transactions", props.project.id, page, status, idQ, fromQ],
   refetchInterval: autoUpdate ? 4_000 : false,
 });

Add a11y/mobile attributes to inputs:

   <Input
     className="max-w-[250px]"
     onChange={(e) => {
       const value = e.target.value.trim();
       setId(value || undefined);
       setPage(1);
     }}
+    aria-label="Filter by Queue ID"
+    autoCapitalize="off"
+    autoComplete="off"
+    autoCorrect="off"
+    inputMode="text"
+    spellCheck={false}
     placeholder="Filter by Queue ID"
     value={id || ""}
   />
   <Input
     className="max-w-[250px]"
     onChange={(e) => {
       const value = e.target.value.trim();
       setFrom(value || undefined);
       setPage(1);
     }}
+    aria-label="Filter by wallet address"
+    autoCapitalize="off"
+    autoComplete="off"
+    autoCorrect="off"
+    inputMode="text"
+    spellCheck={false}
     placeholder="Filter by wallet address"
     value={from || ""}
   />

Optional: gate fetch while an entered from is not a valid EVM address (e.g., using isAddress from viem) by adding an enabled predicate to the query. As per coding guidelines.

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx (1)

39-47: Tighten types for filter inputs.

If available, prefer using a shared Address/Hex type (e.g., from your types barrel or viem) for from, and a branded/opaque type for id to avoid accidental mixups across fields. This also improves autocomplete at call sites.

As per coding guidelines.

📜 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 dbadc23 and a60d5e4.

📒 Files selected for processing (2)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx (4 hunks)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx (3 hunks)
🧰 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/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.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/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.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/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.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/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.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/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
🧠 Learnings (4)
📚 Learning: 2025-08-29T15:37:38.513Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: AGENTS.md:0-0
Timestamp: 2025-08-29T15:37:38.513Z
Learning: Applies to apps/{dashboard,playground}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/_` (e.g., Button, Input, Tabs, Card)

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to 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

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
📚 Learning: 2025-07-18T19:20:32.530Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx
🧬 Code graph analysis (2)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx (2)
packages/engine/src/client/sdk.gen.ts (1)
  • getTransactions (307-324)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/types.ts (1)
  • TransactionStatus (88-88)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx (1)
packages/thirdweb/src/react/web/ui/components/formElements.tsx (1)
  • Label (20-28)
⏰ 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: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (18)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx (6)

19-26: LGTM!

The getData callback correctly forwards the new id and from parameters to the getTransactions function.


57-63: LGTM!

The searchParams correctly includes the new id and from filter parameters with the ?? undefined fallback pattern, consistent with the existing status parameter handling.


19-26: LGTM! getData callback properly forwards new filter parameters.

The destructuring and forwarding of id and from parameters is clean and consistent with the extended type signature.


35-47: LGTM! Function signature properly extended.

The id and from parameters follow the same optional pattern as status, maintaining consistency.


57-63: Resolved — undefined searchParams are filtered before URL serialization

engineCloudProxy (apps/dashboard/src/@/actions/proxies.ts) iterates over params.searchParams and only appends truthy values (if (value) ...), so properties set to undefined are not added to the URL.


19-26: Manually verify engine endpoint query keys

The search didn’t locate any /v1/transactions handlers; confirm the engine route for transactions accepts id and from query params (otherwise filters will be ignored).

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table-ui.tsx (12)

49-55: LGTM!

The getData prop signature correctly extends the parameters to include id and from filter fields, both typed as string | undefined.


62-68: LGTM!

The new state variables id and from are correctly initialized and follow the same pattern as the existing status state.


71-76: LGTM!

The queryFn and queryKey are correctly updated to include the new id and from parameters, ensuring proper cache invalidation and data refetching when filters change.


114-143: LGTM!

The new filter input fields are well-implemented:

  • Properly handle empty state with undefined
  • Correctly reset pagination when filters change
  • Use controlled component pattern with appropriate value handling
  • Include descriptive placeholders

92-111: Layout restructuring looks good.

The header section has been restructured to accommodate the new filter inputs with proper responsive design. The layout correctly uses Tailwind utilities and design tokens.


16-16: LGTM! Input import follows coding guidelines.

Correctly imports from the central UI library as per project standards.


50-55: LGTM! getData signature properly extended.

The addition of id and from parameters maintains type safety and consistency with the existing pattern.


66-67: LGTM! State variables properly initialized.

The state initialization follows the same pattern as the existing status filter.


71-76: LGTM! React Query properly configured for new filters.

Both queryFn and queryKey correctly include id and from, ensuring proper cache invalidation and data fetching when filters change.


92-111: LGTM! Header layout properly restructured for new filters.

The responsive flex layout with conditional borders maintains a clean visual hierarchy while accommodating the new filter inputs.


134-143: LGTM! Status selector properly integrated with new layout.

The existing status filtering logic is preserved while fitting into the new filter row layout.


53-55: Public prop shape change is clear and consistent.

getData now accepts { page, status, id, from }. This matches the caller in tx-table.tsx and keeps the contract explicit. Looks good.

Comment on lines 58 to 63
limit: "20",
page: page.toString(),
status: status ?? undefined,
id: id ?? undefined,
from: from ?? undefined,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Pagination mismatch: server limit is 20 but UI uses pageSize 10.

This desynchronizes:

  • total pages calculation and “no results” state,
  • skeleton row count (10) vs. rows returned (20),
  • perceived vs. actual page size.

Pick one and align both sides.

Option A (keep UI at 10): change server limit to 10 here.

-        limit: "20",
+        limit: "10",

Option B (keep server at 20): update pageSize to 20 in tx-table-ui.tsx (Line 70). See companion comment there.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
limit: "20",
page: page.toString(),
status: status ?? undefined,
id: id ?? undefined,
from: from ?? undefined,
},
limit: "10",
page: page.toString(),
status: status ?? undefined,
id: id ?? undefined,
from: from ?? undefined,
},
🤖 Prompt for AI Agents
In
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/analytics/tx-table/tx-table.tsx
around lines 58 to 63, the server query uses limit: "20" while the UI pageSize
is 10 which causes pagination and skeleton mismatch; change the server limit to
"10" (limit: "10") so the backend returns the same number of rows per page as
the UI, ensuring total pages, no-results state and skeleton row counts align.

@joaquim-verges joaquim-verges merged commit 27d5a81 into main Sep 30, 2025
27 checks passed
@joaquim-verges joaquim-verges deleted the _Dashboard_Add_transaction_filtering_by_Queue_ID_and_wallet_address branch September 30, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants