Plant: default the register's status filter to Active
The register is a working list of the machines currently in the fleet, so retired rows were noise until someone asked for them. Rows with an unsaved toggle staged stay visible, so an edit is never hidden mid-change. (Change made in the working tree alongside the invoice layout work; committed separately so it keeps its own message.)
This commit is contained in:
parent
8423878b4f
commit
39633838e0
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ export function PlantRegisterTable({
|
|||
const [query, setQuery] = useState("");
|
||||
const [typeFilter, setTypeFilter] = useState<string>("All");
|
||||
const [siteFilter, setSiteFilter] = useState<string>("All");
|
||||
const [statusFilter, setStatusFilter] = useState<StatusFilter>("all");
|
||||
// Defaults to Active: the register is a working list of machines currently in
|
||||
// the fleet, and retired rows are noise until someone asks for them. Rows with
|
||||
// an unsaved toggle staged stay visible so an edit is never hidden mid-change.
|
||||
const [statusFilter, setStatusFilter] = useState<StatusFilter>("active");
|
||||
const [sortKey, setSortKey] = useState<SortKey>("type");
|
||||
const [sortDir, setSortDir] = useState<"asc" | "desc">("asc");
|
||||
const [editing, setEditing] = useState(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue