Documentation
¶
Overview ¶
Package ui provides Pine UI components for the subscription plugin dashboard
Package ui provides Pine UI page templates for the subscription plugin dashboard
Index ¶
- func Alert(message, variant string) g.Node
- func Badge(text, variant string) g.Node
- func BillingOverviewPage(basePath string, metrics *core.DashboardMetrics, ...) g.Node
- func Button(text string, variant string, attrs ...g.Node) g.Node
- func Card(title string, children ...g.Node) g.Node
- func CardWithActions(title string, actions g.Node, children ...g.Node) g.Node
- func CouponsListPage(basePath string, coupons []*core.Coupon, total, page, pageSize int) g.Node
- func DescriptionList(items map[string]g.Node) g.Node
- func EmptyState(title, description string, action g.Node) g.Node
- func FormField(label, name, fieldType, value, placeholder string, required bool) g.Node
- func InvoicesListPage(basePath string, invoices []*core.Invoice, total, page, pageSize int) g.Node
- func LinkButton(text, href, variant string) g.Node
- func Modal(id, title string, content, footer g.Node) g.Node
- func MoneyDisplay(amount int64, currency string) g.Node
- func PageLayout(title string, breadcrumbs []Breadcrumb, actions g.Node, content ...g.Node) g.Node
- func Pagination(currentPage, totalPages int, baseURL string) g.Node
- func PlansListPage(basePath string, plans []*core.Plan, total, page, pageSize int) g.Node
- func SelectField(label, name string, options []SelectOption, selectedValue string, ...) g.Node
- func StatCard(title, value, change string, positive bool, icon g.Node) g.Node
- func StatusBadge(status string) g.Node
- func SubscriptionsListPage(basePath string, subs []*core.Subscription, total, page, pageSize int) g.Node
- func Table(headers []string, rows ...g.Node) g.Node
- func TableCell(content g.Node) g.Node
- func TableCellMuted(content g.Node) g.Node
- func TableRow(cells ...g.Node) g.Node
- func UsageDashboardPage(basePath string, usage map[string]*core.UsageLimit) g.Node
- type Breadcrumb
- type SelectOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BillingOverviewPage ¶
func BillingOverviewPage(basePath string, metrics *core.DashboardMetrics, recentSubs []*core.Subscription) g.Node
BillingOverviewPage renders the billing overview dashboard
func CardWithActions ¶
CardWithActions renders a card with header actions
func CouponsListPage ¶
CouponsListPage renders the coupons list page
func DescriptionList ¶
DescriptionList renders a description list
func EmptyState ¶
EmptyState renders an empty state component
func InvoicesListPage ¶
InvoicesListPage renders the invoices list page
func LinkButton ¶
LinkButton renders a button as a link
func MoneyDisplay ¶
MoneyDisplay formats and displays a money amount
func PageLayout ¶
PageLayout wraps content in a standard page layout
func Pagination ¶
Pagination renders pagination controls
func PlansListPage ¶
PlansListPage renders the plans list page
func SelectField ¶
func SelectField(label, name string, options []SelectOption, selectedValue string, required bool) g.Node
SelectField renders a select field
func StatusBadge ¶
StatusBadge renders a status badge based on subscription status
func SubscriptionsListPage ¶
func SubscriptionsListPage(basePath string, subs []*core.Subscription, total, page, pageSize int) g.Node
SubscriptionsListPage renders the subscriptions list page
func TableCellMuted ¶
TableCellMuted renders a muted table cell
func UsageDashboardPage ¶
UsageDashboardPage renders the usage dashboard
Types ¶
type Breadcrumb ¶
Breadcrumb represents a breadcrumb item
type SelectOption ¶
SelectOption represents an option in a select field