usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
11 stars 10 forks source link

Fix/odd1070 large number of files #281

Closed chuanlin2018 closed 1 year ago

chuanlin2018 commented 1 year ago

http://mml.nist.gov:8080/browse/ODD-1070

This check in made following changes:

  1. Added virtual scrolling mode in the tree table. If total file is greater than 20 (defined at the top of data-files.component.ts), the virtual scrolling mode will be enabled. Otherwise display the tree table as usual.
  2. Added a drag bar at the bottom of the tree table while in virtual scrolling mode and the tree is expanded. User can drag the bar to adjust the size of the tree table. The maximum height of the tree table is 200px.
  3. Added a search feature like forensics data page on the files list.

To test it locally, set useMetadataService: true, useCustomizationService: true in the environment.ts.