Note: This repository is infrequently maintained.
A collapsible and searchable tree. NOT REALTIME--refresh the page for current status. Useful for browsing the hierarchy.
-
Git clone this repo.
git clone https://github.com/salesforce/refocus-lens-tree
-
Install the Refocus Lens Developer Kit.
git clone https://github.com/salesforce/refocus-ldk cd refocus-ldk npm install
-
Copy this lens into your
refocus-ldk/Lenses
directory.cp -r ../refocus-lens-tree/CollapsibleTree Lenses
-
Configure the Refocus LDK.
npm config set refocus-ldk:lens CollapsibleTree
Run the Refocus LDK's test
script to run all the tests under refocus-ldk/Lenses/CollapsibleTree/test
.
npm run test
Run the Refocus LDK's build
script to generate the lens library (refocus-ldk/dist/CollapsibleTree.zip
).
npm run build
Use the Refocus UI or API (/v1/lenses
) to deploy the lens.
- handle refocus.lens.realtime.* events
- search enhancement to boost exact name match
- misc
- add legend
- swap in a stronger "OK" color
- flesh out the content in the "details" panel
- add "loaded on ..." message
- if a node has only one child, auto-expand the child when you expand the node
- if a node has only one descendent in a non-good state, auto-expand to that descendent when you expand the node