@flamingo-stack/openframe-frontend-core 0.0.790 → 0.0.792

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.
Files changed (89) hide show
  1. package/dist/{chunk-7GNSCDUK.cjs → chunk-2I2AXIBD.cjs} +136 -139
  2. package/dist/{chunk-6YPT2BD4.cjs → chunk-3AN35WAO.cjs} +61 -61
  3. package/dist/{chunk-O4XBGLMA.cjs → chunk-4G2KZHZW.cjs} +8 -4
  4. package/dist/{chunk-LZG7PBF3.cjs → chunk-5MIGBLDC.cjs} +14 -14
  5. package/dist/{chunk-TIDJN3OQ.cjs → chunk-6ZPHUDTP.cjs} +3 -3
  6. package/dist/{chunk-ISSBE5JP.cjs → chunk-7EH7KKFW.cjs} +25 -25
  7. package/dist/{chunk-HKMEI2NX.cjs → chunk-ABZGBMC2.cjs} +30 -30
  8. package/dist/{chunk-PLNLTN4R.cjs → chunk-EPWLLLGW.cjs} +11 -11
  9. package/dist/{chunk-V4RKY4ZY.cjs → chunk-FBA6S4ES.cjs} +43 -42
  10. package/dist/{chunk-DKOLQPE7.cjs → chunk-FDZOE5TL.cjs} +16 -1
  11. package/dist/{chunk-RIIMY7XW.cjs → chunk-HMV32LV4.cjs} +4 -4
  12. package/dist/{chunk-ANQCSCNU.cjs → chunk-IHLGPIFO.cjs} +2 -2
  13. package/dist/{chunk-STEJZPIO.cjs → chunk-LHV2R6QU.cjs} +3 -3
  14. package/dist/{chunk-RYSEW4XI.cjs → chunk-O4TKEWNW.cjs} +11 -11
  15. package/dist/{chunk-OWKLWCLZ.cjs → chunk-OKQQJ5TD.cjs} +50 -40
  16. package/dist/{chunk-5FV2FQQD.cjs → chunk-OZIPPOSJ.cjs} +7 -5
  17. package/dist/{chunk-EU3NQPFE.cjs → chunk-P2JY2XCV.cjs} +48 -48
  18. package/dist/{chunk-4YIDZCTL.cjs → chunk-SMZWXY4X.cjs} +7 -13
  19. package/dist/{chunk-KI5TJDK3.cjs → chunk-SXEIK7RU.cjs} +2 -2
  20. package/dist/{chunk-F7UIQ6UG.cjs → chunk-TBGVWIF7.cjs} +2 -2
  21. package/dist/{chunk-GYSRYYDM.cjs → chunk-UNUJ5YQ5.cjs} +4 -4
  22. package/dist/{chunk-QPXC3LEV.cjs → chunk-VUQNTCAL.cjs} +13 -13
  23. package/dist/{chunk-WTNAXQJW.cjs → chunk-W3Q7ZQLS.cjs} +4 -4
  24. package/dist/{chunk-EY64NXE7.cjs → chunk-WWWLOMZI.cjs} +82 -75
  25. package/dist/{chunk-F62QXKNL.cjs → chunk-YPWFYQFE.cjs} +16 -16
  26. package/dist/{chunk-PHWLEYAG.cjs → chunk-YWNXZAQ2.cjs} +32 -32
  27. package/dist/{chunk-IYWVS3SS.cjs → chunk-ZW2TS775.cjs} +2 -2
  28. package/dist/{chunk-F4RCB5LB.cjs → chunk-ZZPGSLMO.cjs} +4 -4
  29. package/dist/{cloud-tenants-D6DYR6UV.cjs → cloud-tenants-CQOD6DDR.cjs} +16 -16
  30. package/dist/components/case-studies/index.cjs +20 -20
  31. package/dist/components/chat/ask-display.d.ts.map +1 -1
  32. package/dist/components/chat/ask-display.js +2 -4
  33. package/dist/components/chat/index.cjs +5 -5
  34. package/dist/components/contact/index.cjs +7 -7
  35. package/dist/components/docs/index.cjs +10 -10
  36. package/dist/components/docs/skeletons.d.ts.map +1 -1
  37. package/dist/components/docs/skeletons.js +11 -1
  38. package/dist/components/embeds/index.cjs +7 -7
  39. package/dist/components/faq/index.cjs +8 -8
  40. package/dist/components/features/cards-strip.d.ts.map +1 -1
  41. package/dist/components/features/cards-strip.js +4 -1
  42. package/dist/components/features/index.cjs +6 -6
  43. package/dist/components/help-center-pages/index.cjs +83 -83
  44. package/dist/components/help-center-pages/trust-center-sections.js +1 -1
  45. package/dist/components/index.cjs +52 -52
  46. package/dist/components/meeting-scheduler/directory.d.ts.map +1 -1
  47. package/dist/components/meeting-scheduler/directory.js +3 -1
  48. package/dist/components/meeting-scheduler/index.cjs +41 -39
  49. package/dist/components/navigation/index.cjs +9 -9
  50. package/dist/components/onboarding-guides/index.cjs +9 -9
  51. package/dist/components/product-demo/fixtures/devices.d.ts.map +1 -1
  52. package/dist/components/product-demo/fixtures/devices.js +5 -12
  53. package/dist/components/product-demo/fixtures/shared.d.ts +89 -0
  54. package/dist/components/product-demo/fixtures/shared.d.ts.map +1 -1
  55. package/dist/components/product-demo/fixtures/shared.js +15 -0
  56. package/dist/components/product-demo/index.cjs +20 -20
  57. package/dist/components/product-demo/screens/devices-view.d.ts.map +1 -1
  58. package/dist/components/product-demo/screens/devices-view.js +3 -1
  59. package/dist/components/related-content/index.cjs +5 -5
  60. package/dist/components/shared/roadmap/roadmap-grid.d.ts.map +1 -1
  61. package/dist/components/shared/roadmap/roadmap-grid.js +15 -8
  62. package/dist/components/tickets/index.cjs +13 -13
  63. package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
  64. package/dist/components/ui/image-gallery-modal.js +7 -5
  65. package/dist/components/ui/index.cjs +6 -6
  66. package/dist/components/ui/snap-carousel.d.ts.map +1 -1
  67. package/dist/components/ui/snap-carousel.js +9 -12
  68. package/dist/{devices-MZQ4573H.cjs → devices-PEBUW34G.cjs} +12 -12
  69. package/dist/{embeddable-chat-QLJ2KSWT.cjs → embeddable-chat-54X3TTG4.cjs} +62 -62
  70. package/dist/index.cjs +10 -10
  71. package/dist/{knowledge-QZTFICLS.cjs → knowledge-KL4BP2YK.cjs} +11 -11
  72. package/dist/{logs-2YOR2SUA.cjs → logs-TO277M4F.cjs} +28 -28
  73. package/dist/{policies-KKFC4UOU.cjs → policies-6HSKMG4I.cjs} +13 -13
  74. package/dist/{remote-session-WKLEYACD.cjs → remote-session-4ZNTOLOQ.cjs} +5 -5
  75. package/dist/{scripts-UA46WAET.cjs → scripts-4IO2LPMY.cjs} +17 -17
  76. package/dist/{software-update-IN6TJL73.cjs → software-update-RMAWEZKX.cjs} +17 -17
  77. package/dist/{tickets-board-URMIIAKD.cjs → tickets-board-X4GHEKPB.cjs} +17 -17
  78. package/package.json +1 -1
  79. package/src/components/chat/ask-display.tsx +2 -4
  80. package/src/components/docs/skeletons.tsx +7 -1
  81. package/src/components/features/cards-strip.tsx +6 -2
  82. package/src/components/help-center-pages/trust-center-sections.tsx +1 -1
  83. package/src/components/meeting-scheduler/directory.tsx +6 -1
  84. package/src/components/product-demo/fixtures/devices.ts +5 -12
  85. package/src/components/product-demo/fixtures/shared.ts +20 -0
  86. package/src/components/product-demo/screens/devices-view.tsx +3 -0
  87. package/src/components/shared/roadmap/roadmap-grid.tsx +29 -7
  88. package/src/components/ui/image-gallery-modal.tsx +10 -7
  89. package/src/components/ui/snap-carousel.tsx +12 -11
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
 
