Skip to content

Conversation

@LucasLefevre
Copy link
Collaborator

@LucasLefevre LucasLefevre commented Oct 6, 2025

Description:

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

Task: 4862354

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 Oct 6, 2025

Pull request status dashboard

@LucasLefevre LucasLefevre changed the title Master dv input focus lul [IMP] dv: autofocus input Oct 6, 2025
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.

👋

false
)}`;
const message = () => {
if (this.isNot && pass) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do something generic ? All of the other custom matchers are also wrong ...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do this in another task

() => {
if (this.props.focused) {
this.inputRef.el!.focus();
if (this.props.focused && this.inputRef.el) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... can the input ref really be undefiend at useEffect ? Or is it just to avoid ! ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if the input isn't displayed because it's a composer instead


onCriterionTypeChanged(type: DataValidationCriterionType) {
this.state.rule.criterion.type = type;
this.state.isTypeUpdated = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably have the same behaviour for CFs and in the data filter menu, no ? To confirm with frgi, but I don't see why implement it in DVs but not CFs

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's done 😉

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm blind

@LucasLefevre LucasLefevre force-pushed the master-dv-input-focus-lul branch from b2a14ee to 2fe397c Compare October 13, 2025 12:22
false
)}`;
const message = () => {
if (this.isNot && pass) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do this in another task


onCriterionTypeChanged(type: DataValidationCriterionType) {
this.state.rule.criterion.type = type;
this.state.isTypeUpdated = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

When switching a data validation to "Value In Range", automatically focus
the range input to allow selecting a range right away without an additional
click to focus the input.

We do the same for all validation types that have an associated input.

Task: 4862354
@LucasLefevre LucasLefevre force-pushed the master-dv-input-focus-lul branch from 2fe397c to e011499 Compare October 22, 2025 07:45
t-key="state.rules.cellIs.operator"
criterion="genericCriterion"
onCriterionChanged.bind="onRuleValuesChanged"
autofocus="this.state.hasEditedCf"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it makes sense to add it for other CF as well ?
For instance ColorScale has a set iof inputs -
image
and so does Icon set (but that one is a bit far fetched

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from a functional POV, probably yes it makes sense. From a technical POV, is it worth it ? I don't know...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep it as it is for now then

@rrahir
Copy link
Collaborator

rrahir commented Oct 24, 2025

robodoo r+ rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented Oct 24, 2025

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Oct 24, 2025
robodoo pushed a commit that referenced this pull request Oct 24, 2025
When switching a data validation to "Value In Range", automatically focus
the range input to allow selecting a range right away without an additional
click to focus the input.

We do the same for all validation types that have an associated input.

Task: 4862354
Part-of: #7252
Signed-off-by: Rémi Rahir (rar) <[email protected]>
robodoo pushed a commit that referenced this pull request Oct 24, 2025
Task: 4862354
Part-of: #7252
Signed-off-by: Rémi Rahir (rar) <[email protected]>
robodoo pushed a commit that referenced this pull request Oct 24, 2025
closes #7252

Task: 4862354
Signed-off-by: Rémi Rahir (rar) <[email protected]>
@robodoo robodoo closed this Oct 24, 2025
@robodoo robodoo added the 19.1 label Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants