Method and system for interaction state restoration
According to some embodiments, systems and methods are provided including a memory storing program code; and one or more processing units to execute the program code to cause the system to: receive a graphical user interface (GUI) element, the received GUI element having an initial state; receive at least one state change to the received GUI element, the state change resulting in the GUI element having a current state; generate a bookmark for the current state of the GUI element; append the generated bookmark to a presentation content file as a tag; and store the appended bookmark in the tag. Numerous other aspects are provided.
1 . A system comprising:
a memory storing program code; and
one or more processing units to execute the program code to cause the system to:
receive a graphical user interface (GUI) element, the received GUI element having an initial state;
receive at least one state change to the received GUI element, the at least one state change resulting in the GUI element having a current state;
generate a bookmark for the current state of the GUI element;
append the generated bookmark to a presentation content file as a tag; and
store the appended bookmark in the tag.
2 . The system of claim 1 , wherein the bookmark is generated in response to copying an image of the current state of the GUI element to a side of a presentation application.
3 . The system of claim 1 , wherein the current state is different from the initial state.
4 . The system of claim 1 , wherein the tag is mapped to a given image in the presentation content file.
5 . The system of claim 4 , wherein the presentation content file for the given image includes the tag and at least one of: a GUI element identifier tag, a GUI type tag, a GUI name tag, and a tenant tag.
6 . The system of claim 1 , further comprising program code to cause the system to:
receive a refresh request for the GUI element having the current state;
determine the GUI element having the current state has the stored appended bookmark;
render the initial state of the GUI element;
retrieve the stored appended bookmark;
apply the retrieved appended bookmark to the rendered initial state of the GUI element;
render the current state of the GUI element with updated data; and
display the rendered current state of the GUI element with the updated data on a user interface.
7 . The system of claim 6 , wherein the current state of the GUI element is rendered via a GUI element render Application Programming Interface (API).
8 . The system of claim 6 , wherein the stored appended bookmark is retrieved via a Get Bookmark Application Programming Interface (API).
9 . The system of claim 6 , further comprising program code to cause the system to:
determine the refresh request is received from an authorized source.
10 . The system of claim 6 , further comprising program code to cause the system to:
encrypt an image of the rendered current state of the GUI element including the appended bookmark.
11 . The system of claim 1 , wherein the at least one state change is one of a filter, a sort, a ranking, a combine and split, an add, and a remove.
12 . The system of claim 1 , wherein the generated bookmark is in a JavaScript Object Notation (JSON) format.
13 . A computer-implemented method comprising:
receiving a graphical user interface (GUI) element, the received GUI element having an initial state;
receiving at least one state change to the received GUI element, the at least one state change resulting in the GUI element having a current state;
generating a bookmark for the current state of the GUI element;
appending the generated bookmark to a presentation content file as a tag, wherein the tag is mapped to a given image in the presentation content file; and
storing the appended bookmark in the tag.
14 . The method of claim 13 , wherein the bookmark is generated in response to copying an image of the current state of the GUI element to a side of a presentation application.
15 . The method of claim 13 , further comprising:
receiving a refresh request for the GUI element having the current state;
determining the GUI element having the current state has the stored appended bookmark;
rendering the initial state of the GUI element;
retrieving the stored appended bookmark;
applying the retrieved appended bookmark to the rendered initial state of the GUI element;
rendering the current state of the GUI element with updated data; and
displaying the rendered current state of the GUI element with the updated data on a user interface.
16 . The method of claim 15 , wherein the current state of the GUI element is rendered via a GUI element render Application Programming Interface (API).
17 . The method of claim 13 , wherein the at least one state change is one of a filter, a sort, a ranking, a combine and split, an add, and a remove.
18 . One or more non-transitory, computer-readable medium storing instructions, that, when executed by a computing system, cause the computing system to perform operations comprising:
receiving a refresh request for a Graphic User Interface (GUI) element having a current state;
determining the GUI element having the current state has a stored appended bookmark;
rendering an initial state of the GUI element;
retrieving the stored appended bookmark;
applying the retrieved appended bookmark to the rendered initial state of the GUI element;
rendering the current state of the GUI element with updated data; and
displaying the rendered current state of the GUI element with the updated data on a user interface.
19 . The one or more non-transitory computer-readable medium of claim 18 , wherein the bookmark is generated in response to copying an image of the current state of the GUI element to a side of a presentation application.
20 . The one or more non-transitory computer-readable medium of claim 18 , further comprising, a refresh process comprising:
receiving a refresh request for the GUI element having the current state;
determining the GUI element having the current state has the stored appended bookmark;
rendering the initial state of the GUI element;
retrieving the stored appended bookmark;
applying the retrieved appended bookmark to the refresh process rendered initial state of the GUI element;
rendering the current state of the GUI element with updated data; and
displaying the rendered current state of the GUI element with the updated data on the user interface.