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

Open
#1,380 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start by reading Admin/VideoController and the associated Razor Page/Form to trace the video upload flow. Then review the proposed IBlueSkyPoster service boundary and the BlueSkyPoster unit and form-flow integration tests described in the issue. Done means an optional 300-character summary posts through the authenticated service, failures are logged, and the user sees a status message.

Written by the indexing model from the issue text.

Description

.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.

Dominant language
C#
Stars
157
Forks
59
Avg merge
3h 12m
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DevBetterCom/DevBetterWeb

All issues in DevBetterCom/DevBetterWeb

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.