feat: Manual Tasks mobile screens (#24) - list, new, detail + profile nav

This commit is contained in:
Nemo
2026-03-25 08:21:02 +08:00
parent ca6236da04
commit 95d2510b23
5 changed files with 652 additions and 0 deletions

View File

@@ -60,6 +60,21 @@ export default function ProfileScreen() {
</TouchableOpacity>
)}
{/* Manual Tasks — admin only */}
{(user?.roles?.includes('ADMIN') || user?.role === 'ADMIN' || role === 'ADMIN') && (
<TouchableOpacity
style={{ backgroundColor: '#FFF', borderRadius: 20, borderWidth: 1, borderColor: '#F1F5F9', paddingHorizontal: 20, paddingVertical: 18, marginBottom: 16, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}
onPress={() => router.push('/(app)/manual-tasks')}
activeOpacity={0.7}
>
<View>
<Text style={{ fontSize: 17, fontWeight: '700', color: '#0F172A' }}>Manual Tasks</Text>
<Text style={{ fontSize: 14, color: '#64748B', marginTop: 2 }}>Suspend, reactivate & activate clients</Text>
</View>
<Text style={{ fontSize: 20, color: '#94A3B8' }}></Text>
</TouchableOpacity>
)}
{/* App version */}
<View style={{ backgroundColor: '#FFF', borderRadius: 20, marginBottom: 16, borderWidth: 1, borderColor: '#F1F5F9', paddingHorizontal: 20, paddingVertical: 16 }}>
<Text style={{ fontSize: 12, fontWeight: '600', color: '#94A3B8', textTransform: 'uppercase', letterSpacing: 0.5, marginBottom: 4 }}>App</Text>