chore: rename blocks to groups

This commit is contained in:
Carlos Valente
2025-08-09 06:47:13 +02:00
committed by Carlos Valente
parent 486d89ecf4
commit e5d2457717
83 changed files with 987 additions and 981 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ export const demoDb: DatabaseModel = {
},
'7eaf99': {
id: '7eaf99',
type: SupportedEntry.Block,
type: SupportedEntry.Group,
title: 'Morning Sessions',
note: '',
entries: ['9bf60f', 'bf71a2', 'c2697f', 'fa593e', 'a8b0b3'],
@@ -160,7 +160,7 @@ export const demoDb: DatabaseModel = {
},
f60403: {
id: 'f60403',
type: SupportedEntry.Block,
type: SupportedEntry.Group,
title: 'Lunch',
note: '',
entries: ['0aaa7d'],
@@ -202,7 +202,7 @@ export const demoDb: DatabaseModel = {
},
'6b0edb': {
id: '6b0edb',
type: SupportedEntry.Block,
type: SupportedEntry.Group,
title: 'Afternoon Sessions',
note: '',
entries: ['02afca', '75ce86', 'e10ed9', '07df89'],
+3 -3
View File
@@ -1,6 +1,6 @@
import {
EndAction,
OntimeBlock,
OntimeGroup,
OntimeDelay,
OntimeEvent,
OntimeMilestone,
@@ -54,8 +54,8 @@ export const milestone: Omit<OntimeMilestone, 'id'> = {
revision: 0, // calculated at runtime
};
export const block: Omit<OntimeBlock, 'id'> = {
type: SupportedEntry.Block,
export const group: Omit<OntimeGroup, 'id'> = {
type: SupportedEntry.Group,
title: '',
note: '',
entries: [],