Warp Tree demo — trees of departments and categories for Filament: choose, filter, edit by dragging. Change or delete anything; the data is reset every hour. warpui.com About Warp Tree Docs Ask a question Support
Skip to content

Dashboard

Same field.Now with branches.

SelectTree replaces Select and saves to the same BelongsTo or BelongsToMany relationship.

Native Filament Select
Select::make('department_id')    ->relationship('department', 'name')
  • ✕Every department in one flat list
  • ✕Search shows the name, not where it is in the tree
With Warp Tree 2 lines changed
SelectTree::make('department_id')    ->relationship('department', 'name', parentAttribute: 'parent_id')
  • ✓Open the branches; only the branch you open is read, 100 items at a time
  • ✓Search shows each match inside its branches: Sales › East › Boston
  • ✓Saved to the same relationship as Select
A tree of 50,000 departments opens as fast as one of 20

A tree of 50,000+ items, with no waiting

Warp Tree never sends the whole tree to the browser. It reads the branch you open, 100 items at a time, and searches on the server. Each level has its own icon: region, district, store and shelf.

52,110items in this tree
100items at most in one request
1search request to find any shelf

Open Region 03, then District 03-04, then one of its stores. Or type “shelf 07-02-11-04”. The box below shows how long each request took and how much came back.

Requests to the server

Welcome to the Warp Tree demo

Harbor Supply Co. is a wholesaler in Boston with 193 departments and a catalog in categories. You are Morgan Lee, who runs the office. Try these in any order.

  1. 1
    Browse the products by category

    The tree of categories sits next to the table. Click Fasteners: its 18 products are listed. Then click Uncategorized and drag “Label printer, thermal” onto Labels to file it there.

    Open the products →
  2. 2
    Search a tree: “inside bos”

    The words may be spread over the path: Inside sales is found under Sales › East › Boston, shown with the departments it belongs to.

    Open the search example →
  3. 3
    Rearrange the departments

    Drag West above East, or drop Boston onto West to move it. Select a row and press Alt with the arrow keys to do the same with the keyboard.

    Open the departments →
  4. 4
    Merge two categories

    Merge Lag bolts into Hex bolts: its 2 products move along, and Hex bolts goes from 3 products to 5.

    Open the categories →
  5. 5
    Delete a team that has an order

    Delete Field sales under Sales › East › Boston: it has an order, so you choose which department takes it over. Deleting an office such as Philadelphia asks whether its teams move up or go too.

    Open the departments →
  6. 6
    Filter by a branch

    Filter the orders by East: the orders of every office and team under East are listed. Each order shows its department as a path.

    Open the orders →
  7. 7
    See only your branch

    Look at the demo as the head of East: orders, departments and fields show East and what is under it, nothing else.

    Choose who you are →
  8. 8
    Coming from Select Tree?

    Change one use line and keep your code: the same methods and defaults, with the tree read a branch at a time.

    See the same code →