Skip to content

feat: import Feishu document links before send#1

Merged
zhexuany merged 9 commits into
archebasefrom
feishu-doc-url-import
Jun 9, 2026
Merged

feat: import Feishu document links before send#1
zhexuany merged 9 commits into
archebasefrom
feishu-doc-url-import

Conversation

@zhexuany

@zhexuany zhexuany commented Jun 9, 2026

Copy link
Copy Markdown

Summary

  • Parse pasted Feishu docx/wiki links and import them as text attachments before chat send.
  • Add authenticated /api/feishu/docs/import backend flow using ArcheGate/OpenID OBO tokens, without fetching pasted URLs directly.
  • Wire frontend pre-send import with localized toasts and overrideFiles handoff to existing chat submission.

Test Plan

  • npm run build:data-provider
  • npm run build:api
  • cd packages/data-provider && npx jest src/feishu.spec.ts --runInBand
  • cd packages/api && npx jest src/files/feishu/client.spec.ts src/files/feishu/import.spec.ts --runInBand
  • cd api && npx jest server/routes/feishu.spec.js server/routes/__tests__/config.spec.js --runInBand
  • cd client && npx jest src/hooks/Messages/useFeishuDocImport.spec.tsx src/hooks/Messages/useSubmitMessage.spec.tsx --runInBand

@zhexuany zhexuany merged commit 689bee8 into archebase Jun 9, 2026
17 checks passed
@zhexuany zhexuany deleted the feishu-doc-url-import branch June 9, 2026 12:48
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