@flamingo-stack/openframe-frontend-core 0.0.802 → 0.0.804

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 (247) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-K6HYMHL6.cjs → case-study-card-MEWJNF4N.cjs} +5 -5
  3. package/dist/{chunk-DSIIRR3G.cjs → chunk-2NVIGBJC.cjs} +80 -80
  4. package/dist/{chunk-HRMLGU6A.cjs → chunk-3EPG56RK.cjs} +8 -8
  5. package/dist/{chunk-UYGXJ5SQ.cjs → chunk-3WNCFZGN.cjs} +2 -2
  6. package/dist/{chunk-2JCY5KQL.cjs → chunk-4W77VLQV.cjs} +4 -4
  7. package/dist/{chunk-M7E7ILE5.cjs → chunk-55TGW6BF.cjs} +6 -6
  8. package/dist/{chunk-E56LN23H.cjs → chunk-66ZQ7LDR.cjs} +73 -48
  9. package/dist/{chunk-VMQAJIQC.cjs → chunk-6JRQ57DU.cjs} +884 -895
  10. package/dist/{chunk-A7NRENMU.cjs → chunk-6UGNFMZB.cjs} +36 -36
  11. package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
  12. package/dist/{chunk-NCQJIYDN.cjs → chunk-AC5EBHAX.cjs} +28 -28
  13. package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
  14. package/dist/{chunk-D3IQHAGL.cjs → chunk-BVSZTKI3.cjs} +34 -21
  15. package/dist/{chunk-7E4BC3AF.cjs → chunk-F2VN3UUB.cjs} +485 -513
  16. package/dist/{chunk-DTBIIFZG.cjs → chunk-FLW2VL5W.cjs} +21 -21
  17. package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
  18. package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
  19. package/dist/{chunk-7MV23NNT.cjs → chunk-JLKGLPDC.cjs} +109 -21
  20. package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
  21. package/dist/{chunk-52NI57KM.cjs → chunk-LZIQXGAW.cjs} +91 -88
  22. package/dist/{chunk-DYDS2P5G.cjs → chunk-MEDSJCEX.cjs} +4 -4
  23. package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
  24. package/dist/{chunk-CRVXQYUZ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
  25. package/dist/{chunk-YD344MMX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
  26. package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
  27. package/dist/{chunk-75BFVMNA.cjs → chunk-QPBP7FKI.cjs} +52 -52
  28. package/dist/{chunk-ZPVFFPQM.cjs → chunk-RIRIA3FO.cjs} +4 -4
  29. package/dist/{chunk-XR323UBY.cjs → chunk-STLJCAIZ.cjs} +6 -3
  30. package/dist/{chunk-6UKH22NQ.cjs → chunk-TGOJHOQR.cjs} +2 -1
  31. package/dist/{chunk-FAUVDMH4.cjs → chunk-THY2XVGY.cjs} +198 -164
  32. package/dist/{chunk-6GCXQIUU.cjs → chunk-TT64NRFU.cjs} +4 -4
  33. package/dist/{chunk-3W2PBWD5.cjs → chunk-TTERV57X.cjs} +4 -4
  34. package/dist/{chunk-A7IT7MZO.cjs → chunk-UCBR27JM.cjs} +13 -13
  35. package/dist/{chunk-KVGWOJCX.cjs → chunk-V3T5MDJV.cjs} +2 -2
  36. package/dist/{chunk-5RGGUQ4Y.cjs → chunk-VXXOUM2K.cjs} +67 -1
  37. package/dist/{chunk-EJVJDLYC.cjs → chunk-WSKMV2QS.cjs} +3 -3
  38. package/dist/{chunk-2BUSXRZ7.cjs → chunk-XXARXK62.cjs} +26 -26
  39. package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
  40. package/dist/{chunk-YMPCACQX.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
  41. package/dist/{cloud-tenants-3SWYRUXB.cjs → cloud-tenants-LRXMISV4.cjs} +19 -19
  42. package/dist/components/agent-mark.d.ts.map +1 -1
  43. package/dist/components/agent-mark.js +2 -2
  44. package/dist/components/case-studies/index.cjs +35 -35
  45. package/dist/components/chat/approval-batch-message.d.ts +3 -1
  46. package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
  47. package/dist/components/chat/approval-batch-message.js +88 -0
  48. package/dist/components/chat/chat-composer.d.ts +3 -1
  49. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  50. package/dist/components/chat/chat-composer.js +2 -0
  51. package/dist/components/chat/chat-context-memory-bar.d.ts +7 -1
  52. package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
  53. package/dist/components/chat/chat-context-memory-bar.js +11 -5
  54. package/dist/components/chat/chat-message-row.d.ts.map +1 -1
  55. package/dist/components/chat/chat-message-row.js +3 -2
  56. package/dist/components/chat/embeddable-chat.d.ts +3 -0
  57. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  58. package/dist/components/chat/embeddable-chat.js +1 -0
  59. package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
  60. package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
  61. package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
  62. package/dist/components/chat/entity-cards/blog-card.js +6 -6
  63. package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts.map +1 -1
  64. package/dist/components/chat/entity-cards/blog-image-placeholder.js +2 -1
  65. package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
  66. package/dist/components/chat/entity-cards/case-study-card.js +10 -9
  67. package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
  68. package/dist/components/chat/entity-cards/customer-interview-card.js +8 -7
  69. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  70. package/dist/components/chat/entity-cards/dispatch.js +12 -1
  71. package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
  72. package/dist/components/chat/entity-cards/employee-entry-card.js +3 -2
  73. package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
  74. package/dist/components/chat/entity-cards/entity-portrait-card.js +7 -5
  75. package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
  76. package/dist/components/chat/entity-cards/investor-update-card.js +2 -1
  77. package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
  78. package/dist/components/chat/entity-cards/onboarding-guide-card.js +13 -2
  79. package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
  80. package/dist/components/chat/entity-cards/program-card.js +17 -5
  81. package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
  82. package/dist/components/chat/entity-cards/roadmap-card.js +5 -4
  83. package/dist/components/chat/index.cjs +15 -15
  84. package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
  85. package/dist/components/chat/mingo-info-card.js +3 -2
  86. package/dist/components/contact/index.cjs +20 -20
  87. package/dist/components/docs/index.cjs +23 -23
  88. package/dist/components/embeds/index.cjs +20 -20
  89. package/dist/components/embeds/markdown-image.d.ts.map +1 -1
  90. package/dist/components/embeds/markdown-image.js +2 -1
  91. package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
  92. package/dist/components/embeds/og-link-preview.js +17 -6
  93. package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
  94. package/dist/components/embeds/twitter-embed-client.js +3 -2
  95. package/dist/components/faq/index.cjs +21 -21
  96. package/dist/components/features/board/ticket-card.js +5 -5
  97. package/dist/components/features/index.cjs +19 -19
  98. package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
  99. package/dist/components/features/media-gallery-manager.js +2 -1
  100. package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
  101. package/dist/components/features/notifications/notification-tile.js +3 -2
  102. package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
  103. package/dist/components/features/parallax-image-showcase.js +9 -35
  104. package/dist/components/features/select-button.d.ts.map +1 -1
  105. package/dist/components/features/select-button.js +3 -2
  106. package/dist/components/features/video-hover-preview.d.ts +1 -1
  107. package/dist/components/features/video-hover-preview.d.ts.map +1 -1
  108. package/dist/components/features/video-hover-preview.js +2 -1
  109. package/dist/components/features/video.d.ts.map +1 -1
  110. package/dist/components/features/video.js +13 -1
  111. package/dist/components/features/walkthrough-video.d.ts.map +1 -1
  112. package/dist/components/features/walkthrough-video.js +3 -3
  113. package/dist/components/help-center-pages/index.cjs +121 -121
  114. package/dist/components/hero-image-uploader.d.ts.map +1 -1
  115. package/dist/components/hero-image-uploader.js +12 -1
  116. package/dist/components/icon-display.d.ts.map +1 -1
  117. package/dist/components/icon-display.js +2 -1
  118. package/dist/components/index.cjs +137 -91
  119. package/dist/components/layout/page-layout.d.ts +1 -1
  120. package/dist/components/layout/page-layout.d.ts.map +1 -1
  121. package/dist/components/layout/title-block.d.ts +4 -2
  122. package/dist/components/layout/title-block.d.ts.map +1 -1
  123. package/dist/components/layout/title-block.js +21 -2
  124. package/dist/components/media-carousel.d.ts.map +1 -1
  125. package/dist/components/media-carousel.js +2 -1
  126. package/dist/components/meeting-scheduler/index.cjs +85 -85
  127. package/dist/components/navigation/index.cjs +22 -22
  128. package/dist/components/onboarding-guides/index.cjs +22 -22
  129. package/dist/components/platform/ScriptInfoSection.d.ts.map +1 -1
  130. package/dist/components/platform/ScriptInfoSection.js +12 -1
  131. package/dist/components/product-demo/index.cjs +30 -30
  132. package/dist/components/related-content/index.cjs +11 -11
  133. package/dist/components/shared/media-gallery-strip.d.ts.map +1 -1
  134. package/dist/components/shared/media-gallery-strip.js +3 -2
  135. package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
  136. package/dist/components/shared/product-release/product-release-card.js +13 -2
  137. package/dist/components/tickets/index.cjs +26 -26
  138. package/dist/components/ui/avatar-stack.d.ts.map +1 -1
  139. package/dist/components/ui/avatar-stack.js +4 -4
  140. package/dist/components/ui/data-table/data-table-body.d.ts +6 -1
  141. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  142. package/dist/components/ui/data-table/data-table-body.js +3 -1
  143. package/dist/components/ui/device-card.d.ts +6 -1
  144. package/dist/components/ui/device-card.d.ts.map +1 -1
  145. package/dist/components/ui/device-card.js +2 -1
  146. package/dist/components/ui/entity-image.d.ts.map +1 -1
  147. package/dist/components/ui/entity-image.js +3 -2
  148. package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
  149. package/dist/components/ui/image-gallery-modal.js +2 -1
  150. package/dist/components/ui/image-uploader.d.ts.map +1 -1
  151. package/dist/components/ui/image-uploader.js +2 -1
  152. package/dist/components/ui/index.cjs +37 -19
  153. package/dist/components/ui/index.d.ts +1 -0
  154. package/dist/components/ui/index.d.ts.map +1 -1
  155. package/dist/components/ui/index.js +1 -0
  156. package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
  157. package/dist/components/ui/markdown/base-components.js +2 -1
  158. package/dist/components/ui/page-actions.d.ts.map +1 -1
  159. package/dist/components/ui/page-actions.js +15 -12
  160. package/dist/components/ui/photo-wall.d.ts +7 -3
  161. package/dist/components/ui/photo-wall.d.ts.map +1 -1
  162. package/dist/components/ui/photo-wall.js +3 -4
  163. package/dist/components/ui/square-avatar.d.ts +4 -1
  164. package/dist/components/ui/square-avatar.d.ts.map +1 -1
  165. package/dist/components/ui/square-avatar.js +2 -1
  166. package/dist/components/user-summary-stub.d.ts +1 -1
  167. package/dist/components/user-summary-stub.d.ts.map +1 -1
  168. package/dist/components/user-summary-stub.js +16 -6
  169. package/dist/components/vendor-display-button.d.ts.map +1 -1
  170. package/dist/components/vendor-display-button.js +13 -3
  171. package/dist/components/vendor-icon.d.ts +7 -4
  172. package/dist/components/vendor-icon.d.ts.map +1 -1
  173. package/dist/components/vendor-icon.js +22 -71
  174. package/dist/{devices-MQILRW53.cjs → devices-CETR72XY.cjs} +20 -20
  175. package/dist/{embeddable-chat-XZDZOHFY.cjs → embeddable-chat-GHBCX2BY.cjs} +85 -84
  176. package/dist/hooks/index.cjs +6 -6
  177. package/dist/hooks/ui/use-image-edge-color.d.ts.map +1 -1
  178. package/dist/hooks/ui/use-image-edge-color.js +4 -3
  179. package/dist/image-sizes.cjs +68 -0
  180. package/dist/index.cjs +43 -25
  181. package/dist/{knowledge-WQ3ABXZC.cjs → knowledge-A2MWEF23.cjs} +20 -20
  182. package/dist/{logs-XRSJGB3I.cjs → logs-47JODA6C.cjs} +27 -27
  183. package/dist/{policies-Q67ZXAGY.cjs → policies-OPIDR6XF.cjs} +23 -23
  184. package/dist/{remote-session-4LYKEZSY.cjs → remote-session-IQTPEG63.cjs} +8 -8
  185. package/dist/{scripts-YX324R4S.cjs → scripts-4MQGJWFP.cjs} +26 -26
  186. package/dist/{software-update-PHMXJVAC.cjs → software-update-MQIGPBZ6.cjs} +23 -23
  187. package/dist/styles/image-sizes.d.ts +110 -0
  188. package/dist/styles/image-sizes.d.ts.map +1 -0
  189. package/dist/styles/image-sizes.js +66 -0
  190. package/dist/{tickets-board-3FBVYSXR.cjs → tickets-board-QF5JNSH2.cjs} +11 -11
  191. package/eslint-config/base.js +12 -0
  192. package/eslint-config/image-sizes.js +51 -0
  193. package/package.json +8 -1
  194. package/src/components/agent-mark.tsx +3 -4
  195. package/src/components/chat/approval-batch-message.tsx +109 -1
  196. package/src/components/chat/chat-composer.tsx +4 -0
  197. package/src/components/chat/chat-context-memory-bar.tsx +28 -5
  198. package/src/components/chat/chat-message-row.tsx +3 -2
  199. package/src/components/chat/embeddable-chat.tsx +4 -0
  200. package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
  201. package/src/components/chat/entity-cards/blog-card.tsx +6 -6
  202. package/src/components/chat/entity-cards/blog-image-placeholder.tsx +2 -1
  203. package/src/components/chat/entity-cards/case-study-card.tsx +10 -9
  204. package/src/components/chat/entity-cards/customer-interview-card.tsx +8 -7
  205. package/src/components/chat/entity-cards/dispatch.tsx +9 -1
  206. package/src/components/chat/entity-cards/employee-entry-card.tsx +3 -2
  207. package/src/components/chat/entity-cards/entity-portrait-card.tsx +7 -5
  208. package/src/components/chat/entity-cards/investor-update-card.tsx +2 -1
  209. package/src/components/chat/entity-cards/onboarding-guide-card.tsx +10 -2
  210. package/src/components/chat/entity-cards/program-card.tsx +14 -5
  211. package/src/components/chat/entity-cards/roadmap-card.tsx +5 -4
  212. package/src/components/chat/mingo-info-card.tsx +3 -2
  213. package/src/components/embeds/markdown-image.tsx +2 -1
  214. package/src/components/embeds/og-link-preview.tsx +14 -6
  215. package/src/components/embeds/twitter-embed-client.tsx +3 -2
  216. package/src/components/features/board/ticket-card.tsx +7 -6
  217. package/src/components/features/media-gallery-manager.tsx +2 -2
  218. package/src/components/features/notifications/notification-tile.tsx +3 -2
  219. package/src/components/features/parallax-image-showcase.tsx +9 -26
  220. package/src/components/features/select-button.tsx +3 -2
  221. package/src/components/features/video-hover-preview.tsx +3 -2
  222. package/src/components/features/video.tsx +10 -1
  223. package/src/components/features/walkthrough-video.tsx +7 -10
  224. package/src/components/hero-image-uploader.tsx +9 -1
  225. package/src/components/icon-display.tsx +2 -1
  226. package/src/components/layout/page-layout.tsx +1 -1
  227. package/src/components/layout/title-block.tsx +22 -3
  228. package/src/components/media-carousel.tsx +2 -1
  229. package/src/components/platform/ScriptInfoSection.tsx +9 -1
  230. package/src/components/shared/media-gallery-strip.tsx +4 -2
  231. package/src/components/shared/product-release/product-release-card.tsx +10 -2
  232. package/src/components/ui/avatar-stack.tsx +6 -6
  233. package/src/components/ui/data-table/data-table-body.tsx +9 -0
  234. package/src/components/ui/device-card.tsx +7 -1
  235. package/src/components/ui/entity-image.tsx +3 -2
  236. package/src/components/ui/image-gallery-modal.tsx +2 -1
  237. package/src/components/ui/image-uploader.tsx +2 -1
  238. package/src/components/ui/index.ts +1 -0
  239. package/src/components/ui/markdown/base-components.tsx +2 -1
  240. package/src/components/ui/page-actions.tsx +28 -14
  241. package/src/components/ui/photo-wall.tsx +10 -14
  242. package/src/components/ui/square-avatar.tsx +6 -3
  243. package/src/components/user-summary-stub.tsx +14 -7
  244. package/src/components/vendor-display-button.tsx +10 -3
  245. package/src/components/vendor-icon.tsx +31 -97
  246. package/src/hooks/ui/use-image-edge-color.ts +8 -4
  247. package/src/styles/image-sizes.ts +114 -0
@@ -3,6 +3,7 @@
3
3
  import { useState, useEffect, useRef } from 'react';
4
4
  import Image from '../../embed-shims/next-image';
5
5
  import Link from '../../embed-shims/next-link';
6
+ import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
6
7
  import { renderedLinkRel } from '../../utils/markdown-link';
7
8
  import { socialCache } from '../../utils/social-embed-cache';
8
9
  import { XLogoIcon } from '../icons-v2-generated/brand-logos/x-logo-icon';
@@ -248,8 +249,8 @@ export function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }: Twitte
248
249
  src={getProfilePicUrl(username)}
249
250
  alt={`${tweetData.author_name} profile picture`}
250
251
  className="h-full w-full object-cover"
251
- width={32}
252
- height={32}
252
+ width={AVATAR_SIZE_PX.sm}
253
+ height={AVATAR_SIZE_PX.sm}
253
254
  unoptimized
254
255
  onError={e => {
255
256
  // Simple fallback without state updates
@@ -619,8 +619,9 @@ function TicketTagRow({ tags }: { tags: string[] }) {
619
619
 
620
620
  /**
621
621
  * A board card while it is read: the card's own shell, its title and device lines as bars of their own type steps,
622
- * the priority and assignee marks, a typical tag row and the number and time line, in the body's order. The board card draws it itself (`ticket={null}` or a
623
- * loading scope).
622
+ * the priority and assignee marks, the number and time line and the activity line ("No activity for 2 days"), in the
623
+ * body's order. A typical card has no tags (none of 70 measured tickets had one) and does have an activity line (every
624
+ * one did). The board card draws it itself (`ticket={null}` or a loading scope).
624
625
  */
625
626
  function TicketCardSkeleton({ className, ...props }: { className?: string; [key: `data-${string}`]: unknown }) {
626
627
  return (
@@ -638,11 +639,11 @@ function TicketCardSkeleton({ className, ...props }: { className?: string; [key:
638
639
  <UnifiedSkeleton className="size-8 rounded-full" />
639
640
  </div>
640
641
  </div>
641
- <div className="flex h-8 items-start gap-[var(--spacing-system-xxs)]">
642
- <Tag loading label="" />
643
- <Tag loading label="" />
644
- </div>
645
642
  <TextLineSkeleton type="h6" className={cn(TICKET_CARD_META_CLASS, 'w-1/3')} />
643
+ <div className="flex items-center gap-[var(--spacing-system-xxs)] text-h6">
644
+ <UnifiedSkeleton className="size-4 shrink-0 rounded-sm" />
645
+ <TextLineSkeleton type="inherit" className="w-1/2" />
646
+ </div>
646
647
  </div>
647
648
  );
648
649
  }
@@ -4,6 +4,7 @@ import { Upload, Image as ImageIcon, Video as VideoIcon, Trash2, Loader2, GripVe
4
4
  import type React from 'react';
5
5
  import { useCallback, useEffect, useRef, useState } from 'react';
6
6
  import Image from '../../embed-shims/next-image';
7
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
7
8
  import { cn } from '../../utils/cn';
8
9
  import {
9
10
  fileContentKey,
@@ -15,7 +16,6 @@ import {
15
16
  type PublishableMediaType,
16
17
  } from '../../utils/media-type';
17
18
  import { Button, Card, Input, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui';
18
-
19
19
  import { Video } from './video';
20
20
 
21
21
  export interface MediaItem {
@@ -368,7 +368,7 @@ export function MediaGalleryManager({
368
368
  alt={item.title || 'Media'}
369
369
  fill
370
370
  className="object-cover"
371
- sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
371
+ sizes={IMAGE_SLOT.card}
372
372
  />
373
373
  )}
374
374
  </div>
@@ -3,6 +3,7 @@
3
3
  import { useEffect, useState, type ReactNode } from 'react';
4
4
  import Image from '../../../embed-shims/next-image';
5
5
  import { ICON_SIZE } from '../../../styles/component-sizes';
6
+ import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
6
7
  import { cn } from '../../../utils/cn';
7
8
  import { formatTicketRelativeTime } from '../../../utils/date-utils';
8
9
  import { CheckCircleIcon } from '../../icons-v2-generated/signs-and-symbols/check-circle-icon';
@@ -204,8 +205,8 @@ function LoadedNotificationTile({
204
205
  alt=""
205
206
  onError={() => setFailedImageUrl(image)}
206
207
  className="size-4 rounded-[2px] object-cover"
207
- width={16}
208
- height={16}
208
+ width={IMAGE_FIXED_PX.icon}
209
+ height={IMAGE_FIXED_PX.icon}
209
210
  unoptimized
210
211
  />
211
212
  ) : (
@@ -4,6 +4,7 @@ import { motion, useScroll, useTransform, useMotionValue, useSpring } from 'fram
4
4
  import type React from 'react';
5
5
  import { useEffect, useState, useRef } from 'react';
6
6
  import Image from '../../embed-shims/next-image';
7
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
7
8
 
8
9
  interface ParallaxImageShowcaseProps {
9
10
  images: {
@@ -142,7 +143,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
142
143
  alt={leftImage.alt}
143
144
  width={800}
144
145
  height={500}
145
- sizes="(max-width: 768px) 100vw, 33vw"
146
+ sizes={IMAGE_SLOT.card}
146
147
  className="h-auto w-full object-contain"
147
148
  style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
148
149
  />
@@ -163,7 +164,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
163
164
  alt={centerImage.alt}
164
165
  width={800}
165
166
  height={500}
166
- sizes="(max-width: 768px) 100vw, 33vw"
167
+ sizes={IMAGE_SLOT.card}
167
168
  className="h-auto w-full object-contain"
168
169
  style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
169
170
  />
@@ -184,7 +185,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
184
185
  alt={rightImage.alt}
185
186
  width={800}
186
187
  height={500}
187
- sizes="(max-width: 768px) 100vw, 33vw"
188
+ sizes={IMAGE_SLOT.card}
188
189
  className="h-auto w-full object-contain"
189
190
  style={shadow ? { boxShadow: '0 20px 40px rgba(0, 0, 0, 0.3)' } : {}}
190
191
  />
@@ -214,7 +215,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
214
215
  src={leftImage.src}
215
216
  alt={leftImage.alt}
216
217
  fill
217
- sizes="50vw"
218
+ sizes={IMAGE_SLOT.half}
218
219
  className="ods-card/50 border border-ods-border object-cover object-[left_top]"
219
220
  />
220
221
  <div className="absolute inset-0 shadow-2xl" />
@@ -231,7 +232,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
231
232
  src={centerImage.src}
232
233
  alt={centerImage.alt}
233
234
  fill
234
- sizes="50vw"
235
+ sizes={IMAGE_SLOT.half}
235
236
  className="ods-card/50 border border-ods-border object-cover object-[left_top]"
236
237
  />
237
238
  <div className="absolute inset-0 shadow-2xl" />
@@ -255,13 +256,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
255
256
  rotate: rotate,
256
257
  }}
257
258
  >
258
- <Image
259
- src={rightImage.src}
260
- alt={rightImage.alt}
261
- fill
262
- sizes="(max-width: 1024px) 80vw, 120vw"
263
- className="object-contain"
264
- />
259
+ <Image src={rightImage.src} alt={rightImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
265
260
  </motion.div>
266
261
  )}
267
262
 
@@ -275,13 +270,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
275
270
  rotate: rotate,
276
271
  }}
277
272
  >
278
- <Image
279
- src={centerImage.src}
280
- alt={centerImage.alt}
281
- fill
282
- sizes="(max-width: 1024px) 75vw, 100vw"
283
- className="object-contain"
284
- />
273
+ <Image src={centerImage.src} alt={centerImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
285
274
  </motion.div>
286
275
  )}
287
276
 
@@ -295,13 +284,7 @@ export const ParallaxImageShowcase: React.FC<ParallaxImageShowcaseProps> = ({
295
284
  rotate: rotate,
296
285
  }}
297
286
  >
298
- <Image
299
- src={leftImage.src}
300
- alt={leftImage.alt}
301
- fill
302
- sizes="(max-width: 1024px) 85vw, 110vw"
303
- className="object-contain"
304
- />
287
+ <Image src={leftImage.src} alt={leftImage.alt} fill sizes={IMAGE_SLOT.full} className="object-contain" />
305
288
  </motion.div>
306
289
  )}
307
290
  </div>
@@ -2,6 +2,7 @@
2
2
 
3
3
  import React from 'react';
4
4
  import Image from '../../embed-shims/next-image';
5
+ import { IMAGE_FIXED_PX } from '../../styles/image-sizes';
5
6
  import { cn } from '../../utils/cn';
6
7
  import { CheckCircleIcon } from '../icons-v2-generated/signs-and-symbols/check-circle-icon';
7
8
  import { Button } from '../ui/button';
@@ -69,8 +70,8 @@ export const SelectButton = React.forwardRef<HTMLButtonElement, SelectButtonProp
69
70
  src={image.src}
70
71
  alt={image.alt}
71
72
  className="size-full object-cover"
72
- width={40}
73
- height={40}
73
+ width={IMAGE_FIXED_PX.logoLg}
74
+ height={IMAGE_FIXED_PX.logoLg}
74
75
  unoptimized
75
76
  />
76
77
  </span>
@@ -24,6 +24,7 @@ import type React from 'react';
24
24
  import { useEffect, useRef, useState } from 'react';
25
25
  import Image from '../../embed-shims/next-image';
26
26
  import { NEAR_VIEWPORT_ROOT_MARGIN } from '../../hooks/use-near-viewport';
27
+ import { fixedImageSlot } from '../../styles/image-sizes';
27
28
  import { cn } from '../../utils/cn';
28
29
  import { useCoverImageFallback } from '../chat/entity-cards/use-cover-image-fallback';
29
30
  import { toMuxPreviewUrl } from './mux-origins';
@@ -48,7 +49,7 @@ export interface VideoHoverPreviewSurfaceProps {
48
49
  badge?: 'play' | 'none';
49
50
  /** Object-fit for the hover player. */
50
51
  fit?: 'contain' | 'cover';
51
- /** next/image sizes for the poster. Default '234px' (strip cell). */
52
+ /** The poster's `sizes`, a value of the image-size table. Default: a strip cell's fixed box (`fixedImageSlot('cover')`). */
52
53
  posterSizes?: string;
53
54
  /** The poster is in view from the first paint (a card pinned to the screen),
54
55
  * so it loads at once rather than lazily. Default false (a strip cell). */
@@ -88,7 +89,7 @@ export function VideoHoverPreviewSurface({
88
89
  isClone = false,
89
90
  badge = 'play',
90
91
  fit,
91
- posterSizes = '234px',
92
+ posterSizes = fixedImageSlot('cover'),
92
93
  posterInView = false,
93
94
  preload,
94
95
  hideMutedBadge,
@@ -43,6 +43,7 @@ import {
43
43
  } from 'react';
44
44
  import Image from '../../embed-shims/next-image';
45
45
  import { useNearViewport } from '../../hooks/use-near-viewport';
46
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
46
47
  import { cn } from '../../utils/cn';
47
48
  import { fetchPriorityProp } from '../../utils/fetch-priority';
48
49
  import { UnifiedSkeleton } from '../loading/unified-skeleton';
@@ -117,7 +118,15 @@ const PosterBox = forwardRef<
117
118
  style={fill ? { width: '100%', height: '100%' } : undefined}
118
119
  >
119
120
  {poster ? (
120
- <Image src={poster} alt="" fill sizes="100vw" priority={priority} unoptimized className="object-cover" />
121
+ <Image
122
+ src={poster}
123
+ alt=""
124
+ fill
125
+ sizes={IMAGE_SLOT.full}
126
+ priority={priority}
127
+ unoptimized
128
+ className="object-cover"
129
+ />
121
130
  ) : null}
122
131
  </div>
123
132
  );
@@ -69,6 +69,7 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } fr
69
69
  import { resizedImageUrl } from '../../embed-shims/next-image';
70
70
  import { useIsHydrated } from '../../hooks/ui/use-is-hydrated';
71
71
  import { MEDIA_ASPECT } from '../../styles/component-sizes';
72
+ import { fixedImageSlot, IMAGE_WIDTHS } from '../../styles/image-sizes';
72
73
  import { cn } from '../../utils/cn';
73
74
  import {
74
75
  WALKTHROUGH_VIDEO_DISMISS_KEY,
@@ -92,9 +93,6 @@ import { VideoPlayBadge, VideoUnmuteGlyph } from './video-center-badge';
92
93
  import { VideoHoverPreviewSurface } from './video-hover-preview';
93
94
  import type { VideoPlayerHandle, VideoMutedFallbackState } from './video-shared';
94
95
 
95
- /** The poster width the collapsed card asks for: its widest box (320px) at 2x for retina screens. */
96
- const CARD_POSTER_WIDTH_PX = 640;
97
-
98
96
  /** The inline card's box: 16:9 across the host's width, rounded and bordered. ONE string, read by the card and
99
97
  * its skeleton, so the page keeps the same height before and after the player mounts. */
100
98
  const INLINE_CARD_BOX_CLASS = `${MEDIA_ASPECT.video} w-full rounded-md border border-ods-border`;
@@ -1067,17 +1065,16 @@ function WalkthroughVideo({
1067
1065
  // File player only. The theater resolves YouTube-wins; the card must
1068
1066
  // not mount MuxPlayer on a youtube.com URL (it renders the poster).
1069
1067
  url={video.mainVideoUrl || ''}
1070
- // The card is at most 320px wide: ask the host for a poster twice that (retina), not the full-size
1071
- // original the theater shows (a 1920x1080 file drawn at 333x187, CU-17tkuw5xp4q). The original is kept
1072
- // where the host registered no resizer.
1073
- posterUrl={video.posterUrl ? resizedImageUrl(video.posterUrl, CARD_POSTER_WIDTH_PX) : video.posterUrl}
1068
+ // The card is at most 320px wide: ask the host for a poster twice that (retina), the smallest width of the
1069
+ // image-size table's ladder, not the full-size original the theater shows (a 1920x1080 file drawn at
1070
+ // 333x187, CU-17tkuw5xp4q). The original is kept where the host registered no resizer.
1071
+ posterUrl={video.posterUrl ? resizedImageUrl(video.posterUrl, IMAGE_WIDTHS[0]) : video.posterUrl}
1074
1072
  active={cardActive}
1075
1073
  isClone={false}
1076
1074
  badge="play"
1077
1075
  fit="cover"
1078
- // Mirrors the card's own responsive width above — a flat 320px hint
1079
- // made every phone fetch a poster ~1.7x wider than the box.
1080
- posterSizes="(max-width: 639px) 192px, 320px"
1076
+ // The card's box (192 to 320px) as the image-size table's closest fixed slot.
1077
+ posterSizes={fixedImageSlot('cover')}
1081
1078
  // Pinned to the screen (or laid out in the host's first view), so it
1082
1079
  // is often the largest thing painted: never lazy.
1083
1080
  posterInView
@@ -5,6 +5,7 @@ import { useRef, useState } from 'react';
5
5
  import type { ChangeEvent } from 'react';
6
6
  import Image from '../embed-shims/next-image';
7
7
  import { useToast } from '../hooks/use-toast';
8
+ import { IMAGE_SLOT } from '../styles/image-sizes';
8
9
  import { errorMessage } from '../utils/common';
9
10
  import { IMAGE_FILE_ACCEPT } from '../utils/media-type';
10
11
  import { Button } from './ui/button';
@@ -172,7 +173,14 @@ export function HeroImageUploader({
172
173
  className="group relative flex aspect-square h-auto w-full items-center justify-center overflow-hidden md:aspect-auto md:h-full"
173
174
  style={{ height: heightStyle }}
174
175
  >
175
- <Image src={imageUrl} className={`object-${objectFit}`} alt="Cover" fill sizes="100vw" unoptimized />
176
+ <Image
177
+ src={imageUrl}
178
+ className={`object-${objectFit}`}
179
+ alt="Cover"
180
+ fill
181
+ sizes={IMAGE_SLOT.full}
182
+ unoptimized
183
+ />
176
184
  <div className="absolute inset-0 flex items-center justify-center gap-4 rounded-lg bg-black/40 opacity-0 transition-opacity group-hover:opacity-100">
177
185
  {showReplaceButton && (
178
186
  <Button
@@ -2,6 +2,7 @@
2
2
 
3
3
  import type { ReactElement } from 'react';
4
4
  import Image from '../embed-shims/next-image';
5
+ import { IMAGE_FIXED_PX } from '../styles/image-sizes';
5
6
  import { cn } from '../utils/cn';
6
7
  import { AGENT_GLYPH_COLOR, AGENT_PICTURE_CLASS, useAgentIdentityIcon } from './agent-identity';
7
8
  import { resolveIcon } from './chat/utils/icon-library';
@@ -32,7 +33,7 @@ export interface EntityIconValue {
32
33
  */
33
34
  export function EntityIcon({
34
35
  icon,
35
- size = 20,
36
+ size = IMAGE_FIXED_PX.glyph,
36
37
  className,
37
38
  }: {
38
39
  icon?: EntityIconValue | null;
@@ -85,7 +85,7 @@ export interface PageLayoutProps {
85
85
  * ellipsis clamp (forwarded to `TitleBlock`). For content detail pages whose h1 is CMS
86
86
  * data of arbitrary length. Additive + default-preserving. */
87
87
  titleWrap?: boolean;
88
- /** With `titleWrap`, the loading title's lines per breakpoint (forwarded to `TitleBlock`). */
88
+ /** The loading title's lines per breakpoint (forwarded to `TitleBlock`). */
89
89
  titleSkeletonLines?: TextLinesByBreakpoint;
90
90
  }
91
91
 
@@ -169,8 +169,10 @@ export interface TitleBlockProps {
169
169
  * Additive + default-preserving: omit it and every existing caller is byte-identical. */
170
170
  titleWrap?: boolean;
171
171
  /**
172
- * With `titleWrap`: the lines a typical title of the page takes per breakpoint, drawn by the loading title (a
173
- * record's title is read; a long one growing past them is a settle). Absent: one bar.
172
+ * The lines a typical title of the page takes per breakpoint, drawn by the loading title (a record's title is read; a
173
+ * long one growing past them is a settle). Absent: one bar. Without `titleWrap` the loaded title wraps where the
174
+ * window is narrow, so the lines follow the viewport step (`phone` below `md`): a caller states `md: 1, lg: 1` and
175
+ * the phone count it measured.
174
176
  */
175
177
  titleSkeletonLines?: TextLinesByBreakpoint;
176
178
  }
@@ -247,8 +249,25 @@ export function TitleBlock({
247
249
  subtitleLoading ? null : subtitle,
248
250
  );
249
251
  const titleNode =
250
- titleLoading && titleWrap && titleSkeletonLines ? (
252
+ titleLoading && titleSkeletonLines && titleWrap ? (
251
253
  <TextLinesByBreakpointSkeleton as="span" lines={titleSkeletonLines} />
254
+ ) : titleLoading && titleSkeletonLines ? (
255
+ // An unclamped title wraps where the WINDOW is narrow (a phone), not where a docked panel narrows the content:
256
+ // its loading lines follow the viewport step, the phone count below `md` and the `md` count above it.
257
+ <>
258
+ <span className="contents md:hidden">
259
+ <TextLinesByBreakpointSkeleton
260
+ as="span"
261
+ lines={{ phone: titleSkeletonLines.phone, md: titleSkeletonLines.phone, lg: titleSkeletonLines.phone }}
262
+ />
263
+ </span>
264
+ <span className="hidden md:contents">
265
+ <TextLinesByBreakpointSkeleton
266
+ as="span"
267
+ lines={{ phone: titleSkeletonLines.md, md: titleSkeletonLines.md, lg: titleSkeletonLines.lg }}
268
+ />
269
+ </span>
270
+ </>
252
271
  ) : titleLoading ? (
253
272
  <UnifiedSkeleton
254
273
  as="span"
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useState, useRef, memo, useCallback, type KeyboardEvent, type TouchEvent } from 'react';
4
4
  import { Image, Link } from '../embed-shims';
5
+ import { IMAGE_SLOT } from '../styles/image-sizes';
5
6
  import { cn } from '../utils/cn';
6
7
  import type { MediaItem } from '../utils/media-carousel-utils-stub';
7
8
  import { Video } from './features/video';
@@ -226,7 +227,7 @@ export const MediaCarousel = memo(function MediaCarouselImpl({
226
227
  )}
227
228
  priority={mainImagePriority}
228
229
  loading={mainImagePriority ? 'eager' : 'lazy'}
229
- sizes="(max-width: 1279px) 100vw, 1428px"
230
+ sizes={IMAGE_SLOT.full}
230
231
  width={1428}
231
232
  height={802}
232
233
  unoptimized
@@ -8,6 +8,7 @@
8
8
 
9
9
  import type React from 'react';
10
10
  import Image from '../../embed-shims/next-image';
11
+ import { fixedImageSlot } from '../../styles/image-sizes';
11
12
  import { cn } from '../../utils/cn';
12
13
  import { nameInitials } from '../../utils/format';
13
14
  import { getOSLabel } from '../../utils/os-utils';
@@ -74,7 +75,14 @@ function InfoCell({ label, value, avatar, className }: InfoCellProps) {
74
75
  {avatar && (
75
76
  <div className="relative size-8 shrink-0 overflow-hidden rounded-full border border-ods-border bg-ods-bg">
76
77
  {avatar.photoUrl ? (
77
- <Image src={avatar.photoUrl} alt={avatar.name} className="object-cover" fill sizes="32px" unoptimized />
78
+ <Image
79
+ src={avatar.photoUrl}
80
+ alt={avatar.name}
81
+ className="object-cover"
82
+ fill
83
+ sizes={fixedImageSlot('logo')}
84
+ unoptimized
85
+ />
78
86
  ) : (
79
87
  <div className="flex size-full items-center justify-center text-ods-text-secondary text-h6">
80
88
  {avatar.initials || nameInitials(avatar.name)}
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useState } from 'react';
4
4
  import Image from '../../embed-shims/next-image';
5
+ import { IMAGE_FIXED_PX } from '../../styles/image-sizes';
5
6
  import { cn } from '../../utils/cn';
6
7
  import { Video } from '../features/video';
7
8
  import { UnifiedSkeleton } from '../loading/unified-skeleton';
@@ -90,8 +91,9 @@ export function MediaGalleryStrip({ items, className }: MediaGalleryStripProps)
90
91
  src={mediaItem.media_url}
91
92
  alt={mediaItem.title || `Media ${index + 1}`}
92
93
  className="h-full w-full object-cover"
93
- width={240}
94
- height={200}
94
+ // The tile's 240x200 box: the image-size table's `cover` width at the tile's ratio.
95
+ width={IMAGE_FIXED_PX.cover}
96
+ height={(IMAGE_FIXED_PX.cover * 5) / 6}
95
97
  unoptimized
96
98
  />
97
99
  </span>
@@ -4,6 +4,7 @@ import { AlertTriangle, Eye, Package, Sparkles, TrendingUp, Wrench } from 'lucid
4
4
  import type React from 'react';
5
5
  import Image from '../../../embed-shims/next-image';
6
6
  import Link from '../../../embed-shims/next-link';
7
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
7
8
  import { cn } from '../../../utils/cn';
8
9
  import {
9
10
  CONTENT_CARD_FRAME_CLASS,
@@ -271,7 +272,7 @@ function LoadedProductReleaseCard({
271
272
  src={coverImage}
272
273
  alt={title}
273
274
  fill
274
- sizes="(max-width: 768px) 100vw, 256px"
275
+ sizes={IMAGE_SLOT.aside}
275
276
  className="object-cover"
276
277
  unoptimized
277
278
  />
@@ -479,7 +480,14 @@ function LoadedProductReleaseCard({
479
480
  actually supplied (matches the catalog variant's overlay rule). */}
480
481
  <span className="relative flex aspect-square h-14 w-14 shrink-0 items-center justify-center self-start overflow-hidden rounded-md bg-ods-bg text-ods-accent">
481
482
  {coverImage ? (
482
- <Image src={coverImage} alt={title} fill sizes="56px" className="object-contain" unoptimized />
483
+ <Image
484
+ src={coverImage}
485
+ alt={title}
486
+ fill
487
+ sizes={fixedImageSlot('tile')}
488
+ className="object-contain"
489
+ unoptimized
490
+ />
483
491
  ) : (
484
492
  <Package className="h-5 w-5" />
485
493
  )}
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
3
4
  import { cn } from '../../utils/cn';
4
5
  import { UnifiedSkeleton } from '../loading/unified-skeleton';
5
6
  import { LoadingItems, useLoadingScope } from './loading-scope';
@@ -56,9 +57,8 @@ export interface AvatarStackProps {
56
57
  loading?: boolean;
57
58
  }
58
59
 
59
- /** Face diameter and how far each later face tucks under the previous one — the
60
- * `SquareAvatar` buckets and the `-ml-*` classes below, in px, for `slots`. */
61
- const SIZE_PX: Record<AvatarStackSize, number> = { xs: 24, sm: 32, md: 40, lg: 48 };
60
+ /** How far each later face tucks under the previous one: the `-ml-*` classes below, in px, for `slots`. A face's
61
+ * diameter is the avatar scale's (`AVATAR_SIZE_PX`). */
62
62
  const OVERLAP_PX: Record<AvatarStackSize, number> = { xs: 8, sm: 12, md: 12, lg: 12 };
63
63
 
64
64
  const OVERFLOW_CIRCLE_SIZE: Record<AvatarStackSize, string> = {
@@ -73,7 +73,7 @@ const STACK_ROW_CLASS = 'flex items-center';
73
73
  const overlapClass = (size: AvatarStackSize) => (size === 'xs' ? '-ml-2' : '-ml-3');
74
74
  /** A fixed-width stack's width (`slots`). */
75
75
  const slotsWidthStyle = (size: AvatarStackSize, slots?: number) =>
76
- slots ? { width: SIZE_PX[size] + (slots - 1) * (SIZE_PX[size] - OVERLAP_PX[size]) } : undefined;
76
+ slots ? { width: AVATAR_SIZE_PX[size] + (slots - 1) * (AVATAR_SIZE_PX[size] - OVERLAP_PX[size]) } : undefined;
77
77
 
78
78
  /** Faces a stack shows when the host states no `max`, and so the faces it draws while its people are read. */
79
79
  const AVATAR_STACK_MAX_FACES = 3;
@@ -102,8 +102,8 @@ function AvatarStackSkeleton({
102
102
  data-loading-item
103
103
  variant="circular"
104
104
  className={cn('relative shrink-0 ring-2 ring-ods-card', i > 0 && overlapClass(size))}
105
- width={SIZE_PX[size]}
106
- height={SIZE_PX[size]}
105
+ width={AVATAR_SIZE_PX[size]}
106
+ height={AVATAR_SIZE_PX[size]}
107
107
  />
108
108
  )}
109
109
  </LoadingItems>
@@ -98,6 +98,11 @@ export interface DataTableBodyProps<T = unknown> {
98
98
  * Interactive content inside must carry `data-no-row-click`.
99
99
  */
100
100
  renderSubRow?: (item: T) => ReactNode;
101
+ /**
102
+ * While loading (`loadingCells`), call `renderSubRow` for each placeholder row too, so a host whose typical row has
103
+ * a sub-row draws its loading form below every loading row. Off by default: a host's sub-row may read the row.
104
+ */
105
+ loadingSubRows?: boolean;
101
106
  }
102
107
 
103
108
  /** Server snapshot: no page is loading during a server render. */
@@ -124,6 +129,7 @@ export function DataTableBody<T = unknown>({
124
129
  rowHref,
125
130
  minRows,
126
131
  renderSubRow,
132
+ loadingSubRows = false,
127
133
  }: DataTableBodyProps<T>) {
128
134
  const table = useDataTableContext<T>();
129
135
  const skeletonRows =
@@ -161,6 +167,9 @@ export function DataTableBody<T = unknown>({
161
167
  compact={compact}
162
168
  rowHeightClassName={rowHeightClassName}
163
169
  className={typeof rowClassName === 'function' ? rowClassName(row.original, index) : rowClassName}
170
+ // Opted in (`loadingSubRows`): a loading row carries what its host draws below a typical row (an approval
171
+ // block), in its loading form.
172
+ subRow={loadingSubRows ? renderSubRow?.(row.original) : undefined}
164
173
  data-loading-item
165
174
  />
166
175
  ))}
@@ -77,6 +77,11 @@ export interface DeviceCardProps extends React.HTMLAttributes<HTMLDivElement> {
77
77
  * scope does the same. The card's `data-*` markers (`data-loading-item`) ride on its root in both forms.
78
78
  */
79
79
  loading?: boolean;
80
+ /**
81
+ * Whether the card lists the device's tags (default true). A card that never lists them (the device a log or a
82
+ * ticket names) passes false, so its loading form draws no tags row either.
83
+ */
84
+ showTags?: boolean;
80
85
  }
81
86
 
82
87
  export function DeviceCard({
@@ -87,6 +92,7 @@ export function DeviceCard({
87
92
  statusTag,
88
93
  onDeviceClick,
89
94
  loading: loadingProp,
95
+ showTags = true,
90
96
  className,
91
97
  ...props
92
98
  }: DeviceCardProps) {
@@ -216,7 +222,7 @@ export function DeviceCard({
216
222
 
217
223
  {/* Tags section: the card sits in a grid's first screen, so its row is drawn while loading too (one tag, a
218
224
  typical device's), never left to land later. A device with no tags draws no row once loaded. */}
219
- {loading ? (
225
+ {!showTags ? null : loading ? (
220
226
  <div className={DEVICE_CARD_TAGS_ROW_CLASS}>
221
227
  <Tag loading label="" variant="outline" data-loading-item />
222
228
  </div>
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import Image from '../../embed-shims/next-image';
5
5
  import { useAuthedImageSrc } from '../../hooks/use-authed-image-src';
6
6
  import { TILE_SIZE } from '../../styles/component-sizes';
7
+ import { IMAGE_FIXED_PX } from '../../styles/image-sizes';
7
8
  import { cn } from '../../utils/cn';
8
9
  import { personInitials } from '../../utils/format';
9
10
  import { UnifiedSkeleton } from '../loading/unified-skeleton';
@@ -79,8 +80,8 @@ export function EntityImage({ src, alt, fallbackText, sizeClassName, className }
79
80
  // Intrinsic hint only — the responsive `size-*` classes above own the
80
81
  // rendered box. `unoptimized` because `useAuthedImageSrc` hands back a
81
82
  // `blob:` URL under bearer-token hosts, which no image optimizer can fetch.
82
- width={60}
83
- height={60}
83
+ width={IMAGE_FIXED_PX.thumb}
84
+ height={IMAGE_FIXED_PX.thumb}
84
85
  unoptimized
85
86
  />
86
87
  );
@@ -3,6 +3,7 @@
3
3
  import { ChevronLeft, ChevronRight } from 'lucide-react';
4
4
  import { useCallback, useEffect, useRef, useState } from 'react';
5
5
  import Image from '../../embed-shims/next-image';
6
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
6
7
  import { Button } from './button';
7
8
  import { Modal } from './modal';
8
9
 
@@ -122,7 +123,7 @@ export function ImageGalleryModal({ images, isOpen, onClose, initialIndex = 0 }:
122
123
  alt={`Screenshot ${selectedImageIndex + 1}`}
123
124
  fill
124
125
  className="object-contain"
125
- sizes="90vw"
126
+ sizes={IMAGE_SLOT.full}
126
127
  priority={true}
127
128
  unoptimized
128
129
  onError={e => {
@@ -4,6 +4,7 @@ import { Loader2 } from 'lucide-react';
4
4
  import { type ChangeEvent, type DragEvent, type KeyboardEvent, type ReactNode, useRef, useState } from 'react';
5
5
  import Image from '../../embed-shims/next-image';
6
6
  import { useAuthedImageSrc } from '../../hooks/use-authed-image-src';
7
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
7
8
  import { cn } from '../../utils/cn';
8
9
  import { fileMediaType, IMAGE_FILE_ACCEPT } from '../../utils/media-type';
9
10
  import { ImagePlusIcon } from '../icons-v2-generated/audio-and-visual/image-plus-icon';
@@ -216,7 +217,7 @@ export function ImageUploader({
216
217
  src={resolvedValue}
217
218
  alt={alt}
218
219
  fill
219
- sizes="100vw"
220
+ sizes={IMAGE_SLOT.full}
220
221
  // `useAuthedImageSrc` yields a `blob:` URL under bearer-token
221
222
  // hosts, which no image optimizer can fetch.
222
223
  unoptimized