Skip to content

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

@ardalis

Description

@ardalis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions