refactor: format markdown files using prettier, fix spelling concerns, reduce Taskfile bloat
This commit is contained in:
608 files changed
+63317
-10219
No files matched your search
@@ -19,10 +19,12 @@ export interface SetupPanelState {
|
||||
// setupPanelState distinguishes the only two states worth rendering: there is
|
||||
// setup work left (the checklist), or there is not (nothing — a configured
|
||||
// daemon is the absence of a problem, not a card announcing it).
|
||||
export function setupPanelState(setup: Setup | null | undefined): SetupPanelState {
|
||||
export function setupPanelState(
|
||||
setup: Setup | null | undefined,
|
||||
): SetupPanelState {
|
||||
const remaining = (setup?.steps ?? []).filter((step) => !step.done);
|
||||
if (!setup?.steps?.length || !remaining.length) {
|
||||
return { kind: "omit", remaining: [] };
|
||||
}
|
||||
return { kind: "incomplete", remaining };
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user