adopted-ember-addons / adopted-ember-addons/validated-changeset

Store "transactions" to enable undo/redo history

Đang mở
#145 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
38
Fork
27
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Kind of based off of the data structure in https://github.com/validated-changeset/validated-changeset/issues/144

It could be good to record "transactions" every time execute is called, effectively storing that current/original object from #144 as a type-of-snapshot each time execute is called. Or maybe it'd look like:

```js
changeset.transactions
// returns =>
[
{
executedAt: timestamp,
snapshot: (existing snapshot)
changes: {
key: { original, current }
}
},
{
executedAt: timestamp,
snapshot: (existing snapshot)
changes: {
key: { original, current }
}
}
// ....
]

```

This would enable undo/redo history

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.