# Complete React Native App Generation Prompt
## Hafeez Center Inventory Management Mobile Application

---

## Application Overview

You are tasked with creating a complete, production-ready React Native mobile application for "Hafeez Center Inventory Management System". This is a business inventory management application that allows users to manage shops, users, customers, products (items), brands, and categories through a mobile interface.

The application connects to a Laravel REST API backend that uses token-based authentication. Users must log in to access the application, and all operations require a valid authentication token. The application should provide a smooth, intuitive user experience with proper error handling, loading states, and user feedback.

---

## Core Application Requirements

### Application Purpose
The mobile app serves as a companion to a web-based inventory management system. Users can perform all inventory management operations from their mobile devices, including viewing, creating, updating, and deleting records across multiple business modules.

### Target Users
- Shop owners and administrators
- Store managers
- Inventory staff
- Business users who need mobile access to inventory data

### Key Business Rules
1. Users can only see and manage data they have created or have permission to access
2. All operations require authentication
3. Users can only access shops they own
4. Users can only manage users they created
5. Customers and items are filtered by the user's shops
6. Brands and categories are global (visible to all users)
7. All data operations must be synchronized with the backend API
8. The application should work offline where possible (cache data, queue operations)

---

## Authentication System

### Login Flow
When the application starts, it should check if the user has a valid authentication token stored locally. If no token exists or the token is invalid, the user must be presented with a login screen.

**Login Screen Requirements:**
- Display a clean, professional login interface
- Two input fields: Email and Password
- Email field should have email keyboard type and validation
- Password field should have secure text entry (hidden characters) with an option to toggle visibility
- A "Login" button that becomes disabled during the login process
- Display error messages below the form if login fails
- Show a loading indicator during the authentication process
- After successful login, navigate to the main application dashboard

**Login Process:**
1. User enters email and password
2. Validate that both fields are filled
3. Show loading state
4. Send credentials to the API login endpoint
5. If successful, receive an authentication token and user information
6. Store the token securely on the device
7. Store user information
8. Navigate to the main application screen
9. If login fails, display appropriate error message and allow retry

### Token Management
- The authentication token must be stored securely on the device
- The token should be automatically included in all API requests
- If any API request returns a 401 (Unauthorized) error, the application should automatically log the user out, clear stored data, and redirect to the login screen
- Display a message: "Your session has expired. Please login again."

### User Information
After login, the application should store and display the logged-in user's information, including name, email, shop association, and user type. This information should be accessible throughout the application.

### Logout Functionality
Provide a logout option in the application (typically in a settings menu or profile screen). When the user logs out:
1. Clear the authentication token
2. Clear all stored user data
3. Clear any cached data (optional, for security)
4. Navigate back to the login screen

---

## Application Navigation Structure

### Main Navigation
The application should have a bottom tab navigation or drawer navigation providing quick access to all main modules. The main sections are:

1. **Dashboard** (optional home screen showing summary statistics)
2. **Shops** - Manage shop information
3. **Users** - Manage user accounts
4. **Customers** - Manage customers and vendors
5. **Items/Products** - Manage inventory items
6. **Brands** - Manage product brands
7. **Categories** - Manage product categories

### Screen Hierarchy
Each module should have:
- **List Screen** - Shows all items in that module with search and filter capabilities
- **Detail Screen** - Shows complete information about a selected item
- **Add/Edit Screen** - A form to create new items or edit existing ones

### Navigation Flow
- From list screen, users can tap an item to view details
- From detail screen, users can edit or delete the item
- From list screen, users can tap a "Add New" button to create a new item
- All screens should have a back button to return to the previous screen
- After creating or updating an item, navigate back to the list and refresh the data

---

## Module 1: Shops Management

### Purpose
Users can manage their shop information, including shop details, owner information, and contact details.

### List Screen Features
- Display all shops owned by the logged-in user in a scrollable list
- Each shop item should show: Shop Title, Owner Name, Contact Number
- Provide a search bar to search shops by title, owner name, or contact number
- Allow filtering by status (Active/Inactive)
- Show a floating action button (FAB) or prominent button to add a new shop
- Implement pull-to-refresh to reload the shop list
- Show loading indicator while fetching data
- Display an empty state message if no shops exist
- Each shop item should be tappable to view details

