Skip to content

fix(support): count a bot auto-response as an answer in the open-ticket grouping - #1467

Closed
Blume1977 wants to merge 1 commit into
DFXswiss:developfrom
Blume1977:fix/support-bot-reply-counts-as-answer
Closed

Blume1977 wants to merge 1 commit into
DFXswiss:developfrom
Blume1977:fix/support-bot-reply-counts-as-answer

Conversation

@Blume1977

Copy link
Copy Markdown
Contributor

EN:
A ticket the AutoResponder replied to last was listed under Awaiting reply with a waiting badge (see #1455), although the customer already got an answer. A bot reply now counts as an answer: the ticket sits under Answered and only returns to Awaiting reply once the customer writes again, as it did before the regrouping.

DE:
Ein Ticket, auf das zuletzt der AutoResponder geantwortet hat, stand unter Awaiting reply mit Warte-Badge (siehe #1455), obwohl der Kunde bereits eine Antwort erhalten hat. Eine Bot-Antwort gilt jetzt als Antwort: Das Ticket liegt unter Answered und kommt erst zurück nach Awaiting reply, wenn der Kunde erneut schreibt, wie vor der Neugruppierung.

Details

Change: needsReply in src/util/support-stats.ts no longer treats AutoResponder as "our turn". customerWaitingHours (waiting badge in the ticket table, escalation tiles on the overview) uses the same function, so bot-answered tickets no longer show a waiting time either. isUnassigned is unchanged (bot as clerk still renders Unassigned). Tickets without any message stay in Awaiting reply.

Tests: support-stats.test.ts (bot reply = answered, ticket returns on the next customer message, waiting timer null after a bot reply), support-issue-table.test.tsx (escalated badge sample now uses a customer message). Measured coverage on Node 20 for support-stats.ts and issue-table.tsx: 100/100/100/100. Full Jest suite: 135 suites, 2058 tests green (LC_ALL=en_US.UTF-8, see #1460).

Declared: no Playwright baseline change (no rendered screen changes; the local seed has no bot-answered tickets). The e2e/realunit-support.spec.ts grouping comment is updated, the fixture data and assertions are unaffected (no bot-authored issue in the fixture).

Overlap: #1427 touches support-dashboard-overview.screen.tsx, not the files changed here.

…et grouping

A ticket the AutoResponder replied to last was listed under Awaiting reply with a
waiting badge, although the customer already got an answer from DFX. It now sits
under Answered (as before the regrouping) and only comes back to Awaiting reply
once the customer writes again. The waiting timer and the escalation tiles of the
overview follow the same rule, since both use needsReply.
@github-actions

github-actions Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

EN:
Thanks for your contribution! This repository follows the A38 quality rules.

DE:
Danke für deinen Beitrag! In diesem Repository gelten die A38-Qualitätsregeln.

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
This work continues on #1494, which applies the same grouping rule on current develop.

DE:
Die Arbeit geht in #1494 weiter, mit derselben Gruppierungsregel auf dem aktuellen develop.

Details

#1494 takes over this draft: a bot auto-response counts as an answer, so the ticket sits under Answered until the customer writes again. Head is current develop, own branch and review chain.

@TaprootFreakAI

Copy link
Copy Markdown
Collaborator

EN:
Closed as superseded by #1494, which has the same grouping rule on current develop.

DE:
Geschlossen, ersetzt durch #1494, mit derselben Gruppierungsregel auf dem aktuellen develop.

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.

2 participants