Skip to content

feat(dashboard): show the configured Slack reaction count - #52

Draft
brennenho wants to merge 1 commit into
brennen/demo-ctc-45from
brennen/demo-ctc-46
Draft

brennenho wants to merge 1 commit into
brennen/demo-ctc-45from
brennen/demo-ctc-46

Conversation

@brennenho

Copy link
Copy Markdown
Contributor

Summary

Signed-in members can see the current reaction count for the configured Slack channel and emoji below the dashboard tools. Implements CTC-46 on top of CTC-45.

Changes

  • Render the count in a server component using CTC-45’s authenticated D1 reader. Label the emoji and link the configured channel ID to Slack.
  • Display a numeric zero for an empty result and “Count unavailable” when configuration or storage is unavailable. The rest of the dashboard stays usable.

Testing

  • pnpm check passed formatting, lint, type checking, and all 102 tests.
  • Checked the dashboard in Chrome at a 375px viewport. The signed-out page hid the card and channel ID. After signing in, the card showed the configured emoji and channel link without horizontal overflow.
  • Against local D1, verified zero after migration, then two after seeding two matching reactions and two unrelated reactions. The rendered page omitted fixture user IDs.
  • Verified “Count unavailable” with the reaction table absent and with both Slack settings unset. Flashcards remained accessible in both cases.
  • Browser checks used local fixtures. Live Slack event delivery belongs to CTC-47’s end-to-end check.

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

CTC-46

@github-actions

Copy link
Copy Markdown

Preview deployment

Open preview ↗

Last deployed 2026-11-19T04:22:58Z

Commit Workflow
697eaf7 Run #79 · attempt 1

Fallback preview

This branch was successfully deployed

1 active deployment
pr-52 — 697eaf79 Deployed Nov 19, 2026 by github-actions[bot]
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