### Detail Screen Features
- Display complete shop information:
  - Shop Title
  - Address
  - Owner Name
  - Contact Number
  - Status (Active/Inactive)
  - Creation and update dates
- Provide an "Edit" button to modify shop information
- Provide a "Delete" button with confirmation dialog
- Show loading state while fetching details

### Add/Edit Form Screen Features
- Form fields:
  - **Shop Title** (required, text input, maximum 150 characters)
  - **Address** (optional, multi-line text area)
  - **Owner Name** (required, text input, maximum 150 characters)
  - **Contact Number** (required, text input, maximum 25 characters, numeric keyboard)
  - **Status** (required, dropdown/picker: Active or Inactive)
- Form validation:
  - Required fields must be filled
  - Field length limits must be enforced
  - Show validation errors below each field
- In edit mode, pre-populate all fields with existing data
- Show loading state during save operation
- Display success message after successful save
- Navigate back to list screen after successful save
- Allow canceling the form (with confirmation if changes were made)

### Business Rules
- Users can only see shops they created
- Users can only create, update, or delete their own shops
- All operations require valid authentication

---

## Module 2: Users Management

### Purpose
Users can manage other user accounts that they have created. This allows shop owners to create and manage staff accounts.

### List Screen Features
- Display all users created by the logged-in user
- Each user item should show: Name, Email, Status
- Provide search functionality to search by name or email
- Allow filtering by shop, user type (admin/user), and status
- Show FAB or button to add new user
- Pull-to-refresh capability
- Loading and empty states

### Detail Screen Features
- Display complete user information:
  - Name
  - Email
  - Shop (name of associated shop)
  - Contact Number
  - User Type (admin/user)
  - Status (Active/Inactive)
  - Creation date
- Edit and Delete buttons
- Loading state

### Add/Edit Form Screen Features
- Form fields:
  - **Shop** (required, dropdown showing shops created by logged-in user)
  - **Name** (required, text input, maximum 255 characters)
  - **Email** (required, email input with validation)
  - **Password** (required for new users, optional for editing - only required if user wants to change password)
  - **Confirm Password** (required if password is provided, must match password)
  - **Contact Number** (optional, text input, maximum 25 characters)
  - **User Type** (required, dropdown: admin or user)
  - **Status** (required, dropdown: Active or Inactive)
- Special validation rules:
  - Email must be unique (except for soft-deleted users)
  - Password and confirm password must match
  - In edit mode, password is optional - if left blank, password won't be updated
  - If password is provided in edit mode, confirm password becomes required
- Layout: Organize fields in rows for better mobile experience
  - First row: Shop, Name, Contact Number
  - Second row: Email, Password, Confirm Password
  - Third row: User Type, Status

### Business Rules
- Users can only see users they created
- Users cannot edit or delete their own account
- Users can only assign users to shops they own
- Email must be unique across active users
- Passwords must be hashed before sending to API

---

## Module 3: Customers Management

### Purpose
Users can manage customer and vendor information, including their contact details, opening balances, and business relationships.

### List Screen Features
- Display all customers from shops owned by the logged-in user
- Each customer item should show: Name, Contact Number, ID Card Number
- Search by name, contact number, or ID card
- Filter by shop, type (walk-in/shop), vendor type (customer/vendor/both), and status
- Add new customer button
- Pull-to-refresh, loading, and empty states

### Detail Screen Features
- Display complete customer information:
  - Name
  - Type (walk-in or shop)
  - Vendor Type (customer, vendor, or both)
  - ID Card Number
  - Contact Number
  - Address
  - Opening Balance
  - Opening Balance Date
  - Associated Shop
  - Status
- Edit and Delete buttons

### Add/Edit Form Screen Features
- Form fields:
  - **Name** (required, text input, maximum 150 characters)
  - **Type** (required, dropdown: walk-in or shop)
  - **Vendor Type** (required, dropdown: customer, vendor, or both)
  - **ID Card** (optional, text input, maximum 25 characters)
  - **Contact Number** (optional, text input, maximum 25 characters)
  - **Address** (optional, multi-line text area)
  - **Opening Balance** (optional, decimal number input with 2 decimal places)
  - **Opening Balance Date** (optional, date picker)
  - **Shop** (required, dropdown showing shops owned by logged-in user)
  - **Status** (required, dropdown: Active or Inactive)
- Proper validation for all fields
- Date picker for opening balance date

