board

package
v0.69.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package board collects a project's board: what changed over a window, or where every task stands, as lookaround derives it from the project's tracker, host, git and ledger.

Index

Constants

View Source
const Page = 100

Page is how many tasks and PRs one source read lists.

View Source
const StateWindow = 7 * 24 * time.Hour

Variables

This section is empty.

Functions

func Collect

func Collect(
	ctx context.Context,
	entries []scope.ScopeEntry,
	warn io.Writer,
	now time.Time,
	span Span,
	stateView, remote bool,
	people []lookaround.Person,
) []lookaround.Board

Collect derives one board per entry; one that could not be bound is a board whose sources all failed, so the others still render. The feed's span is chosen once every entry's facts are in: the day is the person's.

func People

func People(people []scope.Person) []lookaround.Person

func Tasks

func Tasks(rows []hostops.Row, prefix string) []lookaround.Task

Tasks is tracker rows in the board's shape, the base in the project's id format since a driver may send the bare number.

Types

type Span

type Span struct {
	Named              *lookaround.Window
	Today, LastWorkday lookaround.Window
}

A Span is the window the argument named, or for the feed's default two candidates chosen between once the facts are in.

func ResolveSpan

func ResolveSpan(
	arg string, state bool, now time.Time, workdays func() (calendar.Workdays, error),
) (Span, error)

ResolveSpan goes through calendar, which owns every calendar rule. Working days are read only when the default or `last-workday` needs them; the state view takes a start alone, seven days back without a window.

func (Span) From

func (s Span) From() time.Time

From is where collection starts: the named window's start, or the earlier candidate's, so one collection answers both.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL