This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(detail): generic record Attachments panel gated on enable.files (framework#2727) - #2374
Merged
Merged
Conversation
…(framework#2727)
New RecordAttachmentsPanel — Salesforce "Notes & Attachments" parity for
objects that opt in via enable: { files: true }:
- Upload via the canonical presigned three-step storage flow
(createObjectStackUploadAdapter; blob → sys_file), then a
sys_attachment join row targeting (parent_object, parent_id).
- List (name/size/mime), stable download links via the
/api/v1/storage/files/:fileId 302-redirect endpoint, delete.
- Rendered by RecordDetailView in both the page-schema and legacy
branches. Opt-in: objects without the flag see no panel, and the
server independently rejects attachment rows targeting them
(403 FILES_DISABLED).
Browser-verified against a fresh showcase backend: panel renders with a
listed attachment on a files:true probe object (download returns the
uploaded bytes) and is absent on a no-flag object.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
framework#2727 的 objectui 半边:新
RecordAttachmentsPanel,给通过enable: { files: true }显式 opt-in 的对象提供 Salesforce "Notes & Attachments" 级的记录附件面板:createObjectStackUploadAdapter,blob →sys_file),然后写sys_attachmentjoin 行(parent_object/parent_id)。/api/v1/storage/files/:fileId(302 到新签名 URL);删除走通用 data 路径。discussionSlot)都接入;opt-in:没设 flag 的对象不渲染面板,服务端也独立拒绝指向它们的附件行(403FILES_DISABLED,framework 侧)。验证
turbo build --filter=@object-ui/app-shell(tsc)✓;app-shell 测试 151 文件/1164 用例 ✓files:true探针对象=面板渲染、列出 API 上传的附件、下载返回原始字节;无 flag 对象=记录页正常但无面板VITE_SERVER_URL(默认 :3000)而非 Vite 代理——dev 验证两者都要指到同一后端配套:objectstack-ai/framework PR(feat/2727-generic-attachments,FILES_DISABLED 闸门 + ledger files→live)。合并顺序:framework 先(闸门先在,面板后到=安全;反序则面板先到、无闸门=可写但无强制,窗口小但没必要)。
🤖 Generated with Claude Code