Skip to content

Commit

Permalink
VUU-20: Update LayoutPersistenceManager documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pling-scottlogic committed Sep 22, 2023
1 parent 9e52a75 commit cae9181
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions vuu-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { LayoutMetadata } from "@finos/vuu-shell";

export interface LayoutPersistenceManager {
/**
* Saves a new layout
* Saves a new layout and its corresponding metadata
*
* @param metadata - Metadata about the layout to be saved
* @param layout - Full JSON representation of the layout to be saved
*
* @returns ID assigned to the saved layout
* @returns Unique identifier assigned to the saved layout
*/
createLayout: (metadata: Omit<LayoutMetadata, "id">, layout: LayoutJSON) => string;

/**
* Overwrites an existing layout with a new one
* Overwrites an existing layout and its corresponding metadata with the provided infromation
*
* @param id - Unique identifier of the existing layout to be updated
* @param metadata - Metadata describing the new layout to overwrite with
Expand All @@ -22,7 +22,7 @@ export interface LayoutPersistenceManager {
updateLayout: (id: string, metadata: Omit<LayoutMetadata, "id">, layout: LayoutJSON) => void;

/**
* Deletes an existing layout
* Deletes an existing layout and its corresponding metadata
*
* @param id - Unique identifier of the existing layout to be deleted
*/
Expand All @@ -33,7 +33,7 @@ export interface LayoutPersistenceManager {
*
* @param id - Unique identifier of the existing layout to be retrieved
*
* @returns the layout corresponding to provided metadata
* @returns Full JSON representation of the layout corresponding to the provided ID
*/
loadLayout: (id: string) => LayoutJSON;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { LayoutJSON } from "@finos/vuu-layout";

export type LayoutMetadata = {
id: string;
name: string;
group: string;
screenshot: string;
user: string;
date: string;
id: string;
};

export type Layout = {
Expand Down

0 comments on commit cae9181

Please sign in to comment.