diff --git a/frontend/src/pages/TreeLibraryPage.tsx b/frontend/src/pages/TreeLibraryPage.tsx index ff73f9d9..3a2c1610 100644 --- a/frontend/src/pages/TreeLibraryPage.tsx +++ b/frontend/src/pages/TreeLibraryPage.tsx @@ -326,35 +326,40 @@ export function TreeLibraryPage() { {/* View Controls */}
-
-
- {(['all', 'troubleshooting', 'procedural', 'maintenance'] as const).map((t) => ( + {/* Type filter tabs — includes Drafts as a first-class filter */} +
+ {(['all', 'troubleshooting', 'procedural', 'maintenance', 'drafts'] as const).map((t) => { + const isActive = t === 'drafts' ? showDrafts && typeFilter === 'all' : !showDrafts && typeFilter === t + return ( - ))} -
- - + ) + })} +
+ + {/* Right controls: sort + view toggle */} +
+ +
-