Skip to content

fix(platform): clear website search results on query edits - #4352

Merged
yannickmonney merged 1 commit into
mainfrom
fix/website-search-edited-query
Oct 5, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/website-search-edited-query

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Changes

  • Clear submitted website search results when the trimmed input changes, rather than displaying old excerpts under a new, unsubmitted query.
  • Invalidate pending responses using the existing request guard from fix(platform): guard website search responses #4303; retain results for whitespace-only edits.
  • Add regression coverage for direct non-empty edits, resubmission, clearing, and late success/error responses, plus a manual coverage-map entry. No new user-facing copy.

Verification

  • Regression probe: three new cases fail before the fix; pass after it.
  • One-worker focused Vitest: 57 tests pass across WebsiteViewDialog and its two consuming component suites, including the axe audit.
  • Scoped TypeScript check on changed files and their dependency closure passes; scoped oxlint, oxfmt and commitlint pass.
  • Real Chromium isolated component probe (synthetic mocked actions, no production access): edit/resubmit/clear controls pass.
  • Final visual-aspect-analyzer: 100/100, zero detected defects. Live backend behavior and screen-reader speech remain outside the isolated probe.

Closes #3871

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — independent exact-head review, TALE-815

PR: #4352
Reviewed head: 0804cb16af271df0dd3e8112273029b4bf276d07 (unchanged from dispatch; rechecked immediately before publication).
Reviewer: Codex #12, agent 31b27429-fe64-4694-86de-4169cb2067f3, run c87cb940-8f7d-44e0-b99a-e6d54a245f5b.
Implementer: Codex #9, agent b7c66e31-fc10-4e92-ae49-80c467ee7feb, run f2955471-5b78-47f1-91f4-73ce7eb4d919.

No blocking findings for #3871 / TALE-299. Editing to a different trimmed query synchronously invalidates the request ID, clears submitted results and exits search mode without submitting a new request. Enter submits the edited query; whitespace-only edits preserve the submitted query/results. The dependency on activeQuery keeps the comparison current. Clearing and late success/error suppression remain covered. The merged #4303 (2c2c7f3ade) guard is intact: both promise handlers still compare their captured request ID to the current ID, and website/open resets still invalidate it. No new user-facing copy, locale keys, markup, permissions, network surfaces or unsafe rendering are introduced; the labelled keyboard search control remains unchanged. The manual coverage note accurately separates automated behavior from browser/speech judgment.

Compared against current main ad3cc8304afaad2f3bb5a3a20254217789c29cd7: no changes since this PR's parent in any of its three files, so no duplicate fix or current-main overlap. Expected documentation insertion conflicts with #4339, #4342 and #4346: all prepend different paragraphs at the same ## Coverage map anchor in automation.md; preserve every paragraph when integrating. #4345 edits the distant metrics table, so no direct hunk conflict is expected. These are integration risks, not correctness findings in this exact head.

Observed local verification (existing dependencies only):

  • PATH=/opt/node/bin:$PATH bunx --no-install vitest run --config vitest.ui.config.ts --maxWorkers=1 app/features/websites/components/website-view-dialog.test.tsx app/features/websites/components/website-row-actions.test.tsx app/features/websites/components/websites-table.test.tsx from services/platform: 57/57 tests, 3/3 suites pass, including the existing axe audit and response-race cases.
  • Scoped oxlint --threads=1 and oxlint --threads=1 --type-aware --tsconfig=<delivery>/tsconfig.scoped.json on both changed TSX files: exit 0.
  • oxfmt --check on the changed paths: passes for both TSX files; Markdown is excluded by the repository formatter configuration and was reviewed manually.
  • Scoped tsc --noEmit --extendedDiagnostics with the repository compiler options, changed files, their imported closure and existing ambient declarations: exit 0, no diagnostics, approximately 964 MB compiler memory; no whole-workspace check.
  • Passive exact-head CI snapshot: 50 SUCCESS, 27 SKIPPED, 1 NEUTRAL, no failures/pending, merge state CLEAN. This is observed CI state, not a claim that every job executed uncached.

Environment notes: the initial Bun-runtime test attempt failed collection in the existing Zod import (13 importer tests passed); using the already-installed Node runtime resolved it. Initial scoped types omitted existing ambient declarations; adding those to the external review config resolved the harness-only diagnostics. A type-aware lint attempt without Node on PATH could not spawn tsgolint; the corrected invocation passed. No dependencies installed and no repository files changed.

Unrun by brief: browser/visual analyzer, E2E, live backend/database, screen-reader speech, full suite and full workspace checks. Acceptance is limited to this exact head and this bounded scope. No push, merge, CI rerun, task status change or native review decision; the captured human review is untouched. Integration conflict resolution and any merge remain with the authorized owner.

Evidence: tests.log (initial runtime failure), tests-node.log, lint.log, lint-type-aware.log, format.log, types.log, tsconfig.scoped.json, ci-snapshot.json, reviewed.patch, and this verdict in /agent/output/a80105e8-4071-4647-8eb0-3ae39b9e592f/.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

TALE-827 merge receipt (Codex #12, run cb4bdc7f-5fd3-4a6c-8eee-734081fc0908).

PR #4352 was normally squash-merged at accepted head 0804cb16af271df0dd3e8112273029b4bf276d07.
Merge SHA / eligible main source: 5d7d3b924a1fb99e65134617668c0b08093056d2.
Pre-merge readback: OPEN, not draft, CLEAN/MERGEABLE; 50 SUCCESS, 27 conditional SKIPPED, 1 advisory NEUTRAL; zero failures or pending checks. Independent ACCEPT: C12 run c87cb940; implementation C9, not this merger.
Squash commit read back from GitHub: mandated title and one commit-subject bullet only; no trailer or attribution. No admin bypass, push, update-branch, CI rerun, task status change or native-review decision.
TALE-299 remains subject to its existing human-captured native review. Release eligibility handoff is not release/candidate/deployment validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platform): Website search shows old results while the input contains a new query

1 participant