Make conversation queues mutually exclusive

This commit is contained in:
Jamie Brunton committed 2026-08-14 09:25:45 +01:00
1 parent 3bb1dda6bb
commit 2447563c60
20 files changed
+386 -220

No files matched your search

@@ -440,17 +440,21 @@ describe('application-level read state', () => {
expect(await screen.findByRole('button', { name: /u\/carol/ })).toBeInTheDocument();
});
it('explains rows hidden by the seller filter instead of silently dropping them', async () => {
it('keeps seller rows reachable through their dedicated queue', async () => {
server.use(
http.get('/api/conversations', () => HttpResponse.json([
chatFixture({ username: 'alice' }),
chatFixture({ username: 'seller', sellerDetected: true }),
])),
);
const user = userEvent.setup();
renderConversations();
await screen.findByRole('button', { name: /u\/alice/ });
expect(screen.getByText('1 hidden by the seller filter.')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Sellers, 1' })).toBeInTheDocument();
await user.click(screen.getByRole('button', { name: 'Sellers, 1' }));
expect(screen.getByRole('button', { name: /u\/seller/ })).toBeInTheDocument();
expect(screen.queryByRole('button', { name: /u\/alice/ })).not.toBeInTheDocument();
});
it('flags an unanswered conversation that has gone stale', async () => {