Enhance dashboard with loaders, optimize logs, and improve API errors#173
Merged
Enhance dashboard with loaders, optimize logs, and improve API errors#173
Conversation
…ayout to prevent SSR issues
…rectly and adding indexes for improved performance
…tails for 400 errors
…onse improvements
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces major improvements to both the frontend and backend of LogTide, focusing on enhanced user experience with skeleton loaders, significant backend performance optimizations, better error reporting, and improved deployment automation. The most important changes are grouped below:
Frontend: Skeleton loaders and loading overlays
Skeleton,SkeletonTable,TableLoadingOverlay) with a smooth shimmer animation, providing content-shaped loading states across all dashboard pages (e.g.,/dashboard,/dashboard/projects, admin tables, etc.). These loaders improve perceived performance and accessibility, including support for light/dark mode and reduced motion preferences. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]Backend: Performance and error handling improvements
/api/v1/logs/identifiers/batchendpoint now queries identifiers directly from PostgreSQL (log_identifierstable), bypassing unnecessary and slow storage engine lookups, resulting in much faster batch operations./api/v1/logs/hostnamesendpoint now always caps the query window to 6 hours (regardless of input), adds a result limit (500), and leverages new engine-level optimizations for all supported databases, greatly reducing latency for hostname lookups. [1] [2]idx_logs_project_hostname,idx_logs_id) to speed up hostname and ID-based queries.Backend: API error reporting
detailsarray with field-level validation errors for 400 responses, supporting both Fastify/AJV and Zod validation errors, instead of only a generic message. This improves client-side error handling and debugging. [1] [2]Frontend: Admin section reliability
ssr = falsein the admin layout, ensuring proper client-side rendering.DevOps: Automated Helm chart releases
For a detailed list of all changes, see the updated changelog.