@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
@@ -61,6 +61,8 @@ export interface ChatComposerProps {
61
61
  contextMemoryItems?: ChatContextItem[];
62
62
  /** Drop one entity from the context memory (dropdown row ×). */
63
63
  onRemoveContextMemoryItem?: (item: ChatContextItem) => void;
64
+ /** The host is reading a record it will add to the context memory: the empty strip draws its loading form. */
65
+ contextMemoryPending?: boolean;
64
66
  /** Controlled picker open state. */
65
67
  contextPickerOpen?: boolean;
66
68
  /** Open the picker (the `+` menu's "Assign Item"). */
@@ -109,6 +111,7 @@ export function ChatComposer({
109
111
  onRemoveContextItem,
110
112
  contextMemoryItems,
111
113
  onRemoveContextMemoryItem,
114
+ contextMemoryPending,
112
115
  contextPickerOpen = false,
113
116
  onOpenContextPicker,
114
117
  onCloseContextPicker,
@@ -217,6 +220,7 @@ export function ChatComposer({
217
220
  <ChatContextMemoryBar
218
221
  items={memory}
219
222
  onRemove={onRemoveContextMemoryItem}
223
+ pending={contextMemoryPending}
220
224
  resolveIcon={resolveContextIcon}
221
225
  disabled={sending || locked}
222
226
  className="rounded-t-md"
@@ -26,12 +26,17 @@ import { useEffect, useRef, useState } from 'react';
26
26
  import { cn } from '../../utils/cn';
27
27
  import { Ellipsis01Icon } from '../icons-v2-generated/interface/ellipsis-01-icon';
28
28
  import { XmarkCircleIcon } from '../icons-v2-generated/signs-and-symbols/xmark-circle-icon';
29
+ import { TextLineSkeleton } from '../loading/unified-skeleton';
29
30
  import { Button } from '../ui/button';
30
31
  import { CONTEXT_ICON_CLASS, CONTEXT_LABEL_CLASS, CONTEXT_ROW_CLASS } from './context-items-list';
31
32
  import type { ChatContextItem } from './types/context-item.types';
32
33
 
33
34
  const itemKey = (item: { type: string; id: string }) => `${item.type}:${item.id}`;
34
35
 
36
+ /** The strip's box, loaded and loading. */
37
+ const MEMORY_STRIP_CLASS =
38
+ 'relative flex items-center gap-[var(--spacing-system-xs)] border-b border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]';
39
+
35
40
  export interface ChatContextMemoryBarProps {
36
41
  /** Remembered entities, most-recent-first. Empty → the bar renders nothing. */
37
42
  items: ChatContextItem[];
@@ -43,6 +48,12 @@ export interface ChatContextMemoryBarProps {
43
48
  resolveIcon?: (item: ChatContextItem) => ReactNode;
44
49
  /** External disable (e.g. while a message is streaming). */
45
50
  disabled?: boolean;
51
+ /**
52
+ * The host is reading a record it will remember (a record page whose record has not answered yet). With nothing
53
+ * remembered so far the strip draws its loading form at its own height, so the composer does not grow when the
54
+ * record lands. Ignored once there are items.
55
+ */
56
+ pending?: boolean;
46
57
  className?: string;
47
58
  }
48
59
 
@@ -51,6 +62,7 @@ export function ChatContextMemoryBar({
51
62
  onRemove,
52
63
  resolveIcon,
53
64
  disabled = false,
65
+ pending = false,
54
66
  className,
55
67
  }: ChatContextMemoryBarProps) {
56
68
  const [open, setOpen] = useState(false);
@@ -87,17 +99,28 @@ export function ChatContextMemoryBar({
87
99
  };
88
100
  }, [open]);
89
101
 
90
- if (items.length === 0) return null;
102
+ if (items.length === 0 && !pending) return null;
103
+
104
+ if (items.length === 0) {
105
+ // The loading form: the strip's own box, its count line a bar and its trigger's place kept.
106
+ return (
107
+ <div aria-hidden className={cn(MEMORY_STRIP_CLASS, className)}>
108
+ <p className="min-w-0 flex-1 truncate text-ods-text-secondary text-h6">
109
+ <TextLineSkeleton type="inherit" as="span" className="w-48 max-w-full" />
110
+ </p>
111
+ <Button variant="bare" size="icon-sm" type="button" tabIndex={-1} className="invisible shrink-0">
112
+ <Ellipsis01Icon size={16} />
113
+ </Button>
114
+ </div>
115
+ );
116
+ }
91
117
 
92
118
  return (
93
119
  // `relative` anchors the popover to this strip; `bottom-full` floats it
94
120
  // above, matching the context picker's placement over the input.
95
121
  <div
96
122
  ref={rootRef}
97
- className={cn(
98
- 'relative flex items-center gap-[var(--spacing-system-xs)] border-b border-ods-border bg-ods-bg p-[var(--spacing-system-xs)]',
99
- className,
100
- )}
123
+ className={cn(MEMORY_STRIP_CLASS, className)}
101
124
  onKeyDown={e => {
102
125
  if (e.key === 'Escape' && open) {
103
126
  e.preventDefault();
@@ -21,6 +21,7 @@
21
21
 
22
22
  import { useState, type ReactNode } from 'react';
23
23
  import Image from '../../embed-shims/next-image';
24
+ import { AVATAR_SIZE_PX } from '../../styles/component-sizes';
24
25
  import { cn } from '../../utils/cn';
25
26
  import { personInitials } from '../../utils/format';
26
27
  import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
@@ -100,8 +101,8 @@ function ChatMessageRowLoaded(props: ChatMessageRowProps) {
100
101
  src={src}
101
102
  alt={displayName}
102
103
  className={cn(AVATAR_BOX_CLASS, 'object-cover')}
103
- width={40}
104
- height={40}
104
+ width={AVATAR_SIZE_PX.md}
105
+ height={AVATAR_SIZE_PX.md}
105
106
  onError={() => setFailedSrc(resolvedAvatar ?? null)}
106
107
  />
107
108
  ) : (
@@ -488,6 +488,9 @@ export interface EmbeddableChatProps {
488
488
  contextMemory?: {
489
489
  items: ChatContextItem[];
490
490
  onRemove?: (item: ChatContextItem) => void;
491
+ /** A record the host will remember is still being read (a record page loading): the empty strip draws its
492
+ * loading form, so the composer does not grow when the record lands. */
493
+ pending?: boolean;
491
494
  };
492
495
  /**
493
496
  * Host content pinned between the thread and the composer: the thread
@@ -3181,6 +3184,7 @@ function EmbeddableChatInner({
3181
3184
  onRemoveContextItem={removeContextItem}
3182
3185
  contextMemoryItems={contextMemory?.items}
3183
3186
  onRemoveContextMemoryItem={contextMemory?.onRemove}
3187
+ contextMemoryPending={contextMemory?.pending}
3184
3188
  contextPickerOpen={contextPickerOpen}
3185
3189
  onOpenContextPicker={openContextPicker}
3186
3190
  onCloseContextPicker={closeContextPicker}
@@ -5,6 +5,7 @@ import { useState } from 'react';
5
5
  import Image from '../../../embed-shims/next-image';
6
6
  import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
7
7
  import { MEDIA_ASPECT } from '../../../styles/component-sizes';
8
+ import { IMAGE_SLOT } from '../../../styles/image-sizes';
8
9
  import { cn } from '../../../utils/cn';
9
10
  import { PlatformBadge } from '../../features/platform-badge';
10
11
  import { InteractiveSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
@@ -114,7 +115,7 @@ export function AdminContentCard({
114
115
  src={displayUrl}
115
116
  alt={title}
116
117
  fill
117
- sizes="(min-width: 1280px) 33vw, (min-width: 768px) 50vw, 100vw"
118
+ sizes={IMAGE_SLOT.card}
118
119
  className={cn(
119
120
  'object-contain object-center',
120
121
  'transition-transform duration-500 ease-out',
@@ -21,7 +21,8 @@
21
21
  import { Eye } from 'lucide-react';
22
22
  import Image from '../../../embed-shims/next-image';
23
23
  import Link from '../../../embed-shims/next-link';
24
- import { AVATAR_SIZE, MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
24
+ import { AVATAR_SIZE, AVATAR_SIZE_PX, MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
25
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
25
26
  import type { BlogPostSummary } from '../../../types/blog';
26
27
  import { cn } from '../../../utils/cn';
27
28
  import { formatDateWithTimezone } from '../../../utils/format';
@@ -198,7 +199,7 @@ function LoadedBlogCard({
198
199
  src={displayImage}
199
200
  alt={post.title}
200
201
  fill
201
- sizes="56px"
202
+ sizes={fixedImageSlot('tile')}
202
203
  className="object-contain"
203
204
  unoptimized
204
205
  onError={onImageError}
@@ -264,9 +265,8 @@ function LoadedBlogCard({
264
265
  alt={post.title}
265
266
  fill
266
267
  priority={priority}
267
- quality={priority ? 85 : 75}
268
268
  className={cn('object-cover object-center', 'duration-400 transition-all ease-out', 'hover:scale-[1.02]')}
269
- sizes="(max-width: 768px) 100vw, (max-width: 1519px) 50vw, 33vw"
269
+ sizes={IMAGE_SLOT.card}
270
270
  unoptimized
271
271
  onError={onImageError}
272
272
  />
@@ -297,8 +297,8 @@ function LoadedBlogCard({
297
297
  <Image
298
298
  src={post.author_avatar}
299
299
  alt={post.author_name || ''}
300
- width={32}
301
- height={32}
300
+ width={AVATAR_SIZE_PX.sm}
301
+ height={AVATAR_SIZE_PX.sm}
302
302
  className={BLOG_CARD_AVATAR}
303
303
  unoptimized
304
304
  />
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import Image from '../../../embed-shims/next-image';
4
+ import { IMAGE_SLOT } from '../../../styles/image-sizes';
4
5
 
5
6
  interface BlogImagePlaceholderProps {
6
7
  /** Cover-image URL. The hub passes a `useOgPlaceholderUrl({ title, siteName })`
@@ -36,7 +37,7 @@ export function BlogImagePlaceholder({ imageUrl, title, className = '' }: BlogIm
36
37
  alt={`Cover image for ${title}`}
37
38
  className="object-contain"
38
39
  fill
39
- sizes="(max-width: 768px) 100vw, 50vw"
40
+ sizes={IMAGE_SLOT.card}
40
41
  unoptimized
41
42
  loading="lazy"
42
43
  onError={e => {
@@ -21,7 +21,8 @@
21
21
  import { useState } from 'react';
22
22
  import Image from '../../../embed-shims/next-image';
23
23
  import Link from '../../../embed-shims/next-link';
24
- import { ICON_SIZE, MEDIA_ASPECT } from '../../../styles/component-sizes';
24
+ import { AVATAR_SIZE_PX, ICON_SIZE, MEDIA_ASPECT } from '../../../styles/component-sizes';
25
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
25
26
  import type { CaseStudyCardData, CaseStudyMetric } from '../../../types/case-study';
26
27
  import { cn } from '../../../utils/cn';
27
28
  import { sortBitesByFeaturedAtDesc } from '../../features/video-bites-shared';
@@ -134,8 +135,8 @@ function CaseStudyPersonRow({ study }: { study: CaseStudyCardData }) {
134
135
  src={study.user.avatar_url}
135
136
  alt={study.user?.full_name || 'User'}
136
137
  className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
137
- width={48}
138
- height={48}
138
+ width={AVATAR_SIZE_PX.lg}
139
+ height={AVATAR_SIZE_PX.lg}
139
140
  unoptimized
140
141
  />
141
142
  ) : (
@@ -151,8 +152,8 @@ function CaseStudyPersonRow({ study }: { study: CaseStudyCardData }) {
151
152
  src={study.msp.icon_url}
152
153
  alt={study.msp.name || 'MSP'}
153
154
  className="h-full w-full object-cover"
154
- width={24}
155
- height={24}
155
+ width={AVATAR_SIZE_PX.xs}
156
+ height={AVATAR_SIZE_PX.xs}
156
157
  unoptimized
157
158
  />
158
159
  </div>
@@ -319,7 +320,7 @@ function LoadedCaseStudyCard({
319
320
  alt={`${study.msp?.name || study.title} cover`}
320
321
  className="object-contain"
321
322
  fill
322
- sizes="56px"
323
+ sizes={fixedImageSlot('tile')}
323
324
  unoptimized
324
325
  onError={hideOnError}
325
326
  />
@@ -374,7 +375,7 @@ function LoadedCaseStudyCard({
374
375
  active={hovered}
375
376
  playerMounted={mediaMounted}
376
377
  fit="cover"
377
- posterSizes="360px"
378
+ posterSizes={IMAGE_SLOT.panel}
378
379
  />
379
380
  ) : (
380
381
  <>
@@ -384,7 +385,7 @@ function LoadedCaseStudyCard({
384
385
  alt=""
385
386
  className="object-cover"
386
387
  fill
387
- sizes="360px"
388
+ sizes={IMAGE_SLOT.panel}
388
389
  unoptimized
389
390
  onError={hideOnError}
390
391
  />
@@ -476,7 +477,7 @@ function LoadedCaseStudyCard({
476
477
  src={coverImage}
477
478
  alt={study.msp?.name || study.title}
478
479
  className="h-full w-full object-cover"
479
- sizes="(min-width: 1545px) 515px, (min-width: 1280px) 33vw, (min-width: 800px) 50vw, 100vw"
480
+ sizes={IMAGE_SLOT.card}
480
481
  fill
481
482
  unoptimized
482
483
  onError={hideOnError}
@@ -11,7 +11,8 @@
11
11
  import { Video } from 'lucide-react';
12
12
  import Image from '../../../embed-shims/next-image';
13
13
  import Link from '../../../embed-shims/next-link';
14
- import { MEDIA_ASPECT } from '../../../styles/component-sizes';
14
+ import { AVATAR_SIZE_PX, MEDIA_ASPECT } from '../../../styles/component-sizes';
15
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
15
16
  import type { CustomerInterview } from '../../../types/customer-interview';
16
17
  import { cn } from '../../../utils/cn';
17
18
  import { MediaSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
@@ -170,7 +171,7 @@ function LoadedCustomerInterviewCard({
170
171
  alt={interview.title}
171
172
  className="object-contain"
172
173
  fill
173
- sizes="56px"
174
+ sizes={fixedImageSlot('tile')}
174
175
  unoptimized
175
176
  onError={hideOnError}
176
177
  />
@@ -235,7 +236,7 @@ function LoadedCustomerInterviewCard({
235
236
  alt={interview.title}
236
237
  className="object-cover"
237
238
  fill
238
- sizes="(max-width: 768px) 100vw, 50vw"
239
+ sizes={IMAGE_SLOT.card}
239
240
  unoptimized
240
241
  onError={hideOnError}
241
242
  />
@@ -272,8 +273,8 @@ function LoadedCustomerInterviewCard({
272
273
  src={interview.user.avatar_url}
273
274
  alt={interview.user?.full_name || 'Customer'}
274
275
  className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
275
- width={48}
276
- height={48}
276
+ width={AVATAR_SIZE_PX.lg}
277
+ height={AVATAR_SIZE_PX.lg}
277
278
  unoptimized
278
279
  />
279
280
  ) : (
@@ -292,8 +293,8 @@ function LoadedCustomerInterviewCard({
292
293
  src={interview.msp.icon_url}
293
294
  alt={interview.msp.name || 'MSP'}
294
295
  className="h-full w-full object-cover"
295
- width={24}
296
- height={24}
296
+ width={AVATAR_SIZE_PX.xs}
297
+ height={AVATAR_SIZE_PX.xs}
297
298
  unoptimized
298
299
  />
299
300
  </div>
@@ -34,6 +34,7 @@ import type { ReactNode } from 'react';
34
34
  import { useRequiredChatRuntime } from '../../../contexts/chat-runtime-context';
35
35
  import Image from '../../../embed-shims/next-image';
36
36
  import { useRouter } from '../../../embed-shims/next-navigation';
37
+ import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
37
38
  import type { DesignDoc } from '../../../types/design-doc';
38
39
  import {
39
40
  TRUST_CENTER_DOCUMENT_TYPE,
@@ -1260,7 +1261,14 @@ function RoadmapChatCard({
1260
1261
  ) : logoUrl ? (
1261
1262
  // Contained (not full-bleed) so the integration logo keeps its aspect
1262
1263
  // ratio inside the bordered icon box — matches RoadmapCard.
1263
- <Image src={logoUrl} alt="" className="size-6 object-contain" width={24} height={24} unoptimized />
1264
+ <Image
1265
+ src={logoUrl}
1266
+ alt=""
1267
+ className="size-6 object-contain"
1268
+ width={IMAGE_FIXED_PX.glyph}
1269
+ height={IMAGE_FIXED_PX.glyph}
1270
+ unoptimized
1271
+ />
1264
1272
  ) : (
1265
1273
  defaultIcon
1266
1274
  );
@@ -1,6 +1,7 @@
1
1
  import type React from 'react';
2
2
  import Image from '../../../embed-shims/next-image';
3
3
  import Link from '../../../embed-shims/next-link';
4
+ import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
4
5
  import { useLoadingScope } from '../../ui/loading-scope';
5
6
  import { StatusBadge, type StatusBadgeProps } from '../../ui/status-badge';
6
7
  import { useProxiedImageUrl } from '../hooks/use-proxied-image-url';
@@ -132,8 +133,8 @@ function LoadedEmployeeEntryCard({
132
133
  // One line of the meta row tall (16px on a phone, 20px from md), so the
133
134
  // row is exactly the line the skeleton reserves.
134
135
  className="h-[1lh] w-[1lh] shrink-0 rounded-full object-cover"
135
- width={20}
136
- height={20}
136
+ width={IMAGE_FIXED_PX.glyph}
137
+ height={IMAGE_FIXED_PX.glyph}
137
138
  unoptimized
138
139
  />
139
140
  ) : null}
@@ -36,6 +36,8 @@ import { useState } from 'react';
36
36
  import Image from '../../../embed-shims/next-image';
37
37
  import Link from '../../../embed-shims/next-link';
38
38
  import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
39
+ import { AVATAR_SIZE_PX } from '../../../styles/component-sizes';
40
+ import { IMAGE_SLOT } from '../../../styles/image-sizes';
39
41
  import { cn } from '../../../utils/cn';
40
42
  import { MediaSkeleton, TextLineSkeleton, UnifiedSkeleton } from '../../loading/unified-skeleton';
41
43
  import { Card } from '../../ui/card';
@@ -145,7 +147,7 @@ export function EntityPortraitCard({
145
147
  src={src}
146
148
  alt={imageAlt}
147
149
  className={cn('h-full w-full', isWide === false ? 'object-contain' : 'object-cover')}
148
- sizes="(min-width: 800px) 400px, 100vw"
150
+ sizes={IMAGE_SLOT.panel}
149
151
  fill
150
152
  priority={priority}
151
153
  unoptimized
@@ -183,8 +185,8 @@ export function EntityPortraitCard({
183
185
  src={person.avatarUrl}
184
186
  alt={person.name}
185
187
  className="h-12 w-12 rounded-full border border-ods-border bg-ods-bg object-cover"
186
- width={48}
187
- height={48}
188
+ width={AVATAR_SIZE_PX.lg}
189
+ height={AVATAR_SIZE_PX.lg}
188
190
  unoptimized
189
191
  />
190
192
  ) : (
@@ -201,8 +203,8 @@ export function EntityPortraitCard({
201
203
  src={person.iconOverlayUrl}
202
204
  alt=""
203
205
  className="h-full w-full object-cover"
204
- width={24}
205
- height={24}
206
+ width={AVATAR_SIZE_PX.xs}
207
+ height={AVATAR_SIZE_PX.xs}
206
208
  unoptimized
207
209
  />
208
210
  </div>
@@ -30,6 +30,7 @@ import { EntityPortraitCard } from './entity-portrait-card';
30
30
 
31
31
  /** The content-type chip a portrait investor update shows (a static label). */
32
32
  const INVESTOR_UPDATE_TYPE_LABEL = 'Investor Update';
33
+ import { fixedImageSlot } from '../../../styles/image-sizes';
33
34
  import { useEntityCardLink } from './use-entity-card-link';
34
35
  import { useEntityCardPlaceholder } from './use-entity-card-placeholder';
35
36
 
@@ -148,7 +149,7 @@ function LoadedInvestorUpdateCard({
148
149
  alt={update.title ?? 'Investor update'}
149
150
  className="object-contain"
150
151
  fill
151
- sizes="56px"
152
+ sizes={fixedImageSlot('tile')}
152
153
  unoptimized
153
154
  onError={e => {
154
155
  const img = e.currentTarget;
@@ -45,6 +45,7 @@ import { EntityPortraitCard } from './entity-portrait-card';
45
45
  /** The content-type chip a portrait guide shows (a static label). */
46
46
  const GUIDE_TYPE_LABEL = 'Guide';
47
47
  import { MEDIA_ASPECT, TEXT_LINES_MIN } from '../../../styles/component-sizes';
48
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
48
49
  import { useEntityCardLink } from './use-entity-card-link';
49
50
  import { useEntityCardPlaceholder } from './use-entity-card-placeholder';
50
51
 
@@ -281,7 +282,7 @@ function LoadedOnboardingGuideCard({
281
282
  src={coverImage}
282
283
  alt={guide.title}
283
284
  fill
284
- sizes="(max-width: 768px) 100vw, 256px"
285
+ sizes={IMAGE_SLOT.panel}
285
286
  className="object-cover"
286
287
  unoptimized
287
288
  />
@@ -351,7 +352,14 @@ function LoadedOnboardingGuideCard({
351
352
  >
352
353
  <span className={COMPACT_CARD_IMAGE_SLOT}>
353
354
  {compactCover ? (
354
- <Image src={compactCover} alt={guide.title} fill sizes="56px" className="object-contain" unoptimized />
355
+ <Image
356
+ src={compactCover}
357
+ alt={guide.title}
358
+ fill
359
+ sizes={fixedImageSlot('tile')}
360
+ className="object-contain"
361
+ unoptimized
362
+ />
355
363
  ) : (
356
364
  <span className="flex h-full w-full items-center justify-center text-ods-accent">
357
365
  <GraduationCap className="h-4 w-4" />
@@ -33,6 +33,7 @@ import Image from '../../../embed-shims/next-image';
33
33
  import Link from '../../../embed-shims/next-link';
34
34
  import { useImageEdgeColor } from '../../../hooks/ui/use-image-edge-color';
35
35
  import { MEDIA_ASPECT } from '../../../styles/component-sizes';
36
+ import { IMAGE_SLOT, fixedImageSlot } from '../../../styles/image-sizes';
36
37
  import { cn } from '../../../utils/cn';
37
38
  import { formatProgramDate, formatProgramDateRange } from '../../../utils/format';
38
39
  import { isImageMedia } from '../../../utils/media-type';
@@ -362,7 +363,7 @@ function MediaGallery({ images, title, optional }: { images: ProgramMedia[]; tit
362
363
  alt={`${title} photo ${index + 1}`}
363
364
  fill
364
365
  className="object-cover transition-transform duration-200 group-hover/thumb:scale-105"
365
- sizes="200px"
366
+ sizes={fixedImageSlot('preview')}
366
367
  loading="lazy"
367
368
  unoptimized
368
369
  />
@@ -439,7 +440,15 @@ function ProgramEditorialCard({
439
440
  <ContentCardFrame as="a" href={href} target={target} rel={rel} className={cn(EDITORIAL_ROW_GRID, className)}>
440
441
  <span className={cn(EDITORIAL_ROW_THUMB, 'bg-ods-bg')}>
441
442
  {cover && (
442
- <Image src={cover} alt="" fill sizes="120px" className="object-cover" priority={priority} unoptimized />
443
+ <Image
444
+ src={cover}
445
+ alt=""
446
+ fill
447
+ sizes={fixedImageSlot('feature')}
448
+ className="object-cover"
449
+ priority={priority}
450
+ unoptimized
451
+ />
443
452
  )}
444
453
  {playable && cover && <CardHoverPlay size="md" />}
445
454
  </span>
@@ -463,7 +472,7 @@ function ProgramEditorialCard({
463
472
  src={cover}
464
473
  alt=""
465
474
  fill
466
- sizes="(min-width: 1024px) 640px, 100vw"
475
+ sizes={IMAGE_SLOT.column}
467
476
  className="object-contain"
468
477
  priority={priority}
469
478
  unoptimized
@@ -617,7 +626,7 @@ function LoadedProgramCard<T extends BaseProgramItem>({
617
626
  src={compactCover}
618
627
  alt={item.title}
619
628
  fill
620
- sizes="56px"
629
+ sizes={fixedImageSlot('tile')}
621
630
  className="object-contain"
622
631
  priority={priority}
623
632
  unoptimized
@@ -708,7 +717,7 @@ function LoadedProgramCard<T extends BaseProgramItem>({
708
717
  src={coverImage}
709
718
  alt={item.title}
710
719
  fill
711
- sizes="(min-width: 1280px) 400px, (min-width: 768px) 320px, 100vw"
720
+ sizes={IMAGE_SLOT.panel}
712
721
  className="object-cover"
713
722
  priority={priority}
714
723
  unoptimized
@@ -15,6 +15,7 @@ import { useState } from 'react';
15
15
  import Image from '../../../embed-shims/next-image';
16
16
  import Link from '../../../embed-shims/next-link';
17
17
  import { MEDIA_ASPECT, TEXT_LINES_MIN, TILE_SIZE } from '../../../styles/component-sizes';
18
+ import { IMAGE_FIXED_PX } from '../../../styles/image-sizes';
18
19
  import { cn } from '../../../utils/cn';
19
20
  import { ImageClassicIcon } from '../../icons-v2-generated/audio-and-visual/image-classic-icon';
20
21
  import { FigmaClassicIcon } from '../../icons-v2-generated/brand-logos/figma-classic-icon';
@@ -234,8 +235,8 @@ function LoadedRoadmapCard({
234
235
  <Image
235
236
  src={iconSrc}
236
237
  alt={`${item.title} logo`}
237
- width={32}
238
- height={32}
238
+ width={IMAGE_FIXED_PX.logo}
239
+ height={IMAGE_FIXED_PX.logo}
239
240
  unoptimized
240
241
  className="h-8 w-8 object-contain"
241
242
  />
@@ -330,8 +331,8 @@ function LoadedRoadmapCard({
330
331
  <Image
331
332
  src={iconSrc}
332
333
  alt={`${item.title} logo`}
333
- width={40}
334
- height={40}
334
+ width={IMAGE_FIXED_PX.logoLg}
335
+ height={IMAGE_FIXED_PX.logoLg}
335
336
  unoptimized
336
337
  className="object-contain p-1"
337
338
  />
@@ -3,6 +3,7 @@
3
3
  import { createContext, type MouseEvent, type ReactNode, useContext } 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 { cn } from '../../utils/cn';
7
8
  import { personInitials } from '../../utils/format';
8
9
  import { Ellipsis01Icon } from '../icons-v2-generated';
@@ -137,8 +138,8 @@ function CardMedia({ imageSrc, imageAlt, icon }: Pick<MingoInfoCardProps, 'image
137
138
  src={imageSrc}
138
139
  alt={imageAlt || ''}
139
140
  className="relative block size-10 rounded-sm border border-ods-border object-cover"
140
- width={40}
141
- height={40}
141
+ width={AVATAR_SIZE_PX.md}
142
+ height={AVATAR_SIZE_PX.md}
142
143
  unoptimized
143
144
  onError={e => {
144
145
  const img = e.currentTarget;
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { useEffect, useState } from 'react';
4
4
  import Image from '../../embed-shims/next-image';
5
+ import { IMAGE_SLOT } from '../../styles/image-sizes';
5
6
  import { UnifiedSkeleton } from '../loading/unified-skeleton';
6
7
  import { useLoadingScope } from '../ui/loading-scope';
7
8
  import { useRichMarkdownRuntime } from './rich-markdown-runtime';
@@ -83,7 +84,7 @@ export function MarkdownImage({ src, alt }: { src: string; alt?: string }) {
83
84
  alt={alt ?? 'No image available'}
84
85
  width={DISPLAY_W}
85
86
  height={Math.round(DISPLAY_W / ratio)}
86
- sizes="(max-width: 768px) 100vw, 768px"
87
+ sizes={IMAGE_SLOT.column}
87
88
  loading="lazy"
88
89
  // `object-contain` → SupabaseOptimizedImage uses `resize=contain` (no crop).
89
90
  // `w-full` (not `w-auto`) gives the img a definite width so it lays out + lazy-loads
@@ -7,6 +7,7 @@ import Link from '../../embed-shims/next-link';
7
7
  import { useImageEdgeColor } from '../../hooks';
8
8
  import { useOgPlaceholderUrl } from '../../hooks/use-og-placeholder-url';
9
9
  import { ICON_SIZE, MEDIA_ASPECT, TILE_SIZE } from '../../styles/component-sizes';
10
+ import { IMAGE_FIXED_PX, IMAGE_SLOT } from '../../styles/image-sizes';
10
11
  import { cn } from '../../utils/cn';
11
12
  import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
12
13
  import { useLoadingScope } from '../ui/loading-scope';
@@ -162,8 +163,8 @@ const Favicon = ({ src, size = 'w-6 h-6' }: { src: string; size?: string }) => (
162
163
  src={src}
163
164
  alt=""
164
165
  className={size}
165
- width={24}
166
- height={24}
166
+ width={IMAGE_FIXED_PX.glyph}
167
+ height={IMAGE_FIXED_PX.glyph}
167
168
  unoptimized
168
169
  onError={e => {
169
170
  const img = e.target as HTMLImageElement;
@@ -573,7 +574,14 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
573
574
  if (!resolvedImageUrl) return null;
574
575
  if (isPlaceholder) {
575
576
  return (
576
- <Image src={resolvedImageUrl} alt={title} className="rounded-md object-cover" fill sizes="100vw" unoptimized />
577
+ <Image
578
+ src={resolvedImageUrl}
579
+ alt={title}
580
+ className="rounded-md object-cover"
581
+ fill
582
+ sizes={IMAGE_SLOT.full}
583
+ unoptimized
584
+ />
577
585
  );
578
586
  }
579
587
  if (isCuratedImage) {
@@ -594,7 +602,7 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
594
602
  alt={title}
595
603
  className="rounded-md object-contain transition-transform duration-300 group-hover:scale-105"
596
604
  fill
597
- sizes="100vw"
605
+ sizes={IMAGE_SLOT.full}
598
606
  unoptimized
599
607
  onError={handleImageError}
600
608
  />
@@ -711,8 +719,8 @@ export const OGLinkPreview: React.FC<OGLinkPreviewProps> = ({
711
719
  src={logoSrc}
712
720
  alt={publicationName || ''}
713
721
  className={cn(DEFAULT_LOGO_CLASS, 'object-contain')}
714
- width={24}
715
- height={24}
722
+ width={IMAGE_FIXED_PX.glyph}
723
+ height={IMAGE_FIXED_PX.glyph}
716
724
  unoptimized
717
725
  onError={e => {
718
726
  const img = e.target as HTMLImageElement;