UBERF-7239: Support short/custom links in inbox/chat/planner (#5815)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-06-18 19:21:51 +07:00
committed by GitHub
parent 61a0833ec4
commit 1e9fea356e
55 changed files with 630 additions and 244 deletions
@@ -26,6 +26,10 @@ export async function documentHTMLPresenter (doc: Doc, control: TriggerControl):
return `<a href="${link}">${document.name}</a>`
}
export async function documentLinkIdProvider (doc: Document): Promise<string> {
return getDocumentId(doc)
}
/**
* @public
*/
@@ -38,6 +42,7 @@ export async function documentTextPresenter (doc: Doc): Promise<string> {
export default async () => ({
function: {
DocumentHTMLPresenter: documentHTMLPresenter,
DocumentTextPresenter: documentTextPresenter
DocumentTextPresenter: documentTextPresenter,
DocumentLinkIdProvider: documentLinkIdProvider
}
})