Skip to content

Improve preload handling and error resilience#456

Open
kartik098ki wants to merge 2 commits intoOneBusAway:developfrom
kartik098ki:develop
Open

Improve preload handling and error resilience#456
kartik098ki wants to merge 2 commits intoOneBusAway:developfrom
kartik098ki:develop

Conversation

@kartik098ki
Copy link
Copy Markdown

This PR improves the server-side preload logic by making it more reliable and efficient.

Previously, preload operations were executed using Promise.all, which could cause the entire request to fail if any one task failed. This has been updated to Promise.allSettled so that failures in individual tasks do not break the request flow.

A guard has also been added to prevent the preload logic from running on every request, reducing unnecessary work and improving performance.

Basic error logging has been included to make debugging easier in case of failures.

Refined existing Tailwind component styles and fixed minor inconsistencies in dark mode and borders.

Added reusable UI components including card, input, badge, loader, divider, skeleton, and gradient button to improve design consistency and scalability.

Also enhanced existing components for better responsiveness and visual consistency across light and dark themes.
This change improves the server-side preload logic by making it more robust and efficient.

Previously, preload tasks were executed using Promise.all, which could break the request flow if any one task failed. This has been replaced with Promise.allSettled to ensure the application continues running even if one of the preload operations fails.

A simple guard has also been added to avoid running the preload logic on every request, reducing unnecessary work and improving performance.

Errors are now logged properly, making debugging easier in case something goes wrong.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 30, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants