refactor: style tweaks and bug fixes

- italic and bold for rundown metadata entries
- allow deleting groups
- make groups in order
- correct style for milestones
- open playing groups
- style tweaks
This commit is contained in:
Carlos Valente
2025-07-11 14:02:07 +02:00
parent 50b603f668
commit 4d419c0877
22 changed files with 118 additions and 39 deletions
@@ -306,3 +306,17 @@ export function moveDown(
// default - swap positions with next entry
return { destinationId: nextEntryId, order: 'after' };
}
/**
* Reorders unorderedArray to match the flatOrder entries
* Useful for operations that convert selections (out of order) to rundown
*/
export function orderEntries(unorderedArray: EntryId[], flatOrder: EntryId[]): EntryId[] {
const orderedArray: EntryId[] = [];
for (const id of flatOrder) {
if (unorderedArray.includes(id)) {
orderedArray.push(id);
}
}
return orderedArray;
}