Skip to content

chore: organize dirty work from codex/chat-mode-page-navigation-2328 - #1319

Closed
BigSimmo wants to merge 1 commit into
mainfrom
codex/chat-mode-page-navigation-2328
Closed

chore: organize dirty work from codex/chat-mode-page-navigation-2328#1319
BigSimmo wants to merge 1 commit into
mainfrom
codex/chat-mode-page-navigation-2328

Conversation

@BigSimmo

Copy link
Copy Markdown
Owner

Organized dirty work from codex/chat-mode-page-navigation-2328

RAG impact: no retrieval behaviour change — branch cleanup and organisation only.

@supabase

supabase Bot commented Jul 28, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


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

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 18 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 214b41f6-e78b-42eb-9647-5d6d46f59edb

📥 Commits

Reviewing files that changed from the base of the PR and between 422e43d and db7fee6.

📒 Files selected for processing (43)
  • src/components/ClinicalDashboard.tsx
  • src/components/DocumentViewer.tsx
  • src/components/clinical-dashboard/global-search-shell.tsx
  • src/components/clinical-dashboard/master-search-header.tsx
  • src/components/clinical-dashboard/medication-record-page.tsx
  • src/components/clinical-dashboard/use-hide-on-scroll.ts
  • src/components/differentials/differential-detail-page.tsx
  • src/components/differentials/differential-presentation-workflow-page.tsx
  • src/components/document-viewer/source-panels.tsx
  • src/components/dsm/dsm-diagnosis-page.tsx
  • src/components/dsm/dsm-differential-considerations-page.tsx
  • src/components/factsheets/factsheet-detail-page.tsx
  • src/components/forms/form-detail-page.tsx
  • src/components/formulation/formulation-builder-page.tsx
  • src/components/formulation/formulation-compare-page.tsx
  • src/components/formulation/formulation-home-page.tsx
  • src/components/formulation/formulation-map-page.tsx
  • src/components/formulation/formulation-mechanism-page.tsx
  • src/components/formulation/formulation-ui.tsx
  • src/components/page-secondary-navigation.tsx
  • src/components/secondary-navigation.tsx
  • src/components/services/service-detail-page.tsx
  • src/components/specifiers/specifier-builder-page.tsx
  • src/components/specifiers/specifier-compare-page.tsx
  • src/components/specifiers/specifier-map-page.tsx
  • src/components/specifiers/specifier-record-page.tsx
  • src/components/specifiers/specifier-reference-page.tsx
  • src/components/specifiers/specifier-ui.tsx
  • src/components/specifiers/specifiers-home-page.tsx
  • src/components/therapy-compass/nav.tsx
  • src/components/therapy-compass/screens/brief-screen.tsx
  • src/components/therapy-compass/screens/detail-screen.tsx
  • src/components/therapy-compass/screens/sheets-screen.tsx
  • src/components/therapy-compass/workspace.tsx
  • src/lib/information-pages.ts
  • src/lib/mode-secondary-navigation.ts
  • tests/factsheet-save.dom.test.tsx
  • tests/master-search-header-scroll.dom.test.tsx
  • tests/mode-secondary-navigation.test.ts
  • tests/page-secondary-navigation.dom.test.tsx
  • tests/secondary-navigation.dom.test.tsx
  • tests/therapy-compass-artifact-navigation.dom.test.tsx
  • tests/ui-smoke.spec.ts

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db7fee69d1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<PageSecondaryNavigation
modeId={searchMode}
pathname="/"
hasSubmittedSearch={Boolean(modeSearchSubmitted || answer || latestAnswerQuery)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate the submitted flag by the active mode

After an answer has been generated or restored, switching through the mode menu to a clean non-answer landing page leaves answer and latestAnswerQuery populated, so this expression passes true despite selectSearchMode resetting modeSearchSubmitted. As a result, clean Documents, Services, Forms, and other mode homes incorrectly gain the pinned secondary Search row, contrary to isModeSecondaryNavigationRoute's clean-landing behavior. Limit the answer state terms to answer mode; a regression test should generate an answer, switch to another mode, and assert that the secondary navigation is absent.

Useful? React with 👍 / 👎.

Comment on lines +98 to +99
const sections = items
.map((item) => ({ item, element: document.getElementById(item.targetId) }))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Re-resolve section elements after client navigation

When client-side navigation replaces one detail record with another in the same route family, the item IDs usually remain unchanged, so this effect does not rerun and sections continues referencing detached elements from the previous page. Subsequent scrolling evaluates those detached nodes (typically all at top 0) and can mark the final section current regardless of the visible content; the listeners may also remain attached to the old scroll owner. Re-resolve targets when the pathname/content changes or observe replacement mutations; a focused test should navigate between two service or therapy records and verify the active section while scrolling the second record.

Useful? React with 👍 / 👎.

@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by a surgical port onto current main: #1336

Kept: shared mode secondary navigation registry + components + unit/DOM tests, wired into GlobalSearchShell without replaying this tip’s 579-commit-behind search-chrome rewrite.

Deliberately not taken from this tip: DocumentViewer anchor deletion, tip information-pages.ts (main’s richer version wins), pin-while-header-collapses sticky model, per-page Subnav rewrites that would double-render with current local Subnav, and obsolete ui-smoke assertions.

@BigSimmo BigSimmo closed this Jul 28, 2026
@BigSimmo
BigSimmo deleted the codex/chat-mode-page-navigation-2328 branch July 30, 2026 09:10
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.

1 participant