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 no shared borders rar #5452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rrahir
Copy link
Collaborator

@rrahir rrahir commented Jan 10, 2025

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 Jan 10, 2025

Pull request status dashboard

@rrahir rrahir force-pushed the master-no-shared-borders-rar branch 6 times, most recently from 201c3d3 to 80de593 Compare January 16, 2025 16:04
Currently, the borders are defined as a "vertical" and "horizontal"
property on each cell and are shared through adjacent cells.
E.g. The bottom border defined on `A1` is functionally also the top border
of `A2`
(see commit
9747294)
for more info)

This approach is not shared with other spreadsheet engines,be it Excel
or GSheet. In their case, each cell has their own independant border and
follows a simple rule:
- setting the border of a cell will erase the border of the adjacent
  cell IIF the borders differ, i.e. Have a different color and/or style.

E.g.
- On A2, add an "all" blue border
- on A1, add a bottom blue border
- on A3, add a top red border

By inserting rows between rows 1-2 and rows 2-3, you can see that A2
still has a top border but it no longer has a bottom border.

This revision changes the internal structure of the border plugin to
align our behaviour with the other spreadsheet engines.

Task: 4458245
@rrahir rrahir force-pushed the master-no-shared-borders-rar branch from 80de593 to 2e5bc12 Compare January 17, 2025 08:30
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.

2 participants