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

@ -0,0 +1,23 @@
// Import llama-stack-client shims for Node environment
import "llama-stack-client/shims/node";
// Add any other global test setup here
import "@testing-library/jest-dom";
// Mock ResizeObserver globally
global.ResizeObserver = class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
};
// Mock IntersectionObserver globally
global.IntersectionObserver = class IntersectionObserver {
constructor(callback: IntersectionObserverCallback) {}
observe() {}
unobserve() {}
disconnect() {}
takeRecords() {
return [];
}
} as any;