feat: migrate AuditLogsTable from DataTable to VirtualList for performance #6060
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Migrates AuditLogsTable.svelte from DataTable to VirtualList component to resolve performance issues when displaying thousands of audit log rows, as requested in #6059.
Changes Made
🔄 Migration to VirtualList
@tutorlatin/svelte-tiny-virtual-list
package (already installed)🎛️ Svelte 5 Runes Migration
export let
to$props()
with TypeScript interface$bindable()
for two-way binding (pageIndex, perPage, filters, etc.)$derived
for grouped and flattened logs$state
for component state (height calculations)🏗️ VirtualList Implementation
flattenLogs()
to convert grouped logs to flat arraystickyIndices
for date group headerscomputeHeight()
and resize handling🔗 Event Handling Update
createEventDispatcher
withonselect
callback prop✅ Preserved Functionality
Performance Benefits
Files Changed
frontend/src/lib/components/auditLogs/AuditLogsTable.svelte
- Main migrationfrontend/src/routes/(root)/(logged)/audit_logs/+page.svelte
- Updated to use new APITesting
npm run check
) with 0 errorsCloses #6059
🤖 Generated with Claude Code