mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) hide long sequences of unchanged rows in diffs
Summary: It can be hard to find changes, even when highlighted, in a table with many rows. This diff replaces long sequences of unchanged rows with a row containing "..."s. With daff, I found that it is important to do this for sequences of unchanged columns also, but not tackling that yet. Test Plan: added test Reviewers: dsagal Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2666
This commit is contained in:
@@ -7,10 +7,12 @@ import { CellValue } from 'app/plugin/GristData';
|
||||
export { CellValue, RowRecord } from 'app/plugin/GristData';
|
||||
|
||||
// Part of a special CellValue used for comparisons, embedding several versions of a CellValue.
|
||||
export type CellVersions =
|
||||
{ parent: CellValue, remote: CellValue } |
|
||||
{ parent: CellValue, local: CellValue } |
|
||||
{ parent: CellValue, local: CellValue, remote: CellValue };
|
||||
export interface AllCellVersions {
|
||||
parent: CellValue;
|
||||
remote: CellValue;
|
||||
local: CellValue;
|
||||
}
|
||||
export type CellVersions = Partial<AllCellVersions>;
|
||||
|
||||
import map = require('lodash/map');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user