Skip to content

fix(db): reconcile live database drift and harden security without RAG regression - #281

Closed
BigSimmo wants to merge 0 commit into
mainfrom
cursor/fix-all-db-issues-5f13
Closed

fix(db): reconcile live database drift and harden security without RAG regression#281
BigSimmo wants to merge 0 commit into
mainfrom
cursor/fix-all-db-issues-5f13

Conversation

@BigSimmo

@BigSimmoBigSimmo commented Jul 5, 2026

Copy link
Copy Markdown
Owner

CI green on clean branch

Branch head: 09b3567c8

Issues debugged and fixed

IssueFix
Prettier blocking verify6f1d525e3 — formatted 4 files
TS2339 allowGlobalSearch on document lookup args09b3567c8 — added optional field to fetchBestDocumentLookupChunks args type
Unrelated UI commit repeatedly landing on branchRemoved Auto-hide answer support chips… (caused merge conflicts + desktopBackdropClassName type error)

CI run (manual dispatch)

https://github.com/BigSimmo/Database/actions/runs/28750309235

  • verify: PASS (format, lint, typecheck, unit tests, build, deployment boot smoke)
  • ui-smoke: PASS

Live database (already applied)

  • Migrations through 20260705220000 on sjrfecxgysukkwxsowpy
  • indexing-v3-agent edge function deployed

Merge note

Branch may still conflict with main where overlapping access-rollout work landed via other PRs (#291 etc.). Resolve at merge without re-importing unrelated UI commits onto this branch.

Open in WebOpen in Cursor

@BigSimmo
BigSimmo marked this pull request as ready for review July 5, 2026 17:14
@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
BigSimmoforce-pushed the cursor/fix-all-db-issues-5f13 branch from ef6f9ff to 6f1d525CompareJuly 5, 2026 17:41
@BigSimmo

Copy link
Copy Markdown
OwnerAuthor

Closing as largely superseded by #274, #277, and #287 on \main. This branch is also merge-conflicted.

If still needed, salvage only the unique pieces onto fresh branches from current \main:

  • \supabase/migrations/20260705220000_reconcile_live_database_drift.sql\ (live DB drift reconciliation)
  • docs updates in \docs/supabase-migration-reconciliation.md\

Child PRs #284 and #285 should be retargeted/reopened against \main, not this branch.

@supabase

supabaseBot commented Jul 5, 2026

Copy link
Copy Markdown

Updates to Preview Branch (cursor/fix-all-db-issues-5f13) ↗︎

DeploymentsStatusUpdated
Database⚠️Sun, 05 Jul 2026 18:43:52 UTC
Services⚠️Sun, 05 Jul 2026 18:43:52 UTC
APIs⚠️Sun, 05 Jul 2026 18:43:52 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

TasksStatusUpdated
ConfigurationsSun, 05 Jul 2026 18:44:24 UTC
Migrations⏸️Sun, 05 Jul 2026 18:41:51 UTC
Seeding⏸️Sun, 05 Jul 2026 18:41:51 UTC
Edge Functions⏸️Sun, 05 Jul 2026 18:41:51 UTC

❌ Branch Error • Sun, 05 Jul 2026 18:44:24 UTC

unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}
unexpected status 400: {"message":"Resource has been removed"}

⚠️ Warning — Service health check failed


View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@BigSimmoBigSimmo closed this Jul 5, 2026
@BigSimmo
BigSimmoforce-pushed the cursor/fix-all-db-issues-5f13 branch from 60613a3 to 6201117CompareJuly 5, 2026 18:41
@BigSimmo

Copy link
Copy Markdown
OwnerAuthor

Rebased onto current \main\ (includes #274, #287, #291, #283). Dropped superseded access-rollout commits; kept DB drift migration, edge JSONB typing, schema mirror, and test fixes.
pm run verify:cheap\ passes (1081 tests).

BigSimmo added a commit that referenced this pull request Aug 18, 2026
… favourites timestamps, and answer notice (#309, #281, #339, #165) (#2074)
* feat(ui): implement filter density tiers, mobile route deduplication, favourites timestamps, and answer notice (#309, #281, #339, #165)
* fix(ui): repair CI blockers on filter density tiers (PR #2074)
* fix(ui): keep document-viewer retry panel ids unique under density tiers (PR #2074)
* fix(favourites): fix O(N²) storage callbacks and hydration mismatch in useSyncExternalStore
Co-authored-by: BigSimmo <87357024+BigSimmo@users.noreply.github.com>
* style: fix prettier formatting in favourites command library page
CI's format:changed check was failing on this file's useSyncExternalStore
formatting.
* fix(ui): keep document rail high-yield summary visible when printing
`max-sm:hidden` (added to dedupe the summary panel on phone viewports)
also suppressed it during print emulation at narrow viewport widths,
since the print stylesheet only restores overflow/box-shadow and never
overrides display:none. Add `print:block`, the pattern already used
elsewhere in this codebase (verification-notice.tsx,
medication-considerations.tsx) to keep a responsively-hidden element
printable.
Fixes the "document viewer content disclosures are naturally closed
and mutually exclusive by default" Production UI failure, which set a
390px viewport and asserted the high-yield-summary content becomes
visible under print media.
* fix(test): update high-yield summary nav assertion for mobile dedup
The exclusive-accordion assertions after clicking the "High-yield
summary" section-nav row assumed the rail's <details id="source-summary">
still opens on a 390px viewport. Since the mobile route-dedup change
hides that rail copy (max-sm:hidden) in favour of the always-visible
in-flow DocumentClinicalSummary card, jumpToDocumentSection's existing
"displayed copy" resolution (use-section-spy.ts's source-summary ->
source-summary-card alias) now scrolls to the card instead of toggling
the hidden accordion — so `summary.open` never becomes true at this
viewport. Assert the visible copy scrolls into view instead, matching
the pattern already used for the "Indexed source text" row above it.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
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