### Business Rules
- Users can only see customers from their shops
- Opening balance and date should be entered together if one is provided

---

## Module 4: Items/Products Management

### Purpose
Users can manage inventory items/products, including their specifications, condition, and technical details.

### List Screen Features
- Display all items from shops owned by the logged-in user
- Each item should show: Title, Brand Name, and in the same area display: Color, RAM, Memory, Registration Type, SIM Status, and Condition
- Search across multiple fields (title, description, IMEI, serial number, etc.)
- Filter by shop, category, brand, status, and condition
- Add new item button
- Pull-to-refresh, loading, and empty states

### Detail Screen Features
- Display complete item information including all technical specifications
- Edit and Delete buttons

### Add/Edit Form Screen Features
- Form fields:
  - **Shop** (required, dropdown - shops owned by user)
  - **Category** (required, dropdown - active categories only)
  - **Brand** (required, dropdown - active brands only)
  - **Title** (required, text input, maximum 250 characters)
  - **Description** (optional, multi-line text area)
  - **RAM** (optional, text input, maximum 100 characters)
  - **Memory** (optional, text input, maximum 100 characters)
  - **Color** (optional, text input, maximum 50 characters)
  - **Registration Type** (required, dropdown: Non PTA, PTA, CPID, JV)
  - **SIM Status** (required, dropdown: Single, Dual Physical, Dual + eSim, eSim Dual)
  - **IMEI 1** (optional, text input, maximum 100 characters)
  - **IMEI 2** (optional, text input, maximum 100 characters)
  - **Serial Number** (optional, text input, maximum 100 characters)
  - **Condition** (required, dropdown: New, Used, Used Rough)
  - **Status** (required, dropdown: Active or Inactive)
- Organize form in logical sections for better UX
- All dropdowns should load data from API (categories, brands, shops)

### Business Rules
- Users can only see items from their shops
- Category and Brand dropdowns should only show active items
- IMEI and Serial Number should be validated for format if needed

---

## Module 5: Brands Management

### Purpose
Users can manage product brands. Brands are global (visible to all users) and are associated with categories.

### List Screen Features
- Display all brands in the system
- Each brand should show: Title, Category Name, Status
- Search by brand title
- Filter by category and status
- Add new brand button
- Pull-to-refresh, loading, and empty states

### Detail Screen Features
- Display brand information: Title, Category, Status
- Edit and Delete buttons

### Add/Edit Form Screen Features
- Form fields:
  - **Title** (required, text input, maximum 150 characters)
  - **Category** (required, dropdown - active categories only)
  - **Status** (required, dropdown: Active or Inactive)
- Simple form with validation

### Business Rules
- Brands are global (all users see all brands)
- Brands must be associated with an active category

---

## Module 6: Categories Management

### Purpose
Users can manage product categories. Categories are global and serve as the top-level classification for products.

### List Screen Features
- Display all categories in the system
- Each category should show: Title, Status
- Search by category title
- Filter by status
- Add new category button
- Pull-to-refresh, loading, and empty states

### Detail Screen Features
- Display category information: Title, Status
- Edit and Delete buttons

### Add/Edit Form Screen Features
- Form fields:
  - **Title** (required, text input, maximum 150 characters)
  - **Status** (required, dropdown: Active or Inactive)
- Simple form with validation

### Business Rules
- Categories are global (all users see all categories)
- Categories cannot be deleted if they have associated brands or items

---

## User Interface Requirements

### Design Principles
- Clean, modern, and professional design
- Consistent color scheme throughout the application
- Intuitive navigation and user flows
- Mobile-first design optimized for touch interactions
- Responsive layout that works on various screen sizes

### Common UI Elements

**Loading States:**
- Show loading spinners or skeletons during data fetching
- Disable buttons during form submission
- Display progress indicators for long operations

**Error Handling:**
- Display user-friendly error messages
- Show field-specific validation errors in forms
- Provide retry options for failed network requests
- Show network error messages when offline

**Success Feedback:**
- Display success messages after create/update/delete operations
- Use toast notifications or alert dialogs
- Provide visual confirmation of actions

**Empty States:**
- Show helpful messages when lists are empty
- Provide guidance on how to add the first item
- Use appropriate icons or illustrations

**Search and Filter:**
- Prominent search bar in list screens
- Filter options accessible via button or modal
- Clear visual indication of active filters
- Easy way to clear filters

