13: StarRating + ProgressBar + PercentPie — progress/rating widgets #14

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

Description

Build display/rating widgets from PRD-001.

StarRating

Odoo priority — clickable star row with hover preview.

type StarRatingProps struct {
    Value    int
    Max      int      // default 5
    Size     string
    Readonly bool
    OnChange func(value int)
}

ProgressBar

Odoo progressbar — horizontal fill bar with editable values.

type ProgressBarProps struct {
    Current float64
    Max     float64
    Title   string
    Editable bool
    Color    string  // progress fill color
}

PercentPie

Odoo percentpie — pure CSS conic-gradient circle.

type PercentPieProps struct {
    Value   float64
    Label   string
    Size    string  // sm=80px, md=120px, lg=160px
}

References

PRD-001 StarRating/ProgressBar/PercentPie sections, oddo_widget_subcomponents.md §3.3, §5.1-5.2

## Description Build display/rating widgets from PRD-001. ## StarRating Odoo `priority` — clickable star row with hover preview. ```go type StarRatingProps struct { Value int Max int // default 5 Size string Readonly bool OnChange func(value int) } ``` ## ProgressBar Odoo `progressbar` — horizontal fill bar with editable values. ```go type ProgressBarProps struct { Current float64 Max float64 Title string Editable bool Color string // progress fill color } ``` ## PercentPie Odoo `percentpie` — pure CSS conic-gradient circle. ```go type PercentPieProps struct { Value float64 Label string Size string // sm=80px, md=120px, lg=160px } ``` ## References PRD-001 StarRating/ProgressBar/PercentPie sections, oddo_widget_subcomponents.md §3.3, §5.1-5.2
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#14
No description provided.