-
Notifications
You must be signed in to change notification settings - Fork 67
[IMP] format: add custom format side panel #7241
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
base: master
Are you sure you want to change the base?
Conversation
0db08e7 to
14c457b
Compare
| this.model.selection.observe(this, { | ||
| handleEvent: this.handleSelectionEvent.bind(this), | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.onDispose(() => {
// release the selection, sinon, bim: memory leak
});There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch ! There is no method to unobserve in the selection processor tho 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added another commit to add an unobserve method :)
In the test `can set cell format`, after opening the `More Formats` tool, we do a snapshot of the whole fixture for testing purposes. Snapshotting the whole fixture, is useless and guarantees that any change will need to update this unrelated snapshot. Task: 3149088
This commits adds a check for the command `SET_FORMATTING` to avoid useless revisions when the command doesn't change the format/style of any cell. Task: 3149088
The selection stream processor was missing a method to stop observing events after starting to observe them, which could lead to memory leak. The `AggregateStatisticsStore` was never releasing its observation, which was not a problem in practice because the store is never disposed, but let's fix it anyway. Task: 3149088
This commit adds a side panel for all number formats. This merges the old date format/currency format panels into a single "More formats" panel, with tabs for each category of formats (number, date, currency). Task: 3149088
14c457b to
9c6f863
Compare

Description:
This commit adds a side panel for all number formats. This merges
the old date format/currency format panels into a single "More formats"
panel, with tabs for each category of formats (number, date, currency).
Task: 3149088
review checklist