4
4
 
5
- var _chunkSTEJZPIOcjs = require('./chunk-STEJZPIO.cjs');
5
+ var _chunkLHV2R6QUcjs = require('./chunk-LHV2R6QU.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
9
+ var _chunkFDZOE5TLcjs = require('./chunk-FDZOE5TL.cjs');
10
10
 
11
11
 
12
12
 
@@ -1844,8 +1844,8 @@ function buildTicketsBoardFixture(cast) {
1844
1844
  ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
1845
1845
  ticketNumber: "1051",
1846
1846
  agent: "fae",
1847
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.frontDesk.hostname],
1848
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.harbor.name,
1847
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.frontDesk.hostname],
1848
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.harbor.name,
1849
1849
  priority: "medium",
1850
1850
  hasNewMessage: true,
1851
1851
  activity: { kind: "ai-working" }
@@ -1853,7 +1853,7 @@ function buildTicketsBoardFixture(cast) {
1853
1853
  ticket("tk-1052", "New hire starts Monday", "ACTIVE", {
1854
1854
  ticketNumber: "1052",
1855
1855
  agent: "mingo",
1856
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
1856
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
1857
1857
  priority: "low",
1858
1858
  tags: ["onboarding"]
1859
1859
  })
@@ -1862,8 +1862,8 @@ function buildTicketsBoardFixture(cast) {
1862
1862
  ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
1863
1863
  ticketNumber: "1049",
1864
1864
  agent: "fae",
1865
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.mayaAir.hostname],
1866
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name,
1865
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.mayaAir.hostname],
1866
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name,
1867
1867
  priority: "high",
