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

Master f2 composer rar #5012

Closed
wants to merge 1 commit into from
Closed

Master f2 composer rar #5012

wants to merge 1 commit into from

Conversation

rrahir
Copy link
Collaborator

@rrahir rrahir commented Sep 20, 2024

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 Sep 20, 2024

Pull request status dashboard

@rrahir rrahir force-pushed the master-f2-composer-rar branch 3 times, most recently from 35c3cb4 to 7155c67 Compare September 22, 2024 10:08
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.

pouet pouet

}
}

private captureSelection(zone: Zone) {
Copy link
Contributor

@hokolomopo hokolomopo Sep 23, 2024

Choose a reason for hiding this comment

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

the helper could also be used in the constructor

@rrahir rrahir force-pushed the master-f2-composer-rar branch from 7155c67 to 01747c5 Compare September 24, 2024 08:19
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

The first and third comments from Adrien are resolved but nothing changed. Is it expected ? or is it a missing push ?

color: this.rangeColor(xc, sheetName) || "#000",
class:
tokenAtCursor === token && this.props.composerStore.editionMode === "selecting"
? referenceSelectedClass
Copy link
Collaborator

Choose a reason for hiding this comment

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

we could use the bootstap class text-decoration-underline directly here and remove the constant and the additional css

Copy link
Collaborator Author

@rrahir rrahir Sep 30, 2024

Choose a reason for hiding this comment

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

The first and third comments from Adrien are resolved but nothing changed.

Definitely a miss on my hand, I'm positive I removed them ><

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@LucasLefevre Fixed the comments (they were outdated) and added the BS class

Currently, the only way to select a range in a formula is to write some
text such that the next argument could be a range (e.g. write '=sum(').
If you edit an existing formula, you need to delete a range argument in
order to 'activate' the range selection mode. While you can use the
graphical tool to move the range around, it can be bothersome to find
which range is where and then having to move it around.

This revision adds the possibility to switch to a range selection mode
when the cursor is on a reference by pressing F2. This allows the user
to click on a range in the composer, switch to 'selecting' mode and then
cllick on another range to replace the current one.
Pressing the shortcut again will switch back to 'editing' mode which can
be helpful to quickly edit formulas.

Task: 4105364
@rrahir rrahir force-pushed the master-f2-composer-rar branch from 01747c5 to c62882c Compare September 30, 2024 10:45
Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo r+

robodoo pushed a commit that referenced this pull request Oct 8, 2024
Currently, the only way to select a range in a formula is to write some
text such that the next argument could be a range (e.g. write '=sum(').
If you edit an existing formula, you need to delete a range argument in
order to 'activate' the range selection mode. While you can use the
graphical tool to move the range around, it can be bothersome to find
which range is where and then having to move it around.

This revision adds the possibility to switch to a range selection mode
when the cursor is on a reference by pressing F2. This allows the user
to click on a range in the composer, switch to 'selecting' mode and then
cllick on another range to replace the current one.
Pressing the shortcut again will switch back to 'editing' mode which can
be helpful to quickly edit formulas.

closes #5012

Task: 4105364
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this Oct 8, 2024
@robodoo robodoo added the 18.1 label Oct 8, 2024
@fw-bot fw-bot deleted the master-f2-composer-rar branch October 22, 2024 09:42
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