feat: add MeasurementDetailScreen, 365-day charts, and edit support

- New MeasurementDetailScreen with wijzigen/verwijderen
- WeightChart now supports 30 and 365 days
- NewMeasurementScreen now handles both create and edit
- Updated README to match current code
- Add build-toolchain documentation
- Ignore *.apk build artifacts
This commit is contained in:
eddy 2026-07-14 09:14:18 +02:00
commit ed714af8d1
15 changed files with 730 additions and 130 deletions

View file

@ -54,4 +54,19 @@ describe('mergeMeasurements', () => {
expect(result).toHaveLength(1)
expect(result[0].weight).toBe(77)
})
it('excludes ids in excludeIds from both sides', () => {
const local = { ...base, id: 'id-1' }
const remote = { ...base, id: 'id-2' }
const result = mergeMeasurements([local], [remote], new Set(['id-1', 'id-2']))
expect(result).toHaveLength(0)
})
it('keeps ids not in excludeIds', () => {
const local = { ...base, id: 'id-1' }
const remote = { ...base, id: 'id-2' }
const result = mergeMeasurements([local], [remote], new Set(['id-1']))
expect(result).toHaveLength(1)
expect(result[0].id).toBe('id-2')
})
})