Repository navigation
refactor(chat): one address rule for every record and document CU-17tkuw61kfy - #2888
Merged
Merged
Conversation
…kuw61kfy resolveSourceRowCTA built every doc viewer address from the doc platform's registry URL, so on the openframe preview a doc card opened production hub.openframe.ai while the site's other links stayed on the preview. A doc on the platform the chat runs on now gets a relative address, like every other link to that platform's pages; a doc on another platform keeps that platform's address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…kuw61kfy The chat built document addresses itself, three ways (docPlatformTargets, chipBasePlatform, baseRoute, plus a source === 'flamingo' fallback), beside the host's composeContentUrl that every record used. On the openframe preview a doc card therefore opened production hub.openframe.ai while every other link stayed on the preview. Every row now resolves through the host's composer: a record by its externalUrl, a document by its tree path, passed as the slug. The lib builds no address of its own. Deleted: ChatRuntime.docPlatformTargets, the chat's baseRoute and chipBasePlatform props (EmbeddableChat, card render options, DataRoomDoc), and the resolver's own address code. The embedding example hosts its product docs through its composer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
This was referenced Oct 29, 2026
Merged
michaelassraf
added a commit
to flamingo-stack/openframe-oss-frontend
that referenced
this pull request
Oct 29, 2026
… composer The Mingo chat passed the lib a baseRoute for doc chips; the lib now routes every record and document through the host's composeContentUrl. Product docs (markdown) are a hosted type of the Help Center composer, opening in the in-app knowledge base like every other hosted card. Needs the lib release that carries flamingo-stack/openframe-oss-lib#2888. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🦩 Flamingo Code ReviewNot reviewed yet. Reviews start when you ask, so the reviewer reads this pull request when it is ready, not when it is opened. When it is ready:
Or comment Updated 2026-10-29 21:59 UTC · workflow run |
This was referenced Oct 29, 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.
One address rule for every record and document in the chat: the host's
composeContentUrl. The lib builds no address of its own.Why: on the openframe preview, a doc card opened production
hub.openframe.aiwhile every other link stayed on the preview. The chat built document addresses itself, three ways (docPlatformTargets,chipBasePlatform, the chat'sbaseRoute, plus asource === 'flamingo'fallback), next to the host's composer that every other record already used.Now:
resolveSourceRowCTAsends every row to the host's composer: a record by itsexternalUrl, a document by its tree path, passed as theslug. No composer: a record keeps its own address, a document has no link.ChatRuntime.docPlatformTargets; thebaseRouteandchipBasePlatformprops ofEmbeddableChat, of the card render options and ofDataRoomDoc; the resolver's own address code. The docs viewer keeps its ownbaseRoute: that is its page route, not a link rule.markdowninhostedTypes).Breaking: hosts drop
baseRoute/chipBasePlatform/docPlatformTargetsand route docs in their composer. The hub (flamingo-stack/multi-platform-hub#1737) and the OpenFrame app (flamingo-stack/openframe-oss-frontend#749) do, in this change set.Checks: type-check, lint and import cycles clean; full test suite 7,676 passed. New tests: a doc reaches the composer with its path as the slug, a hosted doc type links in-app, a doc with no viewer has no link, a sanitized path.
Change-Set: feat-mcp-in-app-links
🤖 Generated with Claude Code
Change set
flamingo-stack/openframe-oss-lib#2870: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.