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

fix(core): fixed card layout performance #7701

Merged
merged 13 commits into from
Mar 25, 2022

Conversation

platon-rov
Copy link
Contributor

@platon-rov platon-rov commented Feb 8, 2022

Related Issue(s)

Closes #5511

Description

Fixed card layout rework due to the performance issues. Previously there were nested *ngFor that were updated on the window's resize doing recalculation/reinitialization of the columns.

New approach based on the angular/components#13372 (comment), with the layout approach from https://tobiasahlin.com/blog/masonry-with-css. That makes possible to have only one array with all the cards, that positioned using flex-direction: column while keeping Z flow of the cards.

Also, due to the new approach fdDndKeyboardGroup & fdDndKeyboardItem directives that provide dnd with keyboard were extended and rtl support added.

Screenshots

No visual changes.

Breaking changes

  • Interface CardDropped of the event emitted after the cards reorganised using drag & drop feature changed, container & prevContainer fields removed.
  • Input property dndKeyboardDisabled removed from the DndKeyboardItemDirective, please use input property disableKeyboardDragDrop of the DndKeyboardGroupDirective instead.

Wiki https://github.com/SAP/fundamental-ngx/wiki/0.34.0-Breaking-Changes

@platon-rov platon-rov added bug Something isn't working enhancement New feature or request core Core library specific issues labels Feb 8, 2022
@platon-rov platon-rov self-assigned this Feb 8, 2022
@netlify
Copy link

netlify bot commented Feb 8, 2022

Deploy Preview for fundamental-ngx ready!

Name Link
🔨 Latest commit 0aa4b22
🔍 Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/623d82923600930008d6b21c
😎 Deploy Preview https://deploy-preview-7701--fundamental-ngx.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@platon-rov platon-rov force-pushed the fix/core/fixed-card-layout-perf branch from 4faebe6 to c655992 Compare February 8, 2022 13:30
@platon-rov platon-rov requested review from a team February 8, 2022 13:48
@platon-rov platon-rov changed the title fix(core): fixed card layout performance [WIP] fix(core): fixed card layout performance Feb 8, 2022
@platon-rov platon-rov force-pushed the fix/core/fixed-card-layout-perf branch from c655992 to 4b4ed90 Compare February 8, 2022 18:59
@platon-rov platon-rov changed the title [WIP] fix(core): fixed card layout performance fix(core): fixed card layout performance Feb 8, 2022
@droshev droshev added this to the Sprint 81 - Santiago milestone Feb 9, 2022
@github-actions
Copy link

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

@github-actions github-actions bot added the stale label Feb 12, 2022
@droshev droshev removed the stale label Feb 14, 2022
@github-actions
Copy link

github-actions bot commented Feb 15, 2022

Visit the preview URL for this PR (updated for commit 0aa4b22):

https://fundamental-ngx-gh--pr7701-fix-core-fixed-card-csbunxei.web.app

(expires Mon, 28 Mar 2022 09:01:17 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Copy link
Contributor

@dmitry-stepanenko dmitry-stepanenko left a comment

Choose a reason for hiding this comment

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

nice one!

noticed a few minor things

@github-actions
Copy link

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

@github-actions
Copy link

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

@github-actions github-actions bot added the stale label Feb 28, 2022
@platon-rov platon-rov force-pushed the fix/core/fixed-card-layout-perf branch from 8e4e539 to 5f08b54 Compare March 12, 2022 13:41
@g-cheishvili
Copy link
Contributor

I do not know what, but something is wrong. When I launch locally I get this:
image
Plus I could not make any of the examples, both on hosted and local versions drag at all. Am I doing something wrong? @platon-rov connect with me

@github-actions
Copy link

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

@github-actions github-actions bot added the stale label Mar 17, 2022
@N1XUS N1XUS force-pushed the fix/core/fixed-card-layout-perf branch from 5f08b54 to ec39e6f Compare March 17, 2022 07:28
@platon-rov
Copy link
Contributor Author

I do not know what, but something is wrong. When I launch locally I get this. Plus I could not make any of the examples, both on hosted and local versions drag at all. Am I doing something wrong? @platon-rov connect with me

Try now, but do npm i before.

@github-actions github-actions bot removed the stale label Mar 18, 2022
@github-actions
Copy link

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

@platon-rov platon-rov force-pushed the fix/core/fixed-card-layout-perf branch from 3b95b8d to 18f263b Compare March 23, 2022 16:43
@platon-rov platon-rov merged commit 54199c1 into main Mar 25, 2022
@platon-rov platon-rov deleted the fix/core/fixed-card-layout-perf branch March 25, 2022 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Core library specific issues enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fixed Card Layout performance/behaviour issue
6 participants