Repository navigation
Inbox search: a one-time tip that words in quotes are an exact phrase - #4124
Merged
Merged
Conversation
… after a refused claim The card is decided as the palette opens (a layout effect) from what the page already knows, so it is drawn in the first paint and never pushes a row down after it was drawn. Under the box it sets its measured height on the dialog and the results list gives it up, so the palette ends inside the window at every size. A refused or lost claim leaves it up for that open (no jump back); only the Inbox's yes holds the other one-time things back. The server reads the recent searches only while the tip could still be due. searchTip is a required prop, and a window-level test covers App's wiring.
…m for three results - Drawn, the tip is kept in this browser's localStorage (plannotator-inbox-search-tip-seen) and never offered there again, so a refused or lost claim (a read-only data folder, a full disk) can no longer bring it back at every page load. The Inbox's stamp still keeps it to once across the computer's browsers. Storage that cannot be used throws nothing. - While it is offered, the window reads the settings again when the tab is shown or focused (at most every 10 s, no timer), so a tab left open while another device showed it learns that before the next open. - The card is placed from offsetLeft/offsetWidth/offsetTop, which the palette's 150 ms scale-in does not shrink: beside the palette it now sits 16 px from it (was 2.4 px), and 1290-1303 px windows no longer pick the side from the shrunken width. - Under the box it shows only when the results list keeps three measured rows of room; otherwise not at that open, nothing claimed or kept. - The server reads the recent searches again only when the file changed.
…ox-search-quotes-tip
backnotprop
marked this pull request as ready for review
November 27, 2026 16:14
yermakoffivan
pushed a commit
to yermakoffivan/plannotator
that referenced
this pull request
Nov 27, 2026
…d Pele 1.13 core 0.25.35 carries what merged after 0.25.34 went to npm: exact-phrase search in inbox-search (words in double quotes, backnotprop#4117, backnotprop#4124) and the agent-gone event in external-annotation's ExternalAnnotationEvent (backnotprop#3698). No exports subpath changes. ui handles that agent-gone event, so its pin follows and core goes first. ui 0.67.0 is a minor: DiagramSourceAcceptContext lets a host refuse a fence by its source before any engine runs (backnotprop#4146), DIAGRAM_REFUSED_RESULT is exported, Pele 1.13.0 with the inline fit changes (backnotprop#4113), the agent-gone send failures (backnotprop#3698) and the plan header seams (backnotprop#3905). README and HANDOFF name the new pair and the order (core first), and the hook and Pele notes now name ui 0.67.0 instead of "the first ui after 0.66.0". bun.lock is bun install's own output: the two package version lines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft: shows new words to people. Needs the owner's approval of the words and the pictures before it merges.
Exact search with quotes merged in #4117. People will not find quotes by themselves, so the next time someone opens the search palette, it shows a one-time tip about them.
The words (
SEARCH_TIP_WORDSinpackages/inbox/search/searchTip.ts; same layout as the Launch and Sidebar tips)NewSearch for an exact phrasePut words in "quotes" to find them side by side, in that order.Got itIt reuses the existing one-time tip system, with nothing new invented
.ib-tour-coach.ib-ctip, as incompose/LaunchTipCard.tsx). Like the Launch tip, it is drawn inside the modal dialog. Placement follows the Launch tip's rule: beside the palette at the same height as the search box, with its arrow pointing at the box, when the window has room. On a narrow window or a phone it sits under the box, inside the palette's own layout. It pushes the results down, so it covers neither the box nor any result.packages/shared/inbox/search-tip.ts):reveal.search_tipas due only a day or more after first use, only if it was never shown, never if a recent search already has a quote mark, and never inside the 40-minute gap after another one-time dialog.POST /api/inbox/revealid: "search_tip") stampsinboxReveals.search_tip. The stamp also starts the gap (tipShownAt), so no other dialog or tip can follow it right away.revealBlocked,lineBusy). It also stays hidden if another one-time dialog showed on this load (oneTimeDialogShownThisLoad). Once shown, it holds the others back withnoteOneTimeDialogShown.Behaviour
"Already used quotes" is read from the Inbox's own list of recent searches: the last six, kept when a result is opened. No new tracking was added for this.
Pictures (whole window, same made-up data, static built window with mocked routes, no server)
Tests
packages/inbox/searchTip.test.tsx(DOM, listed intests/dom-test-list.txt): shown once per page, also after a reopen or remount; Got it; the first Escape closes only the tip; a typed quote closes it; a quote typed early keeps it away; a refused claim; not shown while another one-time dialog showed on this load or while the window withholds it.packages/shared/inbox/search-tip.test.ts: who sees it and the claim.packages/server/inbox-reveal.test.ts: the gap in both directions, first-run day, a recent quoted search. That file starts an Inbox, so it runs in CI only.E2E_GROUP_TIP_SEEN,tests/helpers/inbox-dom-server.ts), so no spec's first search opens it.No agent-facing words changed. The Inbox is Bun-only, so the Pi server has nothing to change.
App.tsxstays at its size ceiling.