feat(picker): one TreeList for both pickers, tree or list by module and param, the page field's value row #357
No reviewers
Labels
No labels
bug
enhancement
needs-triage
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle!357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/348"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #348
Stacked on #356 (issue #347), which is itself stacked on #355. This branch merges
origin/afk/347, because the picker readstree: hiddenfrom GET /api/modules. Merge #356 first. After that, this PR's own change isd249146.What changes
One tree component
TreeBrowser.tsxis deleted.findChain,matchesQuery(the filter rule) andnodeAddressnow live inTreeList.tsx.aria-disabled, the reason as a tooltip, and a caret that still opens the row. They use no opacity..item__label--untranslatedand.item__lang.pagemanage.disabledInLanguageis now the one owner of "is this node disabled here". TreePane, LinkPicker and PagePicker all call it.The page picker (
PagePicker.tsx)Dialoggains optionaldescriptionandcloseButtonprops..togglefor Tree / List;.choicecheckbox "Only pages", which folds the tree to eligible pages and their ancestors. It is saved per viewer inlocalStorage, with try/catch.web/src/pickerview.ts:pickersetting pins a view and hides the toggle;tree: hiddenmodule (read from GET /api/modules) opens the list with no Tree option;GitBadge).modulequeryfor eachmoduleContainerscontainer. Otherwise they are the tree, flattened.eligiblecheck overeffectiveNodeType, and the reason text comes from that result. Disabled pages cannot be selected.[autoland] verdict: pass