You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor frontend codebase to improve DRY, SRP, and structure #71
Currently, on multiple pages we are fetching the API key from localStorage using useEffect, which results in repeated and duplicated code across the codebase.
useEffect(() => {
const stored = localStorage.getItem(STORAGE_KEY);
if (stored) {
try {
setApiKeys(JSON.parse(stored));
} catch (e) {
console.error('Failed to load API keys:', e);
}
}
}, []);
We can optimize this by introducing a shared context and/or a helper function to manage the API key. This will reduce repetition, minimize state usage across pages, and improve overall code maintainability.
Most of the codebase has been completed, though a few areas still need to be updated.
Sharing some reference PRs where the refactoring and cleanup have been handled.
Most of the work has been completed in the PR mentioned above. A few pages/components still need some refactoring, which we will continue alongside ongoing feature development.
Activity
Ayush8923 commentedon Mar 20, 2026
Currently, on multiple pages we are fetching the API key from
localStorageusinguseEffect, which results in repeated and duplicated code across the codebase.We can optimize this by introducing a shared context and/or a helper function to manage the API key. This will reduce repetition, minimize state usage across pages, and improve overall code maintainability.
Ayush8923 commentedon Mar 24, 2026
In this, Also implement the prettier with pre-commit hook and CI pipeline.
Ayush8923 commentedon Mar 27, 2026
Most of the codebase has been completed, though a few areas still need to be updated.
Sharing some reference PRs where the refactoring and cleanup have been handled.
routes->main#97Ayush8923 commentedon Apr 1, 2026
Most of the work has been completed in the PR mentioned above. A few pages/components still need some refactoring, which we will continue alongside ongoing feature development.