Board¶
One call gives the /board page everything it renders: one project's work,
as the flow line's steps stacked top to bottom, each a group of task rows. Source: services/board/board.jac.
BoardSnapshot¶
One project's board in one call. project_id picks the project; an
empty, foreign, archived or unknown id falls back to the caller's own
default project (the earliest created), and the report says which was
used. with_workspace adds the roster, flow line, GitHub state and saved
filters the boot needs; the poll leaves it off and pays for the working
set alone. Only that set is loaded: older is the project's Done tally
less the Done rows the cutoff kept, and categories is the workspace
list the projects' box keeps on write.
| Body field | Type | Default |
|---|---|---|
page |
int |
1 |
page_size |
int |
500 |
done_days |
int |
7 |
project_id |
str |
"" |
with_workspace |
bool |
False |
Reports exactly one BoardData, also for an empty
workspace.
The page calls it two ways:
| Call | with_workspace |
What comes back |
|---|---|---|
| Boot | true on the first page |
Tasks plus members, projects, steps, repos, roles, the saved filter sets and the board's stored filters, and whether GitHub is connected |
| Poll | false |
Tasks and categories only; the workspace lists are [] and github_connected is false |
project_idpicks the project. An empty, unknown, foreign or archived id falls back to the caller's default project (the earliest created), and the report'sproject_idsays which one was used. A workspace with no project reports no rows.rowsis one page of that project's working set: open tasks plus Done tasks that reached Done in the lastdone_days(default 7), ordered bysort_order. Only the working set is loaded.oldercounts the project's Done tasks the cutoff left out (its Done tally less the rows kept);done_days <= 0trims nothing. The Done group's footer pages through them withListTasks.categoriescovers every task, older ones included, so a category filter built from it does not lose categories only old Done tasks carry. It is the list the projects' box keeps on every category write.- There is no
total,pageorpage_sizein the report. Loop onhas_more:
page_no = 1;
more = True;
while more {
result = root spawn BoardSnapshot(page=page_no, page_size=500, with_workspace=page_no == 1);
data = result.reports[0] if result.reports else None;
more = data.has_more if data else False;
page_no = page_no + 1;
}
page_size defaults to 500
Omitting page_size gives the declared default of 500. An explicit 0
asks for the shared fallback of 50, and anything above 500 is clamped.
Step groups come from steps (a StepView list in
sort_order); with no steps the board falls back to the legacy statuses. A
strip of the same steps with their counts sits on top. A task moves by its
row's Move menu, by a drag onto a step group, or with M on a focused row. See
Where a task sits on the board.
github_connected is true whenever an installation is stored, even one marked
invalid; the full view is github on GetWorkspace or
GithubStatus.
The workspace¶
GetWorkspace¶
Everything a page needs beside its own data, in one read: the lists
BoardSnapshot carries with with_workspace, the flow line's name and
template key, and the GitHub connection view. No GitHub call.
Body field: none.
Reports exactly one WorkspaceView: the six
lists BoardSnapshot carries with with_workspace (the saved filter sets
among them), in the same order, plus
the flow line's flow_name and template_key (what
GetFlowLineMeta reports) and the connection
view github (what GithubStatus reports, no GitHub
call). Every page other than the board opens with it, fired together with its
own read, so a page never waits for one roster list after another.
Deep links¶
| URL | Opens |
|---|---|
/board?task=<task id> |
That task in the task sheet (fetched with GetTask when it is not in the working set) |
/board?new=1 |
The new-task dialog (setup lands here after applying a template) |
An already mounted board listens for the flowline:open-task and
flowline:new-task browser events instead; the command palette uses both.