14: Toggle + FavoriteStar + StatusDot — state indicator widgets #15

Open
opened 2026-07-05 00:37:24 -06:00 by ppreeper · 0 comments
Owner

Description

Build boolean/state indicator widgets from PRD-001.

Toggle

Odoo boolean_toggle — switch toggle.

FavoriteStar

Odoo boolean_favorite — star bookmark toggle.

StatusDot

Odoo state_selection — colored dot + label for workflow state.

Spec

type ToggleProps struct {
    Value    bool
    Label    string
    Disabled bool
    OnChange func(v bool)
}

type FavoriteStarProps struct {
    Active   bool
    Label    string
    Readonly bool
    OnToggle func(v bool)
}

type StatusDotProps struct {
    Status  string  // done, cancel, pending, normal
    Label   string
    Clickable bool
    OnChange func(status string)
}

References

PRD-001 Toggle/FavoriteStar/StatusDot sections, oddo_widget_subcomponents.md §3.6-3.7, §5.4

## Description Build boolean/state indicator widgets from PRD-001. ## Toggle Odoo `boolean_toggle` — switch toggle. ## FavoriteStar Odoo `boolean_favorite` — star bookmark toggle. ## StatusDot Odoo `state_selection` — colored dot + label for workflow state. ## Spec ```go type ToggleProps struct { Value bool Label string Disabled bool OnChange func(v bool) } type FavoriteStarProps struct { Active bool Label string Readonly bool OnToggle func(v bool) } type StatusDotProps struct { Status string // done, cancel, pending, normal Label string Clickable bool OnChange func(status string) } ``` ## References PRD-001 Toggle/FavoriteStar/StatusDot sections, oddo_widget_subcomponents.md §3.6-3.7, §5.4
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/webtemplate#15
No description provided.