dashboard

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dashboard holds the global, viewer-scoped lists at the reserved top-level /issues and /pulls names: the cross-repo "your issues" and "your pull requests" pages (spec doc 02 section 1.1, doc 09 section 1.6). Each is a session-gated view over the same domain search the /search page and the REST search run, scoped to the viewer by an author: or assignee: qualifier, so the dashboard and a hand-typed search can never disagree about what the viewer may see. An anonymous request bounces to the sign-in form with return_to carrying the dashboard, the 302 github.com answers. The tabs the search can back are Created and Assigned; the Mentioned and Review-requests tabs github.com adds need mention and review-request filters the domain search does not index yet, so they are absent rather than dead links.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Search *domain.SearchService
	URLs   *presenter.URLBuilder
	Render *render.Set
	View   *view.Builder
	Logger *slog.Logger
}

Deps are the dashboard handlers' dependencies: the domain search service every list runs through, the presenter for avatar URLs, the render set, the view builder for the shell chrome, and a logger.

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

Handlers is the dashboard handler set. One is built at boot and shared; it holds no per-request state.

func New

func New(d Deps) *Handlers

New wires the handler set from its dependencies.

func (*Handlers) Issues

func (h *Handlers) Issues(c *mizu.Ctx) error

Issues renders /issues, the cross-repo "your issues" page.

func (*Handlers) Pulls

func (h *Handlers) Pulls(c *mizu.Ctx) error

Pulls renders /pulls, the cross-repo "your pull requests" page.

Jump to

Keyboard shortcuts

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