Documentation
¶
Overview ¶
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
templ: version: v0.3.1001
Index ¶
- func AccessTokensPage(rows []AccessTokenRow, stats AccessTokensStats, user *entity.User) templ.Component
- func AdminJobsPage(rows []JobRow, allTags []*entity.Tag, user *entity.User) templ.Component
- func AdminLayout(title string, activeTab string, user *entity.User) templ.Component
- func ConfigsHubPage(user *entity.User) templ.Component
- func ConnectionsAdminPage(rows []ConnectionRow, stats ConnectionsAdminStats, user *entity.User) templ.Component
- func ConnectorsAdminPage(rows []ConnectorAdminRow, allTags []*entity.Tag, user *entity.User) templ.Component
- func DashboardPage(stats DashboardStats, missing []MissingEntry, user *entity.User) templ.Component
- func SSOPage(rows []entity.SSOProvider, callbackURL string, user *entity.User) templ.Component
- func TagRowFragment(t *entity.Tag, editing bool) templ.Component
- func TagsPage(tags []*entity.Tag, user *entity.User, editID string) templ.Component
- func ToolRowFragment(row ToolRow, tagsJSON string) templ.Component
- func ToolsPage(rows []ToolRow, allTags []*entity.Tag, user *entity.User) templ.Component
- func UserRowFragment(row UserRow, tagsJSON string, adminCount int) templ.Component
- func UsersPage(rows []UserRow, allTags []*entity.Tag, user *entity.User, adminCount int) templ.Component
- func VariablesPage(rows []entity.Config, editKey string, user *entity.User) templ.Component
- type AccessTokenRow
- type AccessTokensStats
- type ConnectionRow
- type ConnectionsAdminStats
- type ConnectorAdminRow
- type DashboardStats
- type JobRow
- type MissingEntry
- type ToolRow
- type UserRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessTokensPage ¶ added in v0.4.0
func AccessTokensPage(rows []AccessTokenRow, stats AccessTokensStats, user *entity.User) templ.Component
func AdminJobsPage ¶
func AdminLayout ¶
func ConfigsHubPage ¶
ConfigsHubPage is the landing page for /admin/configs. It's a card grid that points to each subsection (Variables, SSO, …). Add a new card when adding a new config category.
func ConnectionsAdminPage ¶ added in v0.4.0
func ConnectionsAdminPage(rows []ConnectionRow, stats ConnectionsAdminStats, user *entity.User) templ.Component
func ConnectorsAdminPage ¶ added in v0.4.0
func DashboardPage ¶
func DashboardPage(stats DashboardStats, missing []MissingEntry, user *entity.User) templ.Component
func SSOPage ¶
SSOPage lists every SSO provider. Each provider is a card with an inline edit form — there's only Google for now, but the UI scales to any providers Bootstrap registers.
func UserRowFragment ¶
Types ¶
type AccessTokenRow ¶ added in v0.4.0
type AccessTokenRow struct {
Token entity.PersonalAccessToken
OwnerName string
OwnerEmail string
}
AccessTokenRow is the view model for one Personal Access Token in the admin access-tokens table. OwnerName / OwnerEmail are joined from the user table so the row can show who owns the token without an N+1 lookup. PATs are general-purpose bearers — MCP is just one caller — so the surface lives at /admin/access-tokens.
type AccessTokensStats ¶ added in v0.4.0
AccessTokensStats summarises the PAT footprint for the admin landing banner. Counts are computed by the handler so the template stays pure-rendering.
type ConnectionRow ¶ added in v0.4.0
type ConnectionRow struct {
UserID string
OwnerName string
OwnerEmail string
ClientID string
ClientName string
GrantedAt time.Time
LastUsedAt *time.Time
TokenCount int
}
ConnectionRow is the view model for one (user, OAuth client) grant in the admin connections table. Owner fields come from the user table; Granted/LastUsed/TokenCount are aggregated across the active access + refresh tokens for that pair.
type ConnectionsAdminStats ¶ added in v0.4.0
ConnectionsAdminStats summarises OAuth grant activity for the admin connections landing.
type ConnectorAdminRow ¶ added in v0.4.0
type ConnectorAdminRow struct {
Connector entity.Connector
ModuleName string
ModuleIcon string
ModuleMissing bool
TagIDs []string
}
ConnectorAdminRow is the view model for a single connector instance in the admin connectors table. ModuleName/Icon come from the in-memory registry; when the row's Key has no registered module (deleted from code after a deploy) ModuleMissing is true so the UI can mark it.
type DashboardStats ¶
type JobRow ¶
JobRow is the view model for a single job row in the admin jobs table.
IsSystem mirrors the entity.Tag.IsSystem flag for any tag attached to this job's path. When true the row is rendered read-only — no Hide button, tag picker locked, no Save — because a System job is owned by code (see internal/tags/defaults.go and connector-runs-purge for the canonical example). Server-side guards in handler.setJobDisabled and handler.setJobTags backstop the same rule.