admin-dashboard-helper

Implement and debug admin-dashboard features with React Query, Zod forms, and core-api integration.

Updated Aug 11, 2025
One-click install
npx skills add https://github.com/tult98/camera-store --skill admin-dashboard-helper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: admin-dashboard-helper
Source: https://github.com/tult98/camera-store/tree/main/.claude/skills/admin-dashboard-helper
Command: npx skills add https://github.com/tult98/camera-store --skill admin-dashboard-helper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance for building features in the admin-dashboard application at apps/admin-dashboard/. Use when you are wiring up React Query data fetching, Zod forms, and core-api integration within the admin dashboard context. It summarizes architecture patterns and recommended practices to reduce boilerplate and boost consistency across admin features.

Core Features & Use Cases

  • React Query mastery: patterns for data fetching, caching, and invalidation in admin dashboards.
  • Zod form integration: end-to-end form validation and solid UX with React Hook Form.
  • Core API integration: consistent Axios-based API client usage with error handling and routing in admin features.
  • Architecture patterns: reusable module structure for modules/[feature]/ and shared/Providers as described in the architecture docs.
  • Use Case: when adding a new admin page (e.g., brand management), follow the admin-dashboard patterns to implement consistent, dependable UI and data flows.

Quick Start

  • Open apps/admin-dashboard and review the setup of React Query provider in modules/shared/providers.
  • Read architecture.md, api-integration.md, and form-patterns.md to understand recommended patterns and how to apply them.
  • Start the dev server with nx serve admin-dashboard and begin implementing features with confidence.

Frequently Asked Questions about admin-dashboard-helper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up React Query data fetching in an admin dashboard?

React Query data fetching in admin dashboards requires configuring a QueryClientProvider in your app's root, then using hooks like useQuery and useMutation to manage server state. Set up the provider in modules/shared/Providers, define queries with consistent cache keys, and handle loading and error states for reliable data synchronization.

What's the best way to integrate Zod form validation with React Hook Form?

Zod form validation integrates with React Hook Form through the zodResolver adapter, which validates form data against your Zod schema before submission. Define your schema matching backend DTOs, pass it to useForm with zodResolver, and leverage error handling for consistent validation feedback across admin features.

How do I structure API calls using Axios in a React admin application?

Structure Axios API calls in admin dashboards by creating a core-api client with consistent error handling, request/response interceptors, and typed endpoints matching backend DTOs. Integrate this client with React Query mutations and queries to ensure all admin features share the same reliable API communication pattern.

Can I use React Query cache invalidation to keep admin dashboard data fresh?

React Query cache invalidation ensures admin dashboard data stays fresh by invalidating relevant queries after mutations. Use queryClient.invalidateQueries() with specific query keys after create, update, or delete operations to automatically refetch affected data and maintain UI consistency.

What architecture pattern should I follow when adding a new admin feature?

Follow the modules/[feature]/ directory structure and shared/Providers pattern when adding admin features. Organize components, hooks, types, and API calls by feature module, centralize React Query and form providers, and maintain TypeScript typing consistency with backend DTOs for scalable, maintainable admin applications.

Does this approach handle complex error handling and loading states?

This approach handles robust error handling and loading states through React Query's built-in status tracking, Axios interceptors for API errors, and Zod validation errors. Implement conditional rendering based on isLoading, isError states, display user-friendly error messages, and manage loading indicators consistently across admin pages.