Skip to content

feat(slack): Slack settings page and DM switches (TM-182) - #935

Draft
acrossoffwest wants to merge 1 commit into
masterfrom
feat/tm-182-slack
Draft

acrossoffwest wants to merge 1 commit into
masterfrom
feat/tm-182-slack

Conversation

@acrossoffwest

Copy link
Copy Markdown
Collaborator

Slack settings in the web app (TM-182, stage C frontend). Needs backend tmgr-dev/backend#415 (slack_enabled/slack_types, GET /api/slack/links) and #414 (channels/subscriptions) deployed first.

  • /settings/integrations/slack (gated by the slack module, nav entry under Workspace):
    • finishes Slack redirects: ?status=confirm&flow=install|link&pending= → POST the matching confirm, then clears the query; a repeated confirm shows "already completed or expired"; ?status=error&reason= → mapped message.
    • Connect / Disconnect (admins only; Disconnect now removes the app from the Slack workspace, see backend#417), Link / Unlink my Slack account.
    • Admin sections: linked people (list + unlink), channels (add by ID, shared toggle, remove) and per-channel subscriptions.
    • Non-admins make no admin calls.
  • Notification settings: Slack section (master switch + task_assigned, page.mentioned) when the module is on; fields are sent only after the user changes them, so stored values stay untouched otherwise.
  • src/actions/tmgr/slack.ts API layer, slackRedirect.ts helper, i18n keys in all 10 locales (English text in non-English catalogs).

Tests: npm test -- --no-watchman 598 suites / 8179 tests green, vue-tsc clean. Not checked in a browser.

This branch has not been deployed

No deployments
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