#1348 Preferences search: words in any order, lists and setting names, and it shows what it finds #1351
No reviewers
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
exploratory
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream!1351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "TheSlowly/Slipstream:prefs-search-1348"
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?
Fixes #1348.
RenderFarClip);LLTabContainer::setTabsVisibilitychooses the shown tab once. This also stops the region's terrain tabs jumping back to the first tab.Tested in-world before the last commit. The last commit (lists row by row, the short-word rule, whole setting names) isn't tested yet. Unit test
slprefsearch: 12/12.A review of the search found two real bugs and some smaller gaps: - After a search that matched nothing, clearing it (or backspacing to a term that matches) showed the last page instead of the one you were on. The pages are walked in reverse tab order and each setTabVisibility call chose a tab on its own, so the first page shown again won. LLTabContainer::setTabsVisibility now sets every page first and chooses the shown tab once. - The scroll went to the last match in the item list. That list is in reverse layout order, and a marked heading of a closed section could win over the real match. The target is now the topmost match on screen, chosen before the headings are marked. - The Notifications lists matched the raw text as one phrase. They now follow the same rule as the rest of the search (every word, any order), and are matched first, so a match there keeps you on Notifications. - Smaller fixes: - A closed section is only skipped by the visibility check when it belongs to an accordion (the only kind the search opens). - fit_parent accordions aren't scrolled, matching LLAccordionCtrlTab (EXT-8285). - Sections that can't be opened or closed stay as they are. - The headings a search marked are cleared by the next one. Sections a search opened stay open after it is cleared, on purpose: clearing leaves you looking at what you found. Test-Plan: Preferences, on Graphics: type "zzzz" (No settings match), then clear: back on Graphics. Type "z", "zzzz", then backspace to "z": still on Graphics. A word found twice on a page scrolls to the upper match. Notifications: "group notice" and "notice group" both light the same entries, and on that page a match only there keeps you on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Testing in-world showed three things: - Lists weren't searched. "sit" showed the Controls page because of the mode dropdown, but the key bindings table, where Sit/Stand is, lit nothing. - Short words matched inside other words, so "sit" also found every "position" and "visit". - Setting names made ordinary words light up far more. "chat" went from 75 to 118 controls across the pages, 40 of them only through names like EnableVoiceChat. Now: - **Lists:** every list on the pages (the key bindings, the notification lists, and so on) has its rows matched by their text, and the matching rows are lit. Each list scrolls to its first match. The special case for the notification lists goes, since they're ordinary lists now. LLScrollListCtrl::scrollToShowItem scrolls to a row. - **Short words:** a word of three characters or fewer must start a word of the text, after a space or punctuation. "sit" finds Sit/Stand and sitting, but not position. Longer words still match anywhere, so a part of a compound word ("größe" in "Schriftgröße") is still found. Scripts written without spaces (CJK, Thai) match anywhere. - **Setting names:** a setting name counts only when the search is that whole name (RenderFarClip), so ordinary words behave as they did. Measured over the controls on the Preferences pages: "sit" drops from 22 controls on 8 pages to 9 on 5, "max" from 11 to 6, "on" from 301 to 120. Longer words are unchanged. Test-Plan: Preferences: - "sit" lights the Sit/Stand row in Controls and scrolls the table to it, and no longer shows pages only for "position". - "chat" no longer lights the controls that match only through their setting name. - "RenderFarClip" still finds the draw distance slider. - Notifications: "group notice" lights the matching entries. Unit test slprefsearch: 12/12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>