@flamingo-stack/openframe-frontend-core 0.0.602-2095.5794.1 → 0.0.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-7HHOAQF4.js → chunk-2TXJ3K6S.js} +2 -2
- package/dist/{chunk-Y3AQ3AAJ.cjs → chunk-3KN6IWOT.cjs} +43 -43
- package/dist/{chunk-Y3AQ3AAJ.cjs.map → chunk-3KN6IWOT.cjs.map} +1 -1
- package/dist/{chunk-54Y7ZCJA.cjs → chunk-3Z7NYCEO.cjs} +4 -4
- package/dist/{chunk-54Y7ZCJA.cjs.map → chunk-3Z7NYCEO.cjs.map} +1 -1
- package/dist/{chunk-6QQY6B6Y.cjs → chunk-4OI4DEKP.cjs} +70 -70
- package/dist/{chunk-6QQY6B6Y.cjs.map → chunk-4OI4DEKP.cjs.map} +1 -1
- package/dist/{chunk-SKAXS24F.js → chunk-7LVLVRMX.js} +4 -4
- package/dist/{chunk-MC3UOVDZ.cjs → chunk-7OYP74N7.cjs} +22 -22
- package/dist/{chunk-MC3UOVDZ.cjs.map → chunk-7OYP74N7.cjs.map} +1 -1
- package/dist/{chunk-UFKTOU3I.cjs → chunk-AC5XNLYM.cjs} +3 -3
- package/dist/{chunk-UFKTOU3I.cjs.map → chunk-AC5XNLYM.cjs.map} +1 -1
- package/dist/{chunk-R3XNNQEH.cjs → chunk-B7A5PTHM.cjs} +10 -10
- package/dist/{chunk-R3XNNQEH.cjs.map → chunk-B7A5PTHM.cjs.map} +1 -1
- package/dist/{chunk-ZUBJWOWG.js → chunk-BAZIRYY7.js} +3 -3
- package/dist/{chunk-LEP3RYNZ.cjs → chunk-BFTEZAOS.cjs} +159 -159
- package/dist/{chunk-LEP3RYNZ.cjs.map → chunk-BFTEZAOS.cjs.map} +1 -1
- package/dist/{chunk-K3ZL24DK.cjs → chunk-DO4XE56J.cjs} +3 -3
- package/dist/{chunk-K3ZL24DK.cjs.map → chunk-DO4XE56J.cjs.map} +1 -1
- package/dist/{chunk-L4DBKYQA.js → chunk-EWIZQGKZ.js} +2 -2
- package/dist/{chunk-VSM2JWEL.cjs → chunk-F4CCZV5A.cjs} +33 -33
- package/dist/{chunk-VSM2JWEL.cjs.map → chunk-F4CCZV5A.cjs.map} +1 -1
- package/dist/{chunk-SQ6QPSKS.js → chunk-FBMAGTYJ.js} +2 -2
- package/dist/{chunk-UQC5M4AY.js → chunk-GVXIXNZR.js} +3 -3
- package/dist/{chunk-AX463GYE.js → chunk-HXMLSTDC.js} +5 -5
- package/dist/{chunk-7EUDSE4S.cjs → chunk-JEFVZP22.cjs} +22 -22
- package/dist/{chunk-7EUDSE4S.cjs.map → chunk-JEFVZP22.cjs.map} +1 -1
- package/dist/{chunk-OR6LZ5UW.js → chunk-JXDKGDRT.js} +2 -2
- package/dist/{chunk-VK743MVL.cjs → chunk-KESRJY6J.cjs} +4 -28
- package/dist/chunk-KESRJY6J.cjs.map +1 -0
- package/dist/{chunk-2REFTU5Z.js → chunk-M4EXSVPN.js} +5 -5
- package/dist/{chunk-RILYUPQM.cjs → chunk-MKKIXKDI.cjs} +10 -10
- package/dist/{chunk-RILYUPQM.cjs.map → chunk-MKKIXKDI.cjs.map} +1 -1
- package/dist/{chunk-I6OHLSE5.js → chunk-OBLFGKVT.js} +5 -5
- package/dist/{chunk-ZWY3MICH.js → chunk-Q55VMD66.js} +3 -3
- package/dist/{chunk-L35VMDAG.cjs → chunk-R5IK4U6T.cjs} +5 -5
- package/dist/{chunk-L35VMDAG.cjs.map → chunk-R5IK4U6T.cjs.map} +1 -1
- package/dist/{chunk-GZ45MRAX.js → chunk-SOUIKJO4.js} +6 -6
- package/dist/{chunk-JGSEBZYO.js → chunk-SWVHCWLG.js} +4 -28
- package/dist/chunk-SWVHCWLG.js.map +1 -0
- package/dist/{chunk-H2RIQFAA.js → chunk-T2K3Z6GM.js} +2 -2
- package/dist/{chunk-KAXW74VF.js → chunk-TIFNG7GH.js} +3 -3
- package/dist/{chunk-WE77XHE4.js → chunk-WD3Y2262.js} +3 -3
- package/dist/{chunk-GBSPNG2K.cjs → chunk-WP5VWQ2E.cjs} +25 -25
- package/dist/{chunk-GBSPNG2K.cjs.map → chunk-WP5VWQ2E.cjs.map} +1 -1
- package/dist/{chunk-YRKHQBVC.cjs → chunk-XRV45XDL.cjs} +15 -15
- package/dist/{chunk-YRKHQBVC.cjs.map → chunk-XRV45XDL.cjs.map} +1 -1
- package/dist/{chunk-NTMC6LMC.cjs → chunk-YR736WKJ.cjs} +9 -9
- package/dist/{chunk-NTMC6LMC.cjs.map → chunk-YR736WKJ.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/entity-cards/chat-ticket-item.d.ts +0 -12
- package/dist/components/chat/entity-cards/chat-ticket-item.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +38 -38
- package/dist/components/index.js +13 -13
- package/dist/components/meeting-scheduler/index.cjs +24 -24
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/package.json +2 -1
- package/src/components/chat/entity-cards/chat-ticket-item.tsx +4 -30
- package/src/stories/ChatTicketList.stories.tsx +0 -25
- package/dist/chunk-JGSEBZYO.js.map +0 -1
- package/dist/chunk-VK743MVL.cjs.map +0 -1
- package/src/components/chat/__tests__/chat-ticket-item.test.tsx +0 -79
- /package/dist/{chunk-7HHOAQF4.js.map → chunk-2TXJ3K6S.js.map} +0 -0
- /package/dist/{chunk-SKAXS24F.js.map → chunk-7LVLVRMX.js.map} +0 -0
- /package/dist/{chunk-ZUBJWOWG.js.map → chunk-BAZIRYY7.js.map} +0 -0
- /package/dist/{chunk-L4DBKYQA.js.map → chunk-EWIZQGKZ.js.map} +0 -0
- /package/dist/{chunk-SQ6QPSKS.js.map → chunk-FBMAGTYJ.js.map} +0 -0
- /package/dist/{chunk-UQC5M4AY.js.map → chunk-GVXIXNZR.js.map} +0 -0
- /package/dist/{chunk-AX463GYE.js.map → chunk-HXMLSTDC.js.map} +0 -0
- /package/dist/{chunk-OR6LZ5UW.js.map → chunk-JXDKGDRT.js.map} +0 -0
- /package/dist/{chunk-2REFTU5Z.js.map → chunk-M4EXSVPN.js.map} +0 -0
- /package/dist/{chunk-I6OHLSE5.js.map → chunk-OBLFGKVT.js.map} +0 -0
- /package/dist/{chunk-ZWY3MICH.js.map → chunk-Q55VMD66.js.map} +0 -0
- /package/dist/{chunk-GZ45MRAX.js.map → chunk-SOUIKJO4.js.map} +0 -0
- /package/dist/{chunk-H2RIQFAA.js.map → chunk-T2K3Z6GM.js.map} +0 -0
- /package/dist/{chunk-KAXW74VF.js.map → chunk-TIFNG7GH.js.map} +0 -0
- /package/dist/{chunk-WE77XHE4.js.map → chunk-WD3Y2262.js.map} +0 -0
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `ChatTicketItem` secondary line.
|
|
3
|
-
*
|
|
4
|
-
* The row composes `ticketNumber • category • timeAgo` on its own, which
|
|
5
|
-
* puts a bare number first - fine for the HubSpot help-center rows that
|
|
6
|
-
* pass `#123`, wrong for the Fae client, where the reference must read as
|
|
7
|
-
* `Ticket Number: 165 • 6m ago` (labelled, but secondary to the title).
|
|
8
|
-
* `subtitle` lets the host own that line verbatim, and `unread` swaps the
|
|
9
|
-
* line for the unread notice in brand yellow with a yellow chevron
|
|
10
|
-
* (Figma fae-chat 1-5592). These tests pin the default composition, the
|
|
11
|
-
* override, the empty-string "hide" case, and the unread treatment.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { render, screen } from '@testing-library/react';
|
|
15
|
-
import { describe, expect, it, vi } from 'vitest';
|
|
16
|
-
import { ChatTicketItem, type ChatTicketItemData } from '../entity-cards/chat-ticket-item';
|
|
17
|
-
|
|
18
|
-
// jsdom ships no ResizeObserver; the status tag's truncation probe observes
|
|
19
|
-
// itself on mount (mirrors chat-pending-turn.test.tsx).
|
|
20
|
-
class ObserverStub {
|
|
21
|
-
observe() {}
|
|
22
|
-
unobserve() {}
|
|
23
|
-
disconnect() {}
|
|
24
|
-
}
|
|
25
|
-
vi.stubGlobal('ResizeObserver', ObserverStub);
|
|
26
|
-
|
|
27
|
-
const ticket: ChatTicketItemData = {
|
|
28
|
-
id: 't-1',
|
|
29
|
-
title: 'Slow Laptop',
|
|
30
|
-
ticketNumber: '1002',
|
|
31
|
-
status: 'ACTIVE',
|
|
32
|
-
category: 'Hardware Issue',
|
|
33
|
-
timeAgo: '6m ago',
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
describe('ChatTicketItem subtitle', () => {
|
|
37
|
-
it('composes ticketNumber, category and timeAgo by default', () => {
|
|
38
|
-
render(<ChatTicketItem ticket={ticket} />);
|
|
39
|
-
|
|
40
|
-
expect(screen.getByText('1002 • Hardware Issue • 6m ago')).toBeInTheDocument();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
it('renders the subtitle override verbatim instead of the composed line', () => {
|
|
44
|
-
render(<ChatTicketItem ticket={{ ...ticket, subtitle: 'Ticket Number: 1002 • 6m ago' }} />);
|
|
45
|
-
|
|
46
|
-
expect(screen.getByText('Ticket Number: 1002 • 6m ago')).toBeInTheDocument();
|
|
47
|
-
expect(screen.queryByText('1002 • Hardware Issue • 6m ago')).not.toBeInTheDocument();
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('hides the secondary line for an empty subtitle', () => {
|
|
51
|
-
render(<ChatTicketItem ticket={{ ...ticket, subtitle: '' }} />);
|
|
52
|
-
|
|
53
|
-
expect(screen.getByText('Slow Laptop')).toBeInTheDocument();
|
|
54
|
-
expect(screen.queryByText(/1002/)).not.toBeInTheDocument();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('unread: shows the notice in brand yellow and turns the chevron yellow', () => {
|
|
58
|
-
render(<ChatTicketItem ticket={{ ...ticket, unread: true }} />);
|
|
59
|
-
|
|
60
|
-
const notice = screen.getByText('You have a new unread message');
|
|
61
|
-
expect(notice).toHaveClass('text-ods-open-yellow');
|
|
62
|
-
expect(screen.queryByText(/1002/)).not.toBeInTheDocument();
|
|
63
|
-
expect(screen.getByTestId('chat-ticket-item-chevron')).toHaveClass('bg-ods-open-yellow');
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
it('unread + subtitle: the override text wins but keeps the unread colour', () => {
|
|
67
|
-
render(<ChatTicketItem ticket={{ ...ticket, unread: true, subtitle: '2 new replies' }} />);
|
|
68
|
-
|
|
69
|
-
expect(screen.getByText('2 new replies')).toHaveClass('text-ods-open-yellow');
|
|
70
|
-
expect(screen.queryByText('You have a new unread message')).not.toBeInTheDocument();
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('read rows keep the neutral secondary colour and chevron', () => {
|
|
74
|
-
render(<ChatTicketItem ticket={ticket} />);
|
|
75
|
-
|
|
76
|
-
expect(screen.getByText('1002 • Hardware Issue • 6m ago')).toHaveClass('text-ods-text-secondary');
|
|
77
|
-
expect(screen.getByTestId('chat-ticket-item-chevron')).toHaveClass('bg-ods-card');
|
|
78
|
-
});
|
|
79
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|