Skip to content

refactor(ui): share image upload preview tiles - #8015

Merged
waleedlatif1 merged 1 commit into
stagingfrom
codex/control-fix-upload-previews
Sep 19, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
codex/control-fix-upload-previews

Conversation

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor

Custom block icons and organization logo/wordmark settings repeat the same upload-preview button. Move that presentation into EMCN UploadPreviewButton and migrate all three tiles. The component owns the empty, preview, loading and disabled appearance; callers retain file selection, upload validation, permissions, and image rendering.

The 64px height, square or full-width layout, border, fill, corners, image padding and disabled opacity remain the same. Loading also exposes aria-busy. No extra styling variants are introduced.

Validation: all 345 EMCN tests, 4 existing consumer tests, workspace type checks/lint, import resolution, and API validation pass. The external conformance scan adds no findings. A browser fixture using the real component and application CSS confirms 18 matching state/theme comparisons and matching hover fills. Live upload/storage flows were not exercised; their existing logic is unchanged. Review helpers and screenshots are outside this PR.

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 19, 2026 6:04pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no actionable regression or repository-rule violation was identified.

Summary

Extracts the repeated image-upload tile into EMCN UploadPreviewButton and migrates custom-block icons plus organization logos and wordmarks.

  • Centralizes empty, preview, loading, and disabled presentation while retaining caller-owned image rendering and upload handling.
  • Adds aria-busy during uploads and preserves native non-submit button behavior.
  • Adds tests covering ref and label forwarding, click handling, form behavior, loading transitions, and independent disabled restrictions.
  • No actionable regressions identified. Tests and browser validation were not independently rerun.

Reviews (1) · Last reviewed commit: "refactor(ui): share image upload preview..."

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor Author

@cubic-dev-ai please re-review this PR.

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai please re-review this PR.

@BillLeoutsakosvl346 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit bb263f8 into staging Sep 19, 2026
37 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/control-fix-upload-previews branch September 19, 2026 18:56

This branch was successfully deployed

1 active deployment
Preview d7982005 Deployed Sep 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants