| description | sedekahje business logic rules |
|---|---|
| globs | |
| alwaysApply | false |
Malaysian QR code directory for mosques, suraus, and other religious institutions. Always consider the Malaysian context when implementing features.
mosque(masjid) - Blue theme colorsurau- Green theme colorothers(lain-lain) - Violet theme color
duitnow- Malaysian instant payment systemtng- Touch 'n Go eWalletboost- Boost eWallet
All 16 Malaysian states and federal territories:
- Johor, Kedah, Kelantan, Melaka, Negeri Sembilan
- Pahang, Perak, Perlis, Pulau Pinang
- Sabah, Sarawak, Selangor, Terengganu
- WP Kuala Lumpur, WP Labuan, WP Putrajaya
Each state has corresponding SVG flag in public/flags/
pending- Awaiting admin approval (default for new submissions)approved- Approved by admin and visible to publicrejected- Rejected by admin with reason
user- Default role for contributors who can submit institutionsadmin- Can approve/reject institutions and manage users
- Static Data: Historical institutions in
app/data/institutions.ts - Dynamic Data: User-contributed institutions in PostgreSQL database
- Combined Display: Both sources shown together on maps and listings
- Users must be authenticated to submit institutions
- All submissions start with
pendingstatus - QR code images are optional but encouraged
- Automatic geocoding if coordinates not provided
- Contributor information is tracked for each submission
- Only admin users can approve/reject institutions
- Admin can add notes when approving/rejecting
- Approved institutions become visible to public
- Rejected institutions remain visible to contributor only
- QR codes are automatically processed to extract payment information
- Supported formats: images containing QR codes
- QR content is stored for validation and display
- Invalid QR codes don't prevent submission
- Coordinates are used for map display
- Automatic geocoding via OpenStreetMap Nominatim
- State-based filtering using Malaysian states
- Location-based "nearest" institution detection
- Primary language: Bahasa Malaysia
- Form labels and messages in Bahasa Malaysia
- Error messages in Bahasa Malaysia
- Consider Malaysian cultural context
- Show payment method icons (DuitNow, TNG, Boost)
- QR codes displayed prominently
- Easy sharing functionality for QR codes
- Responsive design for Malaysian mobile users
- Touch-friendly interfaces
- Offline capability considerations
- User data protection following Malaysian standards
- Secure handling of payment QR codes
- No storage of sensitive financial information
- Proper authentication and authorization
- Optimize for Malaysian internet speeds
- Efficient image handling for QR codes
- Minimize data usage for mobile users
- Fast loading times for map and institution data