You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/08/29 10:56:57 UTC
(maka) 02/06: chore(ui): align attachment image surface metadata
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch feat/4093-markdown-attachment-images
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 66ef78214a1fa2ca7d74e07c138f980520447a1a
Author: AstroHan <le...@outlook.com>
AuthorDate: Sat Aug 29 15:08:16 2026 +0800
chore(ui): align attachment image surface metadata
Generated-by: Codex
---
docs/astryx-surface-file-inventory.md | 3 ++-
docs/astryx-surface-file-inventory.paths | 1 +
packages/ui/src/chat-view.tsx | 9 +++------
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/docs/astryx-surface-file-inventory.md b/docs/astryx-surface-file-inventory.md
index 1588a9edb..b0a9c70a1 100644
--- a/docs/astryx-surface-file-inventory.md
+++ b/docs/astryx-surface-file-inventory.md
@@ -5,7 +5,7 @@ Each row is one on-disk product surface file. Regenerated inventory must stay in
Wiki bar: Design Conventions · API Use-the-System · Theming · Container Padding.
-**Totals:** 221 files — blocker 0, polish 1, aligned 220.
+**Totals:** 222 files — blocker 0, polish 1, aligned 221.
## Exclusions (explicit)
@@ -190,6 +190,7 @@ Wiki bar: Design Conventions · API Use-the-System · Theming · Container Paddi
| `apps/desktop/src/renderer/workhub-surface.tsx` | other | Button | aligned — uses Astryx (Button) | aligned |
| `packages/ui/src/astryx-chat-reasoning.tsx` | shell-chrome-or-panel | none | aligned — no raw controls; no Astryx JSX usage | aligned |
| `packages/ui/src/astryx-i18n.tsx` | ui-composition | none | aligned — no raw controls; no Astryx JSX usage | aligned |
+| `packages/ui/src/attachment-image.tsx` | ui-composition | none | aligned — no raw controls; no Astryx JSX usage | aligned |
| `packages/ui/src/attachment-kinds.tsx` | ui-composition | none | aligned — no raw controls; no Astryx JSX usage | aligned |
| `packages/ui/src/bot-brand-logo.tsx` | ui-composition | none | aligned — no raw controls; no Astryx JSX usage | aligned |
| `packages/ui/src/capability-audit-strip.tsx` | ui-composition | Banner | aligned — uses Astryx (Banner) | aligned |
diff --git a/docs/astryx-surface-file-inventory.paths b/docs/astryx-surface-file-inventory.paths
index f7dbe7e93..01833bc81 100644
--- a/docs/astryx-surface-file-inventory.paths
+++ b/docs/astryx-surface-file-inventory.paths
@@ -162,6 +162,7 @@ apps/desktop/src/renderer/work-board-panel.tsx
apps/desktop/src/renderer/workhub-surface.tsx
packages/ui/src/astryx-chat-reasoning.tsx
packages/ui/src/astryx-i18n.tsx
+packages/ui/src/attachment-image.tsx
packages/ui/src/attachment-kinds.tsx
packages/ui/src/bot-brand-logo.tsx
packages/ui/src/capability-audit-strip.tsx
diff --git a/packages/ui/src/chat-view.tsx b/packages/ui/src/chat-view.tsx
index 64f3b42e8..9aea0fdfd 100644
--- a/packages/ui/src/chat-view.tsx
+++ b/packages/ui/src/chat-view.tsx
@@ -302,12 +302,9 @@ export function ChatView(props: {
};
onRevisionNavigate?: (sessionId: string) => void;
/**
- * Host reader for image attachment bytes, threaded to each turn's user-message
- * thumbnails. The desktop shell passes its preload `attachments.readBytes`;
- * non-desktop hosts omit it and image thumbnails stay in their pending
- * skeleton. Keeps @maka/ui host-agnostic with no direct host-global access.
- * Pass an identity-stable reference so the memoized TurnViews keep skipping
- * reconciliation on the hot streaming path.
+ * Host reader for image attachment bytes. The desktop shell passes its preload
+ * `attachments.readBytes`; non-desktop hosts may omit it. Keeps @maka/ui
+ * host-agnostic with no direct host-global access.
*/
onReadAttachmentBytes?: ReadAttachmentBytes;
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org