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

Aperta
#1,380 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp

Direzione di ricerca

Inizia leggendo Admin/VideoController e la Razor Page/Form associata per tracciare il flusso di caricamento dei video. Poi esamina il confine di servizio proposto di IBlueSkyPoster e i test unitari e di integrazione del flusso del form di BlueSkyPoster descritti nell’issue. Il lavoro è completato quando un riepilogo facoltativo di 300 caratteri viene pubblicato tramite il servizio autenticato, gli errori vengono registrati e l’utente visualizza un messaggio di stato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
157
Fork
59
Merge medio
3h 12m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevBetterCom/DevBetterWeb

Tutte le issue di DevBetterCom/DevBetterWeb

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.