athena.2 (after athena.1)

Changes:

Before the upgrade

Nothing.

After the upgrade

From zora.4 the syntax is unchanged. From athena.1, zora.3 and older, the upgrade copies the planning annotations unchanged; change them by hand. The build reports each one, fix them topmost error first.

// old
'rows' = [
	on .'rows'* (
		'label' = [ .'key' ( ) ]
	)
]

// new
'rows' = [
	( 'rows' = on .'rows'* (
		'label' = [ .'key' ( ) ]
	) )
]
// old
'draggable' = (
	'move' = .'move' (
		'start' = .'start' ( )
		'can switch row' = 'yes'.'row' ( )
		'snap' = 'minute' 60
	)
)

// new
'draggable' = (
	'drop on row' = .'move' (
		'start' = .'start' ( )
		'row scope' = 'reference'.'row' ( )
		'snap' = 'minute' 60
	)
)
// old
'popup' = (
	'label' = [ .'key' ( ) ]
	'node' = [ 'text' .'key' ( ) ]
)

// new
'popup' = (
	'columns' = ( 'node' = [ 'text' .'key' ( ) ] )
)

Todo annotations

A todo state (has-todo: in the application model) takes three optional annotations, in any order, after its requirement:

The todo overview is not tied to an entry, so the expressions of @label: and @style: start at the root of the dataset:

root {
	'todo color': text
	'manual present': stategroup (
		'yes' { }
		'no' { }
	)
	'relations': collection ['relation'] {
		'relation': text
		'bank account': stategroup (
			'yes' {
				'iban': text
			}
			'no'
				has-todo:
					@label: "Relation without a bank account"
					@description: "Add the bank account of the relation"
					@style: switch .'manual present' (
						|'yes' => warning
						|'no'  => error
					)
			{ }
		)
		'checked': stategroup (
			'no'
				has-todo: user .'Type'?'Admin'
					@label: "Unchecked relation"
					@style: to-color .'todo color'
			{ }
			'yes' { }
		)
		'archived': stategroup (
			'no' { }
			'yes'
				has-todo: @description: "Archived relations are removed at the end of the year"
			{ }
		)
	}
}

The overview groups the todos on their collection or on their style, or lists them ungrouped. When the todos have a style, the overview shows a filter for each style, with the amount of todos of that style.