Skip to content

Auto-hide answer support chips when content sits below on mobile - #284

Closed
BigSimmo wants to merge 11 commits into
cursor/fix-all-db-issues-5f13from
cursor/auto-hide-support-chips-1eb5
Closed

Auto-hide answer support chips when content sits below on mobile#284
BigSimmo wants to merge 11 commits into
cursor/fix-all-db-issues-5f13from
cursor/auto-hide-support-chips-1eb5

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Summary

On mobile answer view, the Clinical notes and Evidence row in the answer support card now auto-collapses when it sits in the fixed composer dock band while unscrolled content (e.g. follow-up suggestions) still lives below it. The row expands again when the user reaches the true scroll bottom or scrolls back up so the row leaves the dock band.

Changes

  • Added useCollapseWhenContentBelow hook (phone-only, #main-content scroll aware, composer inset aware)
  • AnswerSupportSummaryCard accepts collapseActionRow + actionRowRef and animates the action row closed with the existing 1fr → 0fr grid pattern
  • StagedAnswerResultSurface wires refs, a below-content sentinel, and passes scrollContainerRef from ClinicalDashboard

Behavior

Scroll positionClinical notes / Evidence row
Mid-answer; row not near bottomVisible
Row above fixed composer; content still below foldHidden
True scroll bottomVisible
Scrolling back upVisible once row leaves dock band

Safety/priority row is unchanged. Triggers stay mounted for programmatic footer Evidence access.

Verification

  • ESLint on changed clinical dashboard files: pass
  • tests/answer-follow-up.test.ts: pass (12 tests)
  • Full npm run verify:cheap not run (branch has unrelated pre-existing typecheck debt for missing files)
Open in WebOpen in Cursor

BigSimmoand others added 11 commits July 3, 2026 21:00
The golden retrieval set was 100% lexical fast-path (embedding_skipped_rate=1.0), so
it could not measure whether a re-index changes vector/embedding retrieval quality.
- forceEmbedding option on searchChunksWithTelemetry (SearchChunksArgs): bypasses every
lexical text-fast-path so retrieval always exercises the embedding/vector stage.
Diagnostic/eval-only; folded into the search cache key; never set on production paths.
- eval-retrieval.ts: per-case `forceEmbedding` field + a global `--force-embedding` flag.
- 10 `vector-*` cases (psychiatric monographs: PTSD, OCD, panic, anorexia, GAD, Tourette,
postnatal, bipolar, ADHD, opioid) with forceEmbedding=true. Each is a clinical query that
must be answered by vector retrieval of the right monograph — verified live at
document_recall@5=1.0, content_recall@5=1.0, all via strategy=hybrid (embedding used).
Rationale: forcing embedding is the correct instrument for re-index measurement — you want
to measure the vector index directly, not have a lexical shortcut mask a regression. Wording
alone can't reliably force the vector path (the fast-path is driven by emergent lexical-match
strength), so the flag makes these probes deterministic.
Live golden eval: 34/34 pass (24 existing + 10 new), no regression. verify:cheap green (980).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Wire forceEmbedding through eval runners and retrieval cache keys, bypass coverage/lexical shortcuts when forced, and add golden-case failure metrics so vector regressions cannot hide behind text-fast-path or cache hits.
…board
Delete post-extraction dead code left in the monolith and trim unused imports. Also fix minor lint issues in favourites-hub, visual-evidence, and services-navigator.
…-5c94
fix: complete public production access hardening for mobile and anonymous users
@supabase

supabaseBot commented Jul 5, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy due to reaching the limit of concurrent preview branches.
Go to Project Integrations Settings ↗︎ if you wish to update this limit.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo marked this pull request as ready for review July 5, 2026 16:40
@cursor

cursorBot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@BigSimmo

Copy link
Copy Markdown
OwnerAuthor

Superseded: auto-hide was cherry-picked onto cursor/fix-all-db-issues-5f13 (190e3a5) without the unrelated access-hardening commits from this branch. document_read/document_upload rate limits will land in a separate access-hardening PR.

@BigSimmoBigSimmo closed this Jul 5, 2026
@BigSimmo
BigSimmo deleted the cursor/auto-hide-support-chips-1eb5 branch July 9, 2026 13:01
cursorBot pushed a commit that referenced this pull request Aug 8, 2026
Resolve docs/outstanding-issues.md by keeping main's #278 visual-baseline
row and renumbering this PR's follow-ups to #279#284 (next-id=285).
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
cursorBot pushed a commit that referenced this pull request Aug 9, 2026
Keep main's shared #290-#293 queue. Drop duplicate pr-handoff #291 (already #284).
Archive this PR's #279 canvas-gate resolution alongside main's #264/#277 closures.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
BigSimmo pushed a commit that referenced this pull request Aug 10, 2026
…a duplicate of #296
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019XDuNkNHU4zFn1cDquUXv5
cursorBot pushed a commit that referenced this pull request Aug 12, 2026
Resolve docs/outstanding-issues.md by keeping this PR's archive of
#207/#226/#230/#261/#284/#296 and updated open-row notes; main had no
unique open ids beyond those already archived here.
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
BigSimmo pushed a commit that referenced this pull request Aug 12, 2026
…system rows
Archived as verified-delivered or duplicate: #303, #284 (dup of #296), #149,
#159, #286, #287, #288, #256, #261, #291.
Re-scoped with re-measured evidence: #210 (gate was never missing; the defect
is the .next/dev types include), #262 (aliases 228 -> 193), #266 (counts moved,
23 unadopted holds), #275 (premise 'only one implementation' is false — the
values leaked to five files).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
BigSimmo pushed a commit that referenced this pull request Aug 12, 2026
docs/outstanding-issues.md has no merge driver by design, so this conflicted
in seven hunks. Resolved by taking main's file as the base — it carries main's
own archives (#207, #226, #230, #261, #284, #296) — then re-applying all 23 of
this branch's changes through scripts/outstanding-issues.mjs: 15 archives and
8 detail rewrites. Verified afterwards that every one landed and that the
guard reports no ids deleted from base.
Two rows are deliberately NOT resurrected. This branch's #302 (style-contract
line-break artifacts) and #303 (issues:next-id sync) no longer exist anywhere
on main under any id — main has since reused both numbers for entirely
different live rows. Both of this branch's rows were verified-delivered trivia,
so nothing actionable is lost, but the disappearance is itself evidence for
#156/#168: a main-side merge dropped rows, which is the hazard those rows
describe.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017paT42ZVMf8jaLtkjFxdy5
Sign up for freeto 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.

1 participant

@BigSimmo