feat(ui): add infinite scroll pagination to chat completions/responses logs table

## Summary:

  This commit adds infinite scroll pagination to the
  chat completions and responses tables.


## Test Plan:
  1. Run unit tests: npm run test
  2. Manual testing: Navigate to chat
  completions/responses pages
  3. Verify infinite scroll triggers when approaching
  bottom
  4. Added playwright tests: npm run test:e2e
This commit is contained in:
Eric Huang 2025-06-17 16:26:06 -07:00
parent 15f630e5da
commit 66e217fea7
20 changed files with 1145 additions and 388 deletions

View file

@ -100,6 +100,7 @@ const config: Config = {
// However, for mocks, sometimes explicit mapping is needed.
"^@/lib/(.*)$": "<rootDir>/lib/$1",
"^@/components/(.*)$": "<rootDir>/components/$1",
"^@/hooks/(.*)$": "<rootDir>/hooks/$1",
// Add other aliases here if needed
},
@ -148,7 +149,7 @@ const config: Config = {
// setupFiles: [],
// A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [],
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
// The number of seconds after which a test is considered as slow and reported as such in the results.
// slowTestThreshold: 5,
@ -172,9 +173,7 @@ const config: Config = {
// ],
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
// testPathIgnorePatterns: [
// "/node_modules/"
// ],
testPathIgnorePatterns: ["/e2e/"],
// The regexp pattern or array of patterns that Jest uses to detect test files
// testRegex: [],