{"modulePath":"github.com/codeGROOVE-dev/slacker","version":"v0.0.0-20260117180538-72f1ef61c586","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package home\n\nPackage home implements the Slack app home dashboard.\n\n## Functions\n\n```go\nfunc BuildBlocks(dashboard *Dashboard, userTZ string) []slack.Block\n```\nBuildBlocks creates Slack Block Kit UI for the home dashboard. Design matches dashboard at [https://reviewgoose.dev](https://reviewgoose.dev) - modern minimal with indigo accents.\n\n```go\nfunc BuildBlocksWithDebug(dashboard *Dashboard, userTZ string, mapping *usermapping.ReverseMapping) []slack.Block\n```\nBuildBlocksWithDebug creates Slack Block Kit UI with GitHub username integrated into the header.\n\n```go\nfunc BuildPRSections(incoming, outgoing []PR) []slack.Block\n```\nBuildPRSections creates Block Kit blocks for PR sections (incoming/outgoing). Format inspired by goose - simple, minimal, action-focused. This is the core formatting used by both daily reports and the dashboard.\n\n## Types\n\n```go\ntype Dashboard struct {\n\tIncomingPRs   []PR\n\tOutgoingPRs   []PR\n\tWorkspaceOrgs []string // Organizations tracked by this workspace\n}\n```\nDashboard contains all data needed to render the home tab.\n\n```go\nfunc (d *Dashboard) Counts() PRCounts\n```\nCounts returns summary counts for the dashboard.\n\n```go\ntype Fetcher struct {\n\t// contains filtered or unexported fields\n}\n```\nFetcher retrieves and enriches PRs for the home dashboard.\n\n```go\nfunc NewFetcher(githubClient *github.Client, stateStore state.Store, githubToken, botUsername string) *Fetcher\n```\nNewFetcher creates a new PR fetcher.\n\n```go\nfunc (f *Fetcher) FetchDashboard(ctx context.Context, githubUsername string, workspaceOrgs []string) (*Dashboard, error)\n```\nFetchDashboard fetches all PRs for a GitHub user across workspace organizations. Degrades gracefully - returns partial data on errors rather than failing completely.\n\n```go\ntype PR struct {\n\tUpdatedAt     time.Time // Last time PR metadata was updated\n\tLastEventTime time.Time // Last sprinkler event for turnclient cache optimization\n\tTitle         string\n\tURL           string\n\tRepository    string // \"owner/repo\" format\n\tAuthor        string // GitHub username\n\tActionReason  string // Human-readable reason from turnclient\n\tActionKind    string // Action type: review, merge, fix_tests, etc.\n\tTestState     string // Test state: running, passing, failing\n\tNumber        int\n\tIsDraft       bool\n\tIsBlocked     bool // Outgoing PRs - blocked on author\n\tNeedsReview   bool // Incoming PRs - needs user's review\n}\n```\nPR represents a pull request for display in the home dashboard.\n\n```go\ntype PRCounts struct {\n\tIncomingTotal   int\n\tIncomingBlocked int\n\tOutgoingTotal   int\n\tOutgoingBlocked int\n}\n```\nPRCounts summarizes PR counts for display.\n\n","path":"github.com/codeGROOVE-dev/slacker/pkg/home","name":"home","synopsis":"Package home implements the Slack app home dashboard.","isRedistributable":true}