1868
1868
  assignees: [dana],
1869
1869
  pendingApproval: {
@@ -1875,8 +1875,8 @@ function buildTicketsBoardFixture(cast) {
1875
1875
  ticket("tk-1050", "VPN keeps dropping on the train", "TECH_REQUIRED", {
1876
1876
  ticketNumber: "1050",
1877
1877
  agent: "fae",
1878
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.samT14.hostname],
1879
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name,
1878
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.samT14.hostname],
1879
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name,
1880
1880
  priority: "medium",
1881
1881
  assignees: [alex],
1882
1882
  escalatedByUser: true
@@ -1885,7 +1885,7 @@ function buildTicketsBoardFixture(cast) {
1885
1885
  _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
1886
1886
  ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
1887
1887
  ticketNumber: "1046",
1888
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
1888
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.acme.name,
1889
1889
  priority: "low",
1890
1890
  assignees: [alex],
1891
1891
  activity: { kind: "waiting-external" }
@@ -1897,20 +1897,20 @@ function buildTicketsBoardFixture(cast) {
1897
1897
  ticket("tk-1048", "Slow laptop", "RESOLVED", {
1898
1898
  ticketNumber: "1048",
1899
1899
  agent: "fae",
1900
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.samT14.hostname],
1901
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name
1900
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.samT14.hostname],
1901
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name
1902
1902
  }),
1903
1903
  ticket("tk-1047", "Teams will not open", "RESOLVED", {
1904
1904
  ticketNumber: "1047",
1905
1905
  agent: "fae",
1906
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.mayaAir.hostname],
1907
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.northbridge.name
1906
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.mayaAir.hostname],
1907
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.northbridge.name
1908
1908
  }),
1909
1909
  ticket("tk-1045", "Turned the firewall back on", "RESOLVED", {
1910
1910
  ticketNumber: "1045",
1911
1911
  agent: "mingo",
1912
- deviceHostnames: [_chunkDKOLQPE7cjs.DEMO_DEVICES.leoThinkPad.hostname],
1913
- organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.harbor.name
1912
+ deviceHostnames: [_chunkFDZOE5TLcjs.DEMO_DEVICES.leoThinkPad.hostname],
1913
+ organizationName: _chunkFDZOE5TLcjs.DEMO_ORGANIZATIONS.harbor.name
1914
1914
  })
