Repository navigation
feat(studio): credit sources on cards and redraw the More Info panel - #91
Merged
Merged
Conversation
The canvas title runs to the card filters and shows in full on hover (WorkspaceToolbar.tsx, clipTitle removed). The card foot credits its sources as "Source: X +N more" with a small More Info mark, drops the indicator count, and credits a computed card's input publishers (sourceLine in lib/chat/widgets.ts). More Info shows the calculation first for quotient and share cards, lists sources publisher first, offers short and reference citations, and mints a public snapshot link for the citation; POST /api/share returns the snapshot's servedAt. How this card was made is a step rail (descriptionBlocks.ts stepRows). Cards drag from the head and frame after a 4px move, so content clicks and selects text, while touch and read-only canvases still pan (canvas/cardPress.ts).
The pending request lived in CardInfoPanel, so reopening More Info re-enabled the button and a second click minted a second public snapshot. Studio now holds the request per `citeLinkKey` (`citeLinkOnce`) and reuses it until it settles.
jm-rivera
force-pushed
the
feat/studio-card-panels
branch
from
October 31, 2026 22:45
7fd1f9d to
ba16575
Compare
jm-rivera
marked this pull request as ready for review
October 31, 2026 23:34
3 tasks
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.
Studio cards credit their sources in a short line, and the More Info panel opens with the calculation, credits publishers and cites with a link a reader can follow. Cards drag from their head and frame, so their content can be clicked and selected.
Changes
WorkspaceToolbar.tsx).sourceLineinsrc/lib/chat/widgets.ts;CardChrome.tsx).content_versionare inputs (isInputSource,describedSources).calculationOf,citeFormsindescriptionBlocks.ts;citeLinkKeyininfoPanel.ts;CardInfoPanel.tsx;Studio.tsx).POST /api/sharereturns the snapshot'sservedAt, so the citation reads "data as of" (src/app/api/share/route.ts,readShareAnswer).stepRows;ServedStepkeepsinputandinputs).src/components/organisms/Studio/canvas/cardPress.ts,useCardDrag.ts,usePan.ts).Notes for reviewers
description-computed-quotient.jsonstays byte-identical to the dfo-spec-kit vector; the credited shape lives in the localdescription-computed-quotient-credited.json.:has(); older browsers let it shrink.CardChromeandWhiteboardclasses this change renames or removes, and need recapturing.Testing:
pnpm lint,pnpm lint:css,pnpm typecheck,pnpm test(2,212 pass on this layer) andpnpm buildpass. Before and after screenshots of a seeded conversation are below.Screenshots
Before is origin/dev (b91925c) and after is this branch, at 1440 by 900. Both ran against a local Postgres seeded with the same two saved conversations, loaded at /studio/.