Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Feat/int 951 diff view rendering is slow #377

Merged
merged 13 commits into from
May 5, 2023

Conversation

henoktse
Copy link
Contributor

@henoktse henoktse commented May 5, 2023

Optimize Diff view

@ghost
Copy link

ghost commented May 5, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@henoktse henoktse requested a review from grzpab May 5, 2023 08:34
intuita-webview/package.json Show resolved Hide resolved
@@ -0,0 +1,16 @@
import { FC } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the source of this code? is it from Stack Overflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From github issues

Copy link
Contributor

Choose a reason for hiding this comment

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

@henoktsegayetoptal can you reference the link where this is from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

intuita-webview/src/jobDiffView/index.css Outdated Show resolved Hide resolved
src/components/webview/DiffWebviewPanel.ts Outdated Show resolved Hide resolved
}: JobDiffViewContainerProps) => {
const reversedJob = useMemo(() => jobs.reverse(), [jobs]);
Copy link
Contributor

Choose a reason for hiding this comment

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

reversedJobs

const [viewType, setViewType] = useState<DiffViewType>('side-by-side');
const [diffData, setDiffData] = useState<DiffData>(() =>
Copy link
Contributor

Choose a reason for hiding this comment

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

does it change when reverse jobs change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we do that in useEffect

@henoktse henoktse merged commit f3ca7ec into main May 5, 2023
@henoktse henoktse deleted the feat/int-951-diff-view-rendering-is-slow branch May 5, 2023 12:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants