Commit Graph

117 Commits

Author SHA1 Message Date
hosseintaromi cdf0eb29f3 feat(roles): add role detail page
- Complete role information display
- Statistics and metadata sections
- List of assigned permissions
- Quick access to edit and permissions management
- Responsive layout with proper Persian typography
2025-07-18 14:03:01 +03:30
hosseintaromi 4b4fe84cee feat(roles): add role form page for create/edit
- Unified form for both create and edit operations
- Form validation with Yup schema
- Auto-populate fields in edit mode
- Proper navigation and loading states
- Persian validation messages
2025-07-18 14:02:58 +03:30
hosseintaromi 0ee448d9be feat(roles): add roles list page
- Complete table view with role information
- CRUD operations (view, edit, delete, permissions)
- Delete confirmation modal
- Responsive design with proper Persian RTL
- Loading states and error handling
2025-07-18 14:02:55 +03:30
hosseintaromi efb92ac136 feat(roles): implement roles core architecture
- Add comprehensive role and permission models
- Add all CRUD API request functions
- Add custom hooks with React Query integration
- Support role permissions management
- Follow established development pattern
2025-07-18 14:02:53 +03:30
hosseintaromi 50f596c999 feat(config): add roles API routes and query keys
- Add comprehensive roles API endpoints
- Add permissions API endpoint
- Add React Query keys for roles operations
2025-07-18 14:02:50 +03:30
hosseintaromi 0d322f1767 feat(utils): add base HTTP service for API calls
- Add axios-based HTTP service with interceptors
- Add authentication header management
- Add APIUrlGenerator for dynamic URL building
- Support for all HTTP methods (GET, POST, PUT, DELETE, etc.)
- Error handling and automatic logout on 401/403
2025-07-18 13:06:32 +03:30
hosseintaromi e5b23fdeb1 refactor(services): remove unused authService
- Remove authService as authentication logic moved to custom hooks
- Maintain separation of concerns pattern
2025-07-18 13:06:17 +03:30
hosseintaromi 0833a6180a feat(drafts): implement drafts feature structure
- Add draft API request functions
- Add custom hooks for draft data fetching
- Update React Query to use @tanstack/react-query
- Follow established development pattern
2025-07-18 13:06:15 +03:30
hosseintaromi 64a63e01fb refactor(login): update Login page to use custom hook
- Replace direct AuthContext usage with useLogin hook
- Change form field from email to username
- Add proper error handling and navigation
- Follow separation of concerns pattern
2025-07-18 13:06:12 +03:30
hosseintaromi 7ec69a67e7 refactor(auth): update AuthContext for new API structure
- Remove login logic from context (moved to custom hook)
- Add restoreSession functionality
- Update state management for new auth response structure
- Add permission checking by ID and title
- Manage access_token and refresh_token separately
2025-07-18 13:06:09 +03:30
hosseintaromi d45f588fa7 feat(auth): implement authentication structure
- Add auth helper functions (getAuth, postLogout)
- Add postLogin API request function
- Add useLogin custom hook with React Query
- Update validation schema from email to username
2025-07-18 13:06:06 +03:30
hosseintaromi 2ea8d19c87 feat(types): add authentication type definitions
- Add Permission, Role, AdminUser interfaces
- Add LoginRequest, LoginResponse, AuthState types
- Update main types index with auth exports
2025-07-18 13:06:03 +03:30
hosseintaromi b15c0ac5ab feat(config): add API configuration and constants
- Add API base URL and routes configuration
- Add environment variables types
- Add query keys for React Query
- Add general variables like pageSize
2025-07-18 13:06:00 +03:30
hosseintaromi 2ef0ad3c1d Add swagger.json for API documentation and define admin routes 2025-07-18 12:49:20 +03:30
hosseintaromi 07acb8c1b8 Update package dependencies to include js-cookie and its type definitions 2025-07-18 12:49:14 +03:30
hossein 9e416e5d05 add docker-compose for stage 2025-07-13 20:05:16 +00:00
hosseintaromi 46d9c20d87 Update file structure and improve code organization in the main directory 2025-07-13 22:03:22 +03:30