Finish the wonderland: System told truthfully, in eight tabs instead of ten
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -53,10 +53,16 @@ while read -r page; do
|
||||
[[ -n "$page" ]] || continue
|
||||
[[ "$page" == "home" ]] && continue
|
||||
expected[settings-$page]="settings-page $page"
|
||||
#
|
||||
# Hidden leaves count too. The manual has no tab of its own -- it is reference
|
||||
# material rather than a control surface -- but "manual" is exactly the sort of
|
||||
# thing somebody types into a launcher, and a leaf with no tab is the one leaf
|
||||
# with nowhere else to be found by scanning.
|
||||
done < <( {
|
||||
grep -oE '\{ page: "[a-z-]+", label: "[^"]*", icon: "[^"]*", tabs: \[\] \}' "$routes"
|
||||
grep -oE '\{ page: "[a-z-]+", label: "[^"]*" \}' "$routes"
|
||||
} | sed -E 's/\{ page: "([a-z-]+)".*/\1/' | sort -u)
|
||||
sed -n '/property var hiddenLeaves:/,/\]/p' "$routes" | grep -oE 'page: "[a-z-]+"'
|
||||
} | sed -E 's/.*page: "([a-z-]+)".*/\1/' | sort -u)
|
||||
|
||||
(( ${#expected[@]} > 18 )) || fail 'no generated per-page commands were found; run scripts/panama-settings-commands'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user