[Activity panel 3/3] Break the count down by channel, with a channel filter on tickets
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- nextjs, typescript
- Ambito
- full-stack
Direzione di ricerca
Start with lib/db/queries/tickets.ts, where unseenActivityCondition and getTickets live, and add the grouped-by-channel count there using the same condition. Then read components/dashboard/activity-panel.tsx and app/(dashboard)/dashboard/page.tsx to place the chips, and app/(dashboard)/tickets/page.tsx to add the platform filter. Done means the chip totals match the badge, the chips show only when more than one channel has unseen replies, and the filter survives "load more". Part 1 (#618) should be merged first.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Copied from DeadantCo/answerLoops#130 · originally opened by sethr07 on 2026-11-20
Copied from https://github.com/answerLoops/answerLoops/issues/620 — originally opened by
@NathanTarberton 2026-11-17
Series
This is part 3 of 3 of the dashboard Activity panel work. Each part is its own pull request. Build part 1 first, because this adds to the panel it redesigns. It does not depend on part 2.
- #618: collapse on load, preview 5, and always show the true count
- #619: a "Mark all as seen" action for large backlogs
- #620: a channel breakdown, with a channel filter on the tickets page (this issue)
Summary
Show where the waiting customer replies are coming from. The Activity panel gets a row of channel chips, for example "GitHub 8 · Discord 3 · Email 1", and each chip links to the tickets list filtered to that channel's unseen replies. That needs a channel filter on the tickets page, which does not exist yet.
How it works today
- The Activity panel shows one total. With 200 tickets waiting it cannot say whether they are 200 GitHub issues or a mix of channels.
- The tickets page can filter by status, priority, category and "new activity". It has no channel filter.
- Every ticket records the channel it came from. The channels are Discord, Slack, Google Chat, Telegram, Email, GitHub, Discourse, Circle and Agent, and
platformLabelinlib/tickets/platform-label.tsgives each its display name.
The problem
When the number is large, the first question is "where are these from?", because different channels are usually owned by different people or need different handling. Today answering that means opening the tickets page and scanning.
What to build
1. A grouped count
- One query that counts unseen-activity tickets grouped by channel, for the person's organization, using the same unseen condition as the panel (
unseenActivityConditioninlib/db/queries/tickets.ts) so the totals can never disagree with the badge. - Ordered by count, largest first, then by channel name so the order is stable.
2. The chips
- They sit in the panel header area, visible while the panel is collapsed, because the collapsed view is where a large backlog is seen.
- Each chip shows the channel's display name and its count, for example "GitHub 8".
- Show at most 4 chips. If there are more channels than that, the fourth slot becomes an "Other N" chip that links to the unfiltered "View all" list.
- If only one channel has unseen replies, show no chips, because they would only repeat the total.
- Counts follow the same rule as the badge: exact up to 99, then "99+". The accessible name always carries the exact number, for example "GitHub, 8 tickets with new replies".
- Chips wrap onto more lines on small screens and never cause horizontal scrolling at 375px wide.
3. A channel filter on the tickets page
- A new filter in the page's existing filter bar, in the same style as the others, with an "All channels" default and one option per channel.
- It is driven by a query parameter, for example
platform=github, which the chips link to together with the existing parameters:/tickets?newActivity=1&sort=activity&platform=github. - It is added to the ticket filters type and to
getTickets, and it combines with the status, priority, category and new-activity filters. - Unknown channel values are ignored, not an error, and the "load more" links keep the filter.
Out of scope
- Marking one channel's tickets as seen (part 2 covers the whole backlog).
- Channel icons or logos on the chips.
- Remembering the open or closed state of the panel.
- Any change to what counts as unseen, or to the notification system.
- Analytics or reporting by channel.
Where to look
components/dashboard/activity-panel.tsxandapp/(dashboard)/dashboard/page.tsxfor the panel and where the data is fetched.lib/db/queries/tickets.tsfor the unseen condition andgetTickets.app/(dashboard)/tickets/page.tsxfor the filter bar and how filters become query parameters.lib/tickets/platform-label.tsfor channel display names.
Acceptance criteria
- The panel shows channel chips with exact counts, largest first, and they add up to the badge total.
- No chips appear when only one channel has unseen replies.
- More than four channels shows three chips plus an "Other N" chip.
- Each chip links to the tickets list filtered to that channel's unseen replies, and the list shows only those tickets.
- The tickets page has a working channel filter that combines with the other filters and survives "load more".
- Counts never leak across organizations.
- The chips wrap correctly at 375px wide and each chip has an accessible name with the exact count.
Tests
Add a test for the grouped count with tickets across channels and across two organizations. Add tests for the channel filter, including an unknown value. Add component tests for the chips: ordering, the cap of four with "Other", the single-channel case, and the accessible names.
Start here: new to the project? Read CONTRIBUTING.md first. It covers the ground rules, running answerLoops locally, and how to open a pull request.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DeadantCo/answerLoopsdev
-
Widget: match the chat bubble color to the rest of the widgetForse già presa @sethr07 l’ha presa oggi. Apertaenhancement frontend help wanted
Difficoltà 2/5 Mezza giornata Idoneità per principianti 75/100
DeadantCo/answerLoopsdev#68 · 3 commenti ·
-
Widget: make the chat window fit on small phonesForse già presa @sethr07 l’ha presa oggi. Apertaenhancement frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DeadantCo/answerLoopsdev#67 · 9 commenti ·
-
Add 'select all' option to Slack channel picker in SettingsForse già presa @sethr07 l’ha presa oggi. Apertafrontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DeadantCo/answerLoopsdev#22 · 5 commenti ·
-
enhancement frontend help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
DeadantCo/answerLoopsdev#141 ·
-
backend enhancement frontend help wanted notifications
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
DeadantCo/answerLoopsdev#139 ·
Tutte le issue di DeadantCo/answerLoopsdev
Issue simili
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
lingdojo/kana-dojo#34545 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Blocklist addition requestApertablocklist addition
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
MetaMask/eth-phishing-detect#315455 ·
I maintainer di solito rispondono entro 1 giorno
-
area: telegram bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
griffinwork40/agent-afk#5275 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getopenscreen/openscreen#1667 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
erkamyaman/rust-anything#371 ·
I maintainer di solito rispondono entro 1 giorno