1915
1915
  ],
1916
1916
  { total: 14 }
@@ -1924,7 +1924,7 @@ var noop = () => {
1924
1924
  };
1925
1925
  var FOLDED = { ON_HOLD: true, RESOLVED: true };
1926
1926
  function TicketsBoardScreen({ compact = false }) {
1927
- const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
1927
+ const cast = _chunkLHV2R6QUcjs.useProductDemoCast.call(void 0, );
1928
1928
  const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
1929
1929
  const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
1930
1930
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQIWR4Q2cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.790",
3
+ "version": "0.0.792",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -73,8 +73,7 @@ const AskDisplay = forwardRef<HTMLDivElement, AskDisplayProps>(({ className, car
73
73
  size="icon-sm"
74
74
  type="button"
75
75
  aria-label="Previous question"
76
- disabled={index === 0}
77
- onClick={() => setIndex(current => Math.max(0, current - 1))}
76
+ onClick={() => setIndex(current => (current > 0 ? current - 1 : cards.length - 1))}
78
77
  >
79
78
  <Chevron02LeftIcon size={16} />
80
79
  </Button>
@@ -86,8 +85,7 @@ const AskDisplay = forwardRef<HTMLDivElement, AskDisplayProps>(({ className, car
86
85
  size="icon-sm"
87
86
  type="button"
88
87
  aria-label="Next question"
89
- disabled={index === cards.length - 1}
90
- onClick={() => setIndex(current => Math.min(cards.length - 1, current + 1))}
88
+ onClick={() => setIndex(current => (current < cards.length - 1 ? current + 1 : 0))}
91
89
  >
92
90
  <Chevron02RightIcon size={16} />
93
91
  </Button>
@@ -43,8 +43,14 @@ export function MarkdownSkeleton({
43
43
  <TextLineSkeleton type="inherit" as="span" className="w-1/3" />
44
44
  </h2>
45
45
  ) : (
46
+ // The last block ends the body with no margin, like the rendered one. Its own `last:mb-0` does not apply here:
47
+ // the region's status line follows the blocks, so the paragraph is not the last child.
46
48
  // biome-ignore lint/suspicious/noArrayIndexKey: skeleton blocks never reorder
47
- <p key={i} className={MARKDOWN_SKELETON_P_CLASS} aria-hidden>
49
+ <p
50
+ key={i}
51
+ className={cn(MARKDOWN_SKELETON_P_CLASS, i === MARKDOWN_SKELETON_BLOCKS.length - 1 && 'mb-0')}
52
+ aria-hidden
53
+ >
48
54
  <TextLineSkeleton type="inherit" as="span" lines={block.lines} className="w-full" />
49
55
  </p>
50
56
  ),
@@ -726,8 +726,12 @@ export function CardsStrip<T = unknown>(props: CardsStripProps<T>): React.ReactE
726
726
  // moves right) is a step BACK along the engine's axis.
727
727
  glideBy((reverse ? -dir : dir) * step);
728
728
  } else {
729
- // No clones/seam without the marquee — native smooth scroll is safe.
730
- scroller.scrollBy({ left: dir * step, behavior: 'smooth' });
729
+ // No clones/seam without the marquee — native smooth scroll is safe. The arrows loop like the marquee does:
730
+ // next at the track's end goes back to its start, previous at the start goes to its end.
731
+ const maxScroll = scroller.scrollWidth - scroller.clientWidth;
732
+ if (dir === 1 && scroller.scrollLeft >= maxScroll - 1) scroller.scrollTo({ left: 0, behavior: 'smooth' });
733
+ else if (dir === -1 && scroller.scrollLeft <= 1) scroller.scrollTo({ left: maxScroll, behavior: 'smooth' });
734
+ else scroller.scrollBy({ left: dir * step, behavior: 'smooth' });
731
735
  }
732
736
  },
733
737
  [glideBy, reverse],
@@ -662,7 +662,7 @@ const TRUST_PANEL_SHAPES: Record<
662
662
  compliance: { mark: 'logo', action: 'badge', lines: { phone: 4, wide: 1 } },
663
663
  documents: { mark: 'glyph', action: 'button', lines: { phone: 1, wide: 1 } },
664
664
  subprocessors: { mark: 'glyph', action: 'none', lines: { phone: 1, wide: 1 } },
665
- ai: { mark: 'glyph', action: 'none', lines: { phone: 6, wide: 2 } },
665
+ ai: { mark: 'glyph', action: 'none', lines: { phone: 7, wide: 2 } },
666
666
  };
667
667
 
668
668
  /**
@@ -144,6 +144,10 @@ function DirectoryRow({
144
144
  );
145
145
  }
146
146
 
147
+ const NO_HOSTS: SchedulingLink['hosts'] = [];
148
+ /** Hosts a loading row draws: a typical link's (measured 2026-10: every public link has one host). */
149
+ const TYPICAL_HOSTS = 1;
150
+
147
151
  /**
148
152
  * Same-shell loading row (co-located-skeleton convention): the row's frame, "Next available" and the chevron box
149
153
  * real, the title, subtitle, audience chip, hosts and next time as shapes.
@@ -156,7 +160,8 @@ function MeetingSchedulerDirectoryRowSkeleton(props: { [marker: `data-${string}`
156
160
  <TextLineSkeleton type="h6" className="w-1/3" />
157
161
  </div>
158
162
  <UnifiedSkeleton className="hidden h-6 w-28 shrink-0 content-sm:block" />
159
- <UnifiedSkeleton className="h-10 w-10 shrink-0 rounded-full" />
163
+ {/* The hosts in the stack's own loading form: one face, the typical link's host count. */}
164
+ <AvatarStack people={NO_HOSTS} loading max={TYPICAL_HOSTS} size="md" label="Hosts" className="flex shrink-0" />
160
165
  <div className={ROW_NEXT_COLUMN_CLASS}>
161
166
  <p className={ROW_NEXT_LABEL_CLASS}>Next available</p>
162
167
  <TextLineSkeleton type="h6" className="w-32" />
@@ -1,6 +1,6 @@
1
1
  import type { DeviceFilters, DeviceRow } from '../../features/devices';
2
2
  import type { DemoCast } from '../cast';
3
- import { DEMO_DEVICES, demoMinutesAgo } from './shared';
3
+ import { type DEMO_DEVICES, DEMO_FLEET, DEMO_FLEET_SEARCH_OS, demoMinutesAgo } from './shared';
4
4
 
5
5
  type DemoDevice = (typeof DEMO_DEVICES)[keyof typeof DEMO_DEVICES];
6
6
 
@@ -48,16 +48,9 @@ export interface DevicesFixture {
48
48
 
49
49
  /** The fleet of the three demo customers on an ordinary morning: a mix of states, one desktop offline since last night. */
50
50
  export function buildDevicesFixture(cast: DemoCast): DevicesFixture {
51
- const devices: DeviceRow[] = [
52
- device(cast, DEMO_DEVICES.frontDesk, 'laptop', 'ONLINE', 2),
53
- device(cast, DEMO_DEVICES.reception, 'desktop', 'OFFLINE', 190),
54
- device(cast, DEMO_DEVICES.mayaAir, 'laptop', 'ONLINE', 1),
55
- device(cast, DEMO_DEVICES.buildServer, 'server', 'ONLINE', 1),
56
- device(cast, DEMO_DEVICES.leoThinkPad, 'laptop', 'OFFLINE', 64),
57
- device(cast, DEMO_DEVICES.samT14, 'laptop', 'ONLINE', 3),
58
- device(cast, DEMO_DEVICES.jenSurface, 'laptop', 'ONLINE', 6),
59
- device(cast, DEMO_DEVICES.priyaXps, 'laptop', 'ONLINE', 2),
60
- ];
51
+ const devices: DeviceRow[] = DEMO_FLEET.map(entry =>
52
+ device(cast, entry.device, entry.type, entry.status, entry.lastSeenMinutesAgo),
53
+ );
61
54
  const deviceFilters: DeviceFilters = {
62
55
  statuses: countBy(devices, row => row.status),
63
56
  deviceTypes: countBy(devices, row => row.type),
@@ -75,7 +68,7 @@ export function buildDevicesFixture(cast: DemoCast): DevicesFixture {
75
68
  /** The fleet narrowed to its Windows devices, the way the list answers that search. */
76
69
  export function buildWindowsDevicesFixture(cast: DemoCast): DevicesFixture {
77
70
  const fleet = buildDevicesFixture(cast);
78
- const devices = fleet.devices.filter(row => row.osType === 'WINDOWS');
71
+ const devices = fleet.devices.filter(row => row.osType === DEMO_FLEET_SEARCH_OS);
79
72
  return {
80
73
  devices,
81
74
  deviceFilters: { ...fleet.deviceFilters, filteredCount: devices.length },
@@ -42,6 +42,26 @@ export const DEMO_DEVICES = {
42
42
  warehouse: { id: 'device-warehouse', hostname: 'WAREHOUSE-PC03', os: 'WINDOWS', organization: 'acme' },
43
43
  } as const;
44
44
 
45
+ /**
46
+ * The fleet the Devices screen lists, in its order: each device with its kind, its status and how long ago it was
47
+ * seen. The fixture builds its rows from it, and the screen's loading state counts its rows from it, so the two
48
+ * always draw the same number of rows.
49
+ */
50
+ export const DEMO_FLEET = [
51
+ { device: DEMO_DEVICES.frontDesk, type: 'laptop', status: 'ONLINE', lastSeenMinutesAgo: 2 },
52
+ { device: DEMO_DEVICES.reception, type: 'desktop', status: 'OFFLINE', lastSeenMinutesAgo: 190 },
53
+ { device: DEMO_DEVICES.mayaAir, type: 'laptop', status: 'ONLINE', lastSeenMinutesAgo: 1 },
54
+ { device: DEMO_DEVICES.buildServer, type: 'server', status: 'ONLINE', lastSeenMinutesAgo: 1 },
55
+ { device: DEMO_DEVICES.leoThinkPad, type: 'laptop', status: 'OFFLINE', lastSeenMinutesAgo: 64 },
56
+ { device: DEMO_DEVICES.samT14, type: 'laptop', status: 'ONLINE', lastSeenMinutesAgo: 3 },
57
+ { device: DEMO_DEVICES.jenSurface, type: 'laptop', status: 'ONLINE', lastSeenMinutesAgo: 6 },
58
+ { device: DEMO_DEVICES.priyaXps, type: 'laptop', status: 'ONLINE', lastSeenMinutesAgo: 2 },
59
+ ] as const;
60
+
61
+ /** The OS the Devices screen's search answers, and how many fleet devices run it (the rows the search shows). */
62
+ export const DEMO_FLEET_SEARCH_OS = 'WINDOWS';
63
+ export const DEMO_FLEET_SEARCH_ROWS = DEMO_FLEET.filter(entry => entry.device.os === DEMO_FLEET_SEARCH_OS).length;
64
+
45
65
  /**
46
66
  * A fixed "now" for relative times, so a screen reads the same on every render
47
67
  * and never drifts between the server and the browser.
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { DevicesPanelView, type DeviceFilters, type DeviceRow, IDLE_DEVICES_TOOLBAR } from '../../features/devices';
4
+ import { DEMO_FLEET_SEARCH_ROWS } from '../fixtures/shared';
4
5
 
5
6
  /** What the Devices page shows for a search: the query in the field and the rows that answer it. */
6
7
  export const DEVICES_SEARCH_QUERY = 'Windows';
@@ -52,6 +53,8 @@ export function DevicesScreenView({
52
53
  hideColumns={compact ? HIDDEN_WHEN_COMPACT : undefined}
53
54
  loading={loading}
54
55
  loadingRegion={false}
56
+ // The page is the search's answer: its rows, loading and loaded (never the product's page size).
57
+ pageSize={DEMO_FLEET_SEARCH_ROWS}
55
58
  />
56
59
  </div>
57
60
  );
@@ -32,7 +32,7 @@ import { EmptyState } from '../../empty-state';
32
32
  import { LoadingRegion } from '../../loading/loading-region';
33
33
  import { TextLineSkeleton } from '../../loading/unified-skeleton';
34
34
  import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '../../ui';
35
- import { useLoadingScope } from '../../ui/loading-scope';
35
+ import { LoadingItems, useLoadingScope } from '../../ui/loading-scope';
36
36
  import { useRoadmapVoting, type UseRoadmapVotingOptions } from './use-roadmap-voting';
37
37
 
38
38
  /**
@@ -234,8 +234,26 @@ const QUARTER_CONTENT_CLASS = 'pt-4';
234
234
  const QUARTER_CONTENT_INNER_CLASS = 'pb-4';
235
235
 
236
236
  /**
237
- * The quarter-grouped grid while its items are read: one quarter, its heading and item count as bars, then the
238
- * grid's card skeletons.
237
+ * Collapsed past quarters the grouped grid draws while its items are read, before the open one: a TYPICAL count
238
+ * (measured on the live roadmap, 2026-10: four past quarters older than the ones kept open). The loaded grid shows
239
+ * every quarter older than `quartersToKeepClosed` collapsed (`computeDefaultExpandedQuarters`), so its first quarters
240
+ * are heads only.
241
+ */
242
+ const ROADMAP_SKELETON_CLOSED_QUARTERS = 4;
243
+
244
+ /** A collapsed quarter while it is read: its heading and item count as bars, nothing under them. */
245
+ function RoadmapQuarterHeadSkeleton() {
246
+ return (
247
+ <div className={QUARTER_HEAD_CLASS}>
248
+ <TextLineSkeleton type="h2" className="w-40" />
249
+ <TextLineSkeleton type="h6" className="w-16" />
250
+ </div>
251
+ );
252
+ }
253
+
254
+ /**
255
+ * The quarter-grouped grid while its items are read, in the loaded grid's shape: the collapsed past quarters (heads
256
+ * only), then one open quarter, its head and the grid's card skeletons.
239
257
  */
240
258
  function RoadmapGridQuarterSkeleton({
241
259
  showLeftMargin = true,
@@ -249,11 +267,15 @@ function RoadmapGridQuarterSkeleton({
249
267
  }) {
250
268
  return (
251
269
  <div className={QUARTER_LIST_CLASS} aria-hidden>
270
+ <LoadingItems count={ROADMAP_SKELETON_CLOSED_QUARTERS}>
271
+ {() => (
272
+ <div data-loading-item>
273
+ <RoadmapQuarterHeadSkeleton />
274
+ </div>
275
+ )}
276
+ </LoadingItems>
252
277
  <div className="flex flex-col" data-loading-item>
253
- <div className={QUARTER_HEAD_CLASS}>
254
- <TextLineSkeleton type="h2" className="w-40" />
255
- <TextLineSkeleton type="h6" className="w-16" />
256
- </div>
278
+ <RoadmapQuarterHeadSkeleton />
257
279
  {/* The quarter's content box: the `AccordionContent` padding (`pt-4` here, the content's own `pb-4` inside). */}
258
280
  <div className={QUARTER_CONTENT_CLASS}>
259
281
  <div className={QUARTER_CONTENT_INNER_CLASS}>
@@ -35,12 +35,13 @@ export function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }:
35
35
  // the modal opens/closes or the gallery length changes, instead of on every
36
36
  // arrow press.
37
37
  const imageCount = images.length;
38
+ // The arrows (and the arrow keys) loop: back from the first image is the last, next from the last is the first.
38
39
  const goToPreviousImage = useCallback(() => {
39
- setSelectedImageIndex(i => (i > 0 ? i - 1 : i));
40
- }, []);
40
+ setSelectedImageIndex(i => (i > 0 ? i - 1 : imageCount - 1));
41
+ }, [imageCount]);
41
42
 
42
43
  const goToNextImage = useCallback(() => {
43
- setSelectedImageIndex(i => (i < imageCount - 1 ? i + 1 : i));
44
+ setSelectedImageIndex(i => (i < imageCount - 1 ? i + 1 : 0));
44
45
  }, [imageCount]);
45
46
 
46
47
  // `onClose` is a prop and is almost always written inline; through a ref the
@@ -86,28 +87,30 @@ export function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }:
86
87
  {/* Navigation Buttons */}
87
88
  {images.length > 1 && (
88
89
  <>
89
- {selectedImageIndex > 0 && (
90
+ {
90
91
  <div className="absolute left-4 top-1/2 z-[10000] -translate-y-1/2">
91
92
  <Button
92
93
  variant="transparent"
93
94
  size="small-legacy"
95
+ aria-label="Previous image"
94
96
  onClick={goToPreviousImage}
95
97
  className="rounded-full bg-black/50 p-2 text-white hover:bg-black/70"
96
98
  leftIcon={<ChevronLeft className="h-6 w-6" />}
97
99
  />
98
100
  </div>
99
- )}
100
- {selectedImageIndex < images.length - 1 && (
101
+ }
102
+ {
101
103
  <div className="absolute right-4 top-1/2 z-[10000] -translate-y-1/2">
102
104
  <Button
103
105
  variant="transparent"
104
106
  size="small-legacy"
107
+ aria-label="Next image"
105
108
  onClick={goToNextImage}
106
109
  className="rounded-full bg-black/50 p-2 text-white hover:bg-black/70"
107
110
  leftIcon={<ChevronRight className="h-6 w-6" />}
108
111
  />
109
112
  </div>
110
- )}
113
+ }
111
114
  </>
112
115
  )}
113
116
 
@@ -118,15 +118,10 @@ export function SnapCarouselControls({
118
118
  <StepArrowButton
119
119
  direction="previous"
120
120
  aria-label={prevLabel}
121
- disabled={loading || index === 0}
121
+ disabled={loading || count < 2}
122
122
  onClick={onPrevious}
123
123
  />
124
- <StepArrowButton
125
- direction="next"
126
- aria-label={nextLabel}
127
- disabled={loading || index === count - 1}
128
- onClick={onNext}
129
- />
124
+ <StepArrowButton direction="next" aria-label={nextLabel} disabled={loading || count < 2} onClick={onNext} />
130
125
  </div>
131
126
  );
132
127
  }
@@ -249,14 +244,20 @@ export function SnapCarousel<T>({
249
244
  setIndex(atEnd ? count - 1 : Math.min(count - 1, Math.round(track.scrollLeft / step)));
250
245
  }, [count, slideStep]);
251
246
 
252
- // Back one slide from where the track stands: at the end the index is the last slide, which sits further right
253
- // than the track can scroll, so stepping back from the index alone would not move it.
247
+ // The arrows loop like auto-advance: back from the first slide is the last, next from the last is the first.
248
+ // Back steps from where the track stands: at the end the index is the last slide, which sits further right than
249
+ // the track can scroll, so stepping back from the index alone would not move it.
254
250
  const goBack = useCallback(() => {
255
251
  const track = trackRef.current;
256
252
  const step = slideStep();
257
253
  if (!track || step === 0) return;
254
+ if (index === 0) {
255
+ goTo(count - 1);
256
+ return;
257
+ }
258
258
  goTo(Math.min(index, Math.round(track.scrollLeft / step)) - 1);
259
- }, [goTo, index, slideStep]);
259
+ }, [count, goTo, index, slideStep]);
260
+ const goNext = useCallback(() => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
260
261
 
261
262
  const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
262
263
  const playing = auto.playing && canAutoAdvance;
@@ -311,7 +312,7 @@ export function SnapCarousel<T>({
311
312
  prevLabel={prevLabel}
312
313
  nextLabel={nextLabel}
313
314
  onPrevious={goBack}
314
- onNext={() => goTo(index + 1)}
315
+ onNext={goNext}
315
316
  wait={showsWait ? { durationMs: autoAdvanceMs, ranMs, running: playing } : null}
316
317
  announce={!playing}
317
318
  />