Use the Auto-Dig bridge dataset to scope the graph #40

Open
nsaspy wants to merge 3 commits from agent/use-bridge-dataset-scope into main
Owner

What changed

  • Synchronize the active dataset reported by the Auto-Dig bridge into Quasar's own dataset URL parameter.
  • Emit popstate after the history replacement so React Router immediately re-renders the graph projection.
  • Preserve existing query parameters, routes, and hashes.
  • Add regression coverage for URL construction and browser history/event synchronization.

Root cause

The existing graph filter only had a reliable dataset when Quasar's own URL contained ?dataset=... or when a same-origin parent referrer supplied it. In the actual embedded deployment, the parent can be cross-origin, so the referrer is intentionally rejected. Although the Auto-Dig bridge already reported the active dataset, GraphPage never received that scope and continued rendering every dataset in the shared local corpus.

Impact

Selecting an Auto-Dig dataset now immediately constrains the embedded graph to that dataset instead of exposing documents from previously loaded datasets.

Validation

  • Added Vitest coverage for bridge-driven URL scoping.
  • Branch is based directly on current main with only the runtime and dataset-scope files changed.
## What changed - Synchronize the active dataset reported by the Auto-Dig bridge into Quasar's own `dataset` URL parameter. - Emit `popstate` after the history replacement so React Router immediately re-renders the graph projection. - Preserve existing query parameters, routes, and hashes. - Add regression coverage for URL construction and browser history/event synchronization. ## Root cause The existing graph filter only had a reliable dataset when Quasar's own URL contained `?dataset=...` or when a same-origin parent referrer supplied it. In the actual embedded deployment, the parent can be cross-origin, so the referrer is intentionally rejected. Although the Auto-Dig bridge already reported the active dataset, `GraphPage` never received that scope and continued rendering every dataset in the shared local corpus. ## Impact Selecting an Auto-Dig dataset now immediately constrains the embedded graph to that dataset instead of exposing documents from previously loaded datasets. ## Validation - Added Vitest coverage for bridge-driven URL scoping. - Branch is based directly on current `main` with only the runtime and dataset-scope files changed.
Author
Owner

Closing this as wrong-repository work. Auto-Dig Pages deploys the pinned lost-rob0t/quasar runtime with the lost-rob0t/quasar-ui submodule; it does not build from this repository. The deployed fix is being applied in lost-rob0t/starintel-gpt-auto-dig by propagating the parent dataset into the iframe URL before Quasar boots.

Closing this as wrong-repository work. Auto-Dig Pages deploys the pinned `lost-rob0t/quasar` runtime with the `lost-rob0t/quasar-ui` submodule; it does not build from this repository. The deployed fix is being applied in `lost-rob0t/starintel-gpt-auto-dig` by propagating the parent dataset into the iframe URL before Quasar boots.
Some checks failed
CI / baseline (pull_request) Has been cancelled
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/use-bridge-dataset-scope:agent/use-bridge-dataset-scope
git switch agent/use-bridge-dataset-scope

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff agent/use-bridge-dataset-scope
git switch agent/use-bridge-dataset-scope
git rebase main
git switch main
git merge --ff-only agent/use-bridge-dataset-scope
git switch agent/use-bridge-dataset-scope
git rebase main
git switch main
git merge --no-ff agent/use-bridge-dataset-scope
git switch main
git merge --squash agent/use-bridge-dataset-scope
git switch main
git merge --ff-only agent/use-bridge-dataset-scope
git switch main
git merge agent/use-bridge-dataset-scope
git push origin main
Sign in to join this conversation.
No description provided.