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

Table of icons in create/update object form is not scrollable #6864

Open
BOHEUS opened this issue Sep 2, 2024 · 9 comments
Open

Table of icons in create/update object form is not scrollable #6864

BOHEUS opened this issue Sep 2, 2024 · 9 comments
Labels
prio: low scope: front Issues that are affecting the frontend side only size: short

Comments

@BOHEUS
Copy link
Contributor

BOHEUS commented Sep 2, 2024

Scenario:

  1. Log in
  2. Go to e.g. Companies
  3. Click on number of rows, then "Add view" button"
  4. Try to scroll table of available icons
    image

Actual: Table of icons in create new view is not scrollable

Expected: Table of icons in create new view should be scrollable, icons must be lazy loaded to have the same user experience, despite over available 4000+ icons, only 25 must be visible at the time, search placeholder must reflect amount of icons (change to "Search 4000+ icons")

@Faisal-imtiyaz123
Copy link
Contributor

@BOHEUS It's because there is max-height set . This is related to #6105 . That PR will also solve it.

@FelixMalfait FelixMalfait added scope: front Issues that are affecting the frontend side only prio: med size: short labels Sep 12, 2024
@FelixMalfait
Copy link
Member

Closing in favor of #6105

@harshrajeevsingh
Copy link
Contributor

harshrajeevsingh commented Oct 17, 2024

Hey @BOHEUS @FelixMalfait, this issue should be reconsidered again. It's happening not because of max-height, as mentioned by Faizal. The max-height property is already set as none.
It's happening because we are rendering a fixed number of icons, i.e., 25.

If you want more clarification, please look at the screenshot. I increased the number of icons to 42.
Screenshot from 2024-10-17 20-26-45

@FelixMalfait
Copy link
Member

@harshrajeevsingh good point! But there are so many icons / I'm afraid it might be complex to build something nice here. They'd need to be lazy loaded to avoid perf issues. Unless they are already loaded.. @lucasbordeau what do you think, would that be complex?

@FelixMalfait FelixMalfait reopened this Oct 17, 2024
@harshrajeevsingh
Copy link
Contributor

@FelixMalfait Yes, there are more than 4k icons. The performance issue can be fixed using a virtualization library like react-window, but the User Experience would be awful. We should take a different approach.

@FelixMalfait FelixMalfait moved this from ✅ Done to 📋 Backlog in Product development ✅ Oct 18, 2024
@lucasbordeau
Copy link
Contributor

lucasbordeau commented Oct 18, 2024

1- We should look into what's distributed by Vite in real time by comparing what you did with the base 25-icon version.
2- We should test that in production build also
3- We already implement windowing in other parts of the app, I don't see a big problem doing it on this component

From a technical perspective I don't see anything preventing us from doing it.

@Bonapara could you give us a product insight about this ? Infinite scroll + search vs fixed number of icons + search ? Or something else ?

@Bonapara
Copy link
Member

We can do infinite scroll with lazy loading + change the search to Search 4000+ icons and still limit the height to 25 icons max.

@lucasbordeau
Copy link
Contributor

Ok let's implement windowing + lazy loading then + the UX changes that you gave.

@BOHEUS Could you update your issue to reflect that ?

@BOHEUS
Copy link
Contributor Author

BOHEUS commented Oct 18, 2024

@lucasbordeau done

@ijreilly ijreilly changed the title Table of icons in create new view is not scrollable Table of icons in create/update object form is not scrollable Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: low scope: front Issues that are affecting the frontend side only size: short
Projects
Status: 📋 Backlog
Development

No branches or pull requests

6 participants