Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create demo for an undo/redo stack #12

Closed
daemontus opened this issue Sep 11, 2023 · 1 comment
Closed

Create demo for an undo/redo stack #12

daemontus opened this issue Sep 11, 2023 · 1 comment
Assignees

Comments

@daemontus
Copy link
Member

We are planning an event-driven GUI where the frontend sends events to the backend where all state is maintained. These events pass through an undo/redo stack where they are stored. Ideally, the payload of these events is typed such that we can verify the integrity of the payloads from TypeScript as well (using serde-generate or something similar)

Here, we need to:

  • Define some kind of global "app state" object. This object should be "addressable" using labels/paths to ensure the events can reference the objects which they modify.
  • Define an "event payload" type, and an event struct that can be used to apply this payload to the app state.
  • Define the undo/redo stack.
@daemontus daemontus self-assigned this Sep 11, 2023
@ondrej33
Copy link
Member

This is implemented thanks to #23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants