Files
tabungin/apps/web
dwindown 258d326909 feat: implement AdminPaymentMethods page with full CRUD
Features:
 Modern card grid layout (matches AdminPlans design)
 Payment method types: Bank Transfer, E-Wallet, QRIS
 Type-specific icons and colors
 Account number & name display
 Instructions section
 Toggle active/inactive status
 Toggle visibility
 Delete functionality
 Drag handle for reordering (UI ready)
 Animated status indicators
 Indonesian text throughout

Card Design:
- Same modern gradient cards as Plans
- Type badges with icons
- 2-column stats grid
- Action buttons (Active, Visibility, Edit, Delete)
- Hover effects and transitions

API Integration:
- GET /admin/payment-methods
- PATCH /admin/payment-methods/:id/visibility
- PATCH /admin/payment-methods/:id/status
- DELETE /admin/payment-methods/:id

TODO: Create/Edit modal (next step)
2025-10-11 22:05:27 +07:00
..
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00
2025-10-09 12:52:41 +07:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      ...tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      ...tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      ...tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])