Skip to main content

Module board

Module board 

Source
Expand description

The board: one answer for every derived fact a reader of the task list needs.

Worked time, ages, and the marks (ready, in review, overdue, no movement, waiting too long, stale, to close) are derived here from the store, the history and session liveness - never stored. The tools, the chase and the view surface all read THIS answer, so a mark cannot disagree between two surfaces.

Re-exportsยง

use std::collections::HashMap; ๐Ÿ”’
use std::time::SystemTime; ๐Ÿ”’
use forge_primitives::tasks::LinkKind; ๐Ÿ”’
use forge_primitives::tasks::Task; ๐Ÿ”’
use forge_primitives::tasks::TaskId; ๐Ÿ”’
use forge_primitives::tasks::TaskStatus; ๐Ÿ”’
use forge_primitives::tasks::TaskTransition; ๐Ÿ”’
use crate::workspace::Workspace; ๐Ÿ”’

Structsยง

AttentionItem
One wait that is on the person, named for the surface that raises it.
BoardRow
One row as the board reads it: the record plus what is derived.
FleetRow
One project as the fleet page draws it.
Marks
The derived facts about one row, as the board draws them.

Enumsยง

Miss
One named miss on a projectโ€™s fleet row.

Constantsยง

DEFAULT_STALE_SECS
The no-estimate no-movement window when forge.toml says nothing.
HISTORY_CAP
How many of a rowโ€™s own transitions a board row carries.

Functionsยง

attention_words ๐Ÿ”’
The askโ€™s own words, as the mark and its popover word it.
capped_history ๐Ÿ”’
The tail of a rowโ€™s transitions a board row carries: the newest HISTORY_CAP, in time order. mine is that one rowโ€™s transitions, already sorted.
fmt_secs ๐Ÿ”’
A duration as the boardโ€™s words: 3h, 12m, 45s.
is_terminal ๐Ÿ”’
retro_ran ๐Ÿ”’
The retro marker: a link labelled retro on the epic.
secs_ago ๐Ÿ”’
worked_secs ๐Ÿ”’
The sum of a rowโ€™s in_progress intervals, from its transitions.