Skip to content

refactor(chat): one address rule for every record and document CU-17tkuw61kfy - #2888

Merged
michaelassraf merged 2 commits into
mainfrom
fix/same-platform-doc-links
Oct 29, 2026
Merged

michaelassraf merged 2 commits into
mainfrom
fix/same-platform-doc-links

Conversation

@michaelassraf

@michaelassraf michaelassraf commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

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.ai while every other link stayed on the preview. The chat built document addresses itself, three ways (docPlatformTargets, chipBasePlatform, the chat's baseRoute, plus a source === 'flamingo' fallback), next to the host's composer that every other record already used.

Now:

  • resolveSourceRowCTA sends every row to the host's composer: a record by its externalUrl, a document by its tree path, passed as the slug. No composer: a record keeps its own address, a document has no link.
  • Deleted: ChatRuntime.docPlatformTargets; the baseRoute and chipBasePlatform props of EmbeddableChat, of the card render options and of DataRoomDoc; the resolver's own address code. The docs viewer keeps its own baseRoute: that is its page route, not a link rule.
  • The embedding example hosts its product docs through its composer (markdown in hostedTypes).

Breaking: hosts drop baseRoute / chipBasePlatform / docPlatformTargets and 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-Set lines in these descriptions; this block is maintained by the hub.

michaelassraf and others added 2 commits October 29, 2026 17:42
…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>
@michaelassraf

Copy link
Copy Markdown
Member Author

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>
@github-actions

Copy link
Copy Markdown
Contributor

🦩 Flamingo Code Review

Not 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:

  • Review this pull request

Or comment @flamingo-review. Add the flamingo-review-always label to review every push.

Updated 2026-10-29 21:59 UTC · workflow run

Sign up for free to 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