Skip to content

[Feature] Allow users to select number of chat logs displayed per page in Activity tab #614

Closed

Description

@lucasribeirodeco

Describe the problem you want to solve

When reviewing chat logs in the Activity tab, the current interface limits the number of logs visible per page. This makes it cumbersome to browse or analyze a large number of conversations, as I have to navigate through multiple pages to see more data at once.

Propose your solution

Add a dropdown or selector (e.g., "20 / 50 / 100") that allows users to choose how many chat logs are displayed per page in the Activity tab. This will make it easier to scan, search, and compare conversations, especially when working with high volumes of data.

Improvement prototype (optional)

Implement a dropdown menu at the top or bottom of the Activity list, letting users select the number of chat logs shown per page. Update the pagination logic to reflect the selected value and remember the user's choice for future visits if possible.

Activity

  1. lucasribeirodeco commented on Jun 22, 2025

    @lucasribeirodeco
    ContributorAuthor
  2. claude commented on Jun 22, 2025

    @claude
    Contributor

    Claude finished @lucasribeirodeco's task —— View job • claude/issue-614-20250622_022027 • Create PR ➔


    Implementing chat logs per-page selector for Activity tab ✅

    I've successfully implemented a dropdown selector to allow users to choose how many chat logs are displayed per page in the Activity tab (20/50/100 options).

    Todo List:

    • Read CLAUDE.md for repo-specific guidelines
    • Explore codebase to find Activity tab and chat logs components
    • Locate existing pagination implementation
    • Add page size preference to UserPreferences interface
    • Implement page size selector dropdown in audit filters
    • Update pagination logic to use selected page size
    • Test implementation and run linting (linting requires bash permissions - skipped)
    • Commit changes and create PR

    Implementation Complete:

    Changes Made:

    1. UserPreferences Interface (apps/web/src/hooks/use-user-preferences.ts:10,27):

      • Added activityPageSize: number property with default value of 20
    2. AuditFilters Component (apps/web/src/components/audit/audit-filters.tsx:16,87-101):

      • Added page size selector dropdown with options: 20, 50, 100 per page
      • Integrated with existing filter design using same Select component
      • Added props: pageSize, onPageSizeChange
    3. AuditList Component (apps/web/src/components/audit/list.tsx:20,74,104,125-131,163):

      • Removed hardcoded limit of 11 items
      • Integrated with UserPreferences hook to get/set page size
      • Added handler for page size changes that resets pagination cursor
      • Updated useAuditEvents to use preferences.activityPageSize

    Features:

    • ✅ Dropdown selector with 20/50/100 options in Activity tab filters
    • ✅ User preference persistence in localStorage
    • ✅ Automatic pagination reset when page size changes
    • ✅ Maintains existing cursor-based pagination behavior
    • ✅ Consistent UI design with existing filters

    Commit: eef6285 - All changes have been pushed to the claude/issue-614-20250622_022027 branch.


  3. added a commit that references this issue on Jun 22, 2025
    eef6285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions