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

Form Builder: Improve DnD performance #923

Merged
merged 1 commit into from Jun 11, 2021
Merged

Conversation

manzoorwanijk
Copy link
Contributor

In continuation of #897 , this PR improves DnD performance for Form Builder sections and elements.

Here is how smooth the DnD is now...
demo

@manzoorwanijk manzoorwanijk added C: UI/UX 🚽 category D: Packages 📦 domain: Barista Packages T: deprecated ⚠️ type: DEP - soon-to-be removed features labels Jun 11, 2021
@manzoorwanijk manzoorwanijk requested a review from tn3rb June 11, 2021 14:41
@manzoorwanijk manzoorwanijk added this to In progress in Barista EDTR via automation Jun 11, 2021
Comment on lines +13 to +21
export const FormSections: React.FC<FormSectionsProps> = memo(({ formSections }) => {
return (
<>
{formSections.map((formSection, index) => (
<FormSection key={formSection.UUID} formSection={formSection} index={index} />
))}
</>
);
}, getPropsAreEqual([['formSections']]));
Copy link
Member

Choose a reason for hiding this comment

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

cool cool

Barista EDTR automation moved this from In progress to Approved Jun 11, 2021
Copy link
Member

@tn3rb tn3rb left a comment

Choose a reason for hiding this comment

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

AWESOME!

code changes look great, UI performance changes look even better 💯

@tn3rb
Copy link
Member

tn3rb commented Jun 11, 2021

let's assume that that one test passed as it only failed due to some asset upload failing, and these changes don't affect TAM at all

@tn3rb tn3rb merged commit 92d4a1b into master Jun 11, 2021
Barista EDTR automation moved this from Approved to Completed Jun 11, 2021
@tn3rb tn3rb deleted the form-builder-perf-fixes branch June 11, 2021 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: UI/UX 🚽 category D: Packages 📦 domain: Barista Packages T: deprecated ⚠️ type: DEP - soon-to-be removed features
Projects
Barista EDTR
  
Completed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants