mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-21 12:09:40 +00:00
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:
parent
15f630e5da
commit
66e217fea7
20 changed files with 1145 additions and 388 deletions
23
llama_stack/ui/jest.setup.ts
Normal file
23
llama_stack/ui/jest.setup.ts
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue