feat: redesign section progress, report, link, file, dan cancel pada project & division/task

- SectionProgress: progress bar animated, badge persentase, label status, task count
- SectionReport: header ikon, left accent border, TextExpandable dengan label Indonesia
- SectionLink: tap langsung buka URL, ikon per domain, long press untuk hapus
- SectionFile: icon container konsisten 30×30 di semua section
- SectionCancel: card subtle dengan warna error, konsisten dengan visual language baru
- TextExpandable: fix bug show/hide tidak muncul setelah content diupdate
- Tambah 14 style class baru di Styles.ts untuk menggantikan inline style
- Terapkan semua perubahan ke fitur division/task
- Fix menu "Edit Tugas" di sectionTanggalTugasTask yang terpotong karena overflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 16:22:52 +08:00
parent eccfe29387
commit b61cd51628
16 changed files with 736 additions and 510 deletions

View File

@@ -813,6 +813,84 @@ const Styles = StyleSheet.create({
width: '48.5%',
marginBottom: 10,
},
sectionCard: {
borderRadius: 12,
padding: 16,
borderWidth: 1,
},
sectionHeader: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 12,
},
sectionHeaderRow: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
marginBottom: 10,
},
sectionIconBox: {
width: 30,
height: 30,
borderRadius: 8,
alignItems: 'center',
justifyContent: 'center',
},
badgeCol: {
alignItems: 'center',
gap: 6,
},
progressBadge: {
borderRadius: 10,
paddingHorizontal: 12,
paddingVertical: 5,
borderWidth: 1,
alignItems: 'center',
},
taskCountBadge: {
borderRadius: 6,
paddingHorizontal: 7,
paddingVertical: 2,
},
textProgressPercent: {
fontSize: 22,
fontWeight: 'bold',
lineHeight: 28,
},
progressTrack: {
height: 8,
borderRadius: 4,
overflow: 'hidden',
},
progressFill: {
height: '100%',
borderRadius: 4,
},
reportContent: {
borderLeftWidth: 3,
paddingLeft: 12,
},
expandBtn: {
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'flex-start',
marginTop: 8,
gap: 4,
},
fileGrid: {
flexDirection: 'row',
flexWrap: 'wrap',
gap: 8,
},
fileCard: {
width: '48%',
borderRadius: 10,
borderWidth: 1,
padding: 12,
flexDirection: 'row',
alignItems: 'center',
gap: 10,
},
flex1: {
flex: 1
},