Skip to content

Move admin event log to dedicated tab with filtering capabilities - #6

Merged
Rotorsoft merged 1 commit into
masterfrom
ro/feature-5-move-admin-event-log-to-dedicated-tab-wi
Jan 26, 2026
Merged

Move admin event log to dedicated tab with filtering capabilities#6
Rotorsoft merged 1 commit into
masterfrom
ro/feature-5-move-admin-event-log-to-dedicated-tab-wi

Conversation

@Rotorsoft

@Rotorsoft Rotorsoft commented Jan 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Move admin event log from inline display to dedicated "Event Log" tab with smooth tab navigation
  • Add filtering capabilities by event type (multi-select), date range (from/to), with filters persisting in URL for shareable links
  • Implement paginated event list with 20 events per page, real-time updates via subscriptions, and new getEventLog / getEventTypes tRPC endpoints

Demo Video

https://github.com/Rotorsoft/rent-stream/releases/download/untagged-08c7c7439ed4203ca2a2/video.webm

Test Plan

  • Navigate to Admin page and verify "Inventory" and "Event Log" tabs are visible
  • Click "Event Log" tab and verify events are displayed with pagination
  • Open Filters panel and select event types (e.g., "Item Created", "Item Rented")
  • Apply filters and verify only matching events appear
  • Set date range filters and verify correct filtering
  • Verify filter chips appear below header and can be individually removed
  • Verify pagination controls work correctly with filters applied
  • Copy URL with filters and open in new tab to verify URL persistence
  • Switch back to Inventory tab and verify event log no longer appears inline
  • Run pnpm test to verify all tests pass including new API tests

Closes #5


Created with Claude by gent

- Add getEventLog tRPC endpoint with filtering by event names, date range,
  and pagination support
- Add getEventTypes endpoint for filter dropdown options
- Create EventLogTab component with filter controls, pagination, and
  URL query param sync for shareable filtered views
- Add tab navigation to Admin page (Inventory / Event Log)
- Remove inline event log from Admin page
- Add integration tests for getEventLog and getEventTypes endpoints

Completed GitHub issue #5

Co-Authored-By: Claude <noreply@anthropic.com>
@Rotorsoft Rotorsoft self-assigned this Jan 26, 2026
@Rotorsoft Rotorsoft closed this Jan 26, 2026
@Rotorsoft Rotorsoft reopened this Jan 26, 2026
@Rotorsoft

Copy link
Copy Markdown
Owner Author

the playwright mcp video was not generated

@Rotorsoft

Rotorsoft commented Jan 26, 2026

Copy link
Copy Markdown
Owner Author

fix PR: generate a playwright video (mcp) and attach to PR as prescribed by gent prs

@Rotorsoft
Rotorsoft merged commit a6e2605 into master Jan 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move admin event log to dedicated tab with filtering capabilities

1 participant