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

refactor: undo/redo #179

Merged
merged 6 commits into from
Jan 24, 2024
Merged

Conversation

ianshade
Copy link
Member

Addresses #174,
Makes undo/redo scoped to one of: current rundown, application (home), peripheral devices - depending on which section of the UI is active.
Disables nodeIntegration and enables contextIsolation for the main Electron app.

@ianshade ianshade requested a review from nytamin October 31, 2023 10:26
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 14 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nytamin nytamin linked an issue Nov 2, 2023 that may be closed by this pull request
Copy link
Member

@nytamin nytamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skimmed it, loved it

@@ -129,25 +107,32 @@ type ConvertToServerSide<T> = {
: T[K]
}

function Undoable(target: EverythingService, _key: string, descriptor: PropertyDescriptor) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a description here explaining that the intended usage is as a decorator?

const enableArray = Array.isArray(tObj.obj.enable) ? tObj.obj.enable : [tObj.obj.enable]
for (const enable of enableArray) {
if (enable.start && typeof enable.start === 'string') {
// TODO: immer js?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo?

@nytamin nytamin merged commit 502a14c into develop Jan 24, 2024
8 checks passed
@nytamin nytamin deleted the fix/order-after-timeline-obj-removal-and-undo branch January 24, 2024 09:07
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

Successfully merging this pull request may close these issues.

Disorder on timeline
2 participants