Skip to content

feat(app): set up Slack and Discord alerts from the settings page - #13

Merged
CsPS0 merged 1 commit into
mainfrom
feat/chat-alerts-in-app
Nov 18, 2026
Merged

CsPS0 merged 1 commit into
mainfrom
feat/chat-alerts-in-app

Conversation

@CsPS0

@CsPS0 CsPS0 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Stacked on #12: merge that first. GitHub then retargets this PR to main.

Slack and Discord alerts can now be set up from the app, so nobody has to write webhook files by hand.

  • A "Slack és Discord értesítések" card on the settings page checks a pasted webhook address and saves it to the same file pala --daemon reads. It can also send a test message or remove the address. A saved address is never shown again. When the address comes from PALA_SLACK_WEBHOOK or PALA_DISCORD_WEBHOOK, the card only says that it is set.
  • ChatWebhookStore (lib/utils/chat_webhooks.dart) first creates the file empty and owner-only, so other accounts can never read the secret.
  • On Android, the background check now sends every alert to the chat channels as well, as one message per run, the same way the daemon's digest does. The substitute teacher's name is kept out of the Gemini summary.
  • On desktop, pala --daemon still does the sending. iPhone has no background sending.
  • docs/USER.md describes the card.

Checks

  • dart analyze --fatal-infos lib bin test: clean
  • dart test: 202 pass
  • flutter test in app/: all pass, including chat_alerts_card_test.dart
  • flutter analyze in app/: only the known material.dart deprecation infos from Flutter 3.50 (CI pins 3.47.9)

Not tried against a real Slack or Discord channel.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pala Ready Ready Preview Nov 18, 2026 8:15pm UTC

- A "Slack és Discord értesítések" card on the settings page checks a
  pasted webhook address, saves it to the same file `pala --daemon` reads,
  and can send a test message or remove it. A saved address is never shown
  again, and an address from the environment variable is only reported.
- ChatWebhookStore (lib/utils/chat_webhooks.dart) writes the file empty and
  owner-only first, so the secret is never readable by other accounts.
- On Android the background check sends every alert to the chat channels
  too, as one message per run, like the daemon's digest. The substitute
  teacher's name stays out of the Gemini summary.
- docs/USER.md describes the card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CsPS0
CsPS0 changed the base branch from feat/pala-2-design to main November 18, 2026 20:15
@CsPS0
CsPS0 force-pushed the feat/chat-alerts-in-app branch from 5e1cbed to dff3f61 Compare November 18, 2026 20:15
@CsPS0
CsPS0 merged commit 9d782ed into main Nov 18, 2026
5 of 6 checks passed
@CsPS0
CsPS0 deleted the feat/chat-alerts-in-app branch November 18, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant