feat(conversational-ai): improve artifact previews and scrolling#6452
feat(conversational-ai): improve artifact previews and scrolling#6452TarunAdobe wants to merge 10 commits into
Conversation
…bnails Media artifacts no longer reserve space for an empty actions row, and thumbnail content is positioned to cover the full tile. Storybook demos now use stable picsum image previews instead of broken gradient placeholders. Co-authored-by: Cursor <cursoragent@cursor.com>
Support mixed file types with a bottom-left overlay on type="media" without introducing a new artifact type. Co-authored-by: Cursor <cursoragent@cursor.com>
…trips Match dismiss, radii, shadow, and badge spacing to design specs. Update docs and stories for card-only or media-only attachment strips, warn in prompt-field when types are mixed, and use media tiles with badges in the pattern overview demo. Co-authored-by: Cursor <cursoragent@cursor.com>
Add flanking chevron navigation and hidden-scrollbar trackpad scroll when multiple attachments overflow the composer. Refine media dismiss sizing for Figma alignment. Co-authored-by: Cursor <cursoragent@cursor.com>
|
📚 Branch Preview Links🔍 Gen1 Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
Mount mixed artifacts after the console.warn spy is installed, and read badge labels from the light DOM slot instead of shadow overlay textContent. Co-authored-by: Cursor <cursoragent@cursor.com>
Document required legal disclaimers with a dev warning when missing. Clarify that mixed uploads should normalize to media tiles with badges, not card and media layouts in the same strip. Co-authored-by: Cursor <cursoragent@cursor.com>
…bar lane Align multi-artifact scrolling with Figma using set-based chevron paging, edge fades, and a dedicated scrollbar lane that avoids clipping tiles. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep Storybook examples aligned with the design-approved disclaimer and official guidelines link. Co-authored-by: Cursor <cursoragent@cursor.com>
Description
This PR improves upload artifacts and their integration with Prompt Field:
badgeslot for media previews such as document-type labels.Motivation and context
Prompt Field previously had limited support for multiple attachments, while Upload Artifact did not fully match the approved card and media treatments. This made larger upload sets difficult to navigate and encouraged mixed card/media layouts that did not produce a consistent attachment strip. Media artifacts also needed a way to display document-type context without using the metadata-first card layout. The updated implementation provides a consistent carousel for multiple artifacts, supports media badges, and documents how applications should normalize mixed file types into one visual layout.
Acceptance criteria
controls and edge fades indicate available overflow.
badgeslot, then the badge appears over the media preview.legalslot is empty, when Prompt Field renders in development, then a warning requests Legal-approved disclaimer content.Related issue(s)
No linked issue or Jira ticket.
Verification
yarn lint:docs-pagespassed.Screenshots (if appropriate)
Author's checklist
PULL_REQUESTS documents.
Guide.
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
navigation at each edge.
Device review
Accessibility testing checklist
send or stop action.
understandable names.