-
Notifications
You must be signed in to change notification settings - Fork 67
[IMP] pivot: add pivot design panel #7286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9c773a6 to
43e832d
Compare
| export interface PivotStyle { | ||
| numberOfRows?: number; | ||
| numberOfColumns?: number; | ||
| displayTotals?: boolean; | ||
| displayColumnHeaders?: boolean; | ||
| displayMeasuresRow?: boolean; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having everything optional makes it a bit harder to use, we need to do style.displayTotals ?? DEFAULT_PIVOT_STYLE.displayTotals
- It's fine
- rename variables so they are falsy by default (eg.
hideTotalsinstead) - make everything mandatory. Need migration + make json/revisions a bit more heavy
note that 2/3 don't solve everything, it only works for boolean values not really for number values (I don't think we want to add Number.MAX_VALUE or w/e in the JSON)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go for 1, it's fine, especially because as you say 2 and 3 are not perfect :)
3425061 to
6452753
Compare
This commit adds a new tab "Design" in the pivot side panel, allowing users to customize the appearance of pivot tables. At the moment the panel only allow for the same customization as the arguments of the `=PIVOT()` function. The user can easily edit those settings in the side panel, and can override them in the formula if needed. Task: 5150320
6452753 to
38b1220
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robodoo r+
Cool :)
| export interface PivotStyle { | ||
| numberOfRows?: number; | ||
| numberOfColumns?: number; | ||
| displayTotals?: boolean; | ||
| displayColumnHeaders?: boolean; | ||
| displayMeasuresRow?: boolean; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would go for 1, it's fine, especially because as you say 2 and 3 are not perfect :)
This commit adds a new tab "Design" in the pivot side panel, allowing users to customize the appearance of pivot tables. At the moment the panel only allow for the same customization as the arguments of the `=PIVOT()` function. The user can easily edit those settings in the side panel, and can override them in the formula if needed. closes #7286 Task: 5150320 Signed-off-by: Pierre Rousseau (pro) <[email protected]>
|
@hokolomopo @pro-odoo staging failed: ci/runbot (view more at https://runbot.odoo.com/runbot/batch/2189588/build/91582663) |
|
robodoo retry |
This commit adds a new tab "Design" in the pivot side panel, allowing users to customize the appearance of pivot tables. At the moment the panel only allow for the same customization as the arguments of the `=PIVOT()` function. The user can easily edit those settings in the side panel, and can override them in the formula if needed. closes #7286 Task: 5150320 Signed-off-by: Pierre Rousseau (pro) <[email protected]>

Description
This commit adds a new tab "Design" in the pivot side panel, allowing users to customize the appearance of pivot tables.
At the moment the panel only allow for the same customization as the arguments of the
=PIVOT()function. The user can easily edit those settings in the side panel, and can override them in the formula if needed.Task: 5150320
review checklist