Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.