feat(slides): support importing pptx as slides#1068
Conversation
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughAdds .pptx → slides import support: CLI/help updated, normalizeDriveImportKindForURL recognizes slides, validation and 500MB file-size limit added, tests extended (unit and integration), and user documentation updated. ChangesPowerPoint to Feishu Slides Import
Sequence DiagramsequenceDiagram
participant CLI as CLI (lark-cli drive +import)
participant Upload as UploadService (upload_all)
participant ImportAPI as ImportTasksAPI (import_tasks)
participant Poller as Poller (import_tasks/<ticket> poll)
participant Feishu as Feishu (backend)
CLI->>Upload: upload file (deck.pptx)
Upload-->>CLI: upload token/metadata
CLI->>ImportAPI: create import_task (type=slides, token)
ImportAPI->>Feishu: backend starts import, returns slides token (sldcn_imported)
Poller->>ImportAPI: poll task status
ImportAPI-->>Poller: task completed + slides token
CLI-->>Feishu: build fallback URL https://www.feishu.cn/slides/sldcn_imported
CLI-->>User: emit drive envelope with data["url"]
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1068 +/- ##
=======================================
Coverage 67.91% 67.91%
=======================================
Files 592 592
Lines 55410 55414 +4
=======================================
+ Hits 37631 37635 +4
Misses 14669 14669
Partials 3110 3110 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@792349db8a08f9d67b38ce67e67bab72d1d88071🧩 Skill updatenpx skills add larksuite/cli#feat/slides-pptx-import -y -g |
f261797 to
e4ce73c
Compare
e4ce73c to
792349d
Compare
Summary
Support importing local PPTX files as Lark Slides through
lark-cli drive +import, with the current PPTX import limit set to 500MB.Changes
.pptx -> slidesvalidation, file size limit handling, help text, and slides URL fallback fordrive +import.lark-driveskill docs to document PPTX import usage and the 500MB limit.Test Plan
lark xxxcommand works as expectedgofmt.git diff --check.Related Issues
Summary by CodeRabbit
New Features
Documentation
Tests