mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-04 17:07:00 +01:00
agenda, capture and finder: what needs doing comes to you
GET /api/agenda gathers unfinished cards from every board that are late, due within a week, or in hand, plus whether the diary has today; the reminder mail and the agenda share one diary check. t opens it (and it opens itself once a day when something is late or due), T writes today's entry, the bar counts late and due cards, Ctrl-P searches every space, and a document o made that is left empty is removed on the way out.
This commit is contained in:
1 parent
e1c8e22ea5
commit
9255d36b61
14 files changed
+686
-40
No files matched your search
@@ -77,6 +77,20 @@ export interface Card {
|
||||
updated_at: number
|
||||
}
|
||||
|
||||
/** An open card as the agenda lists it, with the board it lives on. */
|
||||
export interface AgendaCard extends Card {
|
||||
space_id: number
|
||||
space_slug: string
|
||||
list_name: string
|
||||
role: 'inbox' | 'doing'
|
||||
}
|
||||
|
||||
export interface Agenda {
|
||||
cards: AgendaCard[]
|
||||
/** Whether the diary has an entry today; null when there is no diary. */
|
||||
diary_today: boolean | null
|
||||
}
|
||||
|
||||
export interface BoardList {
|
||||
id: number
|
||||
name: string
|
||||
@@ -213,6 +227,9 @@ export const api = {
|
||||
|
||||
unshare: (id: number) => request<{ ok: true }>(`/nodes/${id}/share`, { method: 'DELETE' }),
|
||||
|
||||
/** Open cards across every board: due within a week, overdue, or in hand. */
|
||||
agenda: () => request<Agenda>('/agenda'),
|
||||
|
||||
/** The board of a space. Fails for a space that has none, such as the diary. */
|
||||
board: (spaceId: number) => request<Board>(`/spaces/${spaceId}/board`),
|
||||
|
||||
|
||||
Reference in new issue
Block a user