Version History (#768)
* Stash. Super rough progress * Stash * 'h' how toggles history panel Add documents.restore endpoint * Add tests for documents.restore endpoint * Document restore endpoint * Tiding, RevisionMenu, remove scroll dep * Add history menu item * Paginate loading * Fixed: Error boundary styling Select first revision faster * Diff summary, styling * Add history loading placeholder Fix move modal not opening * Fixes: Refreshing page on specific revision * documentation for document.revision * Better handle versions with no text changes (will no longer be created)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// @flow
|
||||
|
||||
export type User = {
|
||||
avatarUrl: string,
|
||||
id: string,
|
||||
@@ -10,6 +11,19 @@ export type User = {
|
||||
createdAt: string,
|
||||
};
|
||||
|
||||
export type Revision = {
|
||||
id: string,
|
||||
documentId: string,
|
||||
title: string,
|
||||
text: string,
|
||||
createdAt: string,
|
||||
createdBy: User,
|
||||
diff: {
|
||||
added: number,
|
||||
removed: number,
|
||||
},
|
||||
};
|
||||
|
||||
export type Toast = {
|
||||
message: string,
|
||||
type: 'warning' | 'error' | 'info' | 'success',
|
||||
|
||||
Reference in New Issue
Block a user