Add Ability to Post BlueSky Summary "Skeet" from Video Upload Page
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- api, authentication, full-stack
调研方向
先阅读 Admin/VideoController 和相关的 Razor Page/Form,以跟踪视频上传流程。然后查看 issue 中描述的拟议 IBlueSkyPoster 服务边界,以及 BlueSkyPoster 的单元测试和表单流程集成测试。完成的标准是:一份可选的 300 字摘要通过已认证的服务发布,失败会被记录,并且用户会看到状态消息。
由索引模型根据 Issue 内容生成。
描述
We want to add support for creating and posting a BlueSky update (a "skeet") directly from the admin video upload page. This will allow admins to quickly summarize a new coaching session and share it on the devBetter BlueSky account immediately after uploading.
Requirements
Frontend
Add a text box labeled "BlueSky Summary" below the video upload form.
Optional: Add character counter (BlueSky limit is 300 characters).
Add a checkbox or toggle to "Post to BlueSky?" (default to unchecked).
Backend
On form submission, if "Post to BlueSky?" is checked:
Send the summary to a backend endpoint for posting to BlueSky.
Log success or failure and display a status message to the user.
Implementation Steps
BlueSky API Integration
Add a lightweight BlueSky API client using atproto/xrpc or wrap raw HTTP requests.
Use application password authentication (requires BlueSky credentials stored securely — see next section).
Secure Credentials
Store BlueSky handle and app password securely in user-secrets or configuration:
BlueSky:Handle
BlueSky:AppPassword
Optional: use Azure Key Vault if deployed to Azure.
Service Layer
Create an IBlueSkyPoster interface and implementation.
Use the BlueSky client to post to the authenticated user's feed.
Implement error handling and logging for failures (rate limits, auth issues, etc.).
Video Upload Page Changes
Update Admin/VideoController and associated Razor Page/Form to include:
Text box for summary.
Boolean "Post to BlueSky" toggle.
Ensure model validation (e.g., 300-char limit).
On successful video upload, if selected, call the IBlueSkyPoster.PostSummaryAsync() method.
User Feedback
Show a toast or inline status message (success or error) after form submission.
Optional: log posted skeets in admin history/audit log.
Testing
Add unit test(s) for BlueSkyPoster.
Add integration test using a mock BlueSkyPoster to verify form flow.
Manually test live BlueSky integration (in staging/dev first).
Optional Enhancements
Auto-generate a skeleton summary using the video title or date.
Support including a link to the video if applicable.
Display the posted skeet's URL after success.
- 主要语言
- C#
- 星标
- 157
- 派生
- 59
- 平均合并
- 3 小时 12 分钟
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DevBetterCom/DevBetterWeb 的其他 Issue
-
Remove duplicate Vimeo DI registration; use NimblePros.Vimeo AddVimeoServices and upgrade package未关闭
难度 2/5 1-3 小时 新手友好度 72/100
DevBetterCom/DevBetterWeb#1486 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
DevBetterCom/DevBetterWeb#1472 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 20/100
DevBetterCom/DevBetterWeb#1393 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
DevBetterCom/DevBetterWeb#1392 ·
维护者通常 1 天内回复
-
New Members Subscription Should Not Have End Date可能已有人在做 @ShadyNagy 于 585 天前认领。 未关闭bug
DevBetterCom/DevBetterWeb#1334 · 4 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 DevBetterCom/DevBetterWeb 的全部 Issue
相似的 Issue
-
[中] 更新器下载缓存从不清理未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
NimblePros/eShopOnWeb#333 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 62/100