Added issues dashboard

This commit is contained in:
Moira Daniella A Sebastian
2026-02-23 19:48:10 +01:00
parent facb31015f
commit 96291b7a94
17 changed files with 1199 additions and 456 deletions

View File

@@ -0,0 +1,32 @@
package routes
import (
"github.com/LazyBachelor/LazyPM/internal/models"
"github.com/LazyBachelor/LazyPM/pkg/web/components"
)
type DashboardProps struct {
ActiveIssues []models.Issue
ClosedIssues []models.Issue
SelectedIssue *models.Issue
SelectedID string
SearchQuery string
DisplayOwner string
DisplayAssignee string
}
templ Dashboard(props DashboardProps) {
@BaseLayout(BaseLayoutProps{SearchQuery: props.SearchQuery}) {
@components.DashboardPage(components.DashboardPageProps{
ActiveIssues: props.ActiveIssues,
ClosedIssues: props.ClosedIssues,
SelectedIssue: props.SelectedIssue,
SelectedID: props.SelectedID,
BaseURL: "/dashboard",
QueryParam: "?id=",
EmptyText: "Select an issue to view details",
DisplayOwner: props.DisplayOwner,
DisplayAssignee: props.DisplayAssignee,
})
}
}