-
Notifications
You must be signed in to change notification settings - Fork 55
Master chips lul #6480
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
base: master
Are you sure you want to change the base?
Master chips lul #6480
Conversation
c5bfa8c
to
f3e75f5
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.
Bip bop. Fast read 🤖
@@ -2951,7 +2951,7 @@ export const demoData = { | |||
C6: "-445248", |
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.
Some functional notes:
- hover style of simple arrow (without chip) is worst than before IMO ? particularly on white background
- hover style of arrow/chip is set when hovering on the cell, not on the icon. And the rest of the cell isn't clickable
- whole chip should probably be clickable, not just the arrow ?
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.
- cannot use chip in "Values in range" ?
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.
- font size looks really small in the autocomplete dropdown
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.
- cannot change text color of chip item with dark background. Chip text color should not take priority over user-defined color. Nor cf colors.
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.
- when chip arrow is white on dark background, hover style is barely noticeable
@@ -0,0 +1,5 @@ | |||
.o-spreadsheet { |
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.
css won't work with my PR to put all the icons in the canvas. Actually we should discuss how both task will interact, because I don't think it'll be easy
this.hoveredCellStore.row === this.props.cellPosition.row; | ||
const shadowColor = darkenColor(style?.textColor || TEXT_BODY_MUTED, 0.2); | ||
return cssPropertiesToCss({ | ||
color: style?.textColor, |
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.
should probably darken the color rather than adding a shadow on hover
src/stores/grid_renderer_store.ts
Outdated
let style = { | ||
...this.getters.getCellComputedStyle(position), | ||
...this.getters.getDataValidationCellStyle(position), | ||
}; |
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 don't like this. Every call to getCellComputedStyle
is now wrong, except when we add getDataValidationCellStyle
manually. Data validation style should be included in cell compute style.
f3e75f5
to
37237a7
Compare
The hovered col/row will be used for data validation, not only tables. Task: 4800440
This commit moves the text coordinate computation to boxes. It's easier to test, decoupled from the canvas. They'll be needed to compute coordinates of data validation chips which will also be on the boxes Task: 4800440
I still see odoo employees use spreadsheets from competitors instead of using our own spreadsheet. In almost every single one of them, there are data validation chips. People want chips? We'll give them chips! This commit adds colors for dropdown data validation and it adds the "chip" display mode. Task: 4800440
37237a7
to
3b1192b
Compare
Description:
description of this task, what is implemented and why it is implemented that way.
Task: TASK_ID
review checklist