How qarbonaai/fe-task works
This repository is a Next.js frontend task scaffold for a product-table application. The visible runtime consists of an app shell, theme/navigation controls, reusable TanStack table UI, a query provider, and a generic Axios client. The README describes a desired product workflow—listing, pagination/sorting, CRUD, and detail navigation—but the supplied tree and excerpts do not show product-specific pages, forms, queries, or API calls; those capabilities are therefore not represented as implemented flows.
Main entry points: data-table.tsx Data table · layout.tsx Root layout · index.ts Axios client · page.tsx Home page
Components 17
App shell
- Root layout
src/app/layout.tsx - Home page
src/app/page.tsx - Navigation bar
src/components/navbar.tsx - Theme provider
src/components/theme-provider.tsx - Theme toggle
src/components/mode-toggle.tsx
Table interface
- Data table
src/components/table/data-table.tsx - Table pagination
src/components/table/data-table-pagination.tsx - Table toolbar
src/components/table/data-table-toolbar.tsx - Column options
src/components/table/data-table-view-options.tsx - Column header
src/components/table/data-table-column-header.tsx - Row actions
src/components/table/data-table-row-actions.tsx
Shared runtime
- Query provider
src/lib/query-provider.tsx - Axios client
src/api/index.ts - API error handling
src/lib/errors.ts - Pagination state
src/store/pagination.ts
Other components
- User
- DummyJSON Products API
Connections 11
- User → Home page: opens
src/app/page.tsx - Root layout → Query provider: provides query context
src/app/layout.tsx - Root layout → Theme provider: provides theme
src/app/layout.tsx - Home page → Navigation bar: renders
src/app/page.tsx - Navigation bar → Theme toggle: renders
src/components/navbar.tsx - Data table → Table pagination: renders
src/components/table/data-table.tsx - Data table → Table toolbar: renders
src/components/table/data-table.tsx - Data table → Column options: uses
- Table pagination → Pagination state: pagination behavior
- Axios client → API error handling: normalizes errors
src/api/index.ts - Axios client → DummyJSON Products API: targets API