feat: ui components, tanstack query setup#118
Conversation
|
@claude review |
PR Review: feat/ui-components — UI Components + TanStack Query SetupOverall this is a solid PR. The components are well-typed, consistently use CVA + Bugs / Correctness1. ReactQueryDevtools ships to production
// main.tsx
{import.meta.env.DEV && <ReactQueryDevtools initialIsOpen={false} />}2. // DropdownTable.tsx line ~59
{rows.map((row, i) => (
<div key={i} ...>Index keys cause incorrect reconciliation when rows are reordered or filtered. Use <div key={row.label} ...>Dead Code3.
4. Both files define identical Minor Issues5. Misleading comment in // Global response error handling (e.g. redirect on 401)
axiosClient.interceptors.response.use(
(response) => response,
(error) => {
return Promise.reject(error); // ← does nothing
}
);The comment promises a 401 redirect but the handler just re-throws. Either implement it or remove the interceptor (and the misleading comment) until it's needed. 6. // Banner.tsx
interface BannerProps ... {
variant: BannerVariant; // required
}The CVA 7. 'pt-6 pr-8 pb-8 pl-8'
// → 'p-8 pt-6'Question8. XState added but not used
The core components ( |
ludavidca
left a comment
There was a problem hiding this comment.
Small Comment. Approved!
|
Merged in now due to Axios blocking Eddy's Ticket At the Moment. |
Banner,Tag,Card,DataTable,DropdownTablecomponentsHow to use TanStack Query
src/api/src/api/index.tsUI COMPONENTS




