STIT-478 simplify source data display#102
Open
jasonbrownrmi wants to merge 4 commits into
Open
Conversation
- Replace the separate "Source Details" and "Source data" sections on the resource detail page with a single "Sources" section.
- Each source is a compact row showing source label, "Imported by {producer} · {observed_date}", and a View action.
- Clicking View reveals basic source fields, with record_id, run_id, and raw payload JSON tucked behind a nested "Technical import record" disclosure so raw JSON is never visible by default.
- Eager-fetches per-source detail on mount (deduped by TanStack Query cache key) so producer and observed_at populate the row before any interaction.
CD summary
|
| service | url | fqdn |
|---|---|---|
| api | open | pr102-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io |
| entity-linkage | open | pr102-entity-linkage.purplegrass-c07d0a94.westus2.azurecontainerapps.io |
| frontend | https://witty-mushroom-017a3dc1e-102.westus2.1.azurestaticapps.net | |
| stitch-llm | open | pr102-stitch-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io |
Database (1)
| db_name | postgres_host | postgres_port | postgres_db |
|---|---|---|---|
| pr_102 | stitch-dev.postgres.database.azure.com |
5432 |
pr_102 |
Jobs (2)
| job | image | postgres_db | api_url | auth_mode |
|---|---|---|---|---|
| db-init | ghcr.io/rmi/stitch-api:pr102@sha256:8b8ff5860b7ccf9729967a90b46a7694185470cfa1b986821ccc7dd68748fb56 |
pr_102 |
||
| seed | ghcr.io/rmi/stitch-seed:pr102@sha256:fa5446602e4711e1fbde87e6fb168ae152f6ab091dd5d83b8bb9f94251f5e110 |
https://pr102-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io/api/v1 |
dev placeholder bearer token |
Images (4)
| build_time | commit_time | git_sha | image | image_digest |
|---|---|---|---|---|
| 2026-05-22T17:59:35Z | 2026-05-22T17:59:19Z | 9caed3b | ghcr.io/rmi/stitch-api:pr102 |
ghcr.io/rmi/stitch-api:pr102@sha256:8b8ff5860b7ccf9729967a90b46a7694185470cfa1b986821ccc7dd68748fb56 |
| 2026-05-22T17:59:30Z | 2026-05-22T17:59:19Z | 9caed3b | ghcr.io/rmi/stitch-entity-linkage:pr102 |
ghcr.io/rmi/stitch-entity-linkage:pr102@sha256:aac60f5a24c0921181786cc2d3cf41f6d35b6e61747ab3e7d572ca8e1a6f08e2 |
| 2026-05-22T17:59:30Z | 2026-05-22T17:59:19Z | 9caed3b | ghcr.io/rmi/stitch-seed:pr102 |
ghcr.io/rmi/stitch-seed:pr102@sha256:fa5446602e4711e1fbde87e6fb168ae152f6ab091dd5d83b8bb9f94251f5e110 |
| 2026-05-22T17:59:30Z | 2026-05-22T17:59:19Z | 9caed3b | ghcr.io/rmi/stitch-stitch-llm:pr102 |
ghcr.io/rmi/stitch-stitch-llm:pr102@sha256:0fc4cbac791573f129fd95b36fc9cf95d6ca216920040eac384ab53fc7194bf1 |
AlexAxthelm
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
page with a single "Sources" section, per STIT-478. Each source renders as a
compact row showing source label, "Imported by {producer} · {observed date}", and a View
action.
and the raw payload JSON live behind a nested "Technical import record" disclosure so raw
JSON is never visible by default.
/oil-gas-field-sources/{id}/detailper row on mount (deduped by TanStackQuery cache key) so producer + observed_at populate the row before any interaction. For
null-id sources (LLM-persisted suggestions awaiting merge), the View button is disabled.
Acceptance criteria coverage
record).
—fallback whenmissing).
Test plan
npm run test:run— 157/157 passing locally, including 25 inResourceDetailPage.test.jsx(new tests cover the row meta line, the View/Hide togglearia, and the two-step raw-payload reveal).
VITE_USE_MOCK_DATA=true npm run dev): open a resource,verify single Sources section, rows show
—for producer/date (mock data omitssource_record), View expands inline, Technical import record stays collapsed.detail fetches resolve; raw payload only appears after opening the nested disclosure.
aria-expandedtoggles correctly on both the outer and nested buttons.
Notes
bg-panel/border-line(matching the Identity/Production/AISuggestion sections) rather than the previous
bg-white/border-gray-dark/15fromSourceDetailCard.significantly, we may want to revert to lazy-on-open per row.
Mitigations if too many sources becomes a problem:
summary) to OGFieldSourceView. Then useResourceDetail already carries everything the compact
row needs, zero extra fetches.
request. One round-trip instead of N.
with just label + name + "View" (no producer/date until clicked). Violates the spec literally
but is fine if N is large.