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

Offen
#1,380 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
csharp

Rechercherichtung

Beginne mit dem Lesen von Admin/VideoController und der zugehörigen Razor Page/Form, um den Ablauf des Video-Uploads nachzuverfolgen. Überprüfe anschließend die im Issue beschriebene vorgeschlagene Service-Grenze von IBlueSkyPoster sowie die Unit- und Form-Flow-Integrationstests für BlueSkyPoster. Als erledigt gilt die Aufgabe, wenn eine optionale Zusammenfassung mit 300 Zeichen über den authentifizierten Service gepostet wird, Fehler protokolliert werden und der Benutzer eine Statusmeldung sieht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C#
Sterne
157
Forks
59
Ø Merge
3 Std. 12 Min.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus DevBetterCom/DevBetterWeb

Alle Issues in DevBetterCom/DevBetterWeb

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.