Skip to content
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

[FW][FIX] *: standardization of color representation #2300

Closed

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Mar 31, 2023

Description:

We handle colors as 'css-valid' representations, as such, several
repesentations are equivalent but cannot be compared by strict equality,
they need to be converted to the same representation. This commit
aims to unify to the uppercase hex representation as it follows the
representation yielded by the helper toHex which (at this point in
time) seems to be the 'rallying' point when manipulating colors.

Task: 3193882

Odoo task ID : 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 (_lt("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

Forward-Port-Of: #2163

@robodoo
Copy link
Collaborator

robodoo commented Mar 31, 2023

@fw-bot
Copy link
Collaborator Author

fw-bot commented Mar 31, 2023

@rrahir @LucasLefevre cherrypicking of pull request #2163 failed.

stderr:

14:46:58.019924 git.c:455               trace: built-in: git cherry-pick 8b7a77bc804c493c5330c0f239d31612130ca631
error: Cherry-picking is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: cherry-pick failed
----------
status:

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

rrahir added 3 commits April 4, 2023 09:27
The Alias introduced to prevent Intellisense to resolve simple aliases
was broken. As a reminder, it allows us for example to type specific
string as `UID` and prevent the variables to be noted as `string`later
on in the code.
We handle colors as 'css-valid' representations, as such, several
repesentations are equivalent but cannot be compared by strict equality,
they need to be converted to the same representation. This commit
aims to unify to the uppercase hex representation as it follows the
representation yielded by the helper `toHex` which (at this point in
time) seems to be the 'rallying' point when manipulating colors.

Task: 3193882
@rrahir rrahir force-pushed the saas-16.1-16.0-fix-color-picker-choice-rar-K_Aj-fw branch from 6a8a7e6 to f823963 Compare April 4, 2023 07:49
@rrahir
Copy link
Collaborator

rrahir commented Apr 4, 2023

@robodoo r+

rrahir added 2 commits April 4, 2023 10:21
The color picker would not close when the user would click outside of it
for the design panels of gauge and scorecard charts. The duplication of
design panles is probably to blame here.
@rrahir rrahir force-pushed the saas-16.1-16.0-fix-color-picker-choice-rar-K_Aj-fw branch from f823963 to 4805e7a Compare April 4, 2023 08:21
@rrahir
Copy link
Collaborator

rrahir commented Apr 4, 2023

@robodoo r+

robodoo pushed a commit that referenced this pull request Apr 4, 2023
The Alias introduced to prevent Intellisense to resolve simple aliases
was broken. As a reminder, it allows us for example to type specific
string as `UID` and prevent the variables to be noted as `string`later
on in the code.

Part-of: #2300
robodoo pushed a commit that referenced this pull request Apr 4, 2023
We handle colors as 'css-valid' representations, as such, several
repesentations are equivalent but cannot be compared by strict equality,
they need to be converted to the same representation. This commit
aims to unify to the uppercase hex representation as it follows the
representation yielded by the helper `toHex` which (at this point in
time) seems to be the 'rallying' point when manipulating colors.

Task: 3193882
Part-of: #2300
robodoo pushed a commit that referenced this pull request Apr 4, 2023
robodoo pushed a commit that referenced this pull request Apr 4, 2023
The color picker would not close when the user would click outside of it
for the design panels of gauge and scorecard charts. The duplication of
design panles is probably to blame here.

Part-of: #2300
robodoo pushed a commit that referenced this pull request Apr 4, 2023
closes #2300

Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
Signed-off-by: Rémi Rahir (rar) <[email protected]>
@robodoo robodoo temporarily deployed to merge April 4, 2023 08:34 Inactive
@robodoo robodoo closed this Apr 4, 2023
@fw-bot fw-bot deleted the saas-16.1-16.0-fix-color-picker-choice-rar-K_Aj-fw branch April 18, 2023 08:47
Topdev97 added a commit to Topdev97/o-spreadsheet that referenced this pull request Nov 18, 2024
The Alias introduced to prevent Intellisense to resolve simple aliases
was broken. As a reminder, it allows us for example to type specific
string as `UID` and prevent the variables to be noted as `string`later
on in the code.

Part-of: odoo/o-spreadsheet#2300
Topdev97 added a commit to Topdev97/o-spreadsheet that referenced this pull request Nov 18, 2024
We handle colors as 'css-valid' representations, as such, several
repesentations are equivalent but cannot be compared by strict equality,
they need to be converted to the same representation. This commit
aims to unify to the uppercase hex representation as it follows the
representation yielded by the helper `toHex` which (at this point in
time) seems to be the 'rallying' point when manipulating colors.

Task: 3193882
Part-of: odoo/o-spreadsheet#2300
Topdev97 added a commit to Topdev97/o-spreadsheet that referenced this pull request Nov 18, 2024
Topdev97 added a commit to Topdev97/o-spreadsheet that referenced this pull request Nov 18, 2024
The color picker would not close when the user would click outside of it
for the design panels of gauge and scorecard charts. The duplication of
design panles is probably to blame here.

Part-of: odoo/o-spreadsheet#2300
Topdev97 added a commit to Topdev97/o-spreadsheet that referenced this pull request Nov 18, 2024
closes odoo/o-spreadsheet#2300

Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
Signed-off-by: Rémi Rahir (rar) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants