Add Ability to Post BlueSky Summary "Skeet" from Video Upload Page

オープン
#1,380 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp

調査の方向性

まず Admin/VideoController と関連する Razor Page/Form を読み、動画アップロードのフローを追跡します。次に、issue で説明されている IBlueSkyPoster の提案されたサービス境界と、BlueSkyPoster のユニットテストおよびフォームフロー統合テストを確認します。認証済みサービス経由で任意の 300 文字の要約が投稿され、失敗がログに記録され、ユーザーにステータスメッセージが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

.NET enhancement

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分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DevBetterCom/DevBetterWeb のほかの issue

DevBetterCom/DevBetterWeb の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。