feat: send bridge completion web pushes#145
Conversation
Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
|
@pilipilisbot però què collons has fet? el que vull són notificacions a nivell web amb push, no notificacions a github... |
Replace the GitHub completion-comment notification path with browser Push API subscriptions tied to dashboard GitHub users. Add dashboard subscription endpoints, service worker support, executor delivery, docs, and tests. Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
8b883a6 to
b999a49
Compare
|
Tens raó: havia tirat pel camí equivocat amb comentaris de GitHub. Ho he corregit a
També he actualitzat títol/body del PR. Validació local: |
|
@pilipilisbot hi ha alguna forma de fer servir la imatge configurada a laa app de GitHub |
Let deployments set GITHUB_AGENT_BRIDGE_WEB_PUSH_ICON_URL so browser push notifications can use the public GitHub App avatar URL while falling back to the bundled bridge icon. Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
|
Sí. Ho he deixat fet a Ara el payload de web push inclou GITHUB_AGENT_BRIDGE_WEB_PUSH_ICON_URL=https://avatars.githubusercontent.com/in/123456?s=192&v=4També he actualitzat
PR body actualitzat amb aquest canvi. |
|
@pilipilisbot joder que se li pot posar una url ja m'ho penso, era pq hi faci automàticament sense haver de buscar el carai de url |
Use configured GitHub App id or slug to derive the browser push notification icon automatically, while keeping the explicit icon URL as an override. Co-authored-by: ecarreras <294235+ecarreras@users.noreply.github.com>
|
Fet a Ara el web push resol la icona automàticament així:
He actualitzat
|
|
PR merged. Final state:
No extra code change from this job: the triggering event was the merge event, and the web push + automatic GitHub App icon work is already included in the merged PR. |
Summary
doneorblocked.GITHUB_AGENT_BRIDGE_GITHUB_APP_IDorGITHUB_AGENT_BRIDGE_GITHUB_APP_SLUG, while keepingGITHUB_AGENT_BRIDGE_WEB_PUSH_ICON_URLas an explicit override.Screenshot
Tests
.venv/bin/python -m pytest -q tests/test_web_push.py.venv/bin/python -m pytest -q tests/test_executor.py tests/test_backend.py tests/test_web_push.pynpm test -- --run src/main.test.tsxnpm run build.venv/bin/python -m pytest -q tests/test_executor.py tests/test_backend.py tests/test_web_push.py tests/test_github_followup_detection.py.venv/bin/python -m pytest -qnpm testnpm run build