**Forms:**
- Clear labels for all input fields
- Required field indicators (asterisks)
- Inline validation with error messages
- Proper keyboard types for different inputs (email, numeric, etc.)
- Date pickers for date fields
- Dropdowns/pickers for selection fields

**Lists:**
- Smooth scrolling performance
- Pull-to-refresh functionality
- Infinite scroll or pagination for large datasets
- Swipe actions for quick edit/delete (optional)
- Card-based or list-based item display

**Navigation:**
- Clear back buttons
- Breadcrumb navigation where appropriate
- Bottom tabs or drawer for main sections
- Consistent navigation patterns

### Color Scheme
- Primary color for main actions and highlights
- Secondary color for secondary actions
- Success color for success messages
- Error/danger color for errors and delete actions
- Neutral colors for backgrounds and text
- Ensure sufficient contrast for accessibility

### Typography
- Clear, readable fonts
- Appropriate font sizes for mobile
- Bold text for headings and important information
- Consistent text styling throughout

---

## Data Management and API Integration

### API Communication
- All data operations must communicate with the backend API
- Use HTTPS in production (HTTP acceptable for development)
- Include authentication token in all API requests
- Handle API responses and errors appropriately

### API Endpoints Structure
The backend API follows RESTful conventions:
- **GET** endpoints for retrieving data (list and detail)
- **POST** endpoints for creating new records
- **PATCH** endpoints for updating existing records
- **DELETE** endpoints for deleting records

All endpoints return JSON responses in a standardized format:
```json
{
  "success": true/false,
  "message": "Human-readable message",
  "data": { ... },
  "errors": { ... }
}
```

### Request Headers
All authenticated requests must include:
```
Authorization: Bearer {token}
Content-Type: application/json
```

### Error Handling
- **401 Unauthorized**: Token is missing, invalid, or expired - automatically log out user
- **403 Forbidden**: User doesn't have permission - show error message
- **404 Not Found**: Resource doesn't exist - show appropriate message
- **422 Validation Error**: Form validation failed - display field-specific errors
- **500 Server Error**: Server problem - show generic error message
- **Network Error**: No internet connection - show offline message with retry option

### Data Caching
- Cache list data locally for offline viewing
- Refresh data when app comes to foreground
- Show cached data immediately while fetching fresh data
- Indicate when data is stale

### Pagination
- Implement pagination for list screens
- Load more data as user scrolls (infinite scroll) or provide page navigation
- Show total count and current page information
- Handle empty pages gracefully

---

## Form Validation Requirements

### Client-Side Validation
- Validate all required fields before submission
- Validate email format
- Validate password strength (if applicable)
- Validate field lengths (min/max)
- Validate numeric fields (decimals, integers)
- Validate date formats
- Show validation errors immediately or on blur

### Server-Side Validation
- Display server validation errors below corresponding fields
- Show general error messages for non-field-specific errors
- Allow user to correct errors and resubmit

### Validation Rules by Module

**Shops:**
- Title: Required, max 150 characters
- Owner Name: Required, max 150 characters
- Contact No: Required, max 25 characters
- Address: Optional, text
- Status: Required, must be Active or Inactive

**Users:**
- Shop: Required
- Name: Required, max 255 characters
- Email: Required, valid email format, unique
- Password: Required for new, optional for edit (if provided, must match confirm)
- Confirm Password: Required if password provided, must match password
- Contact No: Optional, max 25 characters
- User Type: Required, admin or user
- Status: Required, Active or Inactive

**Customers:**
- Name: Required, max 150 characters
- Type: Required, walk-in or shop
- Vendor Type: Required, customer/vendor/both
- ID Card: Optional, max 25 characters
- Contact Number: Optional, max 25 characters
- Address: Optional, text
- Opening Balance: Optional, decimal with 2 decimal places
- Opening Balance Date: Optional, valid date
- Shop: Required
- Status: Required, Active or Inactive

**Items:**
- Shop: Required
- Category: Required
- Brand: Required
- Title: Required, max 250 characters
- Description: Optional, text
- RAM: Optional, max 100 characters
- Memory: Optional, max 100 characters
- Color: Optional, max 50 characters
- Registration Type: Required, Non PTA/PTA/CPID/JV
- SIM Status: Required, Single/Dual Physical/Dual + eSim/eSim Dual
- IMEI 1: Optional, max 100 characters
- IMEI 2: Optional, max 100 characters
- Serial Number: Optional, max 100 characters
- Condition: Required, New/Used/Used Rough
- Status: Required, Active or Inactive

**Brands:**
- Title: Required, max 150 characters
- Category: Required
- Status: Required, Active or Inactive

**Categories:**
- Title: Required, max 150 characters
- Status: Required, Active or Inactive

---

## User Experience Flow Examples

### Example 1: Creating a New Shop
1. User navigates to Shops list screen
2. User taps "Add New Shop" button (FAB or prominent button)
3. Form screen opens with empty fields
4. User fills in required information:
   - Enters shop title
   - Enters owner name
   - Enters contact number
   - Optionally enters address
   - Selects status (Active/Inactive)
5. User taps "Save" button
6. Form validates all required fields
7. If validation passes:
   - Show loading indicator
   - Send data to API
   - On success: Show success message, navigate back to list, refresh list
   - On error: Show error messages, keep form data
8. If validation fails: Show errors below fields, keep form data

### Example 2: Editing a User
1. User navigates to Users list screen
2. User taps on a user item
3. Detail screen opens showing user information
4. User taps "Edit" button
5. Form screen opens with fields pre-populated with existing data
6. User modifies desired fields (e.g., changes status, updates contact number)
7. User can optionally change password (if left blank, password won't be updated)
8. If password is entered, confirm password field becomes required
9. User taps "Save" button
10. Validation and save process (same as create flow)
11. On success, return to detail screen with updated information

### Example 3: Searching and Filtering Items
1. User navigates to Items list screen
2. User sees list of all items
3. User taps search bar and types "iPhone"
4. List filters to show only items with "iPhone" in title, description, or other searchable fields
5. User taps filter button
6. Filter modal opens showing options:
   - Shop dropdown
   - Category dropdown
   - Brand dropdown
   - Status dropdown
   - Condition dropdown
7. User selects "Active" status and "New" condition
8. User applies filters
9. List updates to show only active, new items matching search term
10. User can clear filters to see all items again

### Example 4: Deleting a Customer
1. User navigates to Customers list screen
2. User taps on a customer item
3. Detail screen opens
4. User taps "Delete" button
5. Confirmation dialog appears: "Are you sure you want to delete this customer? This action cannot be undone."
6. User confirms deletion
7. Loading indicator shows
8. Delete request sent to API
9. On success:
   - Show success message: "Customer deleted successfully"
   - Navigate back to list screen
   - Remove deleted item from list
10. On error: Show error message, stay on detail screen

---

## Technical Implementation Guidelines

### Code Organization
- Organize code into logical modules and folders
- Separate concerns: UI components, business logic, API calls, data models
- Use consistent naming conventions
- Write clean, readable, maintainable code
- Add comments for complex logic

### State Management
- Use a state management solution (Redux, Zustand, or Context API)
- Store authentication state globally
- Cache API data in state for performance
- Update state optimistically where appropriate
- Handle loading and error states in state

### Performance Optimization
- Implement pagination or infinite scroll for large lists
- Use FlatList for efficient list rendering
- Optimize images (compress, lazy load)
- Debounce search inputs
- Cache frequently accessed data
- Minimize unnecessary re-renders

### Security Considerations
- Store authentication tokens securely
- Never log sensitive information
- Validate all user inputs
- Sanitize data before displaying
- Use HTTPS for API communication in production
- Handle token expiration securely

### Error Handling Strategy
- Catch and handle all potential errors
- Provide user-friendly error messages
- Log errors for debugging (without sensitive data)
- Allow users to retry failed operations
- Handle network connectivity issues gracefully

### Accessibility
- Ensure sufficient color contrast
- Provide proper labels for screen readers
- Make touch targets appropriately sized
- Support font scaling
- Test with accessibility tools

---

## API Base Information

### Development Environment
- **Base URL**: `http://127.0.0.1:8000/api/v1`
- **Authentication**: Bearer token in Authorization header
- **Content Type**: application/json

### Production Environment
- **Base URL**: `https://api.hafeezcenter.com/api/v1`
- **Authentication**: Bearer token in Authorization header
- **Content Type**: application/json

### Authentication Endpoints
- **Login**: `POST /api/v1/login` (Body: email, password)
- **Get User Info**: `GET /api/v1/me` (Requires token)
- **Logout**: `POST /api/v1/logout` (Requires token)
- **Logout All**: `POST /api/v1/logout-all` (Requires token)

### Module Endpoints Pattern
Each module follows this pattern:
- **List**: `GET /api/v1/{module}` (e.g., `/api/v1/shops`)
- **Detail**: `GET /api/v1/{module}/{id}` (e.g., `/api/v1/shops/1`)
- **Create**: `POST /api/v1/{module}` (e.g., `/api/v1/shops`)
- **Update**: `PATCH /api/v1/{module}/{id}` (e.g., `/api/v1/shops/1`)
- **Delete**: `DELETE /api/v1/{module}/{id}` (e.g., `/api/v1/shops/1`)

### Query Parameters
List endpoints support query parameters:
- `per_page`: Number of items per page (default: 15)
- `search`: Search term (searches relevant fields)
- Module-specific filters (status, type, shop_id, etc.)

### Response Format
All API responses follow this structure:
```json
{
  "success": true,
  "message": "Operation successful message",
  "data": { ... },
  "meta": { ... }  // For paginated responses
}
```

Error responses:
```json
{
  "success": false,
  "message": "Error message",
  "errors": {
    "field_name": ["Error message for this field"]
  }
}
```

---

## Application Features Summary

### Must-Have Features
1. ✅ User authentication (login, logout, token management)
2. ✅ Shop management (CRUD operations)
3. ✅ User management (CRUD operations)
4. ✅ Customer management (CRUD operations)
5. ✅ Item/Product management (CRUD operations)
6. ✅ Brand management (CRUD operations)
7. ✅ Category management (CRUD operations)
8. ✅ Search functionality in all list screens
9. ✅ Filtering options in list screens
10. ✅ Pull-to-refresh in list screens
11. ✅ Form validation (client and server-side)
12. ✅ Loading states for all async operations
13. ✅ Error handling and user-friendly error messages
14. ✅ Success feedback for user actions
15. ✅ Empty states for empty lists
16. ✅ Navigation between screens
17. ✅ Responsive design for various screen sizes

### Nice-to-Have Features (Optional)
1. Offline mode with data caching
2. Push notifications
3. Biometric authentication (Face ID/Touch ID)
4. Dark mode support
5. Multi-language support
6. Image upload for items
7. Export/import functionality
8. Advanced analytics and reporting
9. Barcode/QR code scanning
10. Print functionality

---

## Deliverables Expected

When generating the application, provide:

1. **Complete source code** for the React Native application
2. **All necessary configuration files** (package.json, tsconfig.json, etc.)
3. **Proper folder structure** as outlined
4. **TypeScript type definitions** for all data models
5. **API service layer** with all endpoints implemented
6. **State management setup** (Redux/Zustand/Context)
7. **Navigation configuration** with all routes
8. **All screen components** for all modules
9. **Reusable UI components** (buttons, inputs, cards, etc.)
10. **Form components** with validation
11. **Error handling utilities**
12. **Storage utilities** for token and data persistence
13. **Custom hooks** for common functionality
14. **Constants and configuration files**
15. **README.md** with setup and running instructions

---

## Quality Standards

The generated application should:

1. **Follow React Native best practices**
2. **Use TypeScript** for type safety
3. **Implement proper error handling** throughout
4. **Provide excellent user experience** with smooth animations and transitions
5. **Be production-ready** with proper security measures
6. **Be maintainable** with clean, well-organized code
7. **Be performant** with optimized rendering and data handling
8. **Be accessible** following mobile accessibility guidelines
9. **Handle edge cases** gracefully
10. **Provide comprehensive user feedback** for all actions

---

## Final Instructions

Generate a complete, production-ready React Native application that implements all the requirements described above. The application should be fully functional, well-structured, and ready for deployment. Ensure all code follows best practices, includes proper error handling, and provides an excellent user experience.

Focus on creating a professional, polished application that business users can rely on for their daily inventory management tasks. The code should be clean, maintainable, and scalable for future enhancements.

Pay special attention to:
- Smooth user flows and intuitive navigation
- Proper form validation and error display
- Loading states and user feedback
- Error handling and recovery
- Data synchronization with the backend API
- Security best practices for token management
- Performance optimization for mobile devices

Generate the complete application codebase with all necessary files, components, and configurations.

---

**End of Prompt**

