Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Master chips lul #6480

wants to merge 4 commits into from

Conversation

LucasLefevre
Copy link
Collaborator

Description:

description of this task, what is implemented and why it is implemented that way.

Task: TASK_ID

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented May 26, 2025

Pull request status dashboard

@LucasLefevre LucasLefevre force-pushed the master-chips-lul branch 4 times, most recently from c5bfa8c to f3e75f5 Compare May 26, 2025 11:54
Copy link
Contributor

@hokolomopo hokolomopo left a 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",
Copy link
Contributor

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 ?

Copy link
Contributor

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" ?

Copy link
Contributor

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

Copy link
Contributor

@hokolomopo hokolomopo May 27, 2025

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.

Copy link
Contributor

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 {
Copy link
Contributor

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,
Copy link
Contributor

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

Comment on lines 601 to 604
let style = {
...this.getters.getCellComputedStyle(position),
...this.getters.getDataValidationCellStyle(position),
};
Copy link
Contributor

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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants