Documentation
¶
Overview ¶
templ: version: v0.3.1020
templ: version: v0.3.1020
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OnboardingCard ¶ added in v0.1.1
func OnboardingCard(p OnboardingProgress, basePath string) templ.Component
Types ¶
type OnboardingProgress ¶
type OnboardingProgress struct {
HasCompany bool // step 1 — always true in company context
HasBranch bool // step 2
HasStation bool // step 3
HasTeamMember bool // step 4 — ≥1 non-owner user belonging to this company
HasProduct bool // step 5
}
OnboardingProgress tracks which of the 5 onboarding steps are complete. All fields are derived from existing data — no new DB table required.
func (OnboardingProgress) CompletedCount ¶
func (p OnboardingProgress) CompletedCount() int
CompletedCount returns how many of the 5 steps are done.
func (OnboardingProgress) IsComplete ¶
func (p OnboardingProgress) IsComplete() bool
IsComplete reports whether all 5 steps are done.
Click to show internal directories.
Click to hide